/* Bodega Off Price cookie banner (owner, 2026-11-25).
   The platform's cookie box (components/cookie-consent.tsx) ships with no styling, so on Bodega it showed as
   plain text under the footer of every page. This styles it in Bodega colours, only through the attributes the
   platform always renders (role="dialog", aria-labelledby="cookie-consent-title", the two ids), so the
   platform's wiring stays untouched: it shows until the visitor taps Accept or Decline, and the footer's
   Manage Cookies brings it back.
   Owner: "a lot smaller", bottom-right. On the home page it sits right above the "Skip the tour" button while
   the tour is on screen; past the tour (and on every other page) it rests at the bottom corner, until the
   visitor answers. cookie-dock.js sets --ck-bottom on <html> for the home page; without it: the corner.
   It stays clear of the bottom-left country pill (16px + 70px wide) at every width.
   Layering: under the pill's open list (40), the top bar (100) and the bag.
   Colours: the store's colour tokens (same values as the approved file: --bo-0b1a33 navy, --bo-ffd21f yellow,
   --bo-ffe062 yellow hover, --bo-f4f1e8 paper, --bo-10141a ink, --bo-b4b9c8 text, --bo-05050a shadow,
   --bo-ffbe14 amber glow); the store refuses raw colour values in its stylesheets. */
[role="dialog"][aria-labelledby="cookie-consent-title"]{
  --ck-navy:hsl(var(--bo-0b1a33));--ck-yellow:hsl(var(--bo-ffd21f));--ck-yellow-hover:hsl(var(--bo-ffe062));--ck-paper:hsl(var(--bo-f4f1e8));--ck-ink:hsl(var(--bo-10141a));--ck-text-2:hsl(var(--bo-b4b9c8));
  --ck-line:hsl(var(--bo-f4f1e8) / .14);--ck-line-strong:hsl(var(--bo-f4f1e8) / .36);
  --ck-display:'Barlow Condensed','Arial Narrow',Impact,sans-serif;--ck-body:'Barlow','Segoe UI',Arial,sans-serif;
  position:fixed;right:clamp(16px,4vw,48px);bottom:var(--ck-bottom,16px);z-index:39;box-sizing:border-box;
  width:min(280px,calc(100vw - 112px));margin:0;padding:0;
  font-family:var(--ck-body);color:var(--ck-paper);text-align:left;
  transition:bottom .45s cubic-bezier(.22,.61,.36,1);
  animation:bck-in .35s cubic-bezier(.22,.61,.36,1) both}
/* the platform's backdrop element: a banner, not a modal, so no backdrop */
[role="dialog"][aria-labelledby="cookie-consent-title"] > [aria-hidden="true"]{display:none}
[role="dialog"][aria-labelledby="cookie-consent-title"] > div:not([aria-hidden]){
  box-sizing:border-box;margin:0;padding:11px 13px 12px;border:1px solid var(--ck-line);border-radius:12px;background:var(--ck-navy);
  box-shadow:0 14px 30px -10px hsl(var(--bo-05050a) / .7)}
#cookie-consent-title{margin:0;padding:0;font-family:var(--ck-display);font-weight:800;font-size:14px;line-height:1.1;letter-spacing:.04em;
  text-transform:uppercase;color:var(--ck-paper)}
/* the short yellow bar under headings, as on the Bodega pages */
#cookie-consent-title::after{content:"";display:block;width:22px;height:2px;margin-top:6px;border-radius:2px;background:var(--ck-yellow)}
#cookie-consent-description{margin:7px 0 0;padding:0;font-family:var(--ck-body);font-size:11.5px;line-height:1.45;color:var(--ck-text-2)}
[role="dialog"][aria-labelledby="cookie-consent-title"] > div:not([aria-hidden]) > div:last-child{display:flex;gap:8px;margin:10px 0 0;padding:0}
/* Accept and Decline are the same size: declining is as easy as accepting */
[role="dialog"][aria-labelledby="cookie-consent-title"] button{
  flex:1 1 0;min-width:0;margin:0;padding:6px 10px;border:1px solid var(--ck-line-strong);border-radius:999px;background:transparent;color:var(--ck-paper);
  font-family:var(--ck-display);font-weight:700;font-size:13px;line-height:1.2;letter-spacing:.06em;text-transform:uppercase;cursor:pointer;
  transition:background-color .2s ease,border-color .2s ease,color .2s ease}
[role="dialog"][aria-labelledby="cookie-consent-title"] button:first-child{background:var(--ck-yellow);border-color:var(--ck-yellow);color:var(--ck-ink);
  animation:ck-accept-glow 2.4s ease-in-out infinite}
/* Accept glows white, then yellow, then white again (owner) */
@keyframes ck-accept-glow{
  0%,100%{box-shadow:0 0 0 1px rgba(255,255,255,.6),0 0 10px rgba(255,255,255,.75),0 0 22px rgba(255,255,255,.35)}
  50%{box-shadow:0 0 0 1px hsl(var(--bo-ffd21f) / .65),0 0 12px hsl(var(--bo-ffd21f) / .9),0 0 26px hsl(var(--bo-ffbe14) / .5)}}
[role="dialog"][aria-labelledby="cookie-consent-title"] button:first-child:hover{background:var(--ck-yellow-hover);border-color:var(--ck-yellow-hover)}
[role="dialog"][aria-labelledby="cookie-consent-title"] button:not(:first-child):hover{border-color:var(--ck-yellow);color:var(--ck-yellow)}
[role="dialog"][aria-labelledby="cookie-consent-title"] button:focus-visible{outline:2px solid var(--ck-paper);outline-offset:2px}
/* phones: the buttons keep a 36px touch height */
@media (pointer:coarse){[role="dialog"][aria-labelledby="cookie-consent-title"] button{min-height:36px}}
/* phones, during the home tour (owner: "a few steps down the BOP logo"): just under the top bar's logo, so the
   tour's headline at the bottom stays readable. cookie-dock.js adds .ck-top to <html> and sets --ck-top. */
@media (max-width:1024px),(pointer:coarse){
  /* phones: one slim row, "We use cookies  [ACCEPT] [DECLINE]" (owner: "shrink the phone box further by a lot").
     The heading and the full sentence are hidden from view but stay in the page, so screen readers still name
     and describe the box; the short line is decoration for them (the "/ ''" form), not read twice.
     A yellow edge carries the Bodega accent. */
  [role="dialog"][aria-labelledby="cookie-consent-title"]{width:max-content;max-width:calc(100vw - 112px)}
  [role="dialog"][aria-labelledby="cookie-consent-title"] > div:not([aria-hidden]){display:flex;align-items:center;gap:8px;
    padding:6px 7px 6px 10px;border-radius:999px;border-left:3px solid var(--ck-yellow)}
  [role="dialog"][aria-labelledby="cookie-consent-title"] > div:not([aria-hidden])::before{
    content:"We use cookies";content:"We use cookies" / "";
    flex:none;font-family:var(--ck-body);font-size:11px;font-weight:500;line-height:1.2;white-space:nowrap;color:hsl(var(--bo-f4f1e8) / .9)}
  #cookie-consent-title,#cookie-consent-description{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  [role="dialog"][aria-labelledby="cookie-consent-title"] > div:not([aria-hidden]) > div:last-child{flex:none;gap:5px;margin:0}
  [role="dialog"][aria-labelledby="cookie-consent-title"] button{flex:none;min-width:60px;min-height:26px;padding:3px 8px;font-size:11px}
  html.ck-top [role="dialog"][aria-labelledby="cookie-consent-title"]{top:var(--ck-top,78px);bottom:auto;left:clamp(16px,4vw,48px);right:auto;
    max-width:calc(100vw - 32px);transition:none}
}
@keyframes bck-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){
  [role="dialog"][aria-labelledby="cookie-consent-title"]{animation:none;transition:none}
  [role="dialog"][aria-labelledby="cookie-consent-title"] button{transition:none}
  [role="dialog"][aria-labelledby="cookie-consent-title"] button:first-child{animation:none;
    box-shadow:0 0 0 1px rgba(255,255,255,.6),0 0 12px hsl(var(--bo-ffd21f) / .7)}
}
