.cookie-banner {
    position: fixed;
    z-index: 85;
    inset: auto 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 5px clamp(12px, 3vw, 36px) calc(5px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--brand-line);
    background: #fff;
    color: var(--brand-muted);
}
/* The notice and the page actions share the lower edge, even when text wraps. */
body:has(.cookie-banner:not([hidden])) .site-footer { margin-bottom: var(--cookie-notice-height, 0px); }
body:has(.cookie-banner:not([hidden])) :is(.blog-sticky-cta, .mobile-app-nav, .qr-cart-bar) {
    translate: 0 calc(-1 * var(--cookie-notice-height, 0px));
}
@media (max-width: 760px) {
    body.has-selection:has(.cookie-banner:not([hidden])) .selection-dock {
        translate: 0 calc(-1 * var(--cookie-notice-height, 0px));
    }
}
.cookie-banner-copy p { margin: 0; font-size: 12px; line-height: 1.5; }
.cookie-banner-copy a { color: var(--brand-purple-hover); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cookie-primary, .cookie-secondary { padding: 8px 14px; border: 0; border-radius: 8px; font: inherit; font-size: 12px; font-weight: 650; }
.cookie-primary { background: var(--brand-purple); color: white; }
.cookie-primary:hover { background: var(--brand-purple-hover); }
.cookie-secondary { background: transparent; color: var(--brand-ink-soft); }
.cookie-secondary:hover, .cookie-footer-settings:hover { text-decoration: underline; }
.cookie-footer-settings { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; }
.cookie-dialog-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--brand-purple-wash); color: var(--brand-purple); }
.cookie-dialog{width:min(820px,calc(100% - 28px));max-height:min(760px,calc(100dvh - 32px));padding:0;border:0;border-radius:25px;background:#fff;color:var(--brand-ink);box-shadow:0 30px 100px color-mix(in srgb, var(--brand-purple-shadow) 34%, transparent);overflow:hidden}.cookie-dialog::backdrop{background:color-mix(in srgb, var(--brand-purple-shadow) 60%, transparent);backdrop-filter:blur(3px)}.cookie-dialog header{display:flex;align-items:center;justify-content:space-between;padding:24px 27px;border-bottom:1px solid var(--brand-line)}.cookie-dialog header>div{display:flex;align-items:center;gap:13px}.cookie-dialog header small{display:block;color:var(--brand-muted-light);font-size:9px;font-weight:800;letter-spacing:.14em}.cookie-dialog h2{margin:3px 0 0;font-size:22px;line-height:1.2}.cookie-dialog header>button{width:39px;height:39px;border:0;border-radius:50%;background:var(--brand-surface);color:var(--brand-muted);font-size:25px}.cookie-dialog-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:18px 27px;background:var(--brand-purple-mist)}.cookie-dialog-intro p{max-width:590px;margin:0;color:var(--brand-muted);font-size:12px;line-height:1.6}.cookie-dialog-intro a{flex:0 0 auto;color:var(--brand-purple-hover);font-size:12px;font-weight:750}.cookie-options{max-height:460px;padding:5px 27px;overflow-y:auto}.cookie-options article{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px;padding:19px 0;border-bottom:1px solid var(--brand-surface)}.cookie-options h3{margin:0 0 5px;font-size:15px}.cookie-options p{max-width:620px;margin:0;color:var(--brand-muted);font-size:12px;line-height:1.55}.cookie-switch{display:grid;grid-template-columns:auto;justify-items:center;gap:5px;min-width:94px;cursor:pointer}.cookie-switch input{position:absolute;opacity:0;pointer-events:none}.cookie-switch span{position:relative;width:48px;height:26px;border-radius:99px;background:var(--brand-purple-border);transition:.2s}.cookie-switch span::after{content:"";position:absolute;left:4px;top:4px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 2px 7px color-mix(in srgb, var(--brand-purple-night) 15%, transparent);transition:.2s}.cookie-switch input:checked+span{background:var(--brand-purple)}.cookie-switch input:checked+span::after{transform:translateX(22px)}.cookie-switch em{color:var(--brand-muted-light);font-size:9px;font-style:normal}.cookie-switch.is-required{cursor:default}.cookie-switch.is-required span{background:var(--brand-purple-outline)}.cookie-dialog footer{display:flex;justify-content:flex-end;padding:18px 27px;border-top:1px solid var(--brand-line);background:#fff}

.cookie-dialog { overflow-y: auto; }
.cookie-options { max-height: none; }
.cookie-switch input:focus-visible + span { outline: 3px solid var(--brand-purple); outline-offset: 3px; }
@media(max-width:700px) {
    .cookie-banner { flex-wrap: wrap; justify-content: start; gap: 2px 12px; padding-block: 7px calc(7px + env(safe-area-inset-bottom)); }
    .cookie-banner-actions { flex-wrap: wrap; }
    .cookie-banner button { min-height: 34px; }
    .cookie-dialog{max-height:calc(100dvh - 20px);border-radius:20px}.cookie-dialog header{padding:18px}.cookie-dialog h2{font-size:18px}.cookie-dialog-intro{display:block;padding:15px 18px}.cookie-dialog-intro a{display:inline-block;margin-top:8px}.cookie-options{padding:0 18px}.cookie-options article{grid-template-columns:minmax(0,1fr);gap:12px;padding:17px 0}.cookie-switch{grid-template-columns:auto 1fr;justify-items:start;align-items:center;min-width:0}.cookie-dialog footer{padding:15px 18px}
}
@media(prefers-reduced-motion:reduce){.cookie-switch span,.cookie-switch span::after{transition:none}}
