/* ==========================================================================
   Hair Studio – booking wizard. Colours & fonts come from Hair Studio (--hs-*).
   ========================================================================== */
.hsb-wiz {
	--hsb-dur: 480ms; --hsb-ease: cubic-bezier(.16,1,.3,1); --hsb-stagger: 35ms;
	--hsb-radius: 14px;
	position: relative; display: flex; flex-direction: column; gap: 14px;
	font-family: var(--hs-font-body, system-ui, sans-serif); color: var(--hs-text, #555); font-size: 16px; line-height: 1.55;
}
.hsb-wiz *, .hsb-wiz *::before, .hsb-wiz *::after { box-sizing: border-box; }
.hsb-wiz button { font: inherit; color: inherit; }
.hsb-wiz [hidden], .hsb-modal [hidden] { display: none !important; }
.hsb-i { width: 1.1em; height: 1.1em; flex: 0 0 auto; vertical-align: -.15em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hsb-wiz__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.hsb-wiz__title { margin: 0; font-family: var(--hs-font-heading, serif); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--hs-heading, #2f2a2b); }
.hsb-wiz__close { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--hs-accent-soft, #fdebef); color: var(--hs-heading); cursor: pointer; transition: transform .3s var(--hsb-ease), background-color .2s; }
.hsb-wiz__close:hover { transform: rotate(90deg); background: var(--hs-accent, #f4b3bf); }

/* Progress */
.hsb-progress { position: relative; }
.hsb-progress ol { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hsb-progress li { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; color: #a79ea1; font-size: .88rem; }
.hsb-progress__n { display: grid; place-items: center; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; border: 2px solid currentColor; font-weight: 700; font-size: .85rem; transition: background-color .35s, color .35s, border-color .35s, transform .35s var(--hsb-ease); }
.hsb-progress__l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hsb-progress li.is-done { color: var(--hs-primary, #c26a6d); }
.hsb-progress li.is-done .hsb-progress__n { background: var(--hs-primary); border-color: var(--hs-primary); color: #fff; }
.hsb-progress li.is-current { color: var(--hs-heading); font-weight: 700; }
.hsb-progress li.is-current .hsb-progress__n { border-color: var(--hs-primary); color: var(--hs-primary); transform: scale(1.12); box-shadow: 0 0 0 4px rgba(var(--hs-primary-rgb, 194,106,109), .15); }
.hsb-progress__bar { display: none; }
.hsb-progress--bar ol { display: none; }
.hsb-progress--bar .hsb-progress__bar, .hsb-progress--dots .hsb-progress__bar { display: block; height: 6px; border-radius: 6px; background: var(--hs-accent-soft); overflow: hidden; }
.hsb-progress--bar .hsb-progress__bar::after { content: ""; display: block; height: 100%; width: calc(var(--p) * 100%); background: linear-gradient(90deg, var(--hs-accent), var(--hs-primary)); border-radius: inherit; transition: width var(--hsb-dur) var(--hsb-ease); }
.hsb-progress--dots .hsb-progress__bar { display: none; }
.hsb-progress--dots ol { justify-content: center; gap: 10px; }
.hsb-progress--dots li { flex: 0 0 auto; }
.hsb-progress--dots .hsb-progress__l { display: none; }
.hsb-progress--dots .hsb-progress__n { width: 12px; height: 12px; font-size: 0; }
.hsb-progress--dots li.is-current .hsb-progress__n { width: 30px; border-radius: 8px; background: var(--hs-primary); }

.hsb-timer { display: flex; align-items: center; gap: 6px; margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--hs-accent-soft); font-size: .9rem; }
.hsb-timer strong { font-variant-numeric: tabular-nums; }
.hsb-timer.is-low { background: #fff1e0; color: #8a4b00; }

/* Stage & step transitions */
.hsb-stage { position: relative; display: grid; min-height: 260px; }
.hsb-step { grid-area: 1 / 1; min-width: 0; transition: opacity var(--hsb-dur) var(--hsb-ease), transform var(--hsb-dur) var(--hsb-ease), filter var(--hsb-dur) var(--hsb-ease); }
.hsb-step.is-leaving { pointer-events: none; opacity: 0; }
.hsb-step.is-entering { opacity: 0; }
.hsb-anim-slide .hsb-step.is-entering[data-dir="next"], .hsb-anim-slide .hsb-stage[data-dir="prev"] .hsb-step.is-leaving { transform: translate3d(48px, 0, 0); }
.hsb-anim-slide .hsb-step.is-entering[data-dir="prev"], .hsb-anim-slide .hsb-stage[data-dir="next"] .hsb-step.is-leaving { transform: translate3d(-48px, 0, 0); }
.hsb-anim-zoom .hsb-step.is-entering { transform: scale(.94); }
.hsb-anim-zoom .hsb-step.is-leaving { transform: scale(1.04); }
.hsb-anim-flip .hsb-stage { perspective: 1200px; }
.hsb-anim-flip .hsb-step.is-entering { transform: rotateY(-14deg) translateX(30px); transform-origin: left center; }
.hsb-anim-flip .hsb-step.is-leaving { transform: rotateY(14deg) translateX(-30px); transform-origin: right center; }
.hsb-anim-blur .hsb-step.is-entering, .hsb-anim-blur .hsb-step.is-leaving { filter: blur(10px); }
.hsb-anim-rise .hsb-step.is-entering { transform: translate3d(0, 34px, 0); }
.hsb-anim-rise .hsb-step.is-leaving { transform: translate3d(0, -20px, 0); }
.hsb-anim-none .hsb-step { transition: none; }

/* Staggered children of the current step */
.hsb-step .hsb-card-opt, .hsb-step .hsb-sum > div { animation: hsb-in calc(var(--hsb-dur) * 1.1) var(--hsb-ease) both; animation-delay: calc(var(--i, 0) * var(--hsb-stagger) + 80ms); }
.hsb-cal__grid.is-anim .hsb-day { animation: hsb-pop calc(var(--hsb-dur) * .9) var(--hsb-ease) both; animation-delay: calc(var(--i, 0) * var(--hsb-stagger) * .4); }
.hsb-times.is-anim .hsb-time { animation: hsb-in var(--hsb-dur) var(--hsb-ease) both; animation-delay: calc(var(--i, 0) * var(--hsb-stagger) * .6); }
.hsb-anim-none .hsb-step .hsb-card-opt, .hsb-anim-none .hsb-day, .hsb-anim-none .hsb-time, .hsb-anim-none .hsb-sum > div { animation: none; }

.hsb-h { margin: 0 0 14px; font-family: var(--hs-font-title, sans-serif); font-weight: 700; font-size: 1.25rem; color: var(--hs-heading); outline: 0; }
.hsb-group { margin: 18px 0 8px; font-family: var(--hs-font-heading, serif); font-weight: 400; font-size: 1.15rem; color: var(--hs-primary); }
.hsb-muted { color: #9a9194; }
.hsb-small { font-size: .85rem; color: #8a8083; }
.hsb-error { color: #b32d2e; }

/* Option cards (services, staff) */
.hsb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; align-items: start; }
.hsb-card-opt {
	position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 0; text-align: left; cursor: pointer;
	background: #fff; border: 2px solid transparent; border-radius: var(--hsb-radius);
	box-shadow: 0 8px 26px -14px rgba(0, 0, 0, .28), 0 0 0 1px rgba(0, 0, 0, .05);
	transition: transform .35s var(--hsb-ease), box-shadow .35s var(--hsb-ease), border-color .25s;
}
.hsb-card-opt:focus-visible { outline: 3px solid var(--hs-primary); outline-offset: 2px; }
.hsb-card-opt.is-selected { border-color: var(--hs-primary); box-shadow: 0 12px 30px -12px rgba(var(--hs-primary-rgb), .55); }
.hsb-card-opt.is-selected::after { content: "✓"; position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--hs-primary); color: #fff; font-weight: 700; font-size: 14px; animation: hsb-pop .4s var(--hsb-ease); }
.hsb-hover-lift .hsb-card-opt:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -16px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .04); }
.hsb-hover-glow .hsb-card-opt:hover { box-shadow: 0 0 0 4px rgba(var(--hs-accent-rgb), .55), 0 14px 30px -14px rgba(var(--hs-primary-rgb), .5); }
.hsb-hover-border .hsb-card-opt:hover { border-color: var(--hs-accent); }
.hsb-card-opt__img { display: block; aspect-ratio: 16 / 9; background: var(--hs-accent-soft) center / cover; transition: transform .8s var(--hsb-ease); }
.hsb-card-opt:hover .hsb-card-opt__img { transform: scale(1.05); }
.hsb-card-opt__body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 14px 16px 14px; }
.hsb-card-opt__title { font-family: var(--hs-font-title, sans-serif); font-weight: 700; font-size: 1.02rem; color: var(--hs-heading); }
.hsb-card-opt__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .86rem; color: #8a8083; }
.hsb-card-opt__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-size: .9rem; }
.hsb-card-opt__meta span { display: inline-flex; align-items: center; gap: 4px; color: #8a8083; }
.hsb-card-opt__meta strong { color: var(--hs-primary); font-family: var(--hs-font-heading, serif); font-size: 1.05rem; }

.hsb-cards--staff .hsb-card-opt { flex-direction: row; align-items: center; }
.hsb-staff__avatar { display: grid; place-items: center; flex: 0 0 auto; width: 64px; height: 64px; margin: 12px 0 12px 14px; border-radius: 50%; overflow: hidden; background: var(--hs-accent-soft); color: var(--hs-primary); }
.hsb-staff__avatar img { width: 100%; height: 100%; object-fit: cover; }
.hsb-staff__avatar .hsb-i { width: 30px; height: 30px; }

/* Date & time */
.hsb-picked { margin: -6px 0 14px; color: #8a8083; }
.hsb-picked strong { color: var(--hs-primary); }
.hsb-datetime { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.hsb-cal { padding: 14px; border-radius: var(--hsb-radius); background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 10px 26px -18px rgba(0, 0, 0, .3); }
.hsb-cal__nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.hsb-cal__nav strong { font-family: var(--hs-font-heading, serif); font-weight: 400; font-size: 1.15rem; text-transform: capitalize; color: var(--hs-heading); }
.hsb-cal__nav button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--hs-accent-soft); cursor: pointer; transition: background-color .2s; }
.hsb-cal__nav button:hover:not(:disabled) { background: var(--hs-accent); }
.hsb-cal__nav button:disabled { opacity: .3; cursor: default; }
.hsb-cal__wd, .hsb-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.hsb-cal__wd span { text-align: center; font-size: .75rem; font-weight: 700; color: #a79ea1; padding: 4px 0; }
.hsb-cal__grid.is-loading { opacity: .4; pointer-events: none; transition: opacity .2s; }
.hsb-day { position: relative; aspect-ratio: 1; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: #c9c1c3; font-size: .95rem; cursor: default; }
.hsb-day.is-pad { visibility: hidden; }
.hsb-day.is-free { color: var(--hs-heading); font-weight: 700; background: var(--hs-accent-soft); cursor: pointer; transition: transform .25s var(--hsb-ease), background-color .2s, color .2s; }
.hsb-day.is-free:hover { transform: scale(1.08); background: var(--hs-accent); }
.hsb-day i { position: absolute; bottom: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--hs-primary); opacity: calc(.35 + var(--n) * .65); }
.hsb-day.is-today { box-shadow: inset 0 0 0 2px var(--hs-accent); }
.hsb-day.is-selected { background: var(--hs-primary) !important; color: #fff; transform: scale(1.06); }
.hsb-day.is-selected i { background: #fff; }
.hsb-cal__empty { margin: 10px 0 0; font-size: .88rem; color: #8a8083; }

.hsb-times { min-height: 200px; }
.hsb-times__date { margin: 4px 0 12px; font-family: var(--hs-font-heading, serif); font-weight: 400; font-size: 1.15rem; color: var(--hs-heading); text-transform: capitalize; }
.hsb-times__group + .hsb-times__group { margin-top: 12px; }
.hsb-times__label { display: block; margin-bottom: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #a79ea1; }
.hsb-times__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.hsb-time { padding: 10px 6px; border: 2px solid var(--hs-accent-soft); border-radius: 10px; background: #fff; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; transition: transform .25s var(--hsb-ease), border-color .2s, background-color .2s, color .2s; }
.hsb-time:hover { border-color: var(--hs-accent); transform: translateY(-2px); }
.hsb-time.is-selected { background: var(--hs-primary); border-color: var(--hs-primary); color: #fff; }
.hsb-time.is-busy { position: relative; color: transparent; }
.hsb-time.is-busy::after { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: hsb-spin .7s linear infinite; }
.hsb-time:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }

/* Form */
.hsb-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.hsb-field { display: flex; flex-direction: column; gap: 4px; }
.hsb-field:has(textarea), .hsb-form .hsb-check { grid-column: 1 / -1; }
.hsb-field label { font-weight: 700; font-size: .9rem; color: var(--hs-heading); }
.hsb-field abbr { color: var(--hs-primary); text-decoration: none; }
.hsb-field input, .hsb-field textarea { width: 100%; padding: 12px 14px; border: 2px solid #eee4e6; border-radius: 10px; background: #fff; font: inherit; color: var(--hs-heading); transition: border-color .2s, box-shadow .2s; }
.hsb-field input:focus, .hsb-field textarea:focus { outline: 0; border-color: var(--hs-primary); box-shadow: 0 0 0 4px rgba(var(--hs-primary-rgb), .14); }
.hsb-field__hint { font-size: .8rem; color: #9a9194; }
.hsb-field__err { font-size: .82rem; color: #b32d2e; }
.hsb-field__err:empty { display: none; }
.hsb-field.has-error .hsb-field__hint { display: none; }
.hsb-field.has-error input, .hsb-field.has-error textarea { border-color: #d98a8a; background: #fffafa; }
.hsb-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .92rem; }
.hsb-check input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--hs-primary); }
.hsb-check input:disabled + span { opacity: .5; }
.hsb-check.has-error span { color: #b32d2e; }
.hsb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Summary */
.hsb-sum { margin: 0 0 16px; border-radius: var(--hsb-radius); background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.hsb-sum > div { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; align-items: baseline; padding: 12px 16px; border-bottom: 1px solid #f4ecee; }
.hsb-sum > div:last-child { border-bottom: 0; }
.hsb-sum dt { color: #9a9194; font-size: .88rem; }
.hsb-sum dd { margin: 0; font-weight: 700; color: var(--hs-heading); }
.hsb-link { border: 0; background: none; padding: 0; color: var(--hs-primary); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .85rem; }
.hsb-note { padding: 10px 12px; border-radius: 10px; background: var(--hs-accent-soft); }
.hsb-note--warn { background: #fff4e0; color: #7a4a00; font-weight: 600; }
.hsb-check--review span { font-size: .85rem; color: #8a8083; }
.hsb-terms { margin-top: 14px; padding: 14px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 2px var(--hs-accent-soft); }
.hsb-terms a { color: var(--hs-primary); font-weight: 700; }
.hsb-rodo { margin: 12px 0 0; font-size: .74rem; line-height: 1.5; color: #9a9194; }
.hsb-rodo a { color: inherit; text-decoration: underline; }

/* Deposit */
.hsb-dep { margin: 12px 0; padding: 14px 16px; border-radius: var(--hsb-radius); background: linear-gradient(135deg, var(--hs-accent-soft), #fff); box-shadow: 0 0 0 2px var(--hs-accent-soft); text-align: left; }
.hsb-dep__head { margin: 0 0 8px; font-weight: 700; color: var(--hs-heading); }
.hsb-dep__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 0; border-bottom: 1px dashed rgba(0, 0, 0, .08); }
.hsb-dep__row > span { min-width: 120px; color: #8a8083; font-size: .88rem; }
.hsb-dep__row strong { color: var(--hs-heading); font-variant-numeric: tabular-nums; }
.hsb-copy { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 5px 10px; border: 0; border-radius: 20px; background: #fff; color: var(--hs-primary); font-size: .8rem; font-weight: 700; cursor: pointer; box-shadow: 0 0 0 1px rgba(var(--hs-primary-rgb), .3); transition: background-color .2s, color .2s; }
.hsb-copy:hover, .hsb-copy.is-copied { background: var(--hs-primary); color: #fff; }

/* Footer */
.hsb-wiz__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid #f4ecee; }
.hsb-back { display: inline-flex; align-items: center; gap: 4px; padding: 10px 4px; border: 0; background: none; color: #8a8083; cursor: pointer; font-weight: 600; }
.hsb-back:hover { color: var(--hs-heading); }
.hsb-back[hidden] + .hsb-next { margin-left: auto; }
.hsb-next { margin-left: auto; min-width: 150px; }
.hsb-next:disabled { opacity: .45; cursor: not-allowed; }
.hsb-next.is-busy { color: transparent !important; }
.hsb-next.is-busy::before { content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: hsb-spin .7s linear infinite; z-index: 2; }
.hsb-next--book { min-width: 200px; font-size: 1.05rem; }

/* Done */
.hsb-done { position: relative; text-align: center; padding: 10px 0 4px; overflow: hidden; }
.hsb-check-anim { width: 86px; height: 86px; margin: 0 auto 10px; }
.hsb-check-anim circle { stroke: var(--hs-primary); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; animation: hsb-draw .7s var(--hsb-ease) .1s forwards; }
.hsb-check-anim path { stroke: var(--hs-primary); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; animation: hsb-draw .45s var(--hsb-ease) .7s forwards; }
.hsb-done .hsb-h { font-family: var(--hs-font-heading, serif); font-weight: 400; font-size: 1.8rem; }
.hsb-done__nr { margin: 0 0 8px; font-size: 1.05rem; }
.hsb-done__nr strong { color: var(--hs-primary); letter-spacing: .04em; }
.hsb-done__text { max-width: 520px; margin: 12px auto; }
.hsb-done .hsb-dep { max-width: 520px; margin: 14px auto; }
.hsb-done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.hsb-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hsb-status-pill, .hsb-status { display: inline-block; margin: 0; padding: 4px 14px; border-radius: 20px; background: #fff4d6; color: #7a5a00; font-weight: 700; font-size: .88rem; }
.hsb-status-pill--awaiting_deposit, .hsb-status--awaiting_deposit { background: #e6efff; color: #1d4e9e; }
.hsb-status-pill--confirmed, .hsb-status--confirmed, .hsb-status--completed { background: #dff5e3; color: #1b6b2c; }
.hsb-status--rejected, .hsb-status--cancelled, .hsb-status--cancelled_salon, .hsb-status--expired { background: #fbe4e4; color: #8a1f1f; }

.hsb-toast { position: absolute; left: 50%; bottom: 76px; z-index: 5; max-width: 90%; padding: 12px 18px; border-radius: 12px; background: #2f2a2b; color: #fff; font-size: .92rem; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .4); transform: translateX(-50%); animation: hsb-toast .4s var(--hsb-ease); transition: opacity .4s, transform .4s; }
.hsb-toast.is-out { opacity: 0; transform: translate(-50%, 10px); }
.hsb-shake { animation: hsb-shake .45s; }

/* Modal */
.hsb-lock, .hsb-lock body { overflow: hidden; }
.hsb-modal { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 16px; border: 0; background: transparent; overflow: hidden; }
.hsb-modal[open] { display: grid; place-items: center; }
.hsb-modal::backdrop { background: rgba(40, 20, 26, 0); backdrop-filter: blur(0); transition: background-color .35s, backdrop-filter .35s; }
.hsb-modal.is-open::backdrop { background: rgba(40, 20, 26, .55); backdrop-filter: blur(4px); }
.hsb-modal__box { position: relative; display: flex; width: min(920px, 100%); max-height: calc(100dvh - 32px); overflow: hidden; border-radius: 22px; background: linear-gradient(180deg, #fff, #fffafb); box-shadow: 0 40px 100px -30px rgba(60, 20, 30, .55); transition: opacity .35s var(--hs-ease, ease), transform .45s var(--hs-ease, ease); }
/* The frame clips to the rounded corners; only the inner area scrolls, with a slim brand scrollbar. */
.hsb-modal__scroll { flex: 1; min-width: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: clamp(18px, 3vw, 32px); scrollbar-width: thin; scrollbar-color: rgba(var(--hs-primary-rgb, 194,106,109), .45) transparent; }
.hsb-modal__scroll::-webkit-scrollbar { width: 8px; }
.hsb-modal__scroll::-webkit-scrollbar-track { background: transparent; margin: 18px 0; }
.hsb-modal__scroll::-webkit-scrollbar-thumb { background: rgba(var(--hs-primary-rgb, 194,106,109), .4); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
.hsb-modal__scroll::-webkit-scrollbar-thumb:hover { background-color: rgba(var(--hs-primary-rgb, 194,106,109), .7); }
.hsb-modal:not(.is-open) .hsb-modal__box { opacity: 0; }
.hsb-modal--zoom:not(.is-open) .hsb-modal__box { transform: scale(.92); }
.hsb-modal--rise:not(.is-open) .hsb-modal__box { transform: translateY(60px); }
.hsb-modal--flip { perspective: 1400px; }
.hsb-modal--flip:not(.is-open) .hsb-modal__box { transform: rotateX(-18deg) translateY(30px); transform-origin: top center; }
.hsb-modal--side { place-items: stretch end !important; padding: 0; }
.hsb-modal--side .hsb-modal__box { width: min(640px, 100%); max-height: 100dvh; height: 100dvh; border-radius: 22px 0 0 22px; }
.hsb-modal--side .hsb-modal__scroll::-webkit-scrollbar-track { margin: 22px 0; }
.hsb-modal--side:not(.is-open) .hsb-modal__box { transform: translateX(100%); opacity: 1; }

/* Inline (booking page) */
.hsb-inline-wrap { padding-block: calc(var(--hs-space, 100px) * .6); }
.hsb-inline { max-width: 960px; margin: 0 auto; padding: clamp(18px, 3vw, 34px); border-radius: 22px; background: #fff; box-shadow: 0 30px 80px -40px rgba(60, 20, 30, .4), 0 0 0 1px rgba(0, 0, 0, .04); }

/* Client booking page */
.hsb-manage { position: relative; }
.hsb-band { position: absolute; top: 0; left: 0; right: 0; height: var(--hsb-band-h, 300px); overflow: hidden; background: var(--hsb-band-bg); background-blend-mode: var(--hsb-band-blend, normal); }
.hsb-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40, 20, 26, var(--hsb-band-shade, .3)) 0%, rgba(40, 20, 26, 0) 55%); }
.hsb-band::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: -60px; height: 120px; border-radius: 50%; background: var(--hs-bg, #fff); }
.hsb-band__label { position: absolute; left: 0; right: 0; top: calc(var(--hsb-band-h, 300px) - 150px); z-index: 1; text-align: center; font-family: var(--hs-font-heading, serif); font-size: clamp(1.6rem, 4vw, 2.4rem); color: #fff; text-shadow: 0 2px 20px rgba(60, 20, 30, .3); letter-spacing: .02em; }
.hsb-manage .hs-section { position: relative; z-index: 1; padding-top: calc(var(--hsb-band-h, 300px) - 70px); }
.hsb-card { padding: clamp(22px, 4vw, 40px); border-radius: 22px; background: #fff; box-shadow: 0 30px 80px -40px rgba(60, 20, 30, .4), 0 0 0 1px rgba(0, 0, 0, .04); }
.hsb-card__eyebrow { margin: 0; color: var(--hs-primary); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; }
.hsb-card__title { margin: 4px 0 10px; font-family: var(--hs-font-heading, serif); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.hsb-dl { margin: 20px 0; }
.hsb-dl > div { display: grid; grid-template-columns: 160px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f4ecee; }
.hsb-dl dt { color: #9a9194; }
.hsb-dl dd { margin: 0; font-weight: 700; color: var(--hs-heading); }
.hsb-deposit { padding: 18px 20px; border-radius: 16px; background: var(--hs-accent-soft); }
.hsb-deposit h2 { margin: 0; font-size: 1.15rem; }
.hsb-alert { padding: 12px 16px; border-radius: 12px; background: #eef7ee; color: #1b6b2c; font-weight: 600; }
.hsb-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hsb-cancel { margin-top: 24px; padding-top: 18px; border-top: 1px solid #f4ecee; }
.hsb-btn-danger { --hs-btn-bg: #fff !important; color: #b32d2e !important; border-color: #b32d2e !important; box-shadow: none !important; }
.hsb-btn-danger:hover { --hs-btn-bg: #b32d2e !important; color: #fff !important; }

/* Keyframes */
@keyframes hsb-in { from { opacity: 0; transform: translate3d(0, 14px, 0); } }
@keyframes hsb-pop { from { opacity: 0; transform: scale(.6); } }
@keyframes hsb-draw { to { stroke-dashoffset: 0; } }
@keyframes hsb-spin { to { transform: rotate(360deg); } }
@keyframes hsb-toast { from { opacity: 0; transform: translate(-50%, 16px); } }
@keyframes hsb-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* Responsive */
@media (max-width: 760px) {
	.hsb-modal { padding: 0; }
	.hsb-modal__box { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; }
	.hsb-modal--zoom:not(.is-open) .hsb-modal__box, .hsb-modal--flip:not(.is-open) .hsb-modal__box { transform: translateY(40px); }
	.hsb-progress__l { display: none; }
	.hsb-progress li.is-current .hsb-progress__l { display: inline; }
	.hsb-datetime { grid-template-columns: 1fr; }
	.hsb-form { grid-template-columns: 1fr; }
	.hsb-sum > div { grid-template-columns: 1fr auto; }
	.hsb-sum dt { grid-column: 1 / -1; }
	.hsb-dl > div { grid-template-columns: 1fr; gap: 2px; }
	.hsb-wiz__foot { position: sticky; bottom: calc(clamp(18px, 3vw, 32px) * -1); margin: 0 calc(clamp(18px, 3vw, 32px) * -1) calc(clamp(18px, 3vw, 32px) * -1); padding: 12px clamp(18px, 3vw, 32px); background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); }
	.hsb-inline .hsb-wiz__foot { position: static; margin: 0; padding: 12px 0 0; }
	.hsb-manage .hs-section { padding-top: calc(var(--hsb-band-h, 300px) - 90px); }
	.hsb-band__label { top: calc(var(--hsb-band-h, 300px) - 160px); }
}
@media (prefers-reduced-motion: reduce) {
	.hsb-wiz *, .hsb-modal__box { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
