.cookie-banner[hidden], .cookie-banner [hidden], #cookie-settings[hidden] { display: none; }
.cookie-page, .cookie-banner { --consent-ink: #171717; }
.cookie-banner {
    position: fixed;
    z-index: 1400;
    left: max(14px, env(safe-area-inset-left));
    bottom: max(14px, env(safe-area-inset-bottom));
    box-sizing: border-box;
    width: min(460px, calc(100% - 28px));
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px;
    color: var(--consent-ink);
    background: #fff;
    border: 1px solid #e7e5e1;
    border-radius: 18px;
    box-shadow: 0 10px 38px #211b1126, 0 2px 6px #211b110c;
    font: 400 14px/1.48 Poppins, sans-serif;
}
.cookie-symbol { display: grid; place-items: center; width: 36px; height: 36px; color: var(--consent-ink); background: #fff2cc; border-radius: 14px; }
.cookie-symbol svg { width: 24px; height: 24px; }
.cookie-banner h2 { margin: 0 0 8px; color: inherit; font: 600 17px/1.3 Poppins, sans-serif; letter-spacing: -.035em; }
.cookie-banner p { margin: 0 0 18px; color: #625f58; font: inherit; }
.cookie-banner a, .cookie-back { color: var(--consent-ink); font-weight: 500; }
.cookie-banner a { text-decoration: underline; text-decoration-color: var(--brand-yellow); text-underline-offset: 3px; }
.cookie-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie-card-actions button { min-height: 44px; padding: 8px; border: 1px solid #d8d5ce; border-radius: 11px; color: var(--consent-ink); background: #fff; font: 500 13px/1.4 Poppins, sans-serif; cursor: pointer; }
.cookie-card-actions button:hover { background: #f7f6f2; }
.cookie-card-actions .cookie-primary { grid-column: 1 / -1; border-color: var(--brand-yellow); background: var(--brand-yellow); color: var(--consent-ink); }
.cookie-card-actions .cookie-primary:hover { background: #edac00; }
.cookie-page :focus-visible, .cookie-banner :focus-visible { outline: 3px solid #856300; outline-offset: 2px; }
.cookie-line-icon { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cookie-back { display: inline-flex; align-items: center; gap: 4px; padding: 4px 0; margin-bottom: 12px; background: transparent; border: 0; font-family: inherit; cursor: pointer; }
.cookie-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; margin: 0 0 8px; background: #f8f7f4; border: 1px solid #e7e5e1; border-radius: 12px; }
label.cookie-option { cursor: pointer; }
.cookie-option strong, .cookie-option small { display: block; }
.cookie-option strong { font-size: 13px; font-weight: 500; }
.cookie-option small { color: #625f58; font-size: 12px; line-height: 1.4; }
.cookie-check { display: grid; place-items: center; width: 25px; height: 25px; color: var(--consent-ink); background: #fff2cc; border-radius: 50%; }
.cookie-option input { appearance: none; flex: 0 0 36px; width: 36px; height: 22px; margin: 0; padding: 3px; border: 0; border-radius: 12px; background: #807e79; cursor: pointer; }
.cookie-option input::before { content: ''; display: block; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #211b1135; }
.cookie-option input:checked { background: var(--brand-yellow); }
.cookie-option input:checked::before { background: var(--consent-ink); transform: translateX(14px); }
#cookie-card-settings .cookie-card-actions { margin-top: 12px; }

.cookie-welcome { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; }
.cookie-welcome h2 { margin: 0; }
.cookie-welcome p { grid-column: 1 / -1; margin: 0; }
.cookie-welcome .cookie-card-actions { grid-column: 1 / -1; margin-top: 6px; }
@media (min-width: 480px) {
    .cookie-welcome .cookie-card-actions { grid-template-columns: 1.5fr 1fr 1fr; }
    .cookie-welcome .cookie-primary { grid-column: auto; }
}

.cookie-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
    grid-template-areas: "copy settings";
    gap: clamp(24px, 5vw, 72px);
    align-items: start;
    padding-bottom: 56px;
}
.cookie-copy { grid-area: copy; }
.cookie-page-grid h2 { margin: 0 0 8px; color: var(--consent-ink); font: 600 19px/1.35 Poppins, sans-serif; letter-spacing: -.025em; }
.cookie-page-grid p { margin: 0; color: #625f58; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.cookie-copy h2:not(:first-child) { margin-top: 24px; }
.cookie-copy .cookie-providers { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; }
.cookie-providers a { color: var(--consent-ink); text-decoration: underline; text-decoration-color: var(--brand-yellow); text-underline-offset: 3px; }
#cookie-settings { grid-area: settings; padding: clamp(16px, 2vw, 24px); border: 1px solid #e7e5e1; border-radius: 18px; }
#cookie-settings > p:first-of-type { margin: 0 0 16px; }
#cookie-settings .cookie-card-actions { margin-top: 14px; }
#cookie-settings .cookie-primary { grid-column: auto; }
#cookie-settings .cookie-status:not(:empty) { margin-top: 10px; }
@media (max-width: 767px) {
    .cookie-page-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "settings" "copy"; }
}
