/* Shares the storefront's typography, colours and rounded controls. */
body.site-storefront { padding-bottom: var(--cookie-clearance, 0px); }
html { scroll-padding-bottom: var(--cookie-clearance, 0px); }
.cookie-consent { --cookie-muted: color-mix(in srgb, var(--text-2, #6e6e73) 85%, var(--text, #1d1d1f)); position: fixed; z-index: 80; left: max(24px, env(safe-area-inset-left)); bottom: max(24px, env(safe-area-inset-bottom)); max-width: calc(100vw - 48px); color: var(--text, #1d1d1f); font-family: inherit; font-size: 14px; line-height: 1.5; }
.cookie-consent [hidden], .cookie-consent[hidden] { display: none !important; }
.cookie-banner, .cookie-panel { background: color-mix(in srgb, var(--surface, #fff) 94%, transparent); border: 1px solid var(--line, rgba(29,29,31,.12)); box-shadow: 0 8px 32px rgba(0,0,0,.09), 0 2px 6px rgba(0,0,0,.025); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.cookie-banner { display: flex; align-items: center; gap: 24px; width: 590px; max-width: 100%; padding: 18px 22px; border-radius: 28px; }
.cookie-banner p { flex: 1; margin: 0; font-size: 13px; line-height: 1.55; }
.cookie-banner__actions { display: flex; align-items: center; flex: none; gap: 18px; }
.cookie-consent button, .cookie-reopen { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cookie-primary { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 11px 20px; border: 0; border-radius: 999px; background: var(--btn-primary, #38D7FF); color: var(--btn-primary-ink, #fff); font-weight: 600 !important; white-space: nowrap; transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
.cookie-primary:hover { background: var(--btn-primary-hi, #20C8F1); box-shadow: 0 3px 10px rgba(56,215,255,.28); }
.cookie-primary:active { background: var(--btn-primary-down, #0AB9E3); transform: scale(.98); }
.cookie-link, .cookie-policy, .cookie-reopen { color: var(--cookie-muted, var(--text-2, #6e6e73)); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cookie-link, .cookie-reopen { min-height: 44px; padding: 6px 0; border: 0; background: transparent; }
.cookie-link:hover, .cookie-policy:hover, .cookie-reopen:hover { color: var(--text, #1d1d1f); }
.cookie-consent :focus-visible, .cookie-reopen:focus-visible { outline: 3px solid var(--accent, #0872C6); outline-offset: 4px; border-radius: 5px; }
.cookie-consent .cookie-primary:focus-visible { border-radius: 999px; }
.cookie-panel { width: 420px; max-width: 100%; max-height: calc(100dvh - 116px); overflow-y: auto; overscroll-behavior: contain; padding: 24px; border-radius: 26px; }
.cookie-panel__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.cookie-panel__heading h2 { margin: 0; font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -.035em; }
.cookie-panel__heading h2:focus { outline: none; }
.cookie-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; margin: -8px -10px -8px 0; border: 0; border-radius: 50%; color: var(--text-2); background: transparent; }
.cookie-close:hover { background: var(--surface-sunk, #f5f5f7); }
.cookie-close svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; }
#cookieIntro { margin: 12px 0 18px; font-size: 13px; color: var(--cookie-muted, var(--text-2, #6e6e73)); }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line-soft, rgba(29,29,31,.07)); cursor: pointer; }
.cookie-category__copy { display: grid; gap: 4px; }
.cookie-category strong { font-size: 13px; font-weight: 600; line-height: 1.4; }
.cookie-category__copy > span { color: var(--cookie-muted, var(--text-2, #6e6e73)); font-size: 12px; line-height: 1.5; }
.cookie-category small { color: var(--cookie-muted, var(--text-2, #6e6e73)); font-size: 11px; }
.cookie-switch { position: relative; display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 44px; }
.cookie-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.cookie-switch__track { position: relative; width: 46px; height: 28px; border-radius: 999px; background: #86868b; transition: background 180ms ease; }
.cookie-switch__track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18); transition: transform 180ms cubic-bezier(.2,.7,.2,1); }
.cookie-switch__mark { position: absolute; top: 10px; right: 7px; width: 8px; height: 8px; border: 1px solid white; border-radius: 50%; }
.cookie-switch input:checked + .cookie-switch__track { background: var(--accent, #0872C6); }
.cookie-switch input:checked + .cookie-switch__track::after { transform: translateX(18px); }
.cookie-switch input:checked + .cookie-switch__track .cookie-switch__mark { right: auto; left: 10px; width: 1px; height: 8px; border: 0; border-left: 1px solid white; border-radius: 0; }
.cookie-switch input:focus-visible + .cookie-switch__track { outline: 3px solid var(--accent, #0872C6); outline-offset: 4px; }
.cookie-switch input:disabled { cursor: not-allowed; }
.cookie-switch input:disabled + .cookie-switch__track { opacity: .65; }
.cookie-panel__actions { display: flex; align-items: center; gap: 22px; margin-top: 10px; }
.cookie-policy { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-size: 12px; }
.cookie-reopen { font-size: 12px; }
/* Shopping, navigation and form entry take priority over the invitation. */
body:has(.drawer:not([hidden]), .qv:not([hidden]), .qa:not([hidden]), .overlay:not([hidden]), .nav[data-menu-open]) .cookie-consent { visibility: hidden; pointer-events: none; }
.cookie-consent[data-obscures-action] { visibility: hidden; pointer-events: none; }
@media (max-width: 600px) {
  .cookie-consent { left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); max-width: none; }
  .cookie-banner { width: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 18px 20px; border-radius: 24px; }
  .cookie-banner__actions { gap: 22px; }
  .cookie-panel { width: 100%; padding: 22px; max-height: calc(100dvh - 100px); }
  body:has(input:not([type="checkbox"]):not([type="radio"]):focus) .cookie-consent,
  body:has(textarea:focus) .cookie-consent, body:has(select:focus) .cookie-consent { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-consent *, .cookie-consent *::after { transition: none !important; animation: none !important; }
}
@media (prefers-contrast: more) {
  .cookie-banner, .cookie-panel { background: var(--surface, #fff); border-color: currentColor; }
}
