.cookie-panel,
.cookie-reopen {
    position: fixed;
    inset-inline-start: 1rem;
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 60;
    color: #171717;
    background: #fff;
    border: 1px solid #525252;
    border-radius: .5rem;
    box-shadow: 0 .25rem 1.25rem rgb(0 0 0 / .18);
}

.cookie-panel {
    width: min(34rem, calc(100% - 2rem));
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    padding: 1rem;
    font-size: .9375rem;
    line-height: 1.5;
}

.cookie-panel h2 {
    margin: 0 0 .5rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.cookie-panel a { text-decoration: underline; }
.cookie-panel details { margin-block: .75rem; }
.cookie-panel summary { cursor: pointer; }
.cookie-panel details p { margin-top: .5rem; }

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .75rem;
}

.cookie-actions button,
.cookie-reopen {
    padding: .5rem .75rem;
    min-height: 44px;
    border: 1px solid #525252;
    border-radius: .375rem;
    font: inherit;
    cursor: pointer;
}

.cookie-actions button {
    flex: 1 1 auto;
    color: #171717;
    background: #f5f5f5;
}

.cookie-actions button:hover,
.cookie-reopen:hover { background: #e5e5e5; }
.cookie-panel :focus-visible,
.cookie-reopen:focus-visible { outline: 2px solid #1d4ed8; outline-offset: 2px; }
.cookie-panel[hidden],
.cookie-reopen[hidden] { display: none; }
