/*!
 * Tattooshop Manager – public styles (booking, consent, approval, gallery)
 * Uses the theme font; accent colour via --tsm-accent.
 * (c) 2026 Codeharven
 */
.tsm-pub, .tsm-gallery, .tsm-artists { --tsm-accent: #c8102e; --tsmp-line: #e4e4e7; --tsmp-muted: #71717a; --tsmp-bg: #fff; color: inherit; }
.tsm-pub *, .tsm-gallery *, .tsm-artists * { box-sizing: border-box; }
.tsmp-form { max-width: 760px; margin: 0 auto; background: var(--tsmp-bg); border: 1px solid var(--tsmp-line); border-radius: 16px; padding: 26px; color: #18181b; box-shadow: 0 10px 40px rgba(0, 0, 0, .06); }
.tsmp-form h2 { margin: 0 0 4px; font-size: 22px; }
.tsmp-form h3 { margin: 22px 0 12px; font-size: 18px; }
.tsmp-form section > h3:first-child { margin-top: 6px; }
.tsmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tsmp-grid .full { grid-column: 1 / -1; }
.tsmp-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.tsmp-form input:not([type=checkbox]):not([type=radio]), .tsmp-form select, .tsmp-form textarea, .tsmp-design textarea {
	width: 100%; padding: 11px 12px; border: 1px solid #d4d4d8; border-radius: 10px; font: inherit; font-weight: 400; font-size: 15px; background: #fff; color: #18181b;
}
.tsmp-form input:focus, .tsmp-form select:focus, .tsmp-form textarea:focus, .tsmp-design textarea:focus { outline: none; border-color: var(--tsm-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tsm-accent) 18%, transparent); }
.tsmp-check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 500 !important; margin: 8px 0; }
.tsmp-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--tsm-accent); flex: none; }
.tsmp-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; }
.tsmp-progress { height: 5px; background: #f4f4f5; border-radius: 999px; overflow: hidden; }
.tsmp-progress span { display: block; height: 100%; background: var(--tsm-accent); transition: width .3s; }
.tsmp-stepno { color: var(--tsmp-muted); font-size: 13px; margin: 8px 0 0; }
.tsmp-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.tsmp-type { cursor: pointer; }
.tsmp-type input { position: absolute; opacity: 0; }
.tsmp-type span { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 2px solid var(--tsmp-line); border-radius: 14px; transition: border-color .15s, transform .15s; height: 100%; }
.tsmp-type span b { font-size: 26px; line-height: 1; }
.tsmp-type span small { color: var(--tsmp-muted); font-weight: 400; }
.tsmp-type:hover span { transform: translateY(-2px); }
.tsmp-type input:checked + span { border-color: var(--tsm-accent); background: color-mix(in srgb, var(--tsm-accent) 6%, #fff); }
.tsmp-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.tsmp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px; border: 2px solid var(--tsm-accent); background: var(--tsm-accent); color: #fff !important; font: 700 15px/1.2 inherit; font-family: inherit; cursor: pointer; text-decoration: none !important; }
.tsmp-btn:hover { filter: brightness(1.08); }
.tsmp-btn:disabled { opacity: .6; cursor: wait; }
.tsmp-btn-ghost { background: transparent; color: var(--tsm-accent) !important; }
.tsmp-link { background: none; border: 0; color: var(--tsm-accent); cursor: pointer; padding: 4px 0; font: inherit; font-size: 13px; }
.tsmp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tsmp-chips button { padding: 9px 14px; border-radius: 999px; border: 1px solid #d4d4d8; background: #fff; cursor: pointer; font: 600 14px inherit; font-family: inherit; color: #18181b; }
.tsmp-chips button.on, .tsmp-chips button:hover { border-color: var(--tsm-accent); background: var(--tsm-accent); color: #fff; }
.tsmp-slots { margin: 14px 0; }
.tsmp-muted { color: var(--tsmp-muted); }
.tsmp-note { background: #fafafa; border-left: 3px solid var(--tsm-accent); padding: 10px 14px; border-radius: 0 10px 10px 0; font-size: 14px; }
.tsmp-error { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; padding: 10px 14px; border-radius: 10px; margin-top: 14px; }
.tsmp-ok { color: #15803d; font-weight: 700; }
.tsmp-done { text-align: center; padding: 40px 20px; max-width: 560px; margin: 0 auto; }
.tsmp-check-big { width: 64px; height: 64px; border-radius: 50%; background: var(--tsm-accent); color: #fff; font-size: 34px; display: grid; place-items: center; margin: 0 auto 14px; }
.tsmp-questions { display: flex; flex-direction: column; border: 1px solid var(--tsmp-line); border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.tsmp-q { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; padding: 12px 14px; border-bottom: 1px solid var(--tsmp-line); align-items: center; }
.tsmp-q:last-child { border-bottom: 0; }
.tsmp-q.yes { background: #fffbeb; }
.tsmp-q .tsmp-detail { grid-column: 1 / -1; }
.tsmp-yn { display: flex; gap: 14px; }
.tsmp-yn label { flex-direction: row !important; align-items: center; gap: 6px !important; font-weight: 500 !important; }
.tsmp-yn input { accent-color: var(--tsm-accent); width: 18px; height: 18px; }
.tsmp-statements { background: #fafafa; border-radius: 12px; padding: 14px 14px 14px 34px; margin: 0 0 12px; line-height: 1.55; }
.tsmp-statements li { margin-bottom: 6px; }
.tsmp-sig { margin: 18px 0; }
.tsmp-sig small { color: var(--tsmp-muted); display: block; margin: 4px 0 6px; }
.tsmp-sig canvas { width: 100%; height: 170px; border: 2px dashed #d4d4d8; border-radius: 12px; background: #fff; touch-action: none; display: block; cursor: crosshair; }
.tsmp-design { max-width: 760px; margin: 0 auto; padding: 10px; color: #18181b; }
.tsmp-design-img { background: #fff; border: 1px solid var(--tsmp-line); border-radius: 16px; padding: 16px; margin: 16px 0; text-align: center; }
.tsmp-design-img img { max-width: 100%; max-height: 70vh; }
.tsm-token-page { margin: 0; background: #f4f4f5; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: #18181b; min-height: 100vh; }
.tsm-token-head { background: #111; color: #fff; padding: 14px 20px; text-align: center; border-bottom: 3px solid var(--tsm-accent); }
.tsm-token-head img { max-height: 46px; }
.tsm-token-page main { padding: 22px 14px 60px; }
/* Gallery */
.tsm-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tsm-gallery-item { margin: 0; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--tsmp-line); display: flex; flex-direction: column; }
.tsm-gallery-item img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; display: block; transition: transform .25s; }
.tsm-gallery-item:hover img { transform: scale(1.03); }
.tsm-gallery-item figcaption { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: #18181b; }
.tsm-gallery-item figcaption span { color: var(--tsmp-muted); font-size: 13px; }
.tsm-gallery-item .tsm-flash-price { color: var(--tsm-accent); font-weight: 700; }
.tsm-btn { display: inline-block; padding: 10px 18px; border-radius: 10px; background: var(--tsm-accent); color: #fff !important; font-weight: 700; text-decoration: none !important; margin-top: 6px; text-align: center; }
.tsm-btn-small { padding: 7px 12px; font-size: 13px; }
.tsm-artists { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.tsm-artist { border: 1px solid var(--tsmp-line); border-radius: 16px; padding: 20px; text-align: center; background: #fff; color: #18181b; }
.tsm-artist img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; }
.tsm-artist h3 { margin: 0 0 6px; }
.tsm-artist h3 small { display: block; font-size: 12px; color: var(--tsm-accent); }
.tsm-artist .tsm-styles { color: var(--tsmp-muted); font-size: 14px; }
.tsmp-lb { position: fixed; inset: 0; background: rgba(0, 0, 0, .9); z-index: 999999; display: grid; place-items: center; cursor: zoom-out; padding: 20px; }
.tsmp-lb img { max-width: 100%; max-height: 92vh; background: #fff; border-radius: 8px; }
@media (max-width: 600px) {
	.tsmp-form { padding: 18px; border-radius: 12px; }
	.tsmp-grid { grid-template-columns: 1fr; }
	.tsmp-q { grid-template-columns: 1fr; }
	.tsm-gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
}
.tsmp-design-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tsmp-design-pair .tsmp-design-img { margin: 16px 0 8px; padding: 10px; }
.tsmp-design-pair figcaption { margin-top: 8px; font-size: 14px; color: #555; }
@media (max-width: 640px) { .tsmp-design-pair { grid-template-columns: 1fr; } }
