/* The public booking page. Its accent is the WORKSHOP'S own colour:
   booking.js sets --brand (and the readable --brand-ink / --on-brand made
   from it) on <html> from the workshop's brand_color, so the accent is
   never Bookanic teal here. Neutrals (text, borders, surfaces, font,
   spacing, motion) come from brand.css tokens. The page is light-only
   (shell lightOnly) because it sits inside workshops' own websites; it only
   uses tokens, so it is ready for an opt-in dark mode later. */
:root {
  --brand: #1a3a6b;              /* replaced at runtime by the workshop's colour */
  --brand-ink: var(--brand);     /* the colour as text on white (darkened by JS if it's pale) */
  --on-brand: #fff;              /* text on a filled --brand (ink for pale colours, set by JS) */
  --brand-edge: var(--brand);    /* outline of brand-filled shapes (darkened by JS for pale colours) */
  --bf-tint: 9%;                 /* how strong the soft tints are (stronger for pale colours) */
  --bf-tint-strong: 17%;
  --brand-light: #eef3fb;        /* fallbacks for browsers without color-mix() */
  --brand-hover: #d9e5f7;
  --brand-strong: var(--brand);
  --brand-ring: rgba(26, 58, 107, .2);
  --text: var(--bk-text);
  --text-mid: var(--bk-text-2);
  --text-light: var(--bk-muted);
  --border: var(--bk-border);
  --danger: var(--bk-danger-text);
  --radius: var(--bk-radius-md);
  /* Any shared bk- component used here takes the workshop's colour too */
  --bk-brand: var(--brand);
  --bk-brand-strong: var(--brand-strong);
  --bk-brand-text: var(--brand-ink);
  --bk-brand-tint: var(--brand-light);
  --bk-brand-tint-strong: var(--brand-hover);
  --bk-on-brand: var(--on-brand);
  --bk-focus: var(--brand-ink);
  --bk-focus-ring: 0 0 0 3px var(--brand-ring);
  --bk-selection: var(--brand-hover);
}
/* Soft tints made from the workshop's own colour, so a red or green
   workshop gets red or green highlights instead of blue ones */
@supports (color: color-mix(in srgb, red 50%, blue)) {
  :root {
    --brand-light: color-mix(in srgb, var(--brand) var(--bf-tint), var(--bk-surface));
    --brand-hover: color-mix(in srgb, var(--brand) var(--bf-tint-strong), var(--bk-surface));
    --brand-strong: color-mix(in srgb, var(--brand) 84%, #000);
    --brand-ring: color-mix(in srgb, var(--brand) 24%, transparent);
  }
}
/* A pale workshop colour (yellow, cream...): booking.js adds .bf-pale-brand.
   The tints get stronger so bookable days still read as tinted, and every
   shape filled with the colour gets a darker outline (--brand-edge, at
   least 3:1 against white) so it doesn't vanish into the white card. */
html.bf-pale-brand { --bf-tint: 24%; --bf-tint-strong: 38%; --brand-ring: rgba(19, 33, 43, .14); }
html.bf-pale-brand .day.available { box-shadow: inset 0 0 0 1px var(--brand-edge-soft, rgba(19, 33, 43, .16)); }
html.bf-pale-brand .day.selected,
html.bf-pale-brand .next-btn,
html.bf-pale-brand .submit { box-shadow: inset 0 0 0 1.5px var(--brand-edge), 0 2px 10px var(--brand-ring); }
html.bf-pale-brand .done .bk-tick-circle { stroke: var(--brand-edge); stroke-width: 1.5; }

html, body { margin: 0; padding: 0; background: var(--bk-bg); }
body {
  font-family: var(--bk-font);
  color: var(--text);
  font-size: var(--bk-fs-base);
  line-height: var(--bk-lh-base);
  padding: 28px 16px 8px;
  -webkit-tap-highlight-color: transparent;
}
/* Inside a workshop's website: no grey page around the card */
html.bf-embedded, html.bf-embedded body { background: transparent; }
html.bf-embedded body { padding: 4px 4px 0; }

.bf-shell {
  max-width: 1040px; margin: 0 auto; background: var(--bk-surface);
  border: 1px solid var(--bk-border); border-radius: var(--bk-radius-xl);
  /* a 4px band of the workshop's colour along the top (inside the rounded corners) */
  box-shadow: inset 0 4px 0 var(--brand-edge), var(--bk-shadow-sm);
  overflow: hidden;
  overflow: clip;   /* clips the corners without breaking the sticky Continue bar */
}
/* headings and messages that get focus when a new screen opens: no focus box */
[tabindex="-1"]:focus { outline: none; }
/* read out by screen readers, not shown */
.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;
}
button { font: inherit; color: inherit; }
a { color: var(--brand-ink); font-weight: var(--bk-fw-medium); }

/* The very first paint (from the server) before the script runs */
.bf-loading { padding: 64px 20px; text-align: center; color: var(--text-light); font-size: var(--bk-fs-sm); }
.bf-shell:not(.is-ready) > .bf-loading::before {
  content: ""; display: block; width: 22px; height: 22px; margin: 0 auto 12px; border-radius: 50%;
  border: 2px solid var(--bk-border); border-top-color: var(--brand);
  animation: bk-spin 700ms linear infinite;
}

/* ---- screen transitions ------------------------------------------------- */
/* A step forward slides in (.bk-step-in), Back slides the other way
   (.bk-step-back), both from brand.css; inside a workshop's website
   (#bf-root.is-embed) they only fade, as the frame's height moves already. */
.bf-screen.in-fade { animation: bk-fade-in var(--bk-dur-base) var(--bk-ease) both; }
.is-embed .slot:active, .is-embed .day.available:active, .is-embed .dpill:active { transform: none; }

/* ---- header: the workshop + progress ------------------------------------ */
.bf-head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 14px 28px; padding: 20px 28px 16px; border-bottom: 1px solid var(--bk-border-soft);
}
.bf-head[hidden] { display: none; }
.bf-shop { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; min-height: 28px; }
/* the workshop's initials (no logo) next to its name and the line under it */
.bf-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bf-id-text { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
/* "Authorised Inspection Station · Call 02 9000 0000" under the name */
.bf-shop-sub {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px;
  font-size: var(--bk-fs-xs); line-height: 1.3; color: var(--text-mid);
}
.bf-cred { display: inline-flex; align-items: center; gap: 5px; font-weight: var(--bk-fw-medium); }
.bf-cred .bk-icon, .bf-head-call .bk-icon { width: 14px; height: 14px; flex: 0 0 auto; color: var(--brand-ink); }
.bf-head-call {
  display: inline-flex; align-items: center; gap: 5px; color: var(--text-mid); font-weight: var(--bk-fw-medium);
  text-decoration: none; font-variant-numeric: tabular-nums; border-radius: var(--bk-radius-xs);
}
.bf-head-call:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 2px; }
.bf-head-call:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.bf-shop img { max-height: 44px; max-width: 220px; display: block; }
.bf-shop-name {
  font-family: var(--bk-font); font-size: var(--bk-fs-md); font-weight: var(--bk-fw-bold);
  line-height: var(--bk-lh-snug); color: var(--text); overflow-wrap: anywhere;
}

.bf-steps {
  display: flex; align-items: center; list-style: none; margin: 0; padding: 0;
  flex: 0 1 540px; min-width: 0;
}
.bf-steps[hidden] { display: none; }
.bf-step {
  display: flex; align-items: center; gap: 8px; flex: 0 0 auto;
  font-size: var(--bk-fs-sm); font-weight: var(--bk-fw-medium); color: var(--bk-muted);
  transition: color var(--bk-dur-base) var(--bk-ease);
}
/* Step numbers are hex nuts (the logo's shape, as on the sign-up page). The
   outline is the nut itself (--dot-edge) with the fill (--dot-fill) inset
   1.5px inside it, as a clipped shape can't have a border. The current step
   is the solid one, so the eye lands on where they are; done steps are a
   soft tint with a tick. */
.bf-step-dot {
  --dot-edge: var(--bk-border-strong); --dot-fill: var(--bk-surface);
  position: relative; width: 28px; height: 25px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 12.5px; font-weight: var(--bk-fw-bold);
  clip-path: var(--bk-hex); background: var(--dot-edge); color: var(--bk-muted);
  font-variant-numeric: tabular-nums;
  transition: background-color var(--bk-dur-base) var(--bk-ease), color var(--bk-dur-base) var(--bk-ease);
}
.bf-step-dot::before {
  content: ""; position: absolute; inset: 1.5px 2px; clip-path: var(--bk-hex); background: var(--dot-fill);
  transition: background-color var(--bk-dur-base) var(--bk-ease);
}
.bf-step-dot .n { position: relative; transition: opacity var(--bk-dur-fast) var(--bk-ease); }
.bf-step-dot .bk-icon {
  position: absolute; width: 14px; height: 14px; stroke-width: 3; color: var(--brand-ink);
  opacity: 0; transform: scale(.5);
  transition: opacity var(--bk-dur-base) var(--bk-ease), transform var(--bk-dur-base) var(--bk-ease);
}
.bf-step.is-current { color: var(--text); font-weight: var(--bk-fw-bold); }
.bf-step.is-current .bf-step-dot { --dot-edge: var(--brand-edge); --dot-fill: var(--brand); color: var(--on-brand); }
.bf-step.is-done { color: var(--text-mid); }
.bf-step.is-done .bf-step-dot { --dot-edge: var(--brand-hover); --dot-fill: var(--brand-light); }
html.bf-pale-brand .bf-step.is-done .bf-step-dot { --dot-edge: var(--brand-edge-soft, var(--brand-hover)); }
.bf-step.is-done .bf-step-dot .n { opacity: 0; }
.bf-step.is-done .bf-step-dot .bk-icon { opacity: 1; transform: none; }
.bf-line {
  flex: 1 1 28px; min-width: 14px; height: 2px; margin: 0 10px; border-radius: 2px;
  background: var(--bk-border); overflow: hidden;
}
.bf-line > i {
  display: block; height: 100%; background: var(--brand-edge); border-radius: 2px;
  transform: scaleX(0); transform-origin: left center;
  transition: transform var(--bk-dur-slow) var(--bk-ease-in-out);
}
.bf-line.is-done > i { transform: none; }

/* ---- shared messages (load failed, nothing bookable) -------------------- */
.bf-msg { padding: 56px 24px; text-align: center; color: var(--text-mid); }
.bf-msg h1, .bf-msg h2 { color: var(--text); }
/* A whole-screen message (paused, couldn't load): a narrow centred block,
   matching the server's own "Online booking is unavailable" page */
.bf-msg--page { max-width: 420px; margin: 0 auto; padding: 52px 24px 56px; }
.bf-msg--page h2 {
  font-size: var(--bk-fs-xl); font-weight: var(--bk-fw-bold); margin: 0 0 8px;
  letter-spacing: var(--bk-tracking-tight); line-height: var(--bk-lh-tight);
}
.bf-msg--page .bf-msg-sub { margin: 0; font-size: var(--bk-fs-base); line-height: var(--bk-lh-base); }
.bf-msg-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 22px; }
.bf-msg-actions .again { margin-top: 0; }
.bf-call { text-decoration: none; color: var(--on-brand); font-weight: var(--bk-fw-bold); }
.bf-call:hover { color: var(--on-brand); }
.bf-msg-art {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  margin: 0 auto 16px; background: var(--brand-light); color: var(--brand-ink);
}
.bf-msg-art .bk-icon { width: 28px; height: 28px; stroke-width: 1.75; }
.bf-msg-text { margin: 0 auto; max-width: 380px; font-size: var(--bk-fs-md); font-weight: var(--bk-fw-medium); color: var(--text); }
.bf-msg-sub { margin: 6px 0 0; font-size: var(--bk-fs-sm); }
.bf-msg--left { padding: 8px 0 0; text-align: left; }
.bf-msg--left .bf-msg-art { margin: 0 0 16px; width: 56px; height: 56px; }
.bf-msg--left h2 { margin-bottom: 8px; }
.bf-msg--left .empty-msg { padding: 0; display: block; max-width: 440px; }

/* ---- screen 1: service picker ------------------------------------------- */
.picker { padding: 30px 28px 34px; }
.picker h1 {
  font-size: var(--bk-fs-xl); margin: 0 0 6px; font-weight: var(--bk-fw-bold);
  letter-spacing: var(--bk-tracking-tight); line-height: var(--bk-lh-tight);
}
.picker .lede { color: var(--text-mid); font-size: var(--bk-fs-base); margin: 0 0 22px; line-height: var(--bk-lh-base); max-width: 620px; }
.svc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 12px; }
/* the same size as a real service card, so nothing moves when they arrive */
.svc-skel { height: 122px; border-radius: var(--bk-radius-lg); }
.svc-list .svc-skel:nth-child(2) { opacity: .85; }
.svc-list .svc-skel:nth-child(3) { opacity: .7; }
.svc-list .svc-skel:nth-child(4) { opacity: .55; }
.svc-list .svc-skel:nth-child(n+5) { opacity: .45; }
.svc {
  position: relative; display: flex; align-items: flex-start; gap: 14px; width: 100%; min-height: 76px;
  text-align: left; padding: 16px 16px 16px 20px; margin: 0;
  border: 1px solid var(--bk-border); border-radius: var(--bk-radius-lg);
  background: var(--bk-surface); box-shadow: var(--bk-shadow-xs);
  cursor: pointer; overflow: hidden;
}
.svc::before {   /* the service's own colour (or the workshop's) as a slim bar */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--bk-stripe, 4px);
  background: var(--svc, var(--brand));
}
.svc:hover { border-color: var(--bk-border-strong); box-shadow: var(--bk-shadow-md); transform: translateY(-1px); }
.svc:active { transform: translateY(0); box-shadow: var(--bk-shadow-xs); }
.svc:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.svc-main { flex: 1; min-width: 0; display: block; }
.svc-name {
  display: block; font-size: var(--bk-fs-md); font-weight: var(--bk-fw-bold); color: var(--text);
  line-height: var(--bk-lh-snug); margin-bottom: 3px;
}
.svc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 3px; }
.svc-top .svc-name { margin-bottom: 0; min-width: 0; }
.svc-price {   /* the price, on the right of the name (on one line) */
  flex: 0 0 auto; text-align: right; font-size: var(--bk-fs-sm); font-weight: var(--bk-fw-bold); white-space: nowrap;
  color: var(--brand-ink); line-height: 1.35; font-variant-numeric: tabular-nums;
}
/* A narrow tile (phones, a workshop's website, a 3-across grid) or a long
   price: the price goes under the name, as on phones, never a lonely
   wrapped word beside it */
.svc { container-type: inline-size; }
.svc-top--long { flex-direction: column; align-items: flex-start; gap: 2px; }
.svc-top--long .svc-price { white-space: normal; text-align: left; }
@container (max-width: 400px) {
  .svc-top { flex-direction: column; align-items: flex-start; gap: 2px; }
  .svc-price { white-space: normal; text-align: left; }
}
/* "Includes" with up to four small ticks */
.svc-inc { display: block; margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--bk-border); }
.svc-inc-lbl {
  display: block; margin-bottom: 5px; font-size: var(--bk-fs-2xs); font-weight: var(--bk-fw-bold);
  letter-spacing: var(--bk-tracking-caps); text-transform: uppercase; color: var(--text-light);
}
.svc-inc-list { display: flex; flex-wrap: wrap; gap: 3px 14px; }
.svc-inc-item { display: inline-flex; align-items: center; gap: 5px; font-size: var(--bk-fs-xs); color: var(--text-mid); line-height: 1.4; }
.svc-inc-item .bk-icon { width: 14px; height: 14px; stroke-width: 2.5; color: var(--brand-ink); flex: 0 0 auto; }
.svc-meta { font-size: var(--bk-fs-xs); color: var(--text-light); display: flex; align-items: flex-start; gap: 6px; line-height: 1.4; }
.svc-meta .bk-icon { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 2px; }
.svc-desc { display: block; font-size: var(--bk-fs-sm); color: var(--text-mid); margin-top: 6px; line-height: 1.45; }
/* the arrow: top right, no circle (the whole tile is the button) */
.chev {
  flex: 0 0 auto; align-self: flex-start; width: 24px; height: 24px; margin-top: 1px; display: grid; place-items: center;
  background: transparent; color: var(--bk-faint);
  transition: color var(--bk-dur-fast) var(--bk-ease), transform var(--bk-dur-fast) var(--bk-ease);
}
.svc:hover .chev { background: transparent; color: var(--brand-ink); transform: translateX(2px); }

/* ---- screens 2 and 3: summary on the left, the step on the right -------- */
.panes { display: flex; align-items: stretch; }
.pane-left {
  flex: 0 0 310px; padding: 22px 26px 30px; border-right: 1px solid var(--bk-border-soft);
  background: var(--bk-surface-3);
}
.pane-right { flex: 1; padding: 26px 28px 30px; min-width: 0; }
.back {
  display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 12px 0 6px;
  margin: 0 0 14px -8px; border: none; border-radius: var(--bk-radius-md); background: transparent;
  color: var(--brand-ink); font-size: var(--bk-fs-sm); font-weight: var(--bk-fw-medium); cursor: pointer;
}
.back .bk-icon { transition: transform var(--bk-dur-fast) var(--bk-ease); }
.back:hover { background: var(--brand-light); }
.back:hover .bk-icon { transform: translateX(-2px); }
/* the service in the summary pane: smaller than the step's own heading, so
   the eye goes to "Choose a date & time" / "Your details" first */
.evt-title {
  font-family: var(--bk-font); font-size: var(--bk-fs-lg); font-weight: var(--bk-fw-bold); margin: 0 0 14px;
  letter-spacing: 0; line-height: var(--bk-lh-snug);
}
.meta-row {
  display: flex; gap: 10px; align-items: flex-start; color: var(--text-mid);
  font-size: var(--bk-fs-sm); font-weight: var(--bk-fw-medium); margin-bottom: 10px; line-height: 1.45;
}
.meta-row .bk-icon { flex: 0 0 auto; margin-top: 1px; color: var(--text-light); }
.meta-row.meta-line { display: none; }   /* phones only: "1 hr · $51" on one line */
.meta-row.selected {
  background: var(--brand-light); color: var(--text); border-radius: var(--bk-radius-md);
  padding: 10px 12px; margin: 0 0 14px; animation: bk-rise-in var(--bk-dur-base) var(--bk-ease) both;
}
.meta-row.selected .bk-icon { color: var(--brand-ink); }
.meta-row.selected b, .next-sum b { display: block; font-weight: var(--bk-fw-bold); }
.meta-row.selected .when, .next-sum .when { display: block; color: var(--text-mid); font-weight: var(--bk-fw-medium); }
.blurb {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--bk-border);
  font-size: var(--bk-fs-sm); color: var(--text-mid); line-height: var(--bk-lh-base);
}
.pane-right h2 {   /* the step's heading: the biggest words on the screen */
  font-family: var(--bk-font-display); font-size: var(--bk-fs-xl); font-weight: var(--bk-fw-bold); margin: 0 0 18px;
  letter-spacing: var(--bk-tracking-tight); line-height: var(--bk-lh-tight);
}

/* ---- calendar ----------------------------------------------------------- */
.cal-wrap { display: flex; gap: 28px; align-items: flex-start; }
.cal { flex: 1 1 auto; min-width: 0; max-width: 400px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; min-height: 40px; }
.cal-month { font-size: var(--bk-fs-md); font-weight: var(--bk-fw-bold); }
.cal-nav { display: flex; gap: 4px; }
.cal-nav button {
  width: 40px; height: 40px; border: 1px solid var(--bk-border); background: var(--bk-surface); border-radius: 50%;
  color: var(--brand-ink); cursor: pointer; display: grid; place-items: center; padding: 0;
}
.cal-nav button:hover:not(:disabled) { background: var(--brand-light); border-color: transparent; }
.cal-nav button:active:not(:disabled) { transform: scale(.94); }
.cal-nav button:disabled { color: var(--bk-faint); border-color: var(--bk-border-soft); cursor: default; }
.dow { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 4px; }
.dow div {
  text-align: center; font-size: var(--bk-fs-2xs); font-weight: var(--bk-fw-bold); color: var(--text-light);
  letter-spacing: var(--bk-tracking-caps); text-transform: uppercase; padding: 4px 0;
}
.grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cell { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; min-height: 40px; }
.day {
  width: 100%; aspect-ratio: 1 / 1; max-width: 46px; min-width: 38px; border: none; border-radius: 50%;
  font-size: var(--bk-fs-base); background: transparent; position: relative;
  display: flex; align-items: center; justify-content: center; padding: 0;
  color: var(--bk-faint); cursor: default; font-variant-numeric: tabular-nums;
}
.day.past { opacity: .45; }   /* before today: lighter, so the booking window's start shows */
.day.available {
  background: var(--brand-light); color: var(--brand-ink); font-weight: var(--bk-fw-bold); cursor: pointer;
}
.day.available:hover { background: var(--brand-hover); }
.day.available:active { transform: scale(.94); }
.day.selected {
  background: var(--brand); color: var(--on-brand); font-weight: var(--bk-fw-bold); cursor: pointer;
  box-shadow: 0 2px 8px var(--brand-ring); opacity: 1;
}
.day.selected.today { box-shadow: 0 2px 8px var(--brand-ring); }
.day.today:not(.selected) { box-shadow: inset 0 0 0 1.5px var(--bk-border-strong); }   /* today: a thin ring */
.day.available::after, .day.selected::after {   /* bookable: a small dot in the workshop's colour */
  content: ""; position: absolute; bottom: 5px; left: 50%; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: var(--brand);
}
.day.selected::after { background: var(--on-brand); }
/* a full or closed day picked from the day strip */
.day.picked { box-shadow: inset 0 0 0 2px var(--brand-edge); color: var(--text-mid); }
/* the next month's first days at the end of the grid: "Nov" over the 1 */
.day.next-month[data-mo]::before {
  content: attr(data-mo); position: absolute; top: 3px; left: 0; right: 0;
  font-size: 9.5px; font-weight: var(--bk-fw-bold); line-height: 1; text-align: center; color: inherit; opacity: .85;
}
/* over a closed or full 1st the marker would copy the faded grey: keep it readable */
.day.next-month[data-mo]:not(.available):not(.selected)::before { color: var(--text-mid); opacity: 1; font-size: 10px; }
.cal-passed { margin: -2px 0 6px; font-size: var(--bk-fs-xs); color: var(--text-light); }
.day:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
@keyframes bf-pop { from { transform: scale(.82); } to { transform: none; } }
.day.pop { animation: bf-pop var(--bk-dur-base) var(--bk-ease) both; }
@keyframes bf-slide-next { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes bf-slide-prev { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.slide-next { animation: bf-slide-next var(--bk-dur-base) var(--bk-ease) both; }
.slide-prev { animation: bf-slide-prev var(--bk-dur-base) var(--bk-ease) both; }
.day-skel { width: 78%; aspect-ratio: 1 / 1; max-width: 40px; border-radius: 50%; opacity: .55; }
.tz { margin-top: 14px; font-size: var(--bk-fs-xs); color: var(--text-light); display: flex; align-items: center; gap: 7px; }

/* ---- times -------------------------------------------------------------- */
/* the padding leaves room for focus rings and the chosen time's soft shadow */
.times { flex: 0 0 256px; max-height: 470px; overflow-y: auto; padding: 4px 8px 16px 4px; margin: -4px -8px -16px -4px; }
.times-head { font-size: var(--bk-fs-base); font-weight: var(--bk-fw-bold); margin: 8px 0 12px; min-height: 22px; }
.times-hint {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 200px; padding: 20px; text-align: center; margin-top: 50px;
  border: 1.5px dashed var(--bk-border); border-radius: var(--bk-radius-lg);
  color: var(--text-light); font-size: var(--bk-fs-sm); line-height: 1.45;
  animation: bk-fade-in var(--bk-dur-base) var(--bk-ease) both;
}
.times-hint .bk-icon { width: 24px; height: 24px; color: var(--brand-ink); opacity: .8; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.slot-skel { height: 48px; border-radius: var(--bk-radius-md); }
.slot-grid .slot-skel:nth-child(n+3) { opacity: .75; }
.slot-grid .slot-skel:nth-child(n+5) { opacity: .5; }
.group-skel { height: 104px; border-radius: var(--bk-radius-lg); }
.slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 48px; padding: 8px 6px; border: 1px solid var(--bk-border-strong); border-radius: var(--bk-radius-md);
  background: var(--bk-surface); color: var(--brand-ink); font-size: var(--bk-fs-base); font-weight: var(--bk-fw-bold);
  cursor: pointer; text-align: center; line-height: 1.2; font-variant-numeric: tabular-nums;
}
.slot:hover { border-color: var(--brand-edge); background: var(--brand-light); }
.slot:active { transform: scale(.97); }
.slot, .group-slot {
  transition: background-color var(--bk-dur-fast) var(--bk-ease), border-color var(--bk-dur-fast) var(--bk-ease),
    color var(--bk-dur-fast) var(--bk-ease), box-shadow var(--bk-dur-fast) var(--bk-ease);
}
.slot:focus-visible, .group-slot:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.slot.chosen {
  background: var(--brand); border-color: var(--brand-edge); color: var(--on-brand);
  box-shadow: 0 2px 10px var(--brand-ring);
}
/* a taken time: greyed, with the word "Full" under it (no strike-through) */
.slot.full {
  border-style: solid; border-color: var(--bk-border-soft); color: var(--bk-muted); cursor: default;
  background: var(--bk-surface-2); font-weight: var(--bk-fw-medium);
}
.slot.full:hover { background: var(--bk-surface-2); border-color: var(--bk-border-soft); }
.slot.full .left { opacity: 1; }
/* "Morning" / "Afternoon" over a long list of times */
.slot-part {
  grid-column: 1 / -1; margin: 6px 0 0; font-family: var(--bk-font);
  font-size: var(--bk-fs-xs); font-weight: var(--bk-fw-bold); line-height: 1.3; color: var(--text-mid);
}
.slot-part:first-child { margin-top: 0; }
.slot .left { display: block; font-size: var(--bk-fs-2xs); font-weight: var(--bk-fw-medium); opacity: .8; margin-top: 3px; text-decoration: none; }
.group-slot {
  position: relative; display: block; width: 100%; padding: 18px 16px; text-align: center;
  border: 1px solid var(--bk-border-strong); border-radius: var(--bk-radius-lg);
  color: var(--brand-ink); cursor: pointer; background: var(--bk-surface);
}
.group-slot:hover { border-color: var(--brand-edge); background: var(--brand-light); }
.group-slot:active { transform: scale(.99); }
.group-slot .big { display: block; font-size: var(--bk-fs-lg); font-weight: var(--bk-fw-bold); }
.group-slot .sml { display: block; font-size: var(--bk-fs-sm); color: var(--text-mid); margin-top: 4px; line-height: 1.4; }
.group-slot .spots {
  display: inline-block; margin-top: 10px; padding: 2px 10px; border-radius: var(--bk-radius-pill);
  font-size: var(--bk-fs-2xs); font-weight: var(--bk-fw-bold); background: var(--brand-light); color: var(--brand-ink);
}
.group-slot .check {
  position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--on-brand); color: var(--brand-ink);
  opacity: 0; transform: scale(.6);
  transition: opacity var(--bk-dur-base) var(--bk-ease), transform var(--bk-dur-base) var(--bk-ease);
}
.group-slot .check .bk-icon { width: 14px; height: 14px; stroke-width: 3; }
.group-slot.chosen { background: var(--brand); border-color: var(--brand-edge); color: var(--on-brand); box-shadow: 0 4px 14px var(--brand-ring); }
.group-slot.chosen .sml { color: var(--on-brand); opacity: .88; }
.group-slot.chosen .spots { background: rgba(255, 255, 255, .18); color: var(--on-brand); }
.group-slot.chosen .check { opacity: 1; transform: none; }
.empty-msg {
  display: flex; gap: 8px; align-items: flex-start; color: var(--text-mid);
  font-size: var(--bk-fs-sm); padding: 14px 0; line-height: var(--bk-lh-base);
}
.empty-msg .bk-icon { margin-top: 2px; color: var(--text-light); }
.empty-msg a { color: var(--brand-ink); font-weight: var(--bk-fw-bold); }
.slot-msg {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--bk-warning-bg); border: 1px solid var(--bk-warning-border); border-radius: var(--bk-radius-md);
  padding: 11px 14px; margin: -4px 0 18px; font-size: var(--bk-fs-sm); color: var(--bk-text); line-height: var(--bk-lh-base);
  animation: bk-drop-in var(--bk-dur-base) var(--bk-ease) both;
}
.slot-msg .bk-icon { margin-top: 2px; color: var(--bk-warning-text); }

/* ---- the Continue bar (sticks to the bottom on phones) ------------------ */
.next-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--bk-border-soft);
}
.next-bar[hidden] { display: none; }
.next-bar.show { animation: bk-rise-in var(--bk-dur-base) var(--bk-ease) both; }
.next-sum { display: flex; gap: 10px; align-items: flex-start; font-size: var(--bk-fs-sm); line-height: 1.4; min-width: 0; }
.next-sum .bk-icon { margin-top: 1px; color: var(--brand-ink); }
.next-btn, .submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border: none; border-radius: var(--bk-radius-md);
  background: var(--brand); color: var(--on-brand); font-size: var(--bk-fs-base); font-weight: var(--bk-fw-bold);
  cursor: pointer; white-space: nowrap; box-shadow: 0 2px 10px var(--brand-ring);
}
.next-btn:hover, .submit:hover:not(:disabled) { background: var(--brand-strong); box-shadow: 0 4px 16px var(--brand-ring); }
.next-btn:active, .submit:active:not(:disabled) { transform: translateY(1px); }
.next-btn .bk-icon { transition: transform var(--bk-dur-fast) var(--bk-ease); }
.next-btn:hover .bk-icon { transform: translateX(2px); }
.next-btn:focus-visible, .submit:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 3px; }

/* ---- screen 3: details form --------------------------------------------- */
.form-pane { max-width: 480px; }
.form-pane h2 { margin-bottom: 4px; }
.form-lede { margin: 0 0 20px; font-size: var(--bk-fs-sm); color: var(--text-light); }
label, legend { display: block; font-size: var(--bk-fs-sm); font-weight: var(--bk-fw-bold); margin: 0 0 6px; color: var(--text); padding: 0; }
.req { color: var(--danger); }
.opt { font-weight: var(--bk-fw-regular); color: var(--text-light); }
.field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
input, textarea {
  width: 100%; min-height: 48px; padding: 11px 13px; margin: 0;
  border: 1px solid var(--bk-field-border); border-radius: var(--bk-radius-sm);
  /* 16px or more, or iPhones zoom the page in whenever a box is tapped */
  font: inherit; font-size: 16px; color: var(--text); background: var(--bk-surface);
  transition: border-color var(--bk-dur-fast) var(--bk-ease), box-shadow var(--bk-dur-fast) var(--bk-ease);
}
input:hover, textarea:hover { border-color: var(--bk-field-border-hover); }
input:focus, textarea:focus {
  outline: none; border-color: var(--brand-edge); box-shadow: 0 0 0 3px var(--brand-ring);
}
input.err, input.err:hover { border-color: var(--bk-danger); background: var(--bk-surface); }
/* the rego box is drawn as a number plate (brand.css); a problem still shows red */
input.bk-plate-input { font-size: 17px; line-height: 1.2; }
input.bk-plate-input.err { border-color: var(--bk-danger) !important; }
input.err:focus { box-shadow: 0 0 0 3px var(--bk-danger-bg); }
textarea { resize: vertical; min-height: 92px; line-height: var(--bk-lh-base); }
.hint { font-size: var(--bk-fs-xs); color: var(--text-light); margin-top: 6px; line-height: 1.4; }
.field-msg:empty { display: none; }
.field-msg {
  display: flex; gap: 6px; align-items: flex-start; margin-top: 7px;
  font-size: var(--bk-fs-sm); font-weight: var(--bk-fw-medium); color: var(--danger); line-height: 1.4;
  animation: bk-drop-in var(--bk-dur-fast) var(--bk-ease) both;
}
.field-msg .bk-icon { margin-top: 1px; }
.two-col { display: flex; gap: 12px; }
.two-col > .field { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.two-col > .field > label { flex: 1 0 auto; }   /* a label on two lines keeps both boxes level */

.addons { display: grid; gap: 8px; margin-top: 2px; }
.addon {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; margin: 0;
  padding: 10px 14px; border: 1px solid var(--bk-border); border-radius: var(--bk-radius-md);
  font-weight: var(--bk-fw-medium); font-size: var(--bk-fs-base); cursor: pointer; background: var(--bk-surface);
  transition: background-color var(--bk-dur-fast) var(--bk-ease), border-color var(--bk-dur-fast) var(--bk-ease);
}
.addon:hover { border-color: var(--bk-border-strong); background: var(--bk-surface-3); }
.addon input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; margin: 0; pointer-events: none; }
.addon .box {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  border: 1.5px solid var(--bk-field-border); background: var(--bk-surface); color: var(--on-brand);
  transition: background-color var(--bk-dur-fast) var(--bk-ease), border-color var(--bk-dur-fast) var(--bk-ease);
}
.addon .box .bk-icon { width: 14px; height: 14px; stroke-width: 3; opacity: 0; transform: scale(.6);
  transition: opacity var(--bk-dur-fast) var(--bk-ease), transform var(--bk-dur-fast) var(--bk-ease); }
.addon input:checked + .box { background: var(--brand); border-color: var(--brand-edge); }
.addon input:checked + .box .bk-icon { opacity: 1; transform: none; }
.addon:has(input:checked) { border-color: var(--brand-edge); background: var(--brand-light); }
.addon input:focus-visible + .box { outline: 2px solid var(--brand-ink); outline-offset: 2px; }

.submit-row { margin-top: 6px; }
.submit-row .submit { width: 100%; }   /* across the form column, at every width */
.submit:disabled { cursor: not-allowed; opacity: .75; }
.submit.is-busy { position: relative; color: transparent; }
.submit.is-busy::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--on-brand); border-right-color: transparent;
  animation: bk-spin 700ms linear infinite;
}
.form-status { font-size: var(--bk-fs-sm); margin-top: 12px; min-height: 20px; color: var(--text-mid); }
/* no message yet: no gap (it stays in place, empty, for screen readers) */
.form-status:empty { margin-top: 0; min-height: 0; }
.form-status .error {
  display: flex; gap: 8px; align-items: flex-start; color: var(--danger); font-weight: var(--bk-fw-medium);
  background: var(--bk-danger-bg); border: 1px solid var(--bk-danger-border); border-radius: var(--bk-radius-md);
  padding: 10px 12px; animation: bk-drop-in var(--bk-dur-base) var(--bk-ease) both;
}
.form-status .error .bk-icon { margin-top: 1px; }
.form-status .working { animation: bk-fade-in var(--bk-dur-base) var(--bk-ease) both; }
.terms { font-size: var(--bk-fs-xs); color: var(--text-light); margin-top: 16px; line-height: var(--bk-lh-base); }

/* ---- screen 4: confirmed ------------------------------------------------ */
.done { padding: 44px 24px 44px; text-align: center; max-width: 520px; margin: 0 auto; }
.done .tick { position: relative; width: 76px; height: 76px; margin: 8px auto 22px; }
.done .tick::before {   /* a soft halo in the workshop's colour */
  content: ""; position: absolute; inset: -10px; border-radius: 50%; background: var(--brand-light);
  animation: bk-pop-in var(--bk-dur-slow) var(--bk-ease) 80ms both;
}
.done .bk-tick { position: relative; width: 76px; height: 76px; }
.done .bk-tick-circle { fill: var(--brand); }
.done .bk-tick-path {
  stroke: var(--on-brand); stroke-width: 3.5;
  stroke-dasharray: 33; stroke-dashoffset: 33; --bk-tick-len: 33;
}
/* everything under the tick arrives just after it */
.done > :not(.tick) { animation: bk-rise-in var(--bk-dur-slow) var(--bk-ease) both; }
.done > h2 { animation-delay: 120ms; }
.done > .sub { animation-delay: 150ms; }
.done > .done-card { animation-delay: 180ms; }
.done > :nth-child(n+5) { animation-delay: 200ms; }
.done h2 { font-size: var(--bk-fs-xl); margin: 0 0 8px; letter-spacing: var(--bk-tracking-tight); line-height: var(--bk-lh-tight); }
.done .sub { color: var(--text-mid); font-size: var(--bk-fs-base); margin: 0 auto 24px; max-width: 420px; overflow-wrap: anywhere; }
.done .sub b { color: var(--text); }
/* The booking as a docket (brand.css .bk-docket): what's booked on top, a
   tear line, and the stub with the reference to keep (and the car's plate).
   The notches show the white card behind it. */
.done, .mg { --bk-docket-notch: var(--bk-surface); }
/* With the service colour down the left edge, the left notch would sit
   outside the stripe and look stuck on: only the right one stays */
.bk-docket--edge .bk-docket-tear::before { display: none; }
.dk-row .when { display: block; font-weight: var(--bk-fw-regular); }
.bk-docket-ref { font-size: 22px; line-height: 1.2; user-select: all; overflow-wrap: anywhere; }
/* The stub: "Booking reference" and "Car" on one line, and the reference
   (with Copy) and the plate centred on one line under them */
.done .bk-docket-stub, .mg .bk-docket-stub { align-items: flex-start; }
.ref-line { min-height: 40px; }
.dk-car { display: flex; flex-direction: column; align-items: flex-end; }
.dk-car .bk-plate { margin-top: 3px; }
.done-note {
  display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; text-align: left;
  background: var(--brand-light); border-radius: var(--bk-radius-md); padding: 12px 14px;
  font-size: var(--bk-fs-sm); color: var(--text); line-height: var(--bk-lh-base);
}
.done-note .bk-icon { color: var(--brand-ink); margin-top: 2px; }
.done-call { margin: 16px 0 0; font-size: var(--bk-fs-sm); color: var(--text-light); }
/* Under the docket everything reads down one left edge (only the tick, the
   heading and the last button are centred) */
.done .done-policy, .done .done-call, .done .done-manage { text-align: left; }
.done .done-policy:has(.done-call-in) { font-size: var(--bk-fs-sm); }   /* it carries the phone number too */
/* a phone number never breaks across two lines */
a[href^="tel:"] { white-space: nowrap; }
.again {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  margin-top: 22px; padding: 0 22px; border-radius: var(--bk-radius-md);
  background: var(--bk-surface); border: 1px solid var(--bk-border-strong); color: var(--brand-ink);
  font-size: var(--bk-fs-sm); font-weight: var(--bk-fw-bold); cursor: pointer;
}
.again:hover { background: var(--brand-light); border-color: var(--brand-edge); }
.again:active { transform: translateY(1px); }

/* ---- the privacy notice, the offers tick box, the staff preview ---------- */
.privacy-note {
  display: flex; gap: 8px; align-items: flex-start; margin: 18px 0 0; padding-top: 14px;
  border-top: 1px solid var(--bk-border-soft);
}
.privacy-note .bk-icon { flex: 0 0 auto; width: 14px; height: 14px; margin-top: 2px; color: var(--text-light); }
.privacy-note a { color: var(--brand-ink); text-underline-offset: 2px; }
.terms-call { display: block; margin-top: 4px; }
.optin-set { margin-top: -4px; }
.optin { font-size: var(--bk-fs-sm); }
.optin .opt { font-size: var(--bk-fs-xs); }
.preview-note {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 6px; padding: 13px 15px;
  border-radius: var(--bk-radius-md); background: var(--bk-warning-bg); border: 1px solid var(--bk-warning-border);
  color: var(--bk-text); font-size: var(--bk-fs-sm); font-weight: var(--bk-fw-medium); line-height: var(--bk-lh-base);
}
.preview-note .bk-icon { flex: 0 0 auto; margin-top: 2px; color: var(--bk-warning-text); }

/* the band above the card: "Preview - only you can see this" / "Example booking page" */
.bf-ribbon {
  display: flex; gap: 9px; align-items: flex-start; max-width: 1040px; margin: 0 auto 12px;
  padding: 10px 16px; border-radius: var(--bk-radius-md); font-size: var(--bk-fs-sm); line-height: var(--bk-lh-base);
  color: var(--bk-text); animation: bk-drop-in var(--bk-dur-base) var(--bk-ease) both;
}
.bf-ribbon .bk-icon { flex: 0 0 auto; margin-top: 2px; }
.bf-ribbon--preview { background: var(--bk-warning-bg); border: 1px solid var(--bk-warning-border); }
.bf-ribbon--preview .bk-icon { color: var(--bk-warning-text); }
.bf-ribbon--demo { background: var(--bk-info-bg); border: 1px solid var(--bk-info-border); }
.bf-ribbon--demo .bk-icon { color: var(--bk-info-text); }

/* ---- Powered by Bookanic · Privacy -------------------------------------- */
.bf-foot { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 2px; padding: 6px 0 14px; }
.bf-foot .bk-powered { width: max-content; margin: 0; padding: 10px 10px; min-height: 36px; border-radius: var(--bk-radius-pill); }
.bf-foot .bk-powered:hover b { color: var(--bk-text); }
.bf-foot .bk-powered:hover { background: var(--bk-surface-2); }
.bf-foot-dot { color: var(--bk-muted); font-size: var(--bk-fs-xs); }
.bf-foot-privacy {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 10px; border-radius: var(--bk-radius-pill);
  font-size: var(--bk-fs-xs); font-weight: var(--bk-fw-medium); color: var(--bk-muted); text-decoration: none;
}
.bf-foot-privacy:hover { color: var(--bk-text); background: var(--bk-surface-2); }
/* Inside a workshop's website the page behind is theirs (often dark): the
   footer sits on its own solid pill so it stays readable on any background */
html.bf-embedded .bf-foot {
  width: max-content; max-width: 100%; box-sizing: border-box; margin: 8px auto 6px; padding: 0 4px;
  background: var(--bk-surface); border: 1px solid var(--bk-border); border-radius: var(--bk-radius-pill);
}

/* ---- the summary pane: extra lines -------------------------------------- */
.meta-row .lbl {
  display: block; font-size: var(--bk-fs-2xs); font-weight: var(--bk-fw-bold); letter-spacing: var(--bk-tracking-caps);
  text-transform: uppercase; color: var(--text-light);
}
.meta-row.now { margin-bottom: 14px; }
.meta-row.now b { display: block; color: var(--text); }
.meta-row.now .when { display: block; }
.meta-row.visit .bk-icon { width: 16px; height: 16px; color: var(--brand-ink); }

/* ---- "Will you wait, or leave the car?" --------------------------------- */
.visit-set { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.visit-set legend { margin-bottom: 10px; }
.visit-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.visit-card {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 66px; margin: 0;
  padding: 12px 34px 12px 12px; border: 1px solid var(--bk-border-strong); border-radius: var(--bk-radius-lg);
  background: var(--bk-surface); cursor: pointer; font-weight: var(--bk-fw-regular);
  transition: background-color var(--bk-dur-fast) var(--bk-ease), border-color var(--bk-dur-fast) var(--bk-ease), box-shadow var(--bk-dur-fast) var(--bk-ease);
}
.visit-card input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; margin: 0; pointer-events: none; }
.visit-card:hover { border-color: var(--brand-edge); background: var(--bk-surface-3); }
.visit-art {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bk-surface-2); color: var(--text-mid);
  transition: background-color var(--bk-dur-fast) var(--bk-ease), color var(--bk-dur-fast) var(--bk-ease);
}
.visit-art .bk-icon { width: 20px; height: 20px; }
.visit-txt { display: flex; flex-direction: column; min-width: 0; }
.visit-title { font-size: var(--bk-fs-base); font-weight: var(--bk-fw-bold); color: var(--text); line-height: 1.3; }
.visit-sub { font-size: var(--bk-fs-xs); color: var(--text-light); line-height: 1.35; margin-top: 2px; }
.visit-check {
  position: absolute; top: 9px; right: 9px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand); color: var(--on-brand);
  opacity: 0; transform: scale(.6);
  transition: opacity var(--bk-dur-base) var(--bk-ease), transform var(--bk-dur-base) var(--bk-ease);
}
.visit-check .bk-icon { width: 12px; height: 12px; stroke-width: 3; }
.visit-card:has(input:checked) { border-color: var(--brand-edge); background: var(--brand-light); box-shadow: inset 0 0 0 1px var(--brand-edge); }
.visit-card:has(input:checked) .visit-art { background: var(--brand); color: var(--on-brand); }
.visit-card:has(input:checked) .visit-check { opacity: 1; transform: none; }
.visit-card:has(input:focus-visible) { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.visit-set.err .visit-card { border-color: var(--bk-danger); }

/* ---- phones: the next two weeks as a row of days ------------------------- */
.strip-box { display: none; }
.strip-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; margin-bottom: 8px; }
.strip-title { font-size: var(--bk-fs-md); font-weight: var(--bk-fw-bold); }
.strip-month { flex: 0 0 auto; }
/* the .bk-daystrip values (brand.css), with this page's 18px side padding */
.strip {
  display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 18px; scrollbar-width: none;
  margin: 0 -18px; padding: 3px 18px 6px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%);
}
.strip::-webkit-scrollbar { display: none; }
.dpill {
  flex: 0 0 56px; width: 56px; min-height: 64px; padding: 6px 2px 5px; margin: 0; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border: 1px solid var(--bk-border-strong); border-radius: var(--bk-radius-md); background: var(--bk-surface);
  color: var(--text); cursor: pointer; text-align: center; font-variant-numeric: tabular-nums;
  transition: background-color var(--bk-dur-fast) var(--bk-ease), border-color var(--bk-dur-fast) var(--bk-ease);
}
.dp-dow { font-size: var(--bk-fs-2xs); font-weight: var(--bk-fw-bold); letter-spacing: var(--bk-tracking-caps); text-transform: uppercase; color: var(--text-light); }
.dp-num { font-size: var(--bk-fs-lg); font-weight: var(--bk-fw-medium); line-height: 1.15; font-variant-numeric: tabular-nums; }
.dp-word { font-size: 10.5px; font-weight: var(--bk-fw-bold); line-height: 1.3; white-space: nowrap; color: var(--text-mid); }
/* Days you can book look like the time buttons (white, brand edge); full,
   closed and nothing-left days are greyed and dashed */
.dpill.is-open, .dpill.is-last { background: var(--bk-surface); border-color: var(--brand-edge); }
.dpill.is-open:hover, .dpill.is-last:hover { background: var(--brand-light); }
.dpill.is-open .dp-num, .dpill.is-last .dp-num { color: var(--brand-ink); }
.dpill.is-last .dp-word { color: var(--brand-ink); }
.dpill.is-full, .dpill.is-closed { background: var(--bk-surface-3); border-style: dashed; border-color: var(--bk-border-strong); }
.dpill.is-full .dp-num, .dpill.is-closed .dp-num { color: var(--bk-muted); }
/* nothing online that day: the same quiet look as full and closed (no
   fading, so the words still read) */
.dpill.is-none { border-style: dashed; border-color: var(--bk-border); background: var(--bk-surface-3); cursor: default; }
.dpill.is-none .dp-num, .dpill.is-none .dp-word { color: var(--bk-muted); }
/* today with nothing left online: "Call us", a phone link */
.dpill.is-call { cursor: pointer; text-decoration: none; border-style: solid; border-color: var(--brand-edge); }
.dpill.is-call:hover { background: var(--brand-light); }
.dpill.is-call .dp-word { color: var(--brand-ink); }
.dpill.today:not(.selected) .dp-dow { color: var(--brand-ink); }
.dpill:active:not(.is-none) { transform: scale(.96); }
.dpill:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.dpill.selected { background: var(--brand); border: 1px solid var(--brand-edge); box-shadow: 0 2px 10px var(--brand-ring); }
.dpill.selected .dp-dow, .dpill.selected .dp-num, .dpill.selected .dp-word { color: var(--on-brand); }
/* a full or closed day picked: outlined, not filled (there's nothing to book on it) */
.dpill.selected.is-full, .dpill.selected.is-closed { background: var(--bk-surface); box-shadow: inset 0 0 0 1px var(--brand-edge); }
.dpill.selected.is-full .dp-num, .dpill.selected.is-closed .dp-num { color: var(--text); }
.dpill.selected.is-full .dp-dow, .dpill.selected.is-closed .dp-dow, .dpill.selected.is-full .dp-word, .dpill.selected.is-closed .dp-word { color: var(--text-mid); }
.dpill-skel { flex: 0 0 auto; width: 56px; height: 64px; border-radius: var(--bk-radius-md); }

/* ---- times: small tags, waiting spots, the full-day card ----------------- */
.slot .tag-earliest {
  font-size: 10.5px; font-weight: var(--bk-fw-bold); letter-spacing: var(--bk-tracking-caps); text-transform: uppercase; opacity: 1;
}
.slot.nowait {
  border-style: dashed; border-color: var(--bk-border-strong); background: var(--bk-surface-3);
  color: var(--text-mid); cursor: help;
}
.slot.nowait:hover { background: var(--bk-surface-3); border-color: var(--bk-muted); }
.slot.nowait .left { opacity: 1; color: var(--text-light); }
.slot.current {
  border: 1.5px solid var(--bk-border-strong); background: var(--bk-surface-2); color: var(--text-mid);
  cursor: default; font-weight: var(--bk-fw-medium);
}
.slot.current .left { opacity: 1; font-weight: var(--bk-fw-bold); }
.wait-hint:empty { display: none; }
.wait-hint { margin-top: 12px; }
.wait-note { animation: bk-drop-in var(--bk-dur-base) var(--bk-ease) both; }
.wait-note > .bk-icon { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; color: var(--bk-warning-text); }
.wait-note .bk-btn { margin-top: 8px; }
.nofree {
  padding: 16px; border: 1px solid var(--bk-border); border-radius: var(--bk-radius-lg); background: var(--bk-surface-3);
}
.nofree-title {
  display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px;
  font-size: var(--bk-fs-base); font-weight: var(--bk-fw-bold); color: var(--text); line-height: 1.4;
}
.nofree-title .bk-icon { flex: 0 0 auto; margin-top: 2px; color: var(--brand-ink); }
.nf-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; max-width: 100%;
  border: 1.5px solid var(--brand-edge); border-radius: var(--bk-radius-md); background: var(--bk-surface);
  color: var(--brand-ink); font-size: var(--bk-fs-sm); font-weight: var(--bk-fw-bold); line-height: 1.3;
  text-align: left; cursor: pointer; font-variant-numeric: tabular-nums;
  animation: bk-fade-in var(--bk-dur-base) var(--bk-ease) both;
}
.nf-btn:hover { background: var(--brand-light); }
.nf-btn:active { transform: translateY(1px); }
.nf-btn:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.nf-btn .bk-icon { flex: 0 0 auto; width: 16px; height: 16px; }
.nf-skel { display: block; width: 220px; max-width: 100%; height: 44px; border-radius: var(--bk-radius-md); }
.nofree-call, .nofree-none { margin: 10px 0 0; font-size: var(--bk-fs-sm); color: var(--text-mid); line-height: var(--bk-lh-base); }
.nofree-none { margin-top: 0; }

/* ---- tyre questions ----------------------------------------------------- */
.tyre-set {
  margin: 2px 0 18px; padding: 16px 16px 4px; border: 1px solid var(--bk-border); border-radius: var(--bk-radius-lg);
  background: var(--bk-surface-3);
}
.tyre-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-weight: var(--bk-fw-bold); color: var(--text); }
.tyre-head .bk-icon { width: 18px; height: 18px; color: var(--brand-ink); }
.ts-field > .lbl { display: block; font-size: var(--bk-fs-sm); font-weight: var(--bk-fw-bold); margin: 0 0 6px; color: var(--text); }
.ts-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
input.ts-box {
  width: 62px; padding: 11px 4px; text-align: center; font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
input.ts-w { width: 72px; }
input.ts-box:disabled { background: var(--bk-surface-2); color: var(--bk-faint); border-color: var(--bk-border); cursor: not-allowed; }
.ts-sep { font-size: var(--bk-fs-md); font-weight: var(--bk-fw-medium); color: var(--bk-muted); }
.addon.ts-unsure { margin-left: 6px; padding: 8px 14px 8px 12px; background: var(--bk-surface); border-color: var(--bk-field-border); }
.ts-hint { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: var(--bk-fs-xs); color: var(--text-light); line-height: 1.4; }
/* an outline wheel; the dashed band is where the size is printed */
.ts-art { flex: 0 0 auto; width: 32px; height: 32px; }
.ts-art-line { fill: none; stroke: var(--bk-muted); stroke-width: 1.75; stroke-linecap: round; }
.ts-art-size { fill: none; stroke: var(--brand-ink); stroke-width: 2; stroke-dasharray: 2.2 1.8; stroke-linecap: butt; }
.seg-set legend { margin-bottom: 6px; }
.seg {
  display: inline-flex; flex-wrap: wrap; max-width: 100%; border: 1px solid var(--bk-field-border);
  border-radius: var(--bk-radius-md); background: var(--bk-surface); overflow: hidden;
}
.seg-opt { position: relative; display: block; margin: 0; font-weight: var(--bk-fw-medium); }
.seg-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; margin: 0; pointer-events: none; }
.seg-opt span {
  display: flex; align-items: center; justify-content: center; min-width: 56px; min-height: 44px; padding: 0 16px;
  border-left: 1px solid var(--bk-border); font-size: var(--bk-fs-base); cursor: pointer; font-variant-numeric: tabular-nums;
  transition: background-color var(--bk-dur-fast) var(--bk-ease), color var(--bk-dur-fast) var(--bk-ease);
}
.seg-opt:first-child span { border-left: 0; }
.seg-opt:hover span { background: var(--brand-light); }
.seg-opt input:checked + span { background: var(--brand); color: var(--on-brand); font-weight: var(--bk-fw-bold); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--brand-ink); outline-offset: -4px; }
.seg-set.err .seg { border-color: var(--bk-danger); }
.addon.radio .box { border-radius: 50%; }
.addon.radio input:checked + .box { background: var(--bk-surface); border-color: var(--brand-edge); box-shadow: inset 0 0 0 5px var(--brand); }
.tyre-note { margin-top: 12px; }
.tyre-note[hidden] { display: none; }

/* ---- "You already have a booking for this car" ------------------------- */
.dup-box:empty { display: none; }
.dup { margin: 4px 0 6px; animation: bk-drop-in var(--bk-dur-base) var(--bk-ease) both; }
.dup > .bk-icon { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; color: var(--bk-warning-text); }
.bk-notice--info.dup > .bk-icon { color: var(--bk-info-text); }
.dup-body { flex: 1; min-width: 0; }
.dup-q { margin: 0 0 12px; font-size: var(--bk-fs-base); font-weight: var(--bk-fw-medium); color: var(--text); line-height: var(--bk-lh-base); }
.dup-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dup-actions .submit { min-width: 0; }
.dup-actions .again { margin-top: 0; min-height: 48px; }
.form-status .error .bk-btn { margin-left: 6px; vertical-align: middle; }

/* ---- after booking: reference, what next, calendar / directions / call -- */
.ref-line { display: inline-flex; align-items: center; justify-content: flex-start; gap: 10px; flex-wrap: wrap; }
/* the Copy button is brand.css .bk-copy (the workshop's colour here) */
.copy-btn { min-height: 34px; letter-spacing: 0; font-family: var(--bk-font); }
.copy-btn:hover { border-color: var(--brand-edge); }
.next-steps { margin: 24px 0 0; text-align: left; }
.next-steps h3 { margin: 0 0 12px; font-size: var(--bk-fs-base); font-weight: var(--bk-fw-bold); }
.next-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.next-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--bk-fs-sm); color: var(--text-mid); line-height: var(--bk-lh-base); }
.ns-n { margin-top: -1px; }   /* the hex nut number (.bk-hexstep) */
/* Calendar, Directions and Call: always one row of equal buttons */
/* (each at least as wide as its words, so "Add to calendar" is never cramped) */
.act-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(max-content, 1fr); gap: 10px; margin-top: 22px; }
.act-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 46px; padding: 0 8px; min-width: 0;
  border: 1px solid var(--bk-border-strong); border-radius: var(--bk-radius-md); background: var(--bk-surface);
  color: var(--brand-ink); font-size: var(--bk-fs-sm); font-weight: var(--bk-fw-bold); text-decoration: none;
  white-space: nowrap; cursor: pointer;
}
.act-btn:hover { background: var(--brand-light); border-color: var(--brand-edge); color: var(--brand-ink); }
.act-btn:active { transform: translateY(1px); }
.act-btn:focus-visible, .cal-menu a:focus-visible, .copy-btn:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.act-btn .bk-icon:last-child:not(:first-child) { transition: transform var(--bk-dur-fast) var(--bk-ease); }
.act-btn.is-open { background: var(--brand-light); border-color: var(--brand-edge); }
.act-btn.is-open .bk-icon:last-child:not(:first-child) { transform: rotate(180deg); }
.cal-menu {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; padding: 8px;
  border: 1px solid var(--bk-border); border-radius: var(--bk-radius-md); background: var(--bk-surface-3);
  animation: bk-drop-in var(--bk-dur-fast) var(--bk-ease) both;
}
.cal-menu[hidden] { display: none; }
.cal-menu a {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 12px;
  border: 1px solid var(--bk-border); border-radius: var(--bk-radius-sm); background: var(--bk-surface);
  color: var(--text); font-size: var(--bk-fs-sm); text-decoration: none;
}
.cal-menu a:hover { border-color: var(--brand-edge); color: var(--brand-ink); }
.cal-menu .bk-icon { color: var(--brand-ink); }
.done-policy { margin: 18px 0 0; font-size: var(--bk-fs-xs); color: var(--text-light); line-height: var(--bk-lh-base); }
.done-manage { margin: 14px 0 0; font-size: var(--bk-fs-sm); }
.done-manage a { text-underline-offset: 2px; }
.again--ghost { border-color: transparent; background: transparent; }
.again--ghost:hover { border-color: transparent; }

/* ---- the customer's own link: their booking ----------------------------- */
.mg { max-width: 560px; margin: 0 auto; padding: 34px 24px 40px; }
.mg-title {
  margin: 0 0 18px; font-size: var(--bk-fs-xl); font-weight: var(--bk-fw-bold);
  letter-spacing: var(--bk-tracking-tight); line-height: var(--bk-lh-tight);
}
.mg-sub { margin: -8px 0 18px; font-size: var(--bk-fs-base); color: var(--text-mid); }
.mg-flash { margin: 0 0 18px; animation: bk-drop-in var(--bk-dur-base) var(--bk-ease) both; }
.mg-flash > .bk-icon { flex: 0 0 auto; margin-top: 3px; }
.bk-notice--success.mg-flash > .bk-icon { color: var(--bk-success-text); }
.mg-skel { height: 196px; margin-top: 4px; border-radius: var(--bk-radius-lg); }
/* their booking: the same docket as the done screen, with the service's
   colour down the left edge (.bk-docket--edge) */
.dk-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.dk-head { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dk-svc { font-size: var(--bk-fs-lg); font-weight: var(--bk-fw-bold); line-height: var(--bk-lh-snug); color: var(--text); }
.dk-shop { font-size: var(--bk-fs-sm); font-weight: var(--bk-fw-medium); color: var(--text-light); line-height: 1.4; }
.dk-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; }
.dk-pill .bk-icon { width: 13px; height: 13px; stroke-width: 2.4; }
.dk-row {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 10px;
  font-size: var(--bk-fs-sm); color: var(--text-mid); line-height: 1.45;
}
.dk-row .bk-icon { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; color: var(--brand-ink); }
.dk-row b { display: block; color: var(--text); font-size: var(--bk-fs-base); }
.dk-row b.dk-inline { display: inline; font-size: inherit; }   /* "Tyres: 2 × 205/55R16" */
.dk-row .when::first-letter { text-transform: uppercase; }
.docket.is-off .dk-row b, .docket.is-off .dk-svc { color: var(--text-mid); }
.mg-swap .lbl {
  display: block; margin-bottom: 4px; font-size: var(--bk-fs-2xs); font-weight: var(--bk-fw-bold);
  letter-spacing: var(--bk-tracking-caps); text-transform: uppercase; color: var(--text-light);
}
.mg-actions { display: grid; gap: 10px; margin-top: 20px; }
.mg-btn {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 50px; padding: 0 20px; border: 1.5px solid var(--brand-edge); border-radius: var(--bk-radius-md);
  background: var(--bk-surface); color: var(--brand-ink); font-size: var(--bk-fs-base); font-weight: var(--bk-fw-bold); cursor: pointer;
}
.mg-btn:hover { background: var(--brand-light); }
.mg-btn:active { transform: translateY(1px); }
.mg-btn:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 3px; }
.mg-btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 2px 10px var(--brand-ring); }
.mg-btn--primary:hover { background: var(--brand-strong); }
.mg-btn--cancel { min-height: 46px; border-color: transparent; background: transparent; color: var(--bk-danger-text); }
.mg-btn--cancel:hover { background: var(--bk-danger-bg); }
.mg-btn--danger { background: var(--bk-danger-text); border-color: var(--bk-danger-text); color: var(--bk-surface); }
.mg-btn--danger:hover { background: var(--bk-danger-text); filter: brightness(.92); }
.mg-btn:disabled { cursor: progress; }
.mg-btn.is-busy { color: transparent; }
.mg-btn.is-busy::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--brand-ink); border-right-color: transparent; animation: bk-spin 700ms linear infinite;
}
.mg-btn--primary.is-busy::after { border-color: var(--on-brand); border-right-color: transparent; }
.mg-btn--danger.is-busy::after { border-color: var(--bk-surface); border-right-color: transparent; }
.mg-lock { margin-top: 16px; }
.mg-lock > .bk-icon { flex: 0 0 auto; margin-top: 3px; }
.bk-notice--info.mg-lock > .bk-icon { color: var(--bk-info-text); }
.mg-locked .mg-lock { margin-top: 20px; }
.next-btn.mg-call, .next-btn.mg-again { display: flex; width: 100%; margin-top: 12px; text-decoration: none; color: var(--on-brand); }
.next-btn.mg-again { margin-top: 16px; }
.mg-ask {
  padding: 16px; border: 1px solid var(--bk-danger-border); border-radius: var(--bk-radius-lg); background: var(--bk-danger-bg);
  animation: bk-drop-in var(--bk-dur-base) var(--bk-ease) both;
}
.mg-q { margin: 0 0 14px; font-size: var(--bk-fs-md); font-weight: var(--bk-fw-bold); color: var(--text); line-height: var(--bk-lh-snug); }
.mg-ask-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mg-ask .form-status { margin-top: 10px; }
.mg-swap { border: 1px solid var(--bk-border); border-radius: var(--bk-radius-lg); overflow: hidden; background: var(--bk-surface); }
.mg-swap-row { display: flex; gap: 14px; align-items: baseline; padding: 12px 16px; font-size: var(--bk-fs-base); color: var(--text); }
.mg-swap-row .lbl { flex: 0 0 40px; margin: 0; }
.mg-swap-row.is-old { color: var(--text-mid); }
.mg-swap-row.is-old span:last-child { text-decoration: line-through; text-decoration-color: var(--bk-muted); }
.mg-swap-row.is-new { background: var(--brand-light); border-top: 1px solid var(--bk-border-soft); }
.mg-confirm-page .back { margin-bottom: 8px; }
.mg .next-steps, .done .next-steps { margin-top: 26px; }
.mg .done-call { margin-top: 18px; font-size: var(--bk-fs-sm); color: var(--text-light); }

/* ---- phones and narrow frames ------------------------------------------- */
/* The calendar and the times sit side by side while there's room for both:
   above 1000px (next to the summary pane) and 640-780px (the summary is on
   top, so the step has the full width). Otherwise the times go under a
   calendar of a sensible size, not one stretched across a tablet. */
@media (min-width: 781px) and (max-width: 999px), (max-width: 639px) {
  .cal-wrap { display: block; }
  .cal { max-width: 420px; }
  .times { flex: none; max-height: none; overflow: visible; margin: 22px 0 0; padding: 0; }
  .times-hint { min-height: 0; margin-top: 0; flex-direction: row; justify-content: flex-start; text-align: left; padding: 14px 16px; }
  .slot-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}
@media (min-width: 640px) and (max-width: 780px) {
  .cal-wrap { gap: 24px; }
  .times { flex-basis: 232px; }
}
@media (max-width: 780px) {
  html, body { background: var(--bk-surface); }
  body { padding: 0; }
  html.bf-embedded body { padding: 0; }
  .bf-shell { border: none; box-shadow: inset 0 4px 0 var(--brand-edge); border-radius: 0; }   /* no card: just the band */
  /* Inside a workshop's website it keeps its card edge, so it doesn't turn
     into a flat white slab on their page (only the stand-alone page goes
     edge to edge) */
  html.bf-embedded .bf-shell { border: 1px solid var(--bk-border); border-radius: var(--bk-radius-lg); }
  .bf-ribbon { margin: 0; border-radius: 0; border-width: 0 0 1px; padding: 10px 18px; }
  .bf-head { padding: 18px 18px 14px; flex-direction: column; align-items: stretch; }
  .bf-shop img { max-height: 36px; }
  .bf-steps { flex: none; align-items: flex-start; }
  .bf-step { flex-direction: column; gap: 5px; font-size: var(--bk-fs-2xs); text-align: center; }
  .bf-step-dot { width: 26px; height: 23px; font-size: 11.5px; }
  .bf-line { margin: 11px 4px 0; min-width: 10px; }
  .picker { padding: 20px 18px 24px; }
  .picker h1 { font-size: 22px; }
  .panes { display: block; }
  .pane-left { flex: none; border-right: none; border-bottom: 1px solid var(--bk-border-soft); padding: 10px 18px 16px; }
  .back { margin: 0 0 6px -8px; }
  .evt-title { margin-bottom: 12px; }
  .blurb { margin-top: 12px; padding-top: 12px; }
  .is-form .blurb { display: none; }   /* they've read it already; get them to the form */
  .pane-right { padding: 20px 18px 28px; }
  .pane-right h2 { font-size: 22px; margin-bottom: 14px; }
  .cal-head { margin-bottom: 6px; }
  .day { max-width: 44px; }
  .done { padding: 32px 18px 32px; }
  .submit { width: 100%; }
  /* The Continue bar stays in reach at the bottom of a phone screen */
  .next-bar {
    position: sticky; bottom: 0; z-index: var(--bk-z-sticky);
    margin: 20px -18px -28px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--bk-surface); border-top: 1px solid var(--bk-border);
    box-shadow: 0 -6px 18px rgba(19, 33, 43, .08);
  }
  .next-btn { padding: 0 22px; }
  html { scroll-padding-bottom: 96px; }
  .bf-foot { border-top: 1px solid var(--bk-border-soft); padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
}
/* Phones: the first screen of "Date & time" shows the first row of times.
   The summary is the service name and one line ("1 hr · $51"); the
   description and address are left out (the address is on the confirmation),
   and the header keeps the name and Call but drops the credential line. */
@media (max-width: 640px) {
  .bf-head:is([data-step="2"], [data-step="3"], [data-step="4"]) .bf-cred { display: none; }
  .bf-head:is([data-step="2"], [data-step="3"]) { padding-bottom: 12px; }
  .panes .blurb, .panes .meta-addr { display: none; }
  .pane-left { padding-bottom: 14px; }
  .evt-title { margin-bottom: 6px; }
  .pane-left .meta-line { display: flex; margin-bottom: 0; }
  .pane-left .meta-line ~ .meta-dur, .pane-left .meta-line ~ .meta-price { display: none; }
  .pane-right { padding-top: 18px; }
  .pane-right h2 { margin-bottom: 12px; }
}
/* Phones: the day strip above the times; the month grid behind "Show month" */
@media (max-width: 599px) {
  .cal-wrap.has-strip .strip-box { display: block; margin-bottom: 4px; }
  .cal-wrap.has-strip:not(.month-open) .cal { display: none; }
  .cal-wrap.has-strip.month-open .cal { margin-top: 10px; animation: bk-drop-in var(--bk-dur-base) var(--bk-ease) both; }
  .cal-wrap.has-strip.month-open .strip { display: none; }   /* one date picker at a time; "Hide month" stays */
  .cal-wrap.has-strip .times { margin-top: 16px; }
  .cal-wrap.has-strip .times-hint { display: none; }
  .cal-wrap.month-open .strip-title { visibility: hidden; }   /* the month grid has its own heading */
  /* with the strip hidden, "Hide month" sits on a slim row of its own: no empty band above the month */
  .cal-wrap.has-strip.month-open .strip-title { display: none; }
  .cal-wrap.has-strip.month-open .strip-head { justify-content: flex-end; margin-bottom: 0; }
  .cal-wrap.has-strip.month-open .cal { margin-top: 0; }
  /* The price goes under the service name, not squeezed beside it */
  .svc-top { flex-direction: column; align-items: flex-start; gap: 2px; }
  .svc-price { white-space: normal; text-align: left; }
  /* "Not sure" is a plain tick under the size boxes, not another big box */
  .addon.ts-unsure { flex-basis: 100%; margin: 4px 0 0; padding: 4px 0; background: none; border: 0; box-shadow: none; }
  .addon.ts-unsure:hover, .addon.ts-unsure:has(input:checked) { background: none; }
  .mg { padding: 24px 18px 30px; }
  .mg-title { font-size: 22px; }
  .bk-docket-top { padding: 16px 16px 14px; }
  .bk-docket-stub { padding: 12px 16px 14px; }
  .svc { padding: 16px 14px 16px 18px; }
}
@media (max-width: 440px) {
  .two-col { display: block; }   /* one under the other, so neither label wraps */
  input.bk-plate-input { max-width: 240px; }   /* plate-sized, not a full-width bar */
  .svc-skel { height: 134px; }
  .visit-card { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 30px 12px 12px; }
  .visit-art { width: 34px; height: 34px; }
  .seg { display: flex; }
  .seg-opt { flex: 1 1 auto; }
  .seg-opt span { min-width: 0; padding: 0 12px; }
  .dup-actions > * { flex: 1 1 100%; }
  /* Three equal buttons still fit: icon on top, the words under it */
  .act-row { grid-auto-columns: minmax(0, 1fr); }
  .act-btn { flex-direction: column; gap: 3px; min-height: 58px; padding: 8px 4px; font-size: 13px; line-height: 1.2; white-space: normal; text-align: center; }
  .act-btn .bk-icon:last-child:not(:first-child) { display: none; }
}
@media (max-width: 360px) {
  .bf-step-label { font-size: 10.5px; }
  .next-sum .bk-icon { display: none; }
}
/* Very narrow: Calendar and Directions side by side, Call across under them */
@media (max-width: 359px) {
  .act-row { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .act-row > :nth-child(3), .act-row > :only-child { grid-column: 1 / -1; flex-direction: row; min-height: 46px; }
}
/* Touch screens: the small Copy button is still easy to hit */
@media (pointer: coarse) {
  .copy-btn { min-height: 40px; }
  /* the header "Call" link: a 44px tap area, the layout stays the same */
  .bf-head-call { min-height: 44px; margin: -14px 0; padding: 0 2px; }
}

/* Reduced motion: brand.css already makes every animation instant; this
   just makes sure the tick is drawn and nothing waits */
@media (prefers-reduced-motion: reduce) {
  .done .bk-tick-path { stroke-dashoffset: 0; }
  .svc:hover, .slot:active, .day.available:active { transform: none; }
}
