.cookie-consent[hidden], .cookie-consent [hidden] { display: none; }

.cookie-consent button {
    min-height: 44px;
    padding: 6px 14px;
    border: 1px solid var(--cookie-button-line, #565a5b);
    border-radius: 0;
    background: var(--cookie-paper, #f8f7f4);
    color: var(--cookie-ink, #202427);
    font: inherit;
    line-height: 1.35;
    cursor: pointer;
}

.cookie-consent button:hover { background: var(--cookie-hover, #eeece6); }
.cookie-consent :is(a, button):focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.cookie-consent__panel {
    box-sizing: border-box;
    position: fixed;
    z-index: 900;
    inset: auto 0 max(16px, env(safe-area-inset-bottom));
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    inline-size: min(385px, calc(100% - 32px));
    max-block-size: calc(100dvh - 32px);
    overflow: auto;
    padding: 10px 12px;
    background: var(--cookie-paper, #f8f7f4);
    color: var(--cookie-ink, #202427);
    border: 1px solid var(--cookie-line, #918e85);
    font-size: 13px;
    line-height: 1.4;
}

.cookie-consent__panel p { margin: 0; }
.cookie-consent__panel a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cookie-consent__panel button { flex: none; }

body.v3:has([data-hero]):not(:has(.v7-header.is-compact)) .cookie-consent__panel {
    --cookie-paper: transparent;
    --cookie-line: color-mix(in srgb, currentColor 30%, transparent);
    --cookie-button-line: color-mix(in srgb, currentColor 48%, transparent);
    --cookie-hover: color-mix(in srgb, currentColor 10%, transparent);
}

body.v3:has([data-hero]):has(.v7-header:not(.is-light, .is-compact)) .cookie-consent__panel {
    --cookie-ink: #f8f7f4;
}

body.v3:has([data-matte-hero]):not(:has(.v7-header.is-compact)) .cookie-consent__panel {
    --cookie-ink: #202427;
}

@media (min-width: 361px) and (max-width: 680px) {
    body.v3:has([data-hero]):not(:has(.v7-header.is-compact)) .cookie-consent__panel {
        bottom: max(70px, env(safe-area-inset-bottom));
    }
}

@media (max-width: 360px) {
    .cookie-consent__panel { padding: 1px 7px; gap: 6px; }
    body.v3:has([data-hero]):not(:has(.v7-header.is-compact)) .cookie-consent__panel {
        bottom: env(safe-area-inset-bottom);
    }
}

.cookie-consent__settings {
    margin-block: 20px 28px;
    padding: 12px 16px;
    border: 1px solid #d9d6ce;
    scroll-margin-block-start: 100px;
}
.cookie-consent__settings h2 { margin: 0 0 6px; font-size: 18px; }
.cookie-consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }
