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

.cookie-consent {
    position: fixed;
    z-index: 100;
    inset-inline-start: max(1rem, env(safe-area-inset-left));
    inset-block-end: max(1rem, env(safe-area-inset-bottom));
    box-sizing: border-box;
    width: min(30rem, calc(100% - 2rem));
    max-height: calc(100% - 2rem);
    overflow: auto;
    padding: clamp(1rem, 4vw, 1.5rem);
    border: 1px solid #dfe6e3;
    border-block-start: .3rem solid var(--public-accent, #490dbc);
    border-radius: .65rem;
    background: #fff;
    color: #152b27;
    box-shadow: 0 12px 40px rgb(14 10 25 / .2);
}

.cookie-consent h2 { margin: 0 0 .5rem; font-size: 1.375rem; line-height: 1.2; }
.cookie-consent p { margin: 0 0 1rem; color: #42534e; font-size: 1rem; line-height: 1.5; }

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

.cookie-consent-actions button {
    min-height: 44px;
    padding: .6rem .5rem;
    border: 1px solid #126247;
    border-radius: .375rem;
    background: #edf7f1;
    color: #103d2e;
    font: inherit;
    font-size: .875rem;
    font-weight: 650;
    cursor: pointer;
}

.cookie-consent-actions button:hover { background: #cbffdc; }
.cookie-consent a { color: #126247; font-size: .875rem; text-decoration: underline; }
.cookie-consent :focus-visible { outline: 2px solid #490dbc; outline-offset: 2px; }

.cookie-consent-settings {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.cookie-consent-settings:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
