/* /book and the SMS cancel page. The first block is the brand: the same tokens, same values, as
   site.css (scripts/test_brand_parity.py fails if they drift), so every salon's website, booking
   page and cancel page come out as one design. booking_theme.js then sets --accent, --accent-bg
   and the --wm-* shades from the tenant's own colors; the values here are fallbacks. */
:root {
  --ink: #0f172a;
  --paper: #fcfaf7;
  --line: #ebe4da;
  --muted: #6f655c;
  --accent: #0d9488;
  --wm-dark: #a1821f;
  --wm-light: #e4d193;
  --wm-hi: #efe3be;
  --wm-line: rgba(201,162,39,.65);
  --wm-dot: rgba(201,162,39,.07);
  /* Darkened so white text clears 4.5:1 on any mid-tone accent: every filled button, selected
     day/time and step circle uses it. The raw accent measured 3.7:1 under white. */
  --accent-ink: color-mix(in srgb, var(--accent) 80%, #000);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
  /* /book's own names, drawn from the brand ones */
  --accent-bg: rgba(13,148,136,.08);
  --bg: var(--paper);
  --surface: #ffffff;
  --header: var(--ink);
  --text: var(--ink);
  --border: var(--line);
  --r: 14px;
  --shadow: 0 1px 2px rgba(70,50,30,.05), 0 6px 18px rgba(70,50,30,.06);   /* warm, like the paper */
}
@supports not (color: color-mix(in srgb, red, red)) {
  :root { --accent-ink: var(--accent); }
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Buttons and fields don't inherit the page font by default: the time slots were rendering in Arial. */
button, input, select, textarea { font: inherit; }
html { scroll-behavior: smooth; }
/* Jost loads 400 and 500 only; font-synthesis: none so nothing heavier is ever faked. Emphasis is 500. */
body {
  font-family: var(--sans);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;   /* avoids the iOS Safari address-bar height jump */
  -webkit-font-smoothing: antialiased;
}

/* ── Header ─────────────────────────────────────────── */
.header {
  background: var(--header);
  background-image: radial-gradient(var(--wm-dot) 1px, transparent 1px);
  background-size: 22px 22px;
  padding: 1.75rem 20px 1rem;
  text-align: center;
}

/* Wordmark */
.wordmark { margin-bottom: 0.15rem; }
.wm-name {
  font-family: var(--serif);
  font-size: 3.4rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  background: linear-gradient(160deg, var(--wm-dark) 0%, var(--wm-light) 38%, var(--wm-hi) 55%, var(--wm-dark) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.wm-sub {   /* = the site hero's: 9.6px bold slate was too small and too cold */
  font: 500 0.75rem/1 var(--sans);
  letter-spacing: 0.34em;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  display: block;
  margin-top: 0.5rem;
}
.wm-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0.65rem auto;
  max-width: 200px;
  color: var(--wm-dark);
  font-size: 0.55rem;
  opacity: 0.6;
}
.wm-rule::before, .wm-rule::after {
  content: '';
  flex: 1;
  height: 1px;
}
.wm-rule::before { background: linear-gradient(90deg, transparent, var(--wm-line)); }
.wm-rule::after  { background: linear-gradient(90deg, var(--wm-line), transparent); }

.header-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: #64748b;
}
/* Was #64748b: 3.7:1 on the navy header, too faint for the number people call when stuck. */
.header-contact a { color: #cbd5e1; text-decoration: none; transition: color .15s; }
.header-contact a:hover { color: #fff; }
.hc-sep { opacity: 0.35; color: #64748b; }

/* ── Icons: line drawings from the sprite in booking.html (the header's are inline) ── */
.sprite { display: none; }
.ic {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
/* 44px tall, the site's phone target: each sits alone on its line, the number people tap when stuck. */
.header-contact a, .header-contact span:not(.hc-sep) { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; }
.header-contact .ic { width: 14px; height: 14px; opacity: 0.8; }

/* ── Step bar ────────────────────────────────────────── */
.step-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.25rem 0.65rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}
.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  flex-shrink: 0;
}
.step-label {   /* the site's tracked-capital label, at 11px+ */
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: normal;
  text-align: center;
  line-height: 1.2;
  max-width: 64px;
  transition: color .2s;
}
.step-connector {
  height: 2px;
  flex: 1;
  min-width: 8px;
  background: var(--border);
  margin: 0 0.15rem;
  margin-top: 13px;
  transition: background .2s;
}
.step-item.active .step-circle  { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.step-item.active .step-label   { color: var(--accent-ink); }
.step-item.done .step-circle    { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.step-item.done .step-circle::before { content: '✓'; }
.step-item.done .step-circle span    { display: none; }
.step-item.done + .step-connector   { background: var(--accent-ink); }

/* ── Page container ──────────────────────────────────── */
.page {
  max-width: 660px;
  margin: 0 auto;
  padding: 1.75rem 20px 0.5rem;   /* the site's phone gutter */
}

/* ── Section heading ─────────────────────────────────── */
/* Step titles in the site's display serif, upright, as its section titles are. */
.sec-title {
  font: 400 2rem/1.15 var(--serif);
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--text);
  margin-bottom: 1rem;
}
.sec-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: -0.4rem;
  margin-bottom: 1.1rem;
}

/* ── Card grid (services / staff) ────────────────────── */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 540px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r);
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s, transform .12s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.card:hover                 { border-color: var(--accent-ink); box-shadow: var(--shadow); }
.card:active                { transform: scale(.985); }
.card.selected              { border-color: var(--accent-ink); background: var(--accent-bg); }
/* Unselected cards once the online per-booking maximum is reached. */
.card-capped                { opacity: .45; }
.card-capped:hover          { border-color: var(--border); box-shadow: none; }
.card-capped:active         { transform: none; }
.card.selected::after {
  content: '✓';
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-ink);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-name  { font-weight: 500; font-size: 1rem; padding-right: 1.5rem; }
.card-sub   { font-size: 0.82rem; color: var(--muted); margin-top: 0.25rem; }
.card-price { font-size: 1rem; font-weight: 500; color: var(--accent-ink); margin-top: 0.6rem; font-variant-numeric: tabular-nums; }

/* Staff card variant */
.staff-row { display: flex; align-items: center; gap: 0.75rem; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent-ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 500; font-size: 1rem; flex-shrink: 0;
}
.avatar.nopref { background: var(--line); color: var(--muted); font-size: 1.3rem; }
.avatar.nopref .ic { width: 22px; height: 22px; }
.staff-name { font-weight: 500; font-size: 1rem; padding-right: 1rem; }
.staff-note { font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }
.staff-vac-note { font-size: 0.75rem; color: #b45309; margin-top: 0.2rem; font-weight: 500; }

/* ── Service search ──────────────────────────────────── */
.search-wrap {
  position: relative;
  margin-bottom: 1.25rem;
}
.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1rem;
  pointer-events: none;
  line-height: 1;
}
.search-icon .ic { display: block; width: 17px; height: 17px; }
.search-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .15s;
  -webkit-appearance: none;
}
.search-input:focus { border-color: var(--accent-ink); }
.search-input::placeholder { color: var(--muted); }

/* ── Service category accordion ──────────────────────── */
.cat-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 0.6rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  gap: 0.75rem;
}
.cat-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.cat-icon { width: 22px; height: 22px; color: var(--accent-ink); }
.cat-name { font: 400 1.4rem/1.15 var(--serif); color: var(--text); }   /* = the site's category rows */
.cat-count {
  font-size: 0.7rem; font-weight: 500; font-variant-numeric: tabular-nums;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
}
.cat-chevron {
  color: var(--muted);
  font-size: 1rem;
  transition: transform .22s ease;
  flex-shrink: 0;
}
.cat-section.open .cat-chevron { transform: rotate(180deg); }
.cat-chevron .ic { display: block; width: 18px; height: 18px; }
.cat-body {
  display: none;
  padding: 0 0.85rem 0.85rem;
  border-top: 1px solid var(--border);
}
.cat-section.open .cat-body { display: block; }
.cat-body .grid { padding-top: 0.75rem; }

/* ── Date + time layout ───────────────────────────────── */
.dt-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 520px) { .dt-wrap { grid-template-columns: 1fr; } }

/* ── Calendar ────────────────────────────────────────── */
.cal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.85rem;
}
.cal-month { font: 400 1.3rem/1 var(--serif); }
.cal-nav {
  width: 44px; height: 44px;
  border: 1px solid var(--border); border-radius: 50%; background: none;
  cursor: pointer; color: var(--muted); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s, color .12s;
  -webkit-tap-highlight-color: transparent;
}
.cal-nav:hover:not(:disabled) { background: var(--bg); color: var(--text); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 1px; }
.cal-dow {
  font-size: 0.7rem; font-weight: 500; text-transform: uppercase;
  color: var(--muted); text-align: center; padding: 0.35rem 0;
  letter-spacing: .1em;
}
.cal-day {
  aspect-ratio: 1; border-radius: 8px; border: none; background: none;
  cursor: pointer; font-size: 0.85rem; font-weight: 500; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: background .1s, color .1s, transform .1s;
  -webkit-tap-highlight-color: transparent;
  min-height: 36px;
}
.cal-day:hover:not(.off):not(.past) { background: var(--accent-bg); }
.cal-day:active:not(.off):not(.past):not(.empty) { transform: scale(.88); }
.cal-day.today  { font-weight: 500; color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--line); }
.cal-day.sel    { background: var(--accent-ink) !important; color: #fff !important; border-radius: 8px; }
.cal-day.off, .cal-day.past { color: #cdc4b8; cursor: default; }
.cal-day.empty  { cursor: default; }

/* ── Time slots ──────────────────────────────────────── */
.slots {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1rem;
  box-shadow: var(--shadow);
  min-height: 140px;
}
.slots-note {
  font-size: 0.75rem;
  color: var(--accent-ink);
  font-weight: 500;
  margin-bottom: 0.85rem;
  line-height: 1.4;
}
.slots-head {
  font-size: 0.75rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: .14em; color: var(--muted); margin-bottom: 0.75rem;
}
.slots-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.5rem; }
@media (max-width: 540px) { .slots-grid { grid-template-columns: repeat(2,1fr); } }
.slot {
  border: 1.5px solid var(--border); background: #fff; border-radius: 10px;
  padding: 0.65rem 0.4rem; font-size: 0.9rem; font-weight: 500; font-variant-numeric: tabular-nums;
  cursor: pointer; color: var(--text); text-align: center;
  transition: border-color .12s, color .12s, background-color .12s, transform .12s;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px; display: flex; align-items: center; justify-content: center;
}
.slot:hover   { border-color: var(--accent-ink); color: var(--accent-ink); }
.slot:active  { transform: scale(.96); }
.slot.sel     { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.slots-msg {
  color: var(--muted); font-size: 0.84rem;
  text-align: center; padding: 1.25rem 0; line-height: 1.5;
}

/* ── Summary bar ─────────────────────────────────────── */
.summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.sum-item { display: flex; flex-direction: column; gap: 0.2rem; }
.sum-service { grid-column: 1 / -1; }
.sum-key {
  font-size: 0.7rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: .14em; color: var(--muted);
}
.sum-val { font-size: 0.95rem; font-weight: 500; color: var(--text); }
.cancel-note { color: var(--muted); font-size: 0.85rem; line-height: 1.5; margin: 1rem 0; }
.cancel-note a { color: var(--accent-ink); }
.cancel-book { display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; }   /* a link, not a button: flex centers the label like .sched-all */

/* ── Contact form ────────────────────────────────────── */
.field { margin-bottom: 1rem; }
.field label {
  display: block; font-size: 0.84rem; font-weight: 500;
  margin-bottom: 0.4rem; color: var(--text);
}
.field input {
  width: 100%; border: 1.5px solid var(--border); border-radius: 10px;
  padding: 0.75rem 1rem; font-size: 1rem; font-family: inherit;
  color: var(--text); background: #fff; outline: none;
  transition: border-color .15s;
  -webkit-appearance: none;
}
.field input:focus { border-color: var(--accent-ink); }
.field input.err   { border-color: #b42318; }
.err-msg { color: #b42318; font-size: 0.85rem; margin-top: 1rem; }   /* #ef4444 was 3.8:1, under the 4.5 text needs */

/* ── Nav buttons ─────────────────────────────────────── */
.nav {
  display: flex; gap: 0.75rem; margin-top: 1.5rem;
  position: sticky; bottom: 0;
  background: var(--bg);
  padding: 0.75rem 0 1.25rem;
  border-top: 1px solid var(--border);
  z-index: 10;
}
/* Buttons are the site's: a pill, 48px tall, tracked capitals, the darkened accent. */
.btn-back {
  background: none; border: 1px solid var(--border); border-radius: 999px;
  min-height: 48px; padding: 0 1.2rem; font: 500 0.8rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text); cursor: pointer; flex-shrink: 0;
  transition: border-color .15s, color .15s;
}
.btn-back:hover { border-color: var(--muted); }
.btn-next {
  flex: 1; background: var(--accent-ink); border: none; border-radius: 999px;
  min-height: 48px; padding: 0 1.5rem; font: 500 0.8rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff; cursor: pointer;
  transition: background-color .2s, opacity .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.btn-next:hover:not(:disabled)   { background: color-mix(in srgb, var(--accent) 60%, #000); }
/* Two buttons share a 335px bar: tighter tracking keeps "Edit details" + "Confirm booking" and
   "Back" + "Review appointment" on one line each at 360px; on a 320px phone they wrap, cleanly. */
.nav .btn-back, .nav .btn-next { padding: 0 1rem; letter-spacing: 0.1em; line-height: 1.25; }
.btn-next:active:not(:disabled)  { transform: scale(.98); }
.btn-next:disabled               { opacity: .38; cursor: default; }

/* ── Confirmation ────────────────────────────────────── */
.confirm {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.confirm-ring {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--accent-bg); border: 2px solid var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem; font-size: 2rem;
  animation: pop .35s cubic-bezier(.34,1.56,.64,1) both;
}
.confirm-ring .ic { width: 34px; height: 34px; color: var(--accent-ink); stroke-width: 2; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confirm h2   { font: 400 2.2rem/1.1 var(--serif); letter-spacing: -0.01em; margin-bottom: .5rem; }
.confirm-sub  { color: var(--muted); font-size: 0.88rem; margin-bottom: 1.75rem; line-height: 1.5; }
.confirm-table {
  background: var(--bg); border-radius: 10px;
  padding: 0.25rem 1rem; text-align: left; margin-bottom: 1.5rem;
}
.confirm-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.65rem 0; font-size: 0.9rem;
}
.confirm-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.crow-k { color: var(--muted); }
.crow-v { font-weight: 500; }
.btn-again {
  background: var(--accent-ink); color: #fff; border: none; border-radius: 999px;
  min-height: 48px; padding: 0 1rem; font: 500 0.8rem/1.25 var(--sans); letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; width: 100%;   /* .nav's tracking: "Book Another Appointment" stays one line at 360px */
  transition: background-color .2s;
}
.btn-again:hover { background: color-mix(in srgb, var(--accent) 60%, #000); }

/* ── Service quantity controls ───────────────────────── */
.card.selected.has-qty::after { display: none; } /* suppress checkmark when qty row is showing */
.qty-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.qty-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-ink);
  background: none;
  color: var(--accent-ink);
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  transition: background .12s, color .12s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.qty-btn:hover:not(:disabled) { background: var(--accent-ink); color: #fff; }
.qty-btn:disabled, .qty-btn.qty-max { opacity: .3; cursor: default; }
.qty-val {
  font-size: 1.05rem;
  font-weight: 500;
  min-width: 1.5ch;
  text-align: center;
  color: var(--accent-ink);
}

/* ── Service multi-select summary ────────────────────── */
.svc-summary {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--accent-ink);
  text-align: center;
  padding: 0.75rem 0 0;
}

/* ── Per-service staff sections ──────────────────────── */
.staff-service-section { margin-bottom: 1.75rem; }
.staff-service-label {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 0.65rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

/* ── Generic helpers ─────────────────────────────────── */
.spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { color: var(--muted); font-size: 0.88rem; text-align: center; padding: 2.5rem 1rem; line-height: 1.6; }

/* ── Per-service schedule step (different techs → separate times) ── */
.sched-list { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.25rem; }
.sched-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--r);
  padding: 1rem 1.15rem; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.sched-row:hover { border-color: var(--accent-ink); box-shadow: var(--shadow); }
.sched-row.done { border-color: var(--accent-ink); background: var(--accent-bg); }
.sched-main { min-width: 0; }
.sched-svc  { font-weight: 500; font-size: 0.98rem; }
.sched-meta { font-size: 0.82rem; color: var(--muted); margin-top: 0.2rem; }
.sched-when { font-size: 0.86rem; font-weight: 500; color: var(--accent-ink); white-space: nowrap; }
.sched-row:not(.done) .sched-when { color: var(--muted); }
.sched-when .ic { width: 1.05em; height: 1.05em; margin-right: 0.3em; vertical-align: -0.17em; }

.btn-outline {
  display: flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--accent-ink); border-radius: 999px;
  min-height: 48px; padding: 0 1.2rem; font: 500 0.8rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-ink); cursor: pointer; text-align: center; text-decoration: none;
  transition: background-color .2s, color .2s;
}
.btn-outline[href^="tel:"] { font-size: 0.95rem; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }   /* numbers stay big and untracked */
.btn-outline:hover { background: var(--accent-ink); color: #fff; }

/* ── Accessibility: keyboard focus rings on interactive controls ── */
.slot:focus-visible, .cal-day:focus-visible, .cal-nav:focus-visible,
.btn-next:focus-visible, .btn-back:focus-visible, .btn-outline:focus-visible,
.qty-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Time-slot skeleton (shown while availability loads) ── */
.sk-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.5rem; }
@media (max-width: 540px) { .sk-grid { grid-template-columns: repeat(2,1fr); } }
.sk-slot {
  height: 44px; border-radius: 10px;
  background: var(--border);
  animation: sk-pulse 1.1s ease-in-out infinite;
}
.sk-slot:nth-child(2) { animation-delay: .12s; }
.sk-slot:nth-child(3) { animation-delay: .24s; }
.sk-slot:nth-child(4) { animation-delay: .36s; }
.sk-slot:nth-child(5) { animation-delay: .48s; }
.sk-slot:nth-child(6) { animation-delay: .60s; }
@keyframes sk-pulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

/* ── Respect users who prefer reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* "Set one time for all" button on the schedule step */
.sched-all { display: flex; width: 100%; margin-bottom: 1rem; }   /* flex, not block: keeps the pill's label centered */
