/* v2.2.7 booking-page styles (Jamie's 2.2.6 re-test). Loaded after ui.css. No inline styles anywhere (CSP style-src 'self'). */

/* items 6, 36, 82d, 82f, N06: the Back / Next bar sits at the very bottom of the screen on every step, and never covers the page.
   The page is a full-height column (the live screen height, dvh), so on a short step the bar is at the bottom edge; on a long step
   it sticks to the bottom while scrolling. Room is kept under the content so the last field and button are never under the bar. */
body.cl{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
body.cl #app{flex:1 0 auto;display:flex;flex-direction:column}
body.cl #app > main.bk24-ph{flex:1 0 auto;display:flex;flex-direction:column}
body.cl #app > main.bk24-ph > .narrow{flex:1 0 auto;display:flex;flex-direction:column;width:100%}
body.cl #app > main.bk24-ph > .narrow > .bar{margin-top:auto}
body.cl #app > main.bk24-ph > .narrow > form:last-of-type,body.cl #app > main.bk24-ph > .narrow > .card:last-of-type{margin-bottom:12px}
#app main .bar:not(.bar-in24){z-index:5;border-bottom:1px solid var(--ui-line)}
#app main .bar .grow.small{font-variant-numeric:tabular-nums}
@media (min-width:960px){body.cl #app > main.bk24 .bk24-main{padding-bottom:24px}}

/* items 10, 11: the day strip with arrows (laptops), "Pick a date" under it */
.days27{position:relative;display:flex;align-items:center;gap:6px}
.days27 .days{flex:1;min-width:0}
.d27-arr{display:none;flex:none;width:38px;height:38px;border-radius:50%;border:1px solid var(--ui-line);background:#fff;color:var(--ui-ink);font-size:22px;line-height:1;cursor:pointer}
.d27-arr:disabled{opacity:.35;cursor:default}
.d27-arr:focus-visible{outline:3px solid var(--btn,#222);outline-offset:2px}
@media (min-width:700px) and (pointer:fine){.d27-arr{display:inline-flex;align-items:center;justify-content:center}#app .days27 .days{-webkit-mask-image:none;mask-image:none}}
.jump27{display:flex;align-items:center;gap:10px;margin:6px 0 14px;flex-wrap:wrap}
.jump27 label{font-size:14px;font-weight:600}
.jump27 .input{width:auto;min-width:170px}
.note27{font-size:14px;margin:8px 0 12px;padding:10px 12px;border-radius:10px;background:#f4f1ea;color:#3a3226}
.warn27{background:#fff4e0;color:#4a3300;border:1px solid #f1c46b}
.nw27{white-space:nowrap}
.pkg27{display:inline-block;margin:2px 0;padding:1px 8px;border-radius:999px;background:var(--tint,#eef);color:var(--tint-ink,#223);font-size:12px;font-weight:600}

/* items 35a, 22a, 83: the patch-test panel slides up from the bottom and dims the page */
.sheet27{position:fixed;inset:0;z-index:60;background:rgba(10,12,20,.45);display:flex;align-items:flex-end;justify-content:center;opacity:0;transition:opacity .18s}
.sheet27.on{opacity:1}
.sheet27-box{background:#fff;color:#1d1d1f;width:100%;max-width:560px;border-radius:20px 20px 0 0;padding:22px 20px calc(20px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:12px;transform:translateY(24px);transition:transform .2s;box-shadow:0 -10px 30px rgba(0,0,0,.18)}
.sheet27.on .sheet27-box{transform:none}
.sheet27-box h2{margin:0;font-size:20px}
.sheet27-box p{margin:0;line-height:1.5}
.sheet27-box .btn{width:100%;justify-content:center}
.sheet27-box .linkbtn{align-self:center;background:none;border:0;color:inherit;text-decoration:underline;font:inherit;cursor:pointer;padding:6px}
@media (prefers-reduced-motion:reduce){.sheet27,.sheet27-box{transition:none}}

/* items 15a, 38: the basket and a Sign in link in the top bar */
.basket27,.signin27{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:700;color:inherit;text-decoration:none;border:1px solid currentColor;border-radius:999px;padding:6px 12px;margin-left:8px;white-space:nowrap}
.basket27 .b27-t{font-variant-numeric:tabular-nums;font-weight:600;opacity:.85}
.signin27{display:none}
@media (max-width:959px){.signin27:not([hidden]){display:inline-flex;margin-left:auto}.signin27:not([hidden]) ~ .menu24{margin-left:8px}.basket27:not([hidden]){margin-left:auto}.basket27:not([hidden]) ~ .signin27,.basket27:not([hidden]) ~ .menu24{margin-left:8px}}
.b27-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.b27-row .grow{min-width:200px}
.b27-btns{gap:8px}

/* item 81b: the salon logo in the top bar sits on a small white rounded backing, a little bigger, so it shows on any colour */
header.top .brand-logo{height:34px;max-width:140px;background:#fff;padding:3px;border-radius:8px;box-shadow:0 0 0 1px rgba(0,0,0,.08)}
/* item 81c: the loading screen fades in only if the page is slow, so it never flashes */
.splash24 img{animation:sp27 .3s ease .35s both}
@keyframes sp27{from{opacity:0}to{opacity:1}}

/* item 37a: on a phone the Past tab's review button and Done badge go under the booking, not beside it */
@media (max-width:600px){#app .acct24-body .list-row{flex-wrap:wrap}#app .acct24-body .list-row > .grow{flex-basis:100%}}
/* item 97o: the account tab strip shows there are more tabs */
.tabs.more24{position:relative}
/* item N03: voucher form headings match the other labels and have room above */
.v24-amts legend,#v-form fieldset legend{font-size:15px;font-weight:600;margin:6px 0 8px}
#v-form fieldset{margin-top:6px}
/* item 98g: the shop bar never makes the page scroll sideways */
#app main .wrap .bar{margin-left:0;margin-right:0;border-radius:18px 18px 0 0}
body.cl{overflow-x:hidden}

/* item N02: the footer on every page */
.foot27{border-top:1px solid rgba(127,127,127,.25);margin-top:auto;padding:18px 0 calc(18px + env(safe-area-inset-bottom,0px));font-size:13px;color:var(--ink)}
.foot27 .wrap{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center}
.foot27 a{color:inherit}
.pkg27-home{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:18px}
.pkg27-home .grow{min-width:220px}
.pkg27-home .eyebrow{margin:0 0 2px}
.pkg27-card .btn{align-self:flex-start}
.pkg27-nudge .linkbtn{background:none;border:0;cursor:pointer;font:inherit;color:inherit;margin-left:6px}
/* v2.2.7 (99q): Title / First name / Last name side by side on wider screens, stacked on a phone */
.nm27{display:grid;grid-template-columns:7.5em 1fr 1fr;gap:10px}.nm27 .field{min-width:0}
@media (max-width:560px){.nm27{grid-template-columns:1fr 1fr}.nm27-t{grid-column:1/-1;max-width:9em}}
#pass27-form .linkbtn{background:none;border:0;color:inherit;text-decoration:underline;font:inherit;cursor:pointer;padding:2px 0}
/* v2.2.7 (items 16, 48, 81): Book now always stands out on the top banner, with an edge */
.hero .btn-brand{background:var(--hero-btn,var(--btn));color:var(--hero-on-btn,#fff);border:2px solid var(--hero-edge,#fff);box-shadow:0 2px 10px rgba(0,0,0,.18)}
.hero .btn-brand:hover{filter:brightness(1.06)}

/* v2.2.7 (98m): the patch-test note once at the top of the services, a short tag on each treatment that needs one */
.pt27-note{background:var(--tint);color:var(--tint-ink);padding:8px 12px;border-radius:10px;margin:8px 0 4px}.pt27-tag{font-weight:600}
