/* XYROX Booking — public flow and admin share this file.
   Admin depends on .bkField, .bkForm, .bkPrimary, .bkErr, .bkSlot and every
   --bk* token, so nothing here is renamed or removed. The public flow's own
   layout lives behind .bkFlow, which only templates/layout.php sets.
   Contrast is measured, not guessed: --bkFaint is 3.82:1 and is for fills and
   hairlines only. Small type uses --bkMuted (5.9:1); dimmed day cells use
   --bkDim (4.89:1). Never dim with opacity. See REDESIGN.md §5.1.
   --bkAccent is a fill, never type: it is 5.0:1 and .bkPrimary reverses to
   paper on it (ink on it is 3.6:1 — ember survived ink, violet did not, and
   blue does not either). Accent as type is --bkAccentInk, 7.79:1. Both are
   IBM Carbon steps: blue-60 for the fill, blue-70 for type. */
:root{
  --bkInk:#14171A;--bkMuted:#6B635A;--bkFaint:#8A8179;--bkDim:#767069;
  --bkLine:#DED8CF;--bkLineSoft:#EDE9E3;
  --bkPaper:#FFFFFF;--bkBone:#FBFAF7;--bkBoneDim:#F3F1ED;
  --bkAccent:#0F62FE;--bkAccentInk:#0043CE;--bkDanger:#B3261E;
  --bkR:14px;--bkRCard:24px;--bkTap:44px;--bkGap:22px;
  --bkShadow:0 1px 2px rgba(38,32,26,.04),0 18px 48px rgba(38,32,26,.10)
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bkBone);color:var(--bkInk);font:16px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif}
.bk{max-width:560px;margin:0 auto;padding:20px 16px 48px}

/* Type. h1 keeps a default for anything not carrying .bkStep. */
h1{font-size:26px;line-height:1.15;letter-spacing:-.02em;margin:8px 0 6px}
h2.bkDay{font-size:14px;color:var(--bkInk);margin:0 0 10px;font-weight:620}
.bkSub{margin:0 0 18px;color:var(--bkMuted)}
.bkBack{display:inline-flex;align-items:center;gap:7px;height:var(--bkTap);padding:0 12px 0 10px;
  margin:0 0 6px -10px;color:var(--bkMuted);text-decoration:none;font-size:14px;border-radius:999px}
.bkBack:hover{background:var(--bkBoneDim);color:var(--bkInk)}

/* ── Site nav: the way back out. Sits above the card, on the page ground, so
      it reads as the site's bar rather than part of the booking form. Controls
      share one height token; padding is horizontal only. ─────────────────────── */
/* The nav renders INSIDE main.bkFlow, which already owns the max-width and the
   side padding. Setting them again here inset the bar and left it off-axis with
   the card below it — measured, not eyeballed. */
.bkSiteNav{display:flex;align-items:center;gap:8px 18px;flex-wrap:wrap;margin:0 0 14px;padding:0}
/* --bkSiteFont is set on <body> only when the install configured one; the
   fallback is inherit, so with nothing configured this bar keeps the system
   stack it has always used. Sizes match the owner's own site bar rather than
   the flow card, because this row belongs to their site, not to the booking. */
.bkSiteBrand{display:inline-flex;align-items:center;gap:10px;min-height:var(--bkTap);
  color:var(--bkInk);text-decoration:none;font-family:var(--bkSiteFont,inherit);
  font-weight:700;font-size:23px;letter-spacing:-.03em}
a.bkSiteBrand:hover,a.bkSiteBrand:focus-visible{color:var(--bkAccentInk);outline:none}
.bkSiteLogo{width:27px;height:27px;flex:none;display:block;object-fit:contain}
.bkSiteLinks{display:flex;align-items:center;gap:4px 6px;flex-wrap:wrap;margin:0 0 0 auto;padding:0;list-style:none}
.bkSiteLinks a{display:inline-flex;align-items:center;height:var(--bkTap);padding:0 15px;
  border-radius:999px;color:var(--bkMuted);text-decoration:none;
  font-family:var(--bkSiteFont,inherit);font-size:15px;font-weight:500}
.bkSiteLinks a:hover,.bkSiteLinks a:focus-visible{background:var(--bkBoneDim);color:var(--bkInk);outline:none}

/* ── The public flow card ─────────────────────────────────────────────────
   .bkFlow is set only by templates/layout.php. Admin's layout never has it. */
.bkFlow{max-width:960px;padding:var(--bkGap) 16px 56px}
.bkFlow .bkPanes{background:var(--bkPaper);border:1px solid var(--bkLineSoft);
  border-radius:var(--bkRCard);box-shadow:var(--bkShadow);overflow:hidden;
  display:grid;grid-template-columns:minmax(0,1fr)}
.bkRail{padding:26px 24px;border-bottom:1px solid var(--bkLineSoft);min-width:0}
.bkBiz{margin:0 0 10px;font-size:12px;letter-spacing:.09em;text-transform:uppercase;color:var(--bkMuted)}
.bkRailTitle{margin:0;font-size:24px;line-height:1.2;letter-spacing:-.02em;font-weight:650}
.bkDesc{margin:10px 0 0;color:var(--bkMuted);font-size:15px}
.bkMeta{margin:18px 0 0;padding:0;list-style:none;display:grid;gap:9px}
.bkMeta li{color:var(--bkMuted);font-size:14px;line-height:1.45}
.bkPicked{color:var(--bkInk);font-weight:600}
.bkPane{padding:26px 24px;min-width:0}
.bkStep{margin:0 0 var(--bkGap);font-size:19px;line-height:1.25;letter-spacing:-.015em;font-weight:650}

/* ── Service cards ───────────────────────────────────────────────────────── */
.bkList{display:grid;gap:10px}
.bkCard{display:grid;gap:5px;text-align:left;width:100%;min-height:var(--bkTap);padding:16px 18px;
  background:var(--bkPaper);border:1px solid var(--bkLine);border-radius:var(--bkR);color:inherit;font:inherit;cursor:pointer}
.bkCard strong{font-size:16px;font-weight:620;letter-spacing:-.01em}
.bkCard span{color:var(--bkMuted);font-size:14px}
.bkCard small{color:var(--bkMuted);font-size:13px}
.bkCard:hover,.bkCard:focus-visible{border-color:var(--bkInk);outline:none}

/* ── Calendar ────────────────────────────────────────────────────────────── */
.bkWhen{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--bkGap)}
.bkCalWrap{min-width:0;max-width:420px}   /* stops day cells stretching into lozenges on a tablet */
.bkCalHead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px}
.bkCalHead p{margin:0;font-size:16px;font-weight:620;letter-spacing:-.01em}
.bkNav{display:flex;gap:4px}
.bkNav a{display:inline-flex;align-items:center;justify-content:center;width:var(--bkTap);height:var(--bkTap);
  border-radius:999px;color:var(--bkMuted);text-decoration:none;font-size:20px;line-height:1}
.bkNav a:hover,.bkNav a:focus-visible{background:var(--bkBoneDim);color:var(--bkInk);outline:none}
.bkDow,.bkCal{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.bkDow{margin:0 0 4px}
.bkDow span{text-align:center;font-size:12px;color:var(--bkMuted);letter-spacing:.04em;padding:4px 0}
.bkDayCell{position:relative;display:flex;align-items:center;justify-content:center;height:var(--bkTap);
  border-radius:999px;font-size:15px;font-variant-numeric:tabular-nums;text-decoration:none;color:var(--bkDim)}
a.bkDayCell{color:var(--bkInk);font-weight:600;background:var(--bkBoneDim)}
a.bkDayCell::after{content:"";position:absolute;bottom:6px;width:4px;height:4px;border-radius:50%;background:var(--bkAccent)}
a.bkDayCell:hover,a.bkDayCell:focus-visible{background:var(--bkLineSoft);outline:2px solid var(--bkInk);outline-offset:-2px}
a.bkDayCell[aria-current="date"]{background:var(--bkInk);color:#fff}
.bkDayOff{color:var(--bkDim)}
.bkDayPad{background:none;pointer-events:none}
.bkTz{margin:16px 0 0;color:var(--bkMuted);font-size:13px}

/* ── Times ───────────────────────────────────────────────────────────────── */
.bkTimes{min-width:0}
.bkSlots{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px}
.bkSlot{display:inline-flex;align-items:center;justify-content:center;min-height:var(--bkTap);padding:0 10px;
  background:var(--bkPaper);border:1px solid var(--bkLine);border-radius:var(--bkR);font:inherit;font-size:15px;
  font-weight:560;color:var(--bkInk);cursor:pointer;font-variant-numeric:tabular-nums}
.bkSlot:hover,.bkSlot:focus-visible{border-color:var(--bkInk);outline:none}
.bkDayGroup + .bkDayGroup{margin-top:var(--bkGap)}

/* ── Forms ───────────────────────────────────────────────────────────────── */
.bkForm{display:grid;gap:14px}
.bkRow{display:grid;gap:14px;grid-template-columns:minmax(0,1fr)}
.bkField{display:grid;gap:6px;font-size:13px;color:var(--bkMuted);min-width:0}
.bkField input,.bkField textarea{min-height:var(--bkTap);padding:11px 13px;font:inherit;font-size:16px;
  color:var(--bkInk);background:var(--bkPaper);border:1px solid var(--bkLine);border-radius:var(--bkR);width:100%}
.bkField input:focus,.bkField textarea:focus{border-color:var(--bkInk);outline:2px solid rgba(15,98,254,.28);outline-offset:1px}
.bkPrimary{min-height:52px;padding:0 24px;background:var(--bkAccent);color:var(--bkPaper);border:0;border-radius:999px;
  font:inherit;font-weight:700;font-size:16px;cursor:pointer;justify-self:start}
.bkPrimary:focus-visible{outline:2px solid var(--bkInk);outline-offset:2px}
.bkDanger{background:var(--bkDanger);color:#fff}
.bkErr{color:var(--bkDanger);font-size:14px;margin:0}

/* ── Result ──────────────────────────────────────────────────────────────── */
.bkReceipt{border:1px solid var(--bkLine);border-radius:var(--bkR);padding:18px 20px;display:grid;gap:12px;margin:0}
.bkReceipt div{display:grid;gap:3px}
.bkReceipt dt{font-size:12px;letter-spacing:.07em;text-transform:uppercase;color:var(--bkMuted)}
.bkReceipt dd{margin:0;font-size:16px}
.bkFine{margin:16px 0 0;color:var(--bkMuted);font-size:13px;overflow-wrap:anywhere}
.bkFine a{color:var(--bkAccentInk)}

/* ── Kept verbatim: admin and the cancel page read these ─────────────────── */
.bkBig{font-size:20px;line-height:1.3}
.bkRef{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:20px;letter-spacing:.06em}
.bkHp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* ── The one two-column block. A custom property cannot be read inside a
      media query, so this breakpoint is written once. ─────────────────────── */
@media (min-width:860px){
  .bkFlow .bkPanes{grid-template-columns:minmax(260px,320px) minmax(0,1fr)}
  .bkRail{border-bottom:0;border-right:1px solid var(--bkLineSoft);padding:30px 26px}
  .bkPane{padding:30px 28px}
  .bkWhen{grid-template-columns:minmax(0,1fr) 210px;gap:28px}
  .bkTimes{border-left:1px solid var(--bkLineSoft);padding-left:24px;max-height:430px;overflow-y:auto}
  .bkSlots{grid-template-columns:minmax(0,1fr)}
  .bkRow{grid-template-columns:1fr 1fr}
}
@media (prefers-reduced-motion:no-preference){
  .bkCard,.bkSlot,.bkField input,.bkDayCell{transition:background-color .14s,border-color .14s,color .14s}
}
[hidden]{display:none !important}

/* ── Cancel page (0.18.0, sample B) ─────────────────────────────────────────
   Only --bk* tokens, so the neutral default and every install's theme stylesheet
   both apply. The two buttons share one height whatever their kind (a <button>
   and an <a>); a theme that changes .bkPrimary's min-height cannot split them. */
.bkCancelSplit{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;align-items:start}
.bkCancelAsk .bkStep{margin-bottom:8px}
.bkCancelLede{margin:0 0 20px;font-size:16px;line-height:1.5;color:var(--bkMuted)}
.bkCancelActions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:0}
.bkCancelBtn{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:52px;min-height:0;padding:0 24px;
  font-size:16px;font-weight:600;text-decoration:none}
.bkSecondary{border:1px solid var(--bkLine);border-radius:var(--bkR);background:var(--bkPaper);color:var(--bkInk)}
.bkSecondary:hover{border-color:var(--bkInk)}
.bkSecondary:focus-visible{outline:2px solid var(--bkInk);outline-offset:2px}
.bkCancelCard{margin:0;padding:24px;border:1px solid var(--bkLine);border-radius:var(--bkRCard);background:var(--bkPaper);box-shadow:var(--bkShadow)}
.bkCancelRows{display:grid}
.bkCancelRows div{display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px;padding:12px 0;border-top:1px solid var(--bkLineSoft)}
.bkCancelRows div:first-child{border-top:0;padding-top:0}
.bkCancelRows div:last-child{padding-bottom:0}
.bkCancelRows dt{font-size:14px;color:var(--bkMuted)}
.bkCancelRows dd{margin:0;font-size:15px;font-weight:500;color:var(--bkInk);overflow-wrap:anywhere}
.bkCancelEnd{max-width:640px}
.bkCancelEnd .bkStep{margin-bottom:8px}
.bkCancelEnd .bkCancelActions{padding-top:20px;border-top:1px solid var(--bkLineSoft)}
.bkCancelIcon{display:grid;place-items:center;width:48px;height:48px;margin:0 0 14px;border-radius:50%;background:var(--bkBoneDim);color:var(--bkMuted)}
.bkCancelIcon::before{content:"";width:22px;height:22px;background:currentColor;-webkit-mask:var(--bkCancelI) center/contain no-repeat;mask:var(--bkCancelI) center/contain no-repeat}
.bkCancelIcon.isOk{background:#dcfce7;color:#166534;
  --bkCancelI:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E")}
.bkCancelIcon.isGone{--bkCancelI:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v6M12 16.5v.5'/%3E%3C/svg%3E")}
@media(max-width:700px){
  .bkCancelSplit{grid-template-columns:minmax(0,1fr);gap:16px}
  .bkCancelActions .bkCancelBtn{flex:1 1 100%}
  .bkCancelRows div{grid-template-columns:96px minmax(0,1fr)}
}
