/* "Cookies & Tracking" banner. Bottom left, clear of the support chat button. */
.cookie-consent{position:fixed;left:24px;bottom:24px;z-index:2147483000;width:min(392px,calc(100vw - 32px));max-height:calc(100vh - 48px);overflow:auto;box-sizing:border-box;padding:22px 22px 20px;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:18px;box-shadow:0 18px 50px #172b5029,0 2px 6px #172b5014;font-family:var(--sans);font-size:13px;line-height:1.5}
.cookie-consent[hidden],.cookie-consent [hidden]{display:none!important}
.cookie-consent h2{margin:0 28px 8px 0;font-family:var(--sans);font-size:16px;font-weight:600;line-height:1.3;letter-spacing:0}
.cookie-consent h2:focus{outline:none}
.cookie-consent p{margin:0;color:#172b50cc}
.cookie-consent a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.cookie-consent-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}
.cookie-consent-actions .button{width:100%;padding:0 12px;font-family:var(--sans);cursor:pointer}
.cookie-consent-actions .button-outline{color:var(--ink)}
/* Buttons (unlike links) get a grey browser border; keep the dark fill edge to edge. */
.cookie-consent-actions .button-dark{border:1px solid transparent}
.cookie-consent-primary{grid-column:1/-1}
.cookie-consent-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}
.cookie-consent-row:first-of-type{margin-top:6px}
.cookie-consent-row strong{display:block;font-size:13px;font-weight:600}
.cookie-consent-row p{font-size:12px}
.cookie-consent-required{flex-shrink:0;padding:3px 9px;border-radius:999px;background:var(--cream);font-size:11px;font-weight:600}
.cookie-consent-switch{position:relative;flex-shrink:0;width:40px;height:24px;cursor:pointer}
.cookie-consent-switch input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.cookie-consent-switch span{position:absolute;inset:0;border-radius:999px;background:#c9c3b4;transition:background .2s;pointer-events:none}
.cookie-consent-switch span::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0003;transition:transform .2s}
.cookie-consent-switch input:checked+span{background:var(--ink)}
.cookie-consent-switch input:checked+span::after{transform:translateX(16px)}
.cookie-consent-switch input:focus-visible+span{outline:2px solid var(--ink);outline-offset:2px}
.cookie-consent-note{margin-top:12px!important;font-size:12px}
.cookie-consent-close{position:absolute;top:12px;right:12px;width:32px;height:32px;border:0;border-radius:50%;background:transparent;color:var(--ink);font-size:22px;line-height:1;cursor:pointer}
.cookie-consent-close:hover{background:var(--cream)}
.footer-cookie-settings{padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer}
.footer-cookie-settings:hover{text-decoration:underline;text-underline-offset:4px}
/* Phones: a compact card close to the bottom edge. The support chat button
   (always on top) would cover it, so the button steps aside while it is open. */
@media(max-width:540px){.cookie-consent{left:12px;right:12px;bottom:12px;width:auto;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:16px 16px 14px;border-radius:16px}.cookie-consent h2{font-size:15px;margin-bottom:6px}.cookie-consent-actions{margin-top:14px;grid-template-columns:repeat(2,minmax(0,1fr))}.cookie-consent-actions .button{min-height:40px;height:auto;padding:4px 6px;line-height:1.2;justify-content:center;text-align:center;white-space:normal}html.cookie-consent-open #chat-widget-container{display:none!important}}
/* Two buttons side by side need 360px; narrower phones stack them. Larger text wraps instead of overflowing. */
@media(max-width:359px){.cookie-consent-actions{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.cookie-consent-switch span,.cookie-consent-switch span::after{transition:none}}
