.cookie-consent {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(28rem, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    overscroll-behavior: contain;
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 0;
    border-radius: 4px;
    background: var(--forest-2, #12291c);
    color: var(--on-dark, #eef0e6);
    box-shadow: 0 .75rem 2.5rem rgb(0 0 0 / 28%);
    font-size: .9375rem;
    line-height: 1.45;
}

.cookie-consent::backdrop {
    background: rgb(10 26 17 / 42%);
    backdrop-filter: blur(7px);
}

html:has(.cookie-consent[open]) { overflow: hidden; }

.cookie-consent h2 {
    margin: 0 0 .35rem;
    font-size: 1.2rem;
    font-weight: 650;
    line-height: 1.2;
}

.cookie-consent h2:focus { outline: none; }
.cookie-consent p { margin: 0; }
.cookie-consent a { color: inherit; text-underline-offset: .15em; }

.cookie-consent__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
    margin-block: 1rem .75rem;
}

.cookie-consent__choice {
    min-height: 2.75rem;
    padding: .5rem .75rem;
    border: 1px solid currentColor;
    border-radius: 3px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.cookie-consent__choice:hover { background: rgb(255 255 255 / 10%); }

.cookie-consent__choice--primary {
    border-color: transparent;
    background: var(--lime, #d8ff63);
    color: var(--ink, #0c120e);
}

.cookie-consent__choice--primary:hover { background: var(--lime-2, #c6f03c); }

@media (max-width: 700px) {
    .cookie-consent {
        inset: auto max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
        margin: 0;
        width: auto;
        max-width: none;
        max-height: calc(100dvh - max(1rem, env(safe-area-inset-top)) - max(1rem, env(safe-area-inset-bottom)));
    }

    .cookie-consent__actions { grid-template-columns: minmax(0, 1fr); }
}

.cookie-consent__preferences[open] { border-block-start: 1px solid #75866d; padding-block-start: .65rem; }
.cookie-consent__preferences summary { cursor: pointer; min-height: 1.5rem; }
.cookie-consent__preferences p { margin-block: .5rem; }
.cookie-consent__preferences label { display: flex; align-items: center; gap: .5rem; min-height: 2.75rem; }
.cookie-consent__preferences input { accent-color: var(--lime, #d8ff63); }
.cookie-consent__preferences button { margin-block-start: .4rem; }

.cookie-consent :focus-visible { outline: 2px solid var(--lime, #d8ff63); outline-offset: 3px; }

.cookie-settings-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.cookie-settings-link:hover { text-decoration: underline; }
.ft__legal nav:has(.cookie-settings-link) { flex-wrap: wrap; gap: .5rem 1.25rem; }
