/* Spectro Bookings – uses the theme's tokens when present (Spectro Store), with fallbacks. */
.sb {
	--sb-serif: var(--ss-serif, Georgia, serif);
	--sb-sans: var(--ss-sans, system-ui, sans-serif);
	--sb-ink: var(--ss-ink, #251f23);
	--sb-body: var(--ss-body, #4b4348);
	--sb-mute: var(--ss-mute, #877c81);
	--sb-line: var(--ss-line, #ebe4e1);
	--sb-paper: var(--ss-paper, #fbfaf9);
	--sb-white: var(--ss-white, #fff);
	--sb-accent: var(--ss-accent, #8b5c4f);
	--sb-rose: var(--ss-rose, #b98b7c);
	--sb-blush: var(--ss-blush, #f6eeeb);
	--sb-ease: cubic-bezier(.22, .61, .36, 1);
	display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 5vw, 80px); align-items: start;
	max-width: calc(1180px + 2 * clamp(18px, 4vw, 56px)); margin: 0 auto; padding: clamp(32px, 5vw, 72px) clamp(18px, 4vw, 56px) 110px;
	font-family: var(--sb-sans); font-weight: 300; color: var(--sb-body);
}
.sb [hidden] { display: none !important; }
.sb button { font-family: inherit; }
.sb .sb-kicker { margin: 0 0 16px; font-size: 11.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--sb-accent); }
.sb .sb-title { margin: 0 0 30px; font-family: var(--sb-serif); font-weight: 300; font-size: clamp(46px, 5.6vw, 80px); line-height: .98; color: var(--sb-ink); }
.sb .sb-title em, .sb .sb-done-title em { font-style: italic; color: var(--sb-accent); }
.sb .sb-h { margin: 0 0 18px; font-family: var(--sb-serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 32px); color: var(--sb-ink); }
.sb .sb-hint { margin: 12px 0 0; font-size: 13.5px; color: var(--sb-mute); }
.sb .sb-demo { margin-top: 22px; padding: 10px 14px; background: var(--sb-blush); }
.sb .sb-msg { min-height: 1.3em; margin: 0 0 12px; font-size: 13.5px; color: #a0372b; }
.sb .sb-msg.ok { color: var(--sb-accent); }
.sb .sb-msg:empty { min-height: 0; margin: 0; }

/* Buttons */
.sb .sb-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px;
	border: 1px solid var(--sb-ink); border-radius: 0; background: transparent; color: var(--sb-ink); cursor: pointer;
	font-size: 12.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; box-shadow: none;
	transition: background .35s var(--sb-ease), color .35s var(--sb-ease), border-color .35s var(--sb-ease);
}
.sb .sb-btn:hover { background: var(--sb-ink); color: #fff; }
.sb .sb-btn-dark { background: var(--sb-ink); color: #fff; }
.sb .sb-btn-dark:hover { background: var(--sb-accent); border-color: var(--sb-accent); }
.sb .sb-btn:disabled { opacity: .7; cursor: progress; }
.sb .sb-block { width: 100%; }
.sb .sb-back { display: block; width: 100%; margin-top: 10px; min-height: 40px; border: 0; background: none; cursor: pointer; box-shadow: none; font-size: 12px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: var(--sb-mute); }
.sb .sb-back:hover { background: none; color: var(--sb-ink); }

/* Steps */
.sb .sb-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; list-style: none; margin: 0 0 40px; padding: 0; counter-reset: sb; }
.sb .sb-steps li { counter-increment: sb; margin: 0; padding-top: 12px; border-top: 2px solid var(--sb-line); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sb-mute); }
.sb .sb-steps li::before { content: counter(sb) ". "; }
.sb .sb-steps li.is-done { border-color: var(--sb-rose); color: var(--sb-body); }
.sb .sb-steps li.is-cur { border-color: var(--sb-ink); color: var(--sb-ink); font-weight: 500; }

/* Workshops */
.sb .sb-workshops { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 44px; }
.sb .sb-ws { display: flex; flex-direction: column; padding: 0; border: 1px solid var(--sb-line); border-radius: 0; background: var(--sb-white); text-align: left; cursor: pointer; color: inherit; box-shadow: none; transition: border-color .3s, box-shadow .3s; }
.sb .sb-ws:hover { background: var(--sb-white); color: inherit; border-color: var(--sb-rose); }
.sb .sb-ws[aria-checked="true"] { border-color: var(--sb-ink); box-shadow: 0 0 0 1px var(--sb-ink); }
.sb .sb-ws-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.sb .sb-ws-img img { width: 100%; height: 100%; object-fit: cover; }
.sb .sb-ws-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.sb .sb-ws-body b { font-family: var(--sb-serif); font-weight: 400; font-size: 26px; line-height: 1.1; color: var(--sb-ink); }
.sb .sb-ws-body span { font-size: 14.5px; line-height: 1.5; color: var(--sb-body); }
.sb .sb-ws-body small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--sb-mute); }
.sb .sb-ws-body em { font-style: normal; font-size: 15px; color: var(--sb-accent); margin-top: 4px; }
.sb .sb-people { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; border-top: 1px solid var(--sb-line); }
.sb .sb-people .sb-h { margin-bottom: 4px; }
.sb .sb-people .sb-hint { margin: 0; }
.sb .sb-stepper { display: flex; align-items: center; gap: 14px; }
.sb .sb-stepper button { width: 52px; height: 52px; padding: 0; border: 1px solid var(--sb-line); border-radius: 0; background: var(--sb-white); color: var(--sb-ink); font-size: 22px; cursor: pointer; box-shadow: none; }
.sb .sb-stepper output { min-width: 34px; text-align: center; font-size: 32px; font-weight: 300; color: var(--sb-ink); }

/* Calendar */
.sb .sb-cal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sb .sb-cal-head .sb-h { margin: 0; }
.sb .sb-cal-nav { display: flex; align-items: center; gap: 6px; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--sb-ink); }
.sb .sb-cal-nav span { min-width: 150px; text-align: center; }
.sb .sb-cal-nav button { width: 40px; height: 40px; padding: 0; border: 0; background: none; font-size: 26px; color: var(--sb-ink); cursor: pointer; box-shadow: none; }
.sb .sb-cal-nav button:disabled { opacity: .2; cursor: default; }
.sb .sb-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 22px; }
.sb .sb-dow { text-align: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--sb-mute); padding-bottom: 6px; }
.sb .sb-day { aspect-ratio: 1; padding: 0; border: 1px solid var(--sb-line); border-radius: 0; background: var(--sb-white); color: var(--sb-ink); cursor: pointer; font-size: clamp(15px, 1.4vw, 18px); font-weight: 300; box-shadow: none; transition: background .2s, border-color .2s, color .2s; }
.sb .sb-day:hover:not(:disabled) { border-color: var(--sb-rose); background: var(--sb-white); color: var(--sb-ink); }
.sb .sb-day:disabled { background: transparent; border-color: transparent; color: #cbc3c6; cursor: default; }
.sb .sb-day.is-sel { background: var(--sb-ink); border-color: var(--sb-ink); color: #fff; }
.sb .sb-slots-wrap { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--sb-line); }
.sb .sb-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.sb .sb-slot { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border: 1px solid var(--sb-line); border-radius: 0; background: var(--sb-white); color: var(--sb-ink); cursor: pointer; box-shadow: none; }
.sb .sb-slot:hover:not(:disabled) { border-color: var(--sb-rose); background: var(--sb-white); color: var(--sb-ink); }
.sb .sb-slot b { font-size: 19px; font-weight: 300; }
.sb .sb-slot small { font-size: 11.5px; color: var(--sb-mute); }
.sb .sb-slot.is-sel { background: var(--sb-ink); border-color: var(--sb-ink); color: #fff; }
.sb .sb-slot.is-sel small { color: rgba(255, 255, 255, .75); }
.sb .sb-slot:disabled { opacity: .4; cursor: not-allowed; }

/* Form */
.sb .sb-form { display: grid; gap: 18px; }
.sb .sb-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.sb .sb-field > span { font-size: 12px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--sb-ink); }
.sb .sb-field small { font-size: 12.5px; letter-spacing: 0; text-transform: none; color: var(--sb-mute); }
.sb .sb-field input, .sb .sb-field textarea {
	width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--sb-line); border-radius: 0; background: var(--sb-white);
	font: 300 16px var(--sb-sans); color: var(--sb-ink); box-shadow: none;
}
.sb .sb-field input:focus, .sb .sb-field textarea:focus { outline: none; border-color: var(--sb-ink); }
.sb .sb-voucher { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; padding-top: 14px; border-top: 1px solid var(--sb-line); }
.sb .sb-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--sb-body); cursor: pointer; }
.sb .sb-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--sb-ink); flex: none; }

/* Payment */
.sb .sb-pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.sb .sb-pay-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px; border: 1px solid var(--sb-line); border-radius: 0; background: var(--sb-white); color: var(--sb-ink); text-align: left; cursor: pointer; box-shadow: none; }
.sb .sb-pay-opt:hover { background: var(--sb-white); color: var(--sb-ink); border-color: var(--sb-rose); }
.sb .sb-pay-opt b { font-family: var(--sb-serif); font-weight: 400; font-size: 24px; }
.sb .sb-pay-opt span { font-size: 12.5px; color: var(--sb-mute); }
.sb .sb-pay-opt[aria-checked="true"] { border-color: var(--sb-ink); box-shadow: 0 0 0 1px var(--sb-ink); }
.sb #sb-blik { max-width: 240px; font-size: 28px; letter-spacing: .2em; }
.sb .sb-banks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sb .sb-banks span { padding: 16px; border: 1px solid var(--sb-line); background: var(--sb-white); text-align: center; font-size: 14px; color: var(--sb-body); }

/* Summary */
.sb .sb-sum { position: sticky; top: 120px; background: var(--sb-white); border: 1px solid var(--sb-line); }
.sb .sb-sum-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sb-blush); }
.sb .sb-sum-img img { width: 100%; height: 100%; object-fit: cover; }
.sb .sb-sum-body { padding: 24px 26px 26px; }
.sb .sb-sum-name { margin: 0 0 14px; font-family: var(--sb-serif); font-size: 28px; line-height: 1.1; color: var(--sb-ink); }
.sb .sb-sum-list { margin: 0 0 18px; }
.sb .sb-sum-list div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--sb-line); font-size: 14px; }
.sb .sb-sum-list dt { color: var(--sb-mute); font-weight: 300; }
.sb .sb-sum-list dd { margin: 0; color: var(--sb-ink); text-align: right; }
.sb .sb-sum-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 16px; font-size: 14px; color: var(--sb-ink); }
.sb .sb-sum-total b { font-size: 26px; font-weight: 300; }

/* Done */
.sb .sb-done { max-width: 640px; }
.sb .sb-done-mark { width: 64px; height: 64px; fill: none; stroke: var(--sb-accent); stroke-width: 1.4; margin-bottom: 18px; }
.sb .sb-done-mark path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: sb-draw .8s .2s var(--sb-ease) forwards; }
@keyframes sb-draw { to { stroke-dashoffset: 0; } }
.sb .sb-done-title { margin: 0 0 16px; font-family: var(--sb-serif); font-weight: 300; font-size: clamp(46px, 5vw, 72px); line-height: 1; color: var(--sb-ink); }
.sb .sb-done-sub { margin: 0 0 28px; color: var(--sb-body); }
.sb .sb-ticket { margin: 0 0 28px; padding: 8px 24px; background: var(--sb-white); border: 1px solid var(--sb-line); }
.sb .sb-ticket div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--sb-line); font-size: 15px; }
.sb .sb-ticket div:last-child { border-bottom: 0; }
.sb .sb-ticket dt { color: var(--sb-mute); font-weight: 300; }
.sb .sb-ticket dd { margin: 0; color: var(--sb-ink); text-align: right; }
.sb .sb-done-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (prefers-reduced-motion: reduce) { .sb .sb-done-mark path { animation: none; stroke-dashoffset: 0; } }

@media (max-width: 920px) {
	.sb { grid-template-columns: 1fr; padding-bottom: 220px; }
	.sb .sb-sum { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 40; border-width: 1px 0 0; box-shadow: 0 -12px 40px rgba(37, 31, 35, .08); }
	.sb .sb-sum-img, .sb .sb-sum-list { display: none; }
	.sb .sb-sum-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 14px clamp(18px, 4vw, 56px) calc(14px + env(safe-area-inset-bottom)); }
	.sb .sb-sum-name { grid-column: 1; margin: 0; font-size: 18px; }
	.sb .sb-sum-total { grid-column: 1; margin: 0; justify-content: flex-start; gap: 10px; }
	.sb .sb-sum-total b { font-size: 22px; }
	.sb #sb-next { grid-column: 2; grid-row: 1 / span 2; width: auto; padding: 0 22px; }
	.sb .sb-sum-body .sb-msg { grid-column: 1 / -1; }
	.sb .sb-back { grid-column: 1 / -1; margin-top: 2px; }
	.sb .sb-workshops { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.sb .sb-steps li { font-size: 10px; letter-spacing: .06em; }
	.sb .sb-people { flex-direction: column; align-items: flex-start; }
	.sb .sb-cal-nav span { min-width: 110px; font-size: 11.5px; }
	.sb .sb-pay-opt { padding: 12px; }
	.sb .sb-pay-opt b { font-size: 18px; }
	.sb .sb-pay-opt span { display: none; }
}

/* ---------- v2: grouped catalogue, holds ---------- */
.sb .sb-workshops { display: block; margin-bottom: 40px; }
.sb .sb-group { margin-bottom: 22px; }
.sb .sb-group-name { margin: 0 0 8px; font-size: 11.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--sb-accent); }
.sb .sb-ws { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; width: 100%; margin: 0 0 8px; padding: 16px 20px; }
.sb .sb-ws-body { padding: 0; gap: 3px; }
.sb .sb-ws-body b { font-size: 22px; }
.sb .sb-ws-body span { font-size: 14px; }
.sb .sb-ws > em { flex: none; font-style: normal; font-size: 15px; color: var(--sb-accent); white-space: nowrap; }
.sb .sb-stepper button:disabled { opacity: .3; cursor: default; }
.sb .sb-cal.is-loading { opacity: .45; pointer-events: none; }
.sb .sb-slot.is-held small { color: var(--sb-accent); font-style: italic; }
.sb .sb-slot.is-pending { opacity: .6; }
.sb .sb-hold { margin: 0 0 14px; padding: 10px 12px; background: var(--sb-blush); font-size: 13px; color: var(--sb-ink); }
.sb .sb-hold.is-low { background: #fbecea; color: #a0372b; }
.sb .sb-done-note { margin: 18px 0 0; padding: 14px 16px; background: var(--sb-blush); font-size: 14px; line-height: 1.6; color: var(--sb-body); }
@media (max-width: 920px) {
	.sb .sb-hold { grid-column: 1 / -1; margin: 0; padding: 6px 10px; font-size: 12px; }
}
@media (max-width: 560px) {
	.sb .sb-ws { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ---------- v3: activity tiles → card with variant switch and people ---------- */
.sb .sb-label { margin: 0 0 12px; font-size: 11.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--sb-accent); }
.sb .sb-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.sb .sb-act { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; border: 1px solid var(--sb-line); border-radius: 0; background: var(--sb-white); color: var(--sb-ink); text-align: left; cursor: pointer; box-shadow: none; transition: border-color .25s, box-shadow .25s; }
.sb .sb-act:hover { border-color: var(--sb-rose); background: var(--sb-white); color: var(--sb-ink); }
.sb .sb-act b { font-family: var(--sb-serif); font-weight: 400; font-size: 22px; line-height: 1.1; }
.sb .sb-act small { font-size: 12.5px; color: var(--sb-mute); }
.sb .sb-act[aria-checked="true"] { border-color: var(--sb-ink); box-shadow: 0 0 0 1px var(--sb-ink); }

.sb .sb-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); background: var(--sb-white); border: 1px solid var(--sb-line); overflow: hidden; }
.sb .sb-card.is-new { animation: sb-in .45s var(--sb-ease); }
@keyframes sb-in { from { opacity: 0; transform: translateY(8px); } }
.sb .sb-card-img { position: relative; overflow: hidden; background: var(--sb-blush); min-height: 100%; }
.sb .sb-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sb .sb-card-body { display: grid; gap: 16px; padding: 22px 24px 24px; }
.sb .sb-card-name { margin: 0; font-family: var(--sb-serif); font-size: 30px; line-height: 1.05; color: var(--sb-ink); }
.sb .sb-card-line { margin: 4px 0 0; font-size: 14.5px; color: var(--sb-body); }
.sb .sb-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: 12.5px; color: var(--sb-mute); }
.sb .sb-facts span + span::before { content: "·"; margin-right: 8px; color: var(--sb-rose); }
.sb .sb-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--sb-line); }
.sb .sb-seg button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border: 0; border-radius: 0; background: var(--sb-paper); color: var(--sb-ink); text-align: left; cursor: pointer; box-shadow: none; }
.sb .sb-seg button + button { border-left: 1px solid var(--sb-line); }
.sb .sb-seg button:hover { background: var(--sb-blush); color: var(--sb-ink); }
.sb .sb-seg b { font-weight: 500; font-size: 14px; }
.sb .sb-seg small { font-size: 12.5px; color: var(--sb-mute); }
.sb .sb-seg [aria-checked="true"], .sb .sb-seg [aria-checked="true"]:hover { background: var(--sb-ink); color: #fff; }
.sb .sb-seg [aria-checked="true"] small { color: rgba(255, 255, 255, .75); }
.sb .sb-card .sb-people { padding-top: 16px; }
.sb .sb-card .sb-people p { margin: 0; font-size: 14px; color: var(--sb-ink); }
.sb .sb-card .sb-people small { display: block; font-size: 12.5px; color: var(--sb-mute); }
.sb .sb-stepper button { width: 46px; height: 46px; }
.sb .sb-stepper output { font-size: 28px; }

/* People stepper in the summary, next to Continue – never below the fold on desktop. */
.sb .sb-sum-people { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 14px; padding: 10px 0; border-bottom: 1px solid var(--sb-line); font-size: 14px; color: var(--sb-ink); }
.sb .sb-stepper-sm { gap: 8px; }
.sb .sb-stepper-sm button { width: 36px; height: 36px; font-size: 18px; }
.sb .sb-stepper-sm output { min-width: 22px; font-size: 20px; }

@media (max-width: 920px) {
	.sb .sb-sum-people { display: none; } /* On phones the stepper sits right in the card. */
	.sb > .sb-main { min-width: 0; }
}
@media (max-width: 640px) {
	.sb .sb-acts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * clamp(18px, 4vw, 56px)) 16px; padding: 2px clamp(18px, 4vw, 56px) 6px; scrollbar-width: none; }
	.sb .sb-acts::-webkit-scrollbar { display: none; }
	.sb .sb-act { scroll-snap-align: start; }
	.sb .sb-card { grid-template-columns: 1fr; }
	.sb .sb-card-img { aspect-ratio: 16 / 6; min-height: 0; }
	.sb .sb-card-body { padding: 18px; }
	.sb .sb-card-name { font-size: 26px; }
	.sb .sb-sum-total span { font-size: 12px; white-space: nowrap; color: var(--sb-mute); }
}
.sb .sb-card .sb-people { flex-direction: row; align-items: center; justify-content: space-between; }
