/* buy.fpsheaven.com booking and checkout.

   Dark treatment. The three panel booker on the time step follows the layout of
   a modern scheduling widget, but the accent is the FPSHeaven red taken from
   shopify-theme/sections/services.liquid, not a third party green.

   No external stylesheets, no CDN fonts. The only cross origin resources on the
   page are Stripe.js and Turnstile. */

@font-face {
  font-family: 'Antonio';
  src: url('fonts/Antonio.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* brand */
  --red:#c62020; --red-hover:#a01818; --red-soft:#e83a3a;
  --red-tint:rgba(198,32,32,0.14); --red-border:rgba(198,32,32,0.45);

  /* dark surfaces */
  --page:#0f0f0f;
  --surface:#171717;
  --surface-2:#26262a;
  --surface-3:#38383c;
  --line:rgba(255,255,255,0.10);
  --line-strong:rgba(255,255,255,0.14);

  /* text */
  --white:#ffffff;
  --text:#f4f4f5;
  --muted:#a1a1aa;
  --dim:#7b7b85;

  /* legacy names still referenced by manage.html inline styles */
  --light-gray:rgba(255,255,255,0.09);
  --mid-gray:rgba(255,255,255,0.12);
  --text-gray:#a1a1aa;
  --black:#0f0f0f;

  --amber:#e0a83a; --amber-tint:rgba(224,168,58,0.10);
  --green:#3fb872; --green-tint:rgba(63,184,114,0.10);

  /* Availability marker on each time. Swap to var(--red) for brand red. */
  --slot-dot:#34d399;

  --header-h:82px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--page);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.direct-service-loader { display: none; }
/* Do not inherit hidden visibility into the booker: WebKit can retain that
   inherited value on a panel after the loading class has been removed. */
html.direct-service-pending body > :not(.direct-service-loader) { display: none; }
html.direct-service-pending .direct-service-loader {
  position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; padding: 24px;
  background: var(--page); color: var(--text); text-align: center;
}
.direct-service-spinner {
  width: 30px; height: 30px; border: 3px solid rgba(255,255,255,.18);
  border-top-color: var(--red-soft); border-radius: 50%; animation: direct-service-spin .7s linear infinite;
}
@keyframes direct-service-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .direct-service-spinner { animation: none; } }

h1, h2, h3 {
  font-family: 'Antonio', 'Inter', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Visible only while focused, which is the point of a skip link. */
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 200;
  transition: top .15s;
}
.skip-link:focus { top: 12px; }

/* small layout helpers, so no style attribute has to carry them */
.gap-sm { margin-top: 10px; }
.gap-md { margin-top: 20px; }
.bare-set { border: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; font-size: 13px; font-weight: 700; font-family: inherit;
  letter-spacing: 0.08em; text-transform: uppercase; border-radius: 4px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .18s, border-color .18s, color .18s;
}
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover:not(:disabled) { background: var(--red-hover); border-color: var(--red-hover); }
.btn-outline-dark,
.btn-outline-white {
  background: transparent; color: var(--text); border-color: var(--line-strong);
}
.btn-outline-dark:hover:not(:disabled),
.btn-outline-white:hover:not(:disabled) { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-white { background: #fff; color: #08080a; border-color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 36px; font-size: 14px; }
.btn-sm { padding: 9px 18px; font-size: 11.5px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.pay-option:focus-within {
  outline: 2px solid var(--red-soft);
  outline-offset: 2px;
  border-radius: 4px;
}

.link-red { color: var(--red-soft); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(8,8,10,0.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h); display: flex; align-items: center;
  justify-content: space-between; padding: 0 48px; gap: 24px;
}
.header-logo { display: flex; align-items: center; gap: 11px; min-width: 0; }
.logo-name { font-family: 'Antonio', sans-serif; font-size: 26px; color: #fff; letter-spacing: 0.05em; text-transform: uppercase; }
.logo-tagline { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red-soft); display: block; margin-top: -2px; }
.header-secure { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---------- shell ---------- */
.shell { max-width: 1120px; margin: 0 auto; padding: 40px 48px 80px; }
.page-head { text-align: center; margin-bottom: 30px; }
.eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-soft); margin-bottom: 10px; }
.page-head h1 { font-size: clamp(30px, 4vw, 50px); }
.page-head p { font-size: 15px; color: var(--muted); max-width: 560px; margin: 12px auto 0; line-height: 1.8; }

/* ---------- progress ---------- */
.steps { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 0 0 32px; list-style: none; }
.steps li {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); background: var(--surface);
  border-radius: 4px; padding: 7px 13px;
}
.steps li[aria-current="step"] { color: #fff; background: var(--red); border-color: var(--red); }
.steps li.done { color: var(--red-soft); border-color: var(--red-border); background: var(--red-tint); }

/* ---------- panels ---------- */
/* Focused by script on each step change so assistive tech announces it. It is
   not a keyboard target, and the default ring draws a box around the entire
   step. Real controls keep their :focus-visible rings, see below. */
.panel:focus { outline: none; }
.panel { display: none; }
.panel.active { display: block; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 30px;
}
.card + .card { margin-top: 18px; }
.card h2 { font-size: 28px; text-transform: uppercase; margin-bottom: 6px; }
.card-sub { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.card-foot { margin-top: 16px; text-align: center; font-size: 12.5px; color: var(--dim); }

.back-row { margin-bottom: 12px; }
/* The step rail is hidden on the slot and details steps, so this is the only
   visible way back. It gets a real button shell rather than a bare word. */
.back-btn {
  font: inherit; font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--dim); background: none; border: 0;
  padding: 4px 2px; cursor: pointer; transition: color .15s;
}
.back-btn:hover { color: #fff; }
.back-btn:hover { color: #fff; border-color: var(--line-strong); background: var(--surface-3); }

/* ---------- service cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc-card {
  display: flex; flex-direction: column; text-align: left; background: var(--surface-2); cursor: pointer;
  border: 1px solid var(--line); border-radius: 12px; padding: 26px 24px; font-family: inherit;
  color: var(--text);
  transition: border-color .2s, background .2s, transform .2s;
}
.svc-card:hover { border-color: var(--red-border); background: var(--surface-3); transform: translateY(-3px); }
.svc-name { font-family: 'Antonio', sans-serif; font-size: 24px; line-height: 1.1; text-transform: uppercase; color: #fff; }
.svc-meta { margin-top: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.svc-price { font-family: 'Antonio', sans-serif; font-size: 40px; line-height: 1; color: #fff; margin: 16px 0 4px; letter-spacing: -0.02em; }
.svc-price.free { color: var(--red-soft); }
.svc-go { margin-top: auto; padding-top: 18px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-soft); }

/* ---------- summary rail ---------- */
.summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  border: 1px solid var(--line); border-left: 3px solid var(--red);
  background: var(--surface-2); border-radius: 8px; padding: 14px 18px; margin-bottom: 18px;
}
.summary dt { font-size: 10.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }
.summary dd { font-size: 15px; font-weight: 700; color: #fff; }
.summary .pair { display: flex; flex-direction: column; gap: 2px; }

/* =====================================================================
   The booker: one card, three panels, hairline dividers.
   ===================================================================== */
/* Capped and centred. The reference widget is a compact unit, not a full
   bleed layout, so the card keeps its own width rather than inheriting the
   shell's. 1040px for three panels, 820px for the two panel form. */
.booker {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 281px;
  width: 100%; max-width: 1040px; margin-left: auto; margin-right: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.bk-left, .bk-right { padding: 24px 22px; min-width: 0; }
/* Column layout so the back button can be pushed to the foot of the panel with
   margin-top:auto, level with the bottom of the calendar beside it. */
.bk-left { display: flex; flex-direction: column; }
.bk-back { margin-top: auto; padding-top: 24px; }
/* On a stacked layout there is no tall calendar to fill, so auto margin would
   collapse to nothing. A fixed gap keeps it clear of the metadata above. */
@media (max-width: 900px) {
  .bk-back { margin-top: 0; padding-top: 18px; }
}
.bk-mid { padding: 24px 28px; min-width: 0; }
.bk-mid { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }

/* ---------- left panel ---------- */
.bk-brand {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 3px;
}
/* Body face, sentence case, no condensed display type. The service name is a
   label on the card, not a page title, so it stops shouting over the rest. */
.bk-title {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 22px; font-weight: 700; line-height: 1.25;
  letter-spacing: -0.01em; text-transform: none; color: #fff;
}
.bk-desc { margin-top: 6px; font-size: 13px; line-height: 1.55; color: var(--muted); }

.bk-meta { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 20px; }
.bk-meta-row { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.4; }
.bk-ico { display: inline-flex; color: var(--muted); flex: 0 0 auto; }
.bk-meta-text { min-width: 0; overflow-wrap: anywhere; }

.bk-tz {
  display: inline-flex; align-items: center; gap: 5px; background: none; border: 0;
  font-family: inherit; font-size: 13px; font-weight: 700; color: var(--text);
  cursor: pointer; padding: 2px 4px; margin-left: -4px; border-radius: 5px; min-width: 0;
  text-align: left;
}
.bk-tz:hover:not(:disabled) { background: var(--surface-2); color: #fff; }
.bk-tz:disabled { cursor: default; opacity: 1; }
.bk-tz:disabled .bk-chev { display: none; }
.bk-tz span:first-child { overflow-wrap: anywhere; }
.bk-chev { display: inline-flex; color: var(--muted); flex: 0 0 auto; }

/* ---------- middle panel ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cal-title { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.cal-month { color: #fff; }
.cal-year { color: var(--muted); }
.cal-nav { display: flex; gap: 4px; }
.cal-nav button {
  width: 32px; height: 32px; border: 0; background: transparent; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text); font-family: inherit;
}
.cal-nav button:hover:not(:disabled) { background: var(--surface-3); color: #fff; }
.cal-nav button:disabled { opacity: .3; cursor: not-allowed; }

.cal-week {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 12px;
}
.cal-week span {
  text-align: center; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--dim);
}

.cal-grid { display: flex; flex-direction: column; gap: 10px; }
.cal-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }

.day {
  width: 100%; height: 53px; border: 0; background: var(--surface-3);
  border-radius: 8px; font-family: inherit; font-size: 14px; font-weight: 600; color: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center; position: relative;
  transition: background .15s, color .15s;
}
.day:hover:not([aria-disabled="true"]) { background: #45454a; }
.day[aria-disabled="true"] { background: transparent; color: var(--dim); cursor: not-allowed; font-weight: 400; }
.day.is-today::after {
  content: ''; position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--red-soft);
}
.day[aria-pressed="true"] { background: #ffffff; color: #08080a; font-weight: 700; }
.day[aria-pressed="true"].is-today::after { background: #08080a; }
.day.empty { visibility: hidden; pointer-events: none; }

/* ---------- right panel ---------- */
.slots-head-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px;
  flex: 0 0 auto;
}
.slots-head {
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 400; letter-spacing: 0;
  text-transform: none; display: flex; align-items: baseline; gap: 5px; min-width: 0;
}
.slots-wd { color: #fff; }
.slots-num { color: #fff; font-weight: 700; }

.seg {
  display: inline-flex; background: #26262a; border-radius: 999px; padding: 2px; flex: 0 0 auto;
}
.seg-btn {
  border: 0; background: transparent; font-family: inherit; font-size: 11.5px; font-weight: 700;
  color: var(--muted); padding: 4px 10px; border-radius: 999px; cursor: pointer;
}
.seg-btn:hover { color: #fff; }
.seg-btn[aria-pressed="true"] { background: #52525b; color: #fff; }

.tz-note { font-size: 11.5px; color: var(--dim); line-height: 1.5; margin-bottom: 10px; flex: 0 0 auto; }
.tz-note strong { color: var(--muted); font-weight: 700; }

.weekend-upsell {
  margin: 0 0 12px; padding: 9px 10px; flex: 0 0 auto;
  border: 1px solid rgba(255, 200, 96, .25); border-radius: 8px;
  background: rgba(255, 185, 45, .08); color: #d8c296;
  font-size: 11.5px; line-height: 1.45;
}
.weekend-upsell strong { color: #fff2cf; }

.slot-list {
  display: flex; flex-direction: column; gap: 10px;
  max-height: 372px; overflow-y: auto; padding-right: 6px;
}
/* An empty list must take no room at all, otherwise the "select a day" hint
   below it is pushed away from the heading it belongs under. This replaces
   the old order: -1 hack, which put the hint above the heading. */
.slot-list:empty { display: none; }
.slot {
  display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; text-align: center;
  border: 1px solid var(--line-strong); background: var(--surface-2); border-radius: 8px;
  padding: 11px 14px; font-family: inherit; font-size: 14px; font-weight: 600; color: #fff;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.slot::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--slot-dot);
  flex: 0 0 auto;
}
.slot-time { min-width: 0; }
.slot-extra {
  margin-left: auto; padding: 2px 7px; border-radius: 999px;
  background: rgba(255, 185, 45, .12); color: #ffd985;
  font-size: 10.5px; font-weight: 700; white-space: nowrap;
}
.slot:hover { border-color: rgba(255,255,255,0.45); background: var(--surface-3); }
.slot[aria-pressed="true"] { border-color: var(--red); background: var(--red-tint); }
.empty-note { font-size: 13px; color: var(--dim); padding: 6px 0; flex: 0 0 auto; }

/* ---------- forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); margin-bottom: 7px; }
.field .hint { display: block; font-size: 12.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); margin-top: 3px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: #fff; background: var(--surface-2);
  border: 1px solid var(--line-strong); border-radius: 6px; padding: 12px 14px; line-height: 1.5;
}
.field select { color-scheme: dark; }
.field select option { background: #14141a; color: #fff; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red-soft); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red-soft); background: var(--red-tint); }
.field-error { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--red-soft); }
.check { display: flex; align-items: flex-start; gap: 11px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--red); flex: 0 0 auto; }
.check label { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 400; line-height: 1.6; color: var(--text); margin: 0; }

/* ---------- countdown ---------- */
.hold-bar {
  display: grid; gap: 4px;
  background: rgba(224,168,58,0.14); border: 1px solid rgba(224,168,58,0.62); border-radius: 8px;
  padding: 12px 16px; margin-bottom: 18px; font-size: 14px; line-height: 1.55; color: #fff;
}
/* White so the number is the highest contrast thing in the bar. The urgent
   state below still overrides it to red, because running out of time should
   change colour rather than stay calm. */
.hold-bar strong { font-family: 'Antonio', sans-serif; font-size: 24px; letter-spacing: 0.02em; color: #fff; }
.hold-bar.urgent { background: rgba(198,32,32,0.20); border-color: rgba(232,58,58,0.72); color: #fff; }
.hold-bar.urgent strong { color: #fff; }

/* ---------- payment ---------- */
.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
/* Each option is a button showing only its mark. The radio is still there for
   the form semantics, arrow key behaviour and the change listener, but it is
   visually hidden, and the option name survives as screen reader text because
   a logo on its own is not an accessible name. */
.pay-option {
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--surface-2);
  border-radius: 10px; padding: 16px 18px; min-height: 62px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
/* The author `display: flex` above beats the user-agent `[hidden] { display:
   none }`, so a provider withdrawn with the hidden attribute stayed fully
   rendered at 218x62. This restores the attribute's meaning for this component.
   `.pay-option[hidden]` (0,2,0) is already more specific than `.pay-option`
   (0,1,0), and !important would win at any source position, so neither the
   ordering here nor the flag is load-bearing on its own. Both are kept
   deliberately: the flag stops a future author rule from quietly resurrecting a
   withdrawn payment option. */
.pay-option[hidden] { display: none !important; }
.pay-option:hover { border-color: var(--line-strong); }
/* The radio drives the selected look, so it cannot fall out of step with what
   is actually submitted the way a JS toggled class can. */
.pay-option:has(input:checked),
.pay-option.selected { border-color: #ffffff; background: #2f2f35; }
.pay-option input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.pay-marks { display: flex; align-items: center; margin: 0; }
#stripe-element { min-height: 40px; }
#stripe-address { margin-bottom: 16px; }
.pay-legal { font-size: 12px; color: var(--muted); margin-top: 14px; line-height: 1.7; }

/* ---------- messages ---------- */
.msg { border-radius: 8px; padding: 14px 16px; font-size: 14px; line-height: 1.6; margin-bottom: 18px; }
.msg:empty { display: none; }
.msg.error { background: var(--red-tint); border: 1px solid var(--red-border); color: #ff8a8a; }
.msg.warn { background: var(--amber-tint); border: 1px solid rgba(224,168,58,0.35); color: var(--amber); }
.msg.ok { background: var(--green-tint); border: 1px solid rgba(63,184,114,0.35); color: var(--green); }
.msg .msg-title { display: block; font-weight: 700; margin-bottom: 3px; color: #fff; }
.msg .btn { margin-top: 10px; }

.loading { font-size: 14px; color: var(--muted); padding: 26px 0; }

/* ---------- confirmation ---------- */
.done-head { text-align: center; padding-bottom: 8px; }
.done-mark {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 30px; line-height: 1;
}
.done-head h2 { font-size: clamp(28px, 3.4vw, 42px); }
.done-detail { list-style: none; margin: 24px 0; border-top: 1px solid var(--line); }
.done-detail li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: 15px; }
.done-detail .k { font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); flex: 0 0 auto; padding-top: 3px; }
.done-detail .v { text-align: right; font-weight: 700; word-break: break-word; color: #fff; }
.done-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.done-actions .btn { flex: 1 1 200px; }
.card.has-paid-order {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,430px);
  column-gap: 38px; align-items: start;
}
.card.has-paid-order .done-head { grid-column: 1 / -1; }
.card.has-paid-order .order-printer { grid-column: 2; grid-row: 2 / span 5; margin: 22px 0 30px; }
.card.has-paid-order #done-detail { grid-column: 1; grid-row: 2; }
.card.has-paid-order #done-meet-note { grid-column: 1; grid-row: 3; }
.card.has-paid-order .done-actions { grid-column: 1; grid-row: 4; }
.card.has-paid-order .pay-legal { grid-column: 1; grid-row: 5; }

.order-printer[hidden] { display: none !important; }
.order-printer {
  position: relative; display: flex; flex-direction: column; align-items: center;
  width: min(430px, 100%); min-height: 0; margin: 22px auto 30px; padding: 26px 20px 34px;
  border: 2px solid #171717; border-radius: 16px; color: #171717; overflow: visible;
  background: radial-gradient(circle at 1px 1px,rgba(0,0,0,.08) 1px,transparent 1px) 0 0/16px 16px,
    linear-gradient(180deg,#fbfbfa,#efefec);
  box-shadow: 6px 7px 0 #171717;
}
.order-printer::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--red); }
.order-printer-machine {
  position: relative; z-index: 4; display: flex; flex-direction: column;
  width: min(92%,340px); margin: 40px auto 0; padding: 16px 16px 0;
  border: 4px solid #171717; border-radius: 34px 34px 18px 18px;
  background: linear-gradient(180deg,#fff 0%,#f2f2ef 78%,#e8e8e4 100%);
  box-shadow: 12px 14px 0 #171717; transform-origin: center bottom;
}
.order-printer-machine::before { content: ""; position: absolute; left: 50%; top: -1px; width: 76px; height: 7px; border: 3px solid #171717; border-top: 0; border-radius: 0 0 8px 8px; background: #171717; transform: translateX(-50%); }
.order-printer-top { display: flex; align-items: center; justify-content: center; padding: 4px 6px 0; color: #171717; }
.order-printer-top strong { font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.order-printer-top > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.order-printer-screen {
  display: grid; place-items: center; min-height: 82px; margin: 12px 0 0; padding: 18px 16px;
  border: 3px solid #171717; border-radius: 16px; color: #fff;
  background: linear-gradient(160deg,#1c1c1c,#050505);
  box-shadow: inset 0 0 0 2px #2e2e2e,inset 0 14px 26px rgba(255,255,255,.05);
}
.order-printer-message { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 8px; border: 0; background: transparent; color: #fff; font-family: inherit; font-size: 14px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; appearance: none; -webkit-appearance: none; }
.order-printer-message:disabled { opacity: 1; cursor: default; }
.order-printer-message.is-pull { animation: order-printer-blink 1.05s steps(1,end) infinite; }
.order-printer-message.is-pull::after { content: "\2193"; font-size: 15px; animation: order-printer-nudge 1.1s ease-in-out infinite; }
.order-printer-slot { height: 16px; margin: 20px 14px 16px; border: 3px solid #171717; border-radius: 9px; background: repeating-linear-gradient(90deg,#3a3a3a 0 5px,#171717 5px 9px); }
.order-paper-window { position: relative; z-index: 6; width: calc(78% + 20px); height: 0; margin: -22px auto 0; overflow: hidden; }
.order-paper {
  width: 100%; min-height: 430px; padding: 4mm 6mm 8mm; background: #fff; color: #111;
  font: 11.5px/1.42 "Courier New", ui-monospace, monospace; transform: translateY(calc(-100% + 2px));
  box-shadow: 0 14px 28px rgba(0,0,0,.18),0 2px 0 rgba(0,0,0,.06);
  clip-path: polygon(0 0,100% 0,100% calc(100% - 5px),97% 100%,94% calc(100% - 5px),91% 100%,88% calc(100% - 5px),85% 100%,82% calc(100% - 5px),79% 100%,76% calc(100% - 5px),73% 100%,70% calc(100% - 5px),67% 100%,64% calc(100% - 5px),61% 100%,58% calc(100% - 5px),55% 100%,52% calc(100% - 5px),49% 100%,46% calc(100% - 5px),43% 100%,40% calc(100% - 5px),37% 100%,34% calc(100% - 5px),31% 100%,28% calc(100% - 5px),25% 100%,22% calc(100% - 5px),19% 100%,16% calc(100% - 5px),13% 100%,10% calc(100% - 5px),7% 100%,4% calc(100% - 5px),0 100%);
}
.order-paper header { padding-bottom: 8px; border-bottom: 1px dashed #333; text-align: center; }
.order-paper header img { display: block; width: 104px; height: 58px; margin: 0 auto 2px; object-fit: contain; filter: grayscale(1) contrast(1.9) brightness(.5); }
.order-paper header strong { display: block; font: 900 21px/1 Arial,sans-serif; letter-spacing: .08em; }
.order-paper header small { display: block; margin-top: 4px; color: #cf1717; font: 800 7px/1 Arial,sans-serif; letter-spacing: .24em; }
.order-paper-meta { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 4px 12px; margin: 12px 0; padding-bottom: 12px; border-bottom: 1px dashed #333; }
.order-paper-meta dt, .order-paper-meta dd { margin: 0; }
.order-paper-meta dd { text-align: right; overflow-wrap: anywhere; }
.order-paper table { width: 100%; border-collapse: collapse; }
.order-paper th { padding-bottom: 6px; border-bottom: 1px solid #333; font-size: 8px; text-align: left; text-transform: uppercase; }
.order-paper th:last-child, .order-paper td:last-child { text-align: right; }
.order-paper td { padding: 9px 0; border-bottom: 1px dotted #aaa; vertical-align: top; }
.order-paper td:first-child { padding-right: 10px; overflow-wrap: anywhere; }
.order-paper-vat[hidden] { display: none !important; }
.order-paper-vat { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 12px; margin-top: 8px; font-size: 10px; }
.order-paper-vat strong { text-align: right; }
.order-paper-total { display: flex; justify-content: space-between; gap: 12px; margin-top: 7px; padding-top: 7px; border-top: 2px solid #111; font-size: 13px; }
.order-paper footer { margin-top: 18px; padding-top: 12px; border-top: 1px dashed #333; text-align: center; font-size: 9px; }
.order-paper footer > strong { display: block; margin-bottom: 4px; font-size: 10px; }
.order-paper-barcode { display: block; width: 76%; height: 28px; margin: 12px auto 3px; background: repeating-linear-gradient(90deg,#111 0 2px,transparent 2px 4px,#111 4px 5px,transparent 5px 8px); }
.order-paper footer > span { font-size: 8px; letter-spacing: .1em; }
.order-printer-hint { margin: 26px 0 0; color: #666; font-size: 11px; letter-spacing: .04em; text-align: center; }
.order-printer.is-feeding .order-paper-window { height: var(--order-paper-height,64px); }
.order-printer.is-feeding .order-paper { animation: order-paper-feed 1s cubic-bezier(.22,.7,.28,1) forwards; }
.order-printer.is-feeding .order-printer-machine { animation: order-printer-pulse 2.6s ease; }
.order-paper-window.is-manual { height: var(--order-paper-reveal,64px); overflow: hidden; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.order-paper-window.is-manual.is-grabbing { cursor: grabbing; }
.order-printer.is-auto .order-paper-window.is-manual { cursor: default; }
.order-paper-window.is-manual .order-paper { transform: translateY(0); animation: none; pointer-events: none; }
.order-paper-window.is-manual::after { content: ""; position: absolute; inset: auto 10px 0; height: 34px; pointer-events: none; background: linear-gradient(180deg,transparent,rgba(0,0,0,.08)); }
.order-paper-window.is-snap { transition: height .34s cubic-bezier(.22,.7,.28,1); }
.order-printer.is-ready .order-paper-window { height: var(--order-paper-height,520px); overflow: visible; }
.order-printer.is-ready .order-paper { transform: translateY(0); }
@keyframes order-paper-feed { from { transform: translateY(calc(-100% + 2px)); } to { transform: translateY(0); } }
@keyframes order-printer-pulse { 25%,65% { transform: translateY(2px); } 45%,85% { transform: translateY(-1px); } }
@keyframes order-printer-blink { 50% { opacity: .15; } }
@keyframes order-printer-nudge { 50% { transform: translateY(4px); } }

/* ---------- footer ---------- */
.site-footer { background: #050506; border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 1120px; margin: 0 auto; padding: 34px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--dim); line-height: 1.7;
}
.footer-inner a { color: var(--muted); text-decoration: underline; }
.footer-inner a:hover { color: #fff; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .booker { grid-template-columns: 244px minmax(0, 1fr) 244px; }
  .bk-left, .bk-mid, .bk-right { padding: 18px 16px; }
  .card.has-paid-order { grid-template-columns: 1fr; }
  .card.has-paid-order .done-head { grid-column: 1; grid-row: 1; }
  .card.has-paid-order #done-detail { grid-column: 1; grid-row: 2; }
  .card.has-paid-order #done-meet-note { grid-column: 1; grid-row: 3; }
  .card.has-paid-order .done-actions { grid-column: 1; grid-row: 4; }
  .card.has-paid-order .pay-legal { grid-column: 1; grid-row: 6; }
  .card.has-paid-order .order-printer {
    grid-column: 1; grid-row: 5; justify-self: center; margin: 22px auto 30px;
  }
}

/* Below this width the three panels stack in reading order: left, middle,
   right. The dividers move from vertical to horizontal with them. */
@media (max-width: 900px) {
  .site-header { padding: 0 24px; }
  .shell { padding: 32px 24px 64px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .booker { grid-template-columns: 1fr; }
  .bk-mid {
    border-left: 0; border-right: 0;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  }
  .slot-list { max-height: none; }
  .footer-inner { padding: 30px 24px; }
}
@media (max-width: 620px) {
  .site-header { padding: 0 16px; }
  .logo-name { font-size: 21px; }
  .logo-tagline { display: none; }
  .header-secure { display: none; }
  .shell { padding: 26px 14px 56px; }
  .card { padding: 22px 18px; border-radius: 12px; }
  .svc-grid { grid-template-columns: 1fr; }
  .pay-options { grid-template-columns: 1fr; }
  .done-actions .btn { flex: 1 1 100%; }
  .card.has-paid-order .order-printer { margin: 18px auto 22px; }
  .order-printer {
    padding: 16px 10px 24px; border-radius: 14px; box-shadow: 4px 5px 0 #171717;
  }
  .order-printer-machine {
    width: min(100%,320px); margin-top: 52px; padding: 14px 12px 0;
    box-shadow: 8px 9px 0 #171717;
  }
  .order-printer-screen { min-height: 78px; padding: 15px 10px; }
  .order-printer-message { font-size: 13px; line-height: 1.3; letter-spacing: .12em; }
  .order-printer-slot { margin: 18px 10px 15px; }
  .order-paper-window { width: calc(100% - 8px); }
  .order-paper { min-height: 400px; padding: 18px 14px 26px; font-size: 11px; line-height: 1.45; }
  .order-paper-meta { column-gap: 8px; }
  .order-printer-hint { margin-top: 20px; font-size: 12px; line-height: 1.45; }
  .day { height: 42px; font-size: 13px; }
  .steps li { padding: 6px 9px; letter-spacing: 0.08em; }
}
@media (max-width: 400px) {
  .shell { padding: 22px 8px 48px; }
  .card { padding: 18px 14px; }
  .bk-left, .bk-mid, .bk-right { padding: 18px 12px; }
  .cal-week { gap: 2px; }
  .cal-grid, .cal-row { gap: 3px; }
  .day { height: 38px; font-size: 12.5px; border-radius: 7px; }
  .cal-week span { font-size: 9px; letter-spacing: 0.02em; }
  .bk-title { font-size: 19px; }
  .done-detail li { display: grid; gap: 5px; }
  .done-detail .v { text-align: left; }
  .order-printer { padding-inline: 8px; }
  .order-printer-machine { padding-inline: 10px; border-width: 3px; border-radius: 28px 28px 16px 16px; }
  .order-printer-top strong { font-size: 11px; letter-spacing: .12em; }
  .order-printer-screen { min-height: 74px; padding-inline: 8px; }
  .order-printer-slot { margin-inline: 8px; }
  .order-paper { padding: 16px 11px 24px; font-size: 10.5px; }
  .order-paper header img { width: 92px; height: 50px; }
  .order-paper header strong { font-size: 18px; }
  .order-paper-total { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ===================================================================
 * Slot and details steps: nothing above the card
 *
 * The reference widget shows the card and nothing else. Ours was pushing it
 * hundreds of pixels down behind a display face heading, a two line intro and
 * a four item step rail, which left the widget stranded in the middle of an
 * empty page. Both are hidden from the moment a service is chosen, and the
 * card is centred instead.
 *
 * The rail was the only visual orientation, so the back control gains a
 * button shell above. The rail's disappearance costs nothing to assistive
 * tech: every step change is already spoken through the #live region by
 * goto(), which is independent of the rail.
 * ===================================================================*/
body.step-slot .page-head,
body.step-slot .steps,
body.step-details .page-head,
body.step-details .steps { display: none; }

/* The card carries its own max-width, so the shell only has to stop being the
   narrower of the two. */
body.step-slot .shell,
body.step-details .shell { max-width: 1180px; }

/* Everything stacked in the slot step lines up with the card edges. */
#panel-slot > .msg,
#panel-slot > .card-foot {
  width: 100%; max-width: 1040px; margin-left: auto; margin-right: auto;
}
#panel-details > .msg {
  width: 100%; max-width: 1040px; margin-left: auto; margin-right: auto;
}

/* ===================================================================
 * Fit the slot step in the viewport
 *
 * The booker is a fixed three panel card, so the page scrolling as well as
 * the slot list scrolling means two scrollbars fighting over the same
 * gesture. On the slot step the page itself does not scroll: the shell is
 * sized to the viewport and the slot list is the only thing that scrolls.
 *
 * Only applied where there is the height to do it. Below 900px the panels
 * stack, and forcing three stacked panels into a short viewport would clip
 * content with no way to reach it, so normal page scrolling returns.
 * ===================================================================*/
@media (min-width: 901px) {
  /* The three panels are equal height because the grid stretches them, and
     the calendar is the tallest, so the calendar sets the card height. The
     slot list then takes a flex-basis of zero: it contributes nothing to the
     panel's intrinsic height, so a day with 25 times cannot make the right
     panel taller than the calendar, and it grows into whatever the stretch
     leaves so a day with 3 times has no dead region under the last one. */
  .bk-left, .bk-mid, .bk-right {
    display: flex; flex-direction: column; min-height: 0; overflow: hidden;
  }
  .slot-list { flex: 1 1 0; min-height: 0; max-height: none; overflow-y: auto; }
  /* Nothing in the calendar column is allowed to shrink. A squashed day row is
     how six row months got clipped before. */
  .cal-head, .cal-week, .cal-grid { flex: 0 0 auto; }
}

@media (min-width: 901px) and (min-height: 700px) {
  body.step-slot { overflow: hidden; }
  body.step-slot .shell {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-top: 24px;
    padding-bottom: 18px;
    overflow: hidden;
  }

  /* The panel takes the whole column and centres the card inside it. With the
     page head and the rail gone that column is the full viewport, so the card
     sits in the middle of the screen. */
  body.step-slot #panel-slot {
    flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column;
    /* Top aligned, not centred. Centring in a tall viewport pushed the card
       into the middle of the screen with a large empty band above it. The
       reference sits its widget near the top of the content area, which also
       means the calendar is in the same place regardless of window height. */
    justify-content: flex-start;
    overflow-y: auto;
  }
  /* The CALENDAR sets the height, not an invented total. It is the one panel
     whose height never changes with user input, so letting it lead means the
     card is stable when a day is picked without guessing a pixel value that
     clips a six row month. The card never shrinks, so a six row month keeps
     all six rows. */
  body.step-slot .booker { flex: 0 0 auto; min-height: 0; }

  /* Top aligned to match the slot step. These two steps run back to back, and
     centring here while the slot step is top aligned made the card jump down
     the screen on advancing, which reads as the page reloading into a
     different layout rather than one card moving to the next stage.
     min-height rather than height, because the form can legitimately be taller
     than the viewport once errors and the security check are showing, so
     normal page scrolling has to stay available. */
  body.step-details .shell {
    min-height: calc(100dvh - var(--header-h));
    display: flex; flex-direction: column; justify-content: flex-start;
    padding-top: 24px; padding-bottom: 24px;
  }
}

/* Timezone picker. The native select is stretched invisibly over the row so
   the whole thing is one click target, while the visible label keeps the
   typography of the other metadata rows. Native select means the option list,
   keyboard behaviour and mobile picker all come for free. */
.bk-tz { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.bk-tz-select {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; font: inherit;
}
.bk-tz-select:focus-visible + #tz-name { outline: 2px solid var(--red-soft); outline-offset: 3px; border-radius: 3px; }
.bk-tz:hover #tz-name { color: #fff; }
.bk-tz-select option, .bk-tz-select optgroup { background: #14141a; color: #fff; }

/* ===================================================================
 * Details step
 *
 * The same card as the slot step, two panels instead of three. The left one
 * is the identity panel again, so the customer sees the service, the price
 * and, at the top of the list, the exact appointment they just picked. The
 * right one is the form.
 *
 * These rules sit after the responsive block on purpose: .booker-form has to
 * beat the .booker column rules inside the earlier media queries, which it
 * cannot do from above them at equal specificity. Its own breakpoints follow.
 * ===================================================================*/
/* Same width and same left column as the three panel booker. These two steps
   run back to back, so matching them means the identity panel does not move or
   resize when the customer advances: only the panel beside it changes. */
.booker-form { grid-template-columns: 280px minmax(0, 1fr); max-width: 1040px; }
.bk-form { padding: 20px 22px; min-width: 0; border-left: 1px solid var(--line); }

/* The appointment row carries two lines, so it hangs from the top rather
   than centring on a single line of text. */
.bk-meta-row.stacked { align-items: flex-start; }
.bk-meta-row.stacked .bk-ico { margin-top: 2px; }
.bk-when { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bk-when-date { color: #fff; overflow-wrap: anywhere; }
.bk-when-time { font-weight: 400; color: var(--muted); overflow-wrap: anywhere; }
.weekend-fee-note {
  margin-top: 20px; padding: 10px 11px; border-radius: 8px;
  border: 1px solid rgba(255, 200, 96, .25); background: rgba(255, 185, 45, .08);
  color: #e2ca9b; font-size: 12px; line-height: 1.5;
}

.bk-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

/* Sentence case labels and softer corners inside the form panel only, so the
   uppercase form styling used elsewhere on the page is untouched. Inputs are
   a normal form size here, not the oversized ones the rest of the page uses
   for its single field cards. */
.bk-form .field { margin-bottom: 14px; }
.bk-form .field label {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0; text-transform: none;
  color: var(--text); margin-bottom: 5px;
}
.bk-form .field input[type="text"],
.bk-form .field input[type="email"],
.bk-form .field input[type="tel"],
.bk-form .field select,
.bk-form .field textarea {
  border-radius: 7px; font-size: 14px; padding: 9px 11px; line-height: 1.45;
}
.bk-form .field textarea { min-height: 88px; }
.bk-form .field input::placeholder,
.bk-form .field textarea::placeholder { color: var(--dim); }
.bk-form .field-error:empty { display: none; }
.bk-form .field-error { margin-top: 4px; font-size: 12px; }
.bk-form .check label { font-size: 13px; margin: 0; line-height: 1.5; }
.bk-form .whatsapp-opt-in { margin-bottom: 10px; }
.bk-form .whatsapp-opt-in[hidden] { display: none; }
.bk-form .check-help {
  display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 400;
}
.whatsapp-phone-fields {
  min-width: 0; margin: 0 0 14px; padding: 12px;
  border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.018);
}
.whatsapp-phone-fields[hidden] { display: none; }
.whatsapp-phone-row {
  display: grid; grid-template-columns: minmax(150px, .8fr) minmax(0, 1.2fr); gap: 0 14px;
}
.bk-form .whatsapp-phone-fields .field { min-width: 0; margin-bottom: 0; }
.field-help { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.req { color: var(--red-soft); font-weight: 700; }

.bk-legal { font-size: 12px; line-height: 1.6; color: var(--muted); margin: -2px 0 14px; }
.bk-legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.bk-legal a:hover { color: #fff; }

.bk-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 20px; }
/* Back: quiet, sentence case, no box. */
.bk-actions .back-btn {
  font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none;
  color: var(--text); padding: 10px 8px;
}
.bk-actions .back-btn:hover { color: #fff; }
/* Pay to book: white pill, dark label. */
.bk-actions .btn,
.bk-actions .btn-red {
  background: #ffffff; color: #0f0f0f; border-color: #ffffff;
  font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none;
  padding: 10px 18px; border-radius: 8px;
}
.bk-actions .btn:hover,
.bk-actions .btn-red:hover { background: #e6e6e6; color: #0f0f0f; border-color: #e6e6e6; }
.bk-actions .btn:disabled { opacity: .6; }

@media (max-width: 1000px) {
  /* 244px matches .booker at this breakpoint, so the left panel keeps its
     width across the two steps here too. */
  .booker-form { grid-template-columns: 244px minmax(0, 1fr); }
  .bk-form { padding: 18px 18px; }
}
@media (max-width: 900px) {
  .booker-form { grid-template-columns: 1fr; }
  .bk-form { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .bk-form-row { grid-template-columns: 1fr; }
  .whatsapp-phone-row { grid-template-columns: 1fr; gap: 10px; }
  .bk-form { padding: 22px 18px; }
  .bk-form .field input[type="tel"],
  .bk-form .field select { font-size: 16px; }
  .bk-actions { justify-content: space-between; gap: 10px; }
}
@media (max-width: 400px) {
  .bk-form { padding: 18px 12px; }
}

/* The timezone already has its own row in the left panel, and repeating it
   here as a two line note pushed the times down and made the panel look
   half empty. The slot aria-labels still carry the zone for screen readers. */
body.step-slot #tz-note { display: none; }

/* Scrollbar. The platform default is a wide light bar hard against the slot
   buttons, which the reference does not show at all. Thin, dark, and only
   really visible on hover. Firefox gets the standard properties, Chrome and
   Safari the WebKit ones; both degrade to the default rather than to an
   unscrollable list. */
.slot-list { scrollbar-width: thin; scrollbar-color: #33333c transparent; }
.slot-list::-webkit-scrollbar { width: 6px; }
.slot-list::-webkit-scrollbar-track { background: transparent; }
.slot-list::-webkit-scrollbar-thumb { background: #2b2b33; border-radius: 999px; }
.slot-list:hover::-webkit-scrollbar-thumb { background: #3a3a45; }

/* Turnstile runs in interaction-only mode, so for most visitors it renders
   nothing at all. The wrapper must not hold open an empty gap in that case,
   but must still lay out normally on the occasions a challenge appears. */
#field-turnstile:empty, #field-turnstile > div:empty { margin: 0; }
#field-turnstile { margin: 0; }
#field-turnstile:has(iframe) { margin: 4px 0 14px; }

/* ===================================================================
 * Step 4: payment
 *
 * A single narrow card, top aligned, in the same tokens as the slot and
 * details steps. It sits last in the file on purpose: the provider chooser
 * overrides have to beat both the base .pay-options rules and the ones
 * inside the responsive block above, which they cannot do from higher up
 * at equal specificity.
 * ===================================================================*/
body.step-pay .page-head,
body.step-pay .steps { display: none; }

/* The confirmation card is self-contained. Restoring the booking headline and
   completed progress rail above it makes the finished screen look unfinished. */
body.step-done .page-head,
body.step-done .steps { display: none; }

.paycard {
  width: 100%; max-width: 500px; margin-left: auto; margin-right: auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 26px 26px 22px;
}

/* ---------- header ---------- */
.pc-head {
  text-align: center; padding-bottom: 18px; margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.pc-badge {
  width: 40px; height: 40px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--surface-2); color: var(--slot-dot);
  display: flex; align-items: center; justify-content: center;
}
/* Body face, sentence case. Same reasoning as .bk-title: this is a label on
   a card, not a page title, so it does not shout in condensed display type. */
.pc-title {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 20px; font-weight: 600; line-height: 1.3;
  letter-spacing: -0.01em; text-transform: none; color: #fff;
}

/* ---------- countdown, slimmer inside this card ---------- */
.paycard .hold-bar { padding: 12px 14px; margin-bottom: 20px; font-size: 14px; }
.paycard .hold-bar strong { font-size: 20px; }

/* ---------- summary rows ---------- */
.pc-summary { display: flex; flex-direction: column; gap: 20px; }
.pc-row {
  display: grid; grid-template-columns: 140px minmax(0, 1fr);
  gap: 4px 12px; align-items: start;
}
.pc-row dt { font-size: 14px; font-weight: 600; color: #fff; line-height: 1.5; }
.pc-row dd {
  font-size: 14px; font-weight: 400; color: var(--text); line-height: 1.5;
  overflow-wrap: anywhere;
}
.pc-when { display: flex; flex-direction: column; gap: 2px; }
.pc-when-date, .pc-when-time { display: block; }
.pc-dim { color: var(--muted); }

/* ---------- discount code ---------- */
.checkout-affiliate {
  min-width: 0; color: #fff; font-size: 13px;
}
.checkout-affiliate[hidden], .bk-affiliate-slot[hidden], .pc-affiliate-slot[hidden],
#affiliate-form[hidden], #affiliate-code-display[hidden] { display: none; }
.bk-affiliate-slot { min-width: 0; margin-top: -8px; }
.pc-affiliate-slot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.affiliate-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.affiliate-toggle {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px;
  padding: 0; border: 0; border-radius: 4px; background: transparent;
  color: #fff; font: inherit; font-size: 13px; font-weight: 600;
  white-space: nowrap; cursor: pointer;
}
.affiliate-toggle:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.affiliate-toggle:active { transform: scale(.98); }
.affiliate-icon, .affiliate-chevron { flex: 0 0 auto; }
.affiliate-toggle[aria-expanded="true"] .affiliate-chevron { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) {
  .affiliate-toggle:hover { color: #fff; }
}
.affiliate-code-badge {
  padding: 3px 7px; border: 1px solid var(--line); border-radius: 5px;
  background: var(--surface-2); color: #fff;
  font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: .025em;
}
.affiliate-code-badge.applied, .affiliate-code-badge.verified { background: #142c20; color: #fff; }
#affiliate-form { max-width: 360px; margin-top: 10px; }
#affiliate-form .pc-discount-controls { gap: 6px; }
#affiliate-code { min-height: 42px; padding: 9px 10px; text-transform: none; }
#affiliate-apply { min-height: 42px; padding: 9px 10px; font-size: 12px; }
#affiliate-status { margin-top: 3px; color: #fff; font-size: 11.5px; line-height: 1.5; }
#affiliate-status.error { color: #ff8a8a; }
#affiliate-status.ok { color: #fff; }
#affiliate-status.confirmed {
  position: relative; padding: 10px 10px 10px 34px; margin-top: 6px;
  border: 1px solid #387b52; border-radius: 8px; background: #142c20;
  animation: affiliate-confirm 360ms cubic-bezier(.23, 1, .32, 1);
}
#affiliate-status.confirmed::before {
  content: ""; position: absolute; left: 13px; top: 14px;
  width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.affiliate-result, .affiliate-savings { display: block; }
.affiliate-savings { margin-top: 2px; font-size: 14px; font-weight: 700; color: #fff; }
#affiliate-apply.confirmed:disabled {
  opacity: 1; color: #fff; background: #142c20; border-color: #387b52; cursor: default;
}
@keyframes affiliate-confirm {
  from { opacity: .3; transform: translateY(5px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  #affiliate-status.confirmed { animation: none; }
}
.checkout-affiliate .pc-discount-help, .checkout-affiliate .pc-discount-skip { color: #fff; }
.booking-price-current { display: inline-block; color: #fff; }
.booking-price-original { margin-right: 5px; color: #fff; font-size: .8em; font-weight: 400; }
.pc-discount {
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line);
}
.pc-discount[hidden] { display: none; }
.pc-discount-heading {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 8px;
}
.pc-discount-heading label { color: #fff; font-size: 14px; font-weight: 700; }
.pc-discount-heading span { color: var(--dim); font-size: 12px; }
.pc-discount-controls {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px;
}
.pc-discount-controls input {
  width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--surface-2); color: #fff; font: inherit; font-size: 16px;
  line-height: 1.35; letter-spacing: .04em; text-transform: uppercase;
}
.pc-discount-controls input::placeholder {
  color: var(--dim); letter-spacing: 0; text-transform: none;
}
.pc-discount-controls input:focus { border-color: var(--red-soft); }
.pc-discount-controls input[aria-invalid="true"] {
  border-color: var(--red-soft); background: var(--red-tint);
}
.pc-discount-controls input:disabled { opacity: .68; cursor: not-allowed; }
.pc-discount-apply {
  min-height: 46px; padding: 10px 18px; border-radius: 8px;
  background: #fff; border-color: #fff; color: #0f0f0f;
  font-size: 14px; letter-spacing: 0; text-transform: none;
}
.pc-discount-apply:hover:not(:disabled) {
  background: #e6e6e6; border-color: #e6e6e6;
}
.pc-discount-help,
.pc-discount-status { margin-top: 7px; font-size: 12px; line-height: 1.45; }
.pc-discount-help { color: var(--dim); }
.pc-discount-status:empty { display: none; }
.pc-discount-status.error { color: #ff8a8a; }
.pc-discount-status.ok { color: #69da97; }
.pc-discount-skip {
  margin-top: 8px; padding: 0; border: 0; color: var(--muted); background: transparent;
  font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer;
}
.pc-discount-skip:hover, .pc-discount-skip:focus-visible { color: var(--text); }
.pc-discount-skip[hidden] { display: none; }

/* ---------- provider chooser ---------- */
.pc-providers { margin-top: 22px; }
.affiliate-crypto-offer {
  margin-bottom: 14px; padding: 13px 14px; border: 1px solid var(--line);
  border-radius: 8px; color: #fff; font-size: 13px; line-height: 1.5;
}
.affiliate-crypto-offer[hidden] { display: none; }
.affiliate-crypto-offer p { margin: 0 0 10px; }
.affiliate-crypto-offer button {
  width: 100%; min-height: 40px; padding: 9px 12px; border: 1px solid #fff;
  border-radius: 6px; background: transparent; color: #fff; font: inherit;
  font-weight: 600; cursor: pointer;
}
.affiliate-crypto-offer button:hover:not(:disabled) { background: #ffffff0d; }
.affiliate-crypto-offer button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.affiliate-crypto-offer button:disabled { opacity: .55; cursor: default; }
.pay-option-crypto { min-width: 92px; }
.crypto-choice { display:flex; flex-direction:column; align-items:center; gap:2px; line-height:1.05; }
.crypto-choice strong { font-size:17px; letter-spacing:.02em; }
.crypto-choice small { color:var(--muted); font-size:16px; }
.pay-option.selected .crypto-choice small { color:inherit; }
/* padding, not margin: a legend's margin is unreliable across engines. */
/* Centred and larger than the summary labels above it. It is not another row
   label like What or When, it is the heading for the choice being made, so it
   sits over the two buttons rather than in the left label column. */
.pc-legend {
  display: block; width: 100%; padding: 0 0 12px;
  font-size: 19px; font-weight: 700; color: #fff; line-height: 1.35;
  text-align: center; letter-spacing: -0.01em;
}
.paycard .pay-options { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.paycard .pay-option {
  border-radius: 8px; padding: 12px 13px; gap: 9px;
  background: var(--surface-2); border-color: var(--line);
}
.paycard .pay-option:hover { border-color: var(--line-strong); background: var(--surface-3); }
.paycard .pay-option.selected { border-color: rgba(255,255,255,0.45); background: var(--surface-3); }
.paycard .pay-option .name { font-size: 14px; font-weight: 600; }
.paycard .pay-option .sub { font-size: 11.5px; margin-top: 2px; }

/* ---------- payment box ---------- */
/* Stripe's Payment Element mounts inside this. The padding is what keeps its
   own fields off the border, so it stays comfortable rather than tight. */
.pc-box {
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface-2); padding: 16px;
}

/* ---------- automatic crypto checkout modal ---------- */
body.crypto-modal-open { overflow: hidden; }
.crypto-modal[hidden] { display: none; }
.crypto-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; }
.crypto-modal-backdrop { position: absolute; inset: 0; background: rgba(3,3,6,.82); backdrop-filter: blur(8px); }
.crypto-dialog {
  position: relative; width: min(100%, 600px); max-height: calc(100dvh - 40px); overflow-y: auto;
  padding: 32px; border: 1px solid rgba(255,255,255,.12); border-radius: 20px;
  background: linear-gradient(180deg, #1a1a20 0%, #111115 100%);
  box-shadow: 0 28px 90px rgba(0,0,0,.58); color: var(--text);
}
.crypto-dialog:focus { outline: none; }
.crypto-close {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 50%;
  background: rgba(255,255,255,.05); color: #fff; cursor: pointer;
}
.crypto-close:hover { background: rgba(255,255,255,.1); }
.crypto-close:focus-visible { outline: 3px solid rgba(232,58,58,.55); outline-offset: 3px; }
.crypto-close svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.crypto-method {
  margin: 2px 58px 16px; color: #fff; font-size: 21px; font-weight: 700;
  line-height: 1.35; text-align: center;
}
.crypto-qr-shell {
  width: min(288px, 72vw); aspect-ratio: 1; margin: 0 auto; padding: 11px;
  border-radius: 18px; background: #fff; box-shadow: 0 16px 42px rgba(0,0,0,.32);
}
.crypto-qr-shell img { display: block; width: 100%; height: 100%; border-radius: 9px; }
.crypto-amount-block { margin-top: 20px; text-align: center; }
.crypto-amount-block > span { display: block; color: var(--muted); font-size: 16px; line-height: 1.4; }
.crypto-amount-block strong { display: block; margin-top: 4px; color: #fff; font-size: 30px; line-height: 1.2; letter-spacing: -.02em; }
.crypto-watch {
  display: flex; gap: 14px; align-items: center; margin-top: 22px; padding: 17px 18px;
  border: 1px solid rgba(105,218,151,.22); border-radius: 11px; background: rgba(52,163,97,.08);
}
.crypto-spinner { width: 22px; height: 22px; flex: 0 0 auto; border: 2px solid rgba(105,218,151,.25); border-top-color: #69da97; border-radius: 50%; animation: crypto-spin .9s linear infinite; }
.crypto-watch strong, .crypto-watch span { display: block; }
.crypto-watch strong { color: #f4fff8; font-size: 17px; line-height: 1.35; }
.crypto-watch span { margin-top: 3px; color: #a9c8b5; font-size: 16px; line-height: 1.5; }
.crypto-watch.confirming { border-color: rgba(255,200,96,.28); background: rgba(255,185,45,.08); }
.crypto-watch.detected {
  animation: crypto-detected-breathe .72s ease-in-out infinite alternate;
  will-change: box-shadow, border-color, background-color;
}
.crypto-watch.confirming .crypto-spinner { border-color: rgba(255,200,96,.25); border-top-color: #ffc860; }
.crypto-watch.confirming span { color: #d8c296; }
.crypto-watch.error { border-color: rgba(255,107,107,.28); background: rgba(232,58,58,.09); }
.crypto-watch.error .crypto-spinner { animation: none; border-color: #ff7777; }
.crypto-watch.error span { color: #d9a3a3; }
.crypto-expiry { display: flex; justify-content: space-between; gap: 18px; margin-top: 18px; color: var(--muted); font-size: 16px; line-height: 1.4; }
.crypto-expiry strong { color: #fff; font-size: 17px; font-variant-numeric: tabular-nums; }
.crypto-destination { margin: 18px 0 0; color: #9a9aa5; font-size: 16px; line-height: 1.5; text-align: center; }
.crypto-destination code { font-family: ui-monospace,SFMono-Regular,Consolas,monospace; overflow-wrap: anywhere; }
.crypto-warning { margin: 10px 0 0; color: #e3b956; font-size: 16px; font-weight: 600; line-height: 1.5; text-align: center; }
@keyframes crypto-spin { to { transform: rotate(360deg); } }
@keyframes crypto-detected-breathe {
  from {
    border-color: rgba(255,200,96,.30);
    background-color: rgba(255,185,45,.08);
    box-shadow: 0 0 0 rgba(255,185,45,0);
  }
  to {
    border-color: rgba(255,211,120,.78);
    background-color: rgba(255,185,45,.16);
    box-shadow: 0 0 20px rgba(255,185,45,.22);
  }
}
@media (prefers-reduced-motion: reduce) {
  .crypto-spinner { animation-duration: 1.8s; }
  .crypto-watch.detected { animation: none; }
}
@media (max-width: 560px) {
  .crypto-modal { padding: 0; align-items: end; }
  .crypto-dialog { width: 100%; max-height: 96dvh; padding: 26px 22px 24px; border-radius: 20px 20px 0 0; }
  .crypto-qr-shell { width: min(264px, 72vw); }
  .crypto-amount-block strong { font-size: 27px; }
}

/* ---------- actions ---------- */
/* Cancel and Pay now reuse .bk-actions from the details step unchanged. */
.pc-foot { margin-top: 12px; text-align: right; font-size: 11.5px; color: var(--dim); line-height: 1.6; }

@media (max-width: 620px) {
  .paycard { padding: 22px 18px 20px; border-radius: 12px; }
  .paycard .pay-options { grid-template-columns: 1fr; }
  .pc-summary { gap: 16px; }
  .pc-row { grid-template-columns: 108px minmax(0, 1fr); gap: 4px 10px; }
  .pc-foot { text-align: left; }
}
@media (max-width: 420px) {
  .paycard { padding: 18px 14px; }
  /* The label column stops earning its keep below this width, so the label
     sits above its value rather than squeezing both into a third each. */
  .pc-row { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .pc-discount-controls { grid-template-columns: minmax(0, 1fr); }
  .pc-discount-apply { width: 100%; }
  .pc-box { padding: 12px; }
}

/* Payment scheme marks. Inline SVG so no image host is needed and the strict
   CSP holds. Each carries its own role and aria-label, and the visible option
   name ("Card", "PayPal") stays above them, so the choice is still announced
   properly rather than depending on the artwork. */
.pay-marks { display: flex; align-items: center; margin-top: 8px; }
.pay-mark { height: 24px; width: auto; display: block; border-radius: 3px; color: var(--text); }
.pay-mark-wide { height: 24px; }

/* ---------- manage page: reschedule calendar ----------
   Mirrors the booking step's two panel shape, calendar beside times, so the
   reschedule screen reads as the same product. It reuses .cal-* and .slot-list
   wholesale; only the container needs describing. */
.m-resched-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 240px;
  gap: 18px; align-items: start; margin-top: 14px;
}
.m-resched-cal {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px;
}
.m-resched-times { min-width: 0; }
.m-resched-day {
  font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 8px;
}
/* The list scrolls rather than stretching the card: a busy day would otherwise
   push the confirm button far below the calendar. */
.m-resched-times .slot-list { max-height: 340px; overflow-y: auto; }

@media (max-width: 720px) {
  /* Stacked, so the calendar is not squeezed to an unusable width. */
  .m-resched-grid { grid-template-columns: minmax(0, 1fr); }
  .m-resched-times .slot-list { max-height: none; }
}
