/* ============================================================
   TrueFlo booking card · booking-card.css (lane C)
   A self-contained component. Every selector is scoped to .bkc.
   Tokens fall back to the V7-BRIEF section 4 values, so the card
   looks right on a page with v7.css and on a bare page without it.
   Width: fills its parent up to 440px, works down to 280px.
   ============================================================ */

.bkc{
  --bkc-surface:var(--surface,#ffffff);
  --bkc-inset:var(--inset,#f2f4f8);
  --bkc-inset-hover:#e9ecf3;
  --bkc-ink:var(--ink,#161a2b);
  --bkc-ink-2:var(--ink-2,#3a4052);
  --bkc-muted:var(--muted,#6b7080);
  --bkc-line:var(--line,rgba(22,26,43,.08));
  --bkc-line-strong:var(--line-strong,rgba(22,26,43,.16));
  --bkc-accent:var(--accent,#2563eb);
  --bkc-btn:var(--btn,#161a2b);
  --bkc-btn-hover:var(--btn-hover,#272d47);
  --bkc-on-btn:var(--on-btn,#f7f8fb);
  --bkc-signal:var(--signal,#f59e0b);
  --bkc-r-card:var(--r-card,16px);
  --bkc-r:var(--r,10px);
  --bkc-pill:var(--pill,999px);
  --bkc-sans:var(--sans,'Geist',ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif);
  --bkc-shadow:var(--shadow-float,0 1px 2px rgba(22,26,43,.05),0 16px 40px -16px rgba(22,26,43,.22));
  --bkc-ease:var(--ease,cubic-bezier(.2,0,0,1));
  --bkc-dur:var(--dur,150ms);
  --bkc-pad:20px;

  container:bkc / inline-size;
  box-sizing:border-box;
  width:100%;
  max-width:440px;
  padding:var(--bkc-pad);
  background:var(--bkc-surface);
  border:1px solid var(--bkc-line);
  border-radius:var(--bkc-r-card);
  box-shadow:var(--bkc-shadow);
  font:400 14px/20px var(--bkc-sans);
  font-variant-numeric:tabular-nums;
  color:var(--bkc-ink-2);
  text-align:left;
  -webkit-font-smoothing:antialiased;
}
.bkc *,.bkc *::before,.bkc *::after{box-sizing:border-box;margin:0;padding:0}
.bkc svg{display:block;flex:none}

/* ---- head: logo tile + name ---- */
.bkc-head{display:flex;align-items:center;gap:12px}
.bkc-logo{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:var(--bkc-r);background:var(--bkc-surface);border:1px solid var(--bkc-line-strong);box-shadow:0 1px 2px rgba(22,26,43,.06);color:var(--bkc-signal)}
.bkc-logo svg{width:22px;height:22px}
.bkc-t{display:flex;flex-direction:column;min-width:0}
.bkc-title{font-size:15px;line-height:20px;font-weight:600;letter-spacing:-.01em;color:var(--bkc-ink)}
.bkc-meta{font-size:13px;line-height:20px;color:var(--bkc-muted)}

/* ---- the "Bring:" chip ---- */
.bkc-note{margin-top:16px;padding:8px 12px;border:1px solid var(--bkc-line);border-radius:var(--bkc-r);background:var(--bkc-inset);font-size:13px;line-height:20px;color:var(--bkc-ink-2);text-wrap:pretty}
.bkc-note b{font-weight:600;color:var(--bkc-ink)}

/* ---- day tabs: weekday over the resolved date ---- */
.bkc-days{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;min-height:52px;margin-top:16px}
.bkc-day{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  height:52px;padding:0 4px;border:0;border-radius:var(--bkc-r);
  background:var(--bkc-inset);color:var(--bkc-ink-2);
  font:inherit;cursor:pointer;-webkit-appearance:none;appearance:none;
  transition:background-color var(--bkc-dur) var(--bkc-ease),color var(--bkc-dur) var(--bkc-ease);
}
.bkc-day-w{font-size:13px;line-height:20px;font-weight:500}
.bkc-day-d{font-size:12px;line-height:16px;color:var(--bkc-muted);transition:color var(--bkc-dur) var(--bkc-ease)}
.bkc-day:hover{background:var(--bkc-inset-hover);color:var(--bkc-ink)}
.bkc-day[aria-pressed="true"]{background:var(--bkc-btn);color:var(--bkc-on-btn)}
.bkc-day[aria-pressed="true"] .bkc-day-d{color:rgba(247,248,251,.72)}

/* ---- times: four in a row at full width, two by two when narrow ---- */
.bkc-times{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-height:88px;margin-top:12px}
.bkc-time{
  display:grid;place-items:center;height:40px;padding:0 8px;
  border:1px solid var(--bkc-line-strong);border-radius:var(--bkc-r);
  background:var(--bkc-surface);color:var(--bkc-ink-2);
  font:500 14px/20px var(--bkc-sans);font-variant-numeric:tabular-nums;
  cursor:pointer;-webkit-appearance:none;appearance:none;
  transition:border-color var(--bkc-dur) var(--bkc-ease),box-shadow var(--bkc-dur) var(--bkc-ease),color var(--bkc-dur) var(--bkc-ease);
}
.bkc-time:hover{border-color:rgba(22,26,43,.32);color:var(--bkc-ink)}
.bkc-time[aria-pressed="true"]{border-color:var(--bkc-ink);box-shadow:inset 0 0 0 .5px var(--bkc-ink);color:var(--bkc-ink);font-weight:600}
.bkc-time[aria-disabled="true"]{border-color:var(--bkc-line);background:transparent;color:rgba(107,112,128,.55);text-decoration:line-through;text-decoration-color:rgba(107,112,128,.4);cursor:not-allowed;box-shadow:none;font-weight:500}

/* ---- the one primary action ---- */
.bkc-go{
  display:flex;align-items:center;justify-content:center;gap:8px;
  height:46px;margin-top:16px;padding:0 20px;border-radius:var(--bkc-pill);
  background:var(--bkc-btn);color:var(--bkc-on-btn);
  font:500 15px/1 var(--bkc-sans);letter-spacing:-.006em;text-decoration:none;white-space:nowrap;
  transition:background-color var(--bkc-dur) var(--bkc-ease);
}
.bkc-go:hover{background:var(--bkc-btn-hover)}
.bkc-go svg{width:16px;height:16px;transition:translate var(--bkc-dur) var(--bkc-ease)}
.bkc-go:hover svg{translate:3px 0}
.bkc-tz{margin-top:8px;font-size:12px;line-height:16px;color:var(--bkc-muted);text-align:center}

/* ---- focus: keep each control's own radius (v7.css sets 4px globally) ---- */
.bkc-day:focus-visible,.bkc-time:focus-visible{outline:2px solid var(--bkc-accent);outline-offset:2px;border-radius:var(--bkc-r)}
.bkc-go:focus-visible{outline:2px solid var(--bkc-accent);outline-offset:3px;border-radius:var(--bkc-pill)}

/* ---- widths (the container is the card's content box: 440 card = 390 inside) ---- */
@container bkc (min-width:360px){
  .bkc-times{grid-template-columns:repeat(4,minmax(0,1fr));min-height:40px}
}
@container bkc (max-width:219px){
  .bkc-days{grid-template-columns:repeat(3,minmax(0,1fr));min-height:112px}
}
/* the padding cannot query its own container, so it follows the viewport */
@media (min-width:480px){.bkc{--bkc-pad:24px}}

@media (prefers-reduced-motion:reduce){
  .bkc *,.bkc *::before,.bkc *::after{transition:none !important}
}
