/* ==========================================================================
   COOKIE BAR  ·  4 Oct 2026
   A bar at the foot of the screen, NOT a modal: no scrim, nothing behind it
   blocked, and only the card itself takes pointer events. Accept and No thanks
   are the same class in the same grid cell size — equal weight is a legal
   requirement here, not a style choice, so never give one of them its own
   colour. Spec: docs/team/legal/drafts/cookie-and-tracking-changes.md §6.
   ========================================================================== */
#cookieOverlay{
  position:fixed;left:0;right:0;bottom:0;z-index:900;display:none;justify-content:center;
  padding:0 12px calc(12px + env(safe-area-inset-bottom,0px));pointer-events:none;
}
#cookieOverlay.show{display:flex}
#cookieCard{
  pointer-events:auto;background:#fff;border:1px solid var(--line-2);border-radius:var(--r-md);
  padding:18px 20px 12px;max-width:760px;width:100%;box-shadow:var(--shadow-lg);
  max-height:calc(100vh - 24px);overflow:auto;overscroll-behavior:contain;
}
#cookieCard [hidden]{display:none !important}
#cookieCard h2{font-family:'Nunito',sans-serif;font-size:1.2rem;line-height:1.25;margin:0 0 6px;color:var(--ink)}
/* The titles take focus only programmatically (tabindex=-1, never in the tab order), so a
   screen reader announces the bar; a ring round a heading nobody can operate is noise. */
#cookieCard h2:focus,#cookieCard h2:focus-visible{outline:none}
#cookieCard p{color:var(--ink-2);font-size:.94rem;line-height:1.5;margin:0 0 12px}
#cookieCard a{color:var(--ink);font-weight:800;text-decoration:underline;text-underline-offset:3px}
.ckbtns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:400px}
.ckbtns .btn{width:100%;min-height:48px;padding:11px 18px;font-size:1rem}
.cklinks{display:flex;flex-wrap:wrap;align-items:center;gap:0 18px;margin-top:4px}
.cklink{
  display:inline-flex;align-items:center;min-height:44px;padding:0 2px;
  background:none;border:0;cursor:pointer;font:inherit;font-size:1rem;font-weight:800;
  color:var(--ink);text-decoration:underline;text-underline-offset:3px;
}
#cookieCard .cklinks a{display:inline-flex;align-items:center;min-height:44px;font-size:1rem}
.ckrow{border-top:1px solid var(--line);padding:10px 0 2px}
.ckrow p{margin-bottom:8px}
#cookieCard .ckname{font-weight:800;color:var(--ink);font-size:1rem;margin:0 0 2px;line-height:1.4}
.ckname small{font-weight:700;color:var(--ink-3);font-size:.92rem}
.ckswitch{display:flex;align-items:center;gap:12px;min-height:44px;cursor:pointer;font-weight:800;color:var(--ink);font-size:1rem;line-height:1.35}
.ckswitch input{width:24px;height:24px;flex:none;margin:0;accent-color:var(--orange-dark);cursor:pointer}
.ckswitch small{display:block;font-weight:700;color:var(--ink-3);font-size:.92rem}
.ckpanelbtns{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:6px 0 4px}
.ckpanelbtns .btn{min-height:48px;padding:11px 22px;font-size:1rem}
/* Whatever else sits at the foot of the screen moves up while the bar is open,
   so it is never hidden under it: the booking form's thumb bar above all. */
body.ck-open{padding-bottom:var(--ck-h,0px)}
body.ck-open .wizbar{bottom:var(--ck-h,0px)}
body.ck-open #toTop{bottom:calc(var(--ck-h,0px) + 18px)}
body.ck-open.has-wizbar #toTop{bottom:calc(var(--ck-h,0px) + 104px)}
body.ck-open #stickyCta{display:none}
@media (max-width:640px){
  #cookieOverlay{padding:0 8px calc(8px + env(safe-area-inset-bottom,0px))}
  #cookieCard{padding:14px 16px 8px;border-radius:var(--r-sm)}
  #cookieCard h2{font-size:1.1rem}
  #cookieCard p{font-size:.9rem;line-height:1.45;margin-bottom:10px}
  .ckbtns{max-width:none}
}
@media print{#cookieOverlay{display:none !important}}
#cookieCard h2{font-family:var(--display);font-size:1.5rem;line-height:1.05}
:root { --r-md: 12px; --r-sm: 12px; --line: rgba(17,17,17,.13); --line-2: rgba(17,17,17,.2); --ink: #111; --ink-2: #333; --ink-3: #555; --orange-dark: #CC4400; --shadow-lg: 0 24px 60px -18px rgba(0,0,0,.45); }
#cookieCard h2 { font-family: var(--font-heading); font-weight: 900; }
#cookieCard .btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: #111; color: #fff; font-family: var(--font-heading); font-weight: 800; line-height: 1.2; cursor: pointer; text-decoration: none; }
#cookieCard .btn:hover { background: #333; }
#cookieCard .btn:focus-visible, #cookieCard .cklink:focus-visible, #cookieCard a:focus-visible { outline: 3px solid #CC4400; outline-offset: 2px; }
