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

.cookie-consent {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    background: rgba(20, 28, 32, 0.48);
}

.cookie-consent__panel {
    width: min(100%, 760px);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 1.25rem;
    border: none;
    border-radius: 8px;
    background: #fff;
    color: #17211e;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.cookie-consent__copy h2 {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    letter-spacing: 0;
}

.cookie-consent__copy p {
    margin: 0;
    line-height: 1.55;
}

.cookie-consent__copy a {
    color: #095f86;
    font-weight: 700;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.cookie-consent__button {
    min-height: 44px;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 6px;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0;
    cursor: pointer;
}

.cookie-consent__button:focus-visible {
    outline: 3px solid #ffd737;
    outline-offset: 2px;
}

.cookie-consent__button--primary {
    background: #FFE477;
    color: #200D2A;
}

.cookie-consent__button--secondary {
    background: #fff;
    color: #200D2A;
}

.cookie-consent__preferences {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #cbd4d0;
}

.cookie-consent__preference {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
}

.cookie-consent__preference span {
    display: grid;
    gap: 0.2rem;
}

.cookie-consent__preference small {
    line-height: 1.4;
}

.cookie-consent__preference input {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

@media (max-width: 560px) {
    .cookie-consent__actions,
    .cookie-consent__button {
        width: 100%;
    }
}
