.cookie-notice[hidden] {
    display: none;
}

.cookie-notice {
    position: fixed;
    inset: auto 1rem 1rem;
    z-index: 1090;
    max-width: 46rem;
    margin-inline: auto;
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    color: var(--bs-body-color, #dee2e6);
    background: var(--bs-body-bg, #212529);
    border: 1px solid var(--bs-border-color, #495057);
    border-radius: 1rem;
    box-shadow: 0 0.5rem 2rem #0006;
}

.cookie-notice-content {
    padding: clamp(1rem, 3vw, 1.5rem);
}

.cookie-notice summary {
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

@media (max-width: 575px) {
    .cookie-notice {
        inset: auto 0.5rem 0.5rem;
        max-height: calc(100dvh - 1rem);
    }

    .cookie-notice .btn {
        width: 100%;
    }
}
