.cookie-consent[hidden],
.cookie-preferences[hidden] {
    display: none !important;
}

.cookie-consent {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1400;
}

.cookie-consent__panel,
.cookie-preferences__dialog {
    background: rgba(9, 13, 20, 0.96);
    border: 1px solid rgba(255, 193, 7, 0.24);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
    color: #f3f4f6;
}

.cookie-consent__panel {
    max-width: 1080px;
    margin: 0 auto;
    border-radius: 18px;
    padding: 1rem 1.1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.cookie-consent__copy p {
    margin: 0.35rem 0 0;
    color: rgba(255, 255, 255, 0.78);
}

.cookie-consent__actions,
.cookie-preferences__footer-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.cookie-consent__btn {
    border-radius: 999px;
    padding: 0.72rem 1rem;
    border: 1px solid rgba(255, 193, 7, 0.24);
    cursor: pointer;
    font-weight: 700;
}

.cookie-consent__btn--ghost {
    background: transparent;
    color: #f6e8b6;
}

.cookie-consent__btn--primary {
    background: linear-gradient(135deg, #ffcf63, #d69a1d);
    color: #141414;
}

.legal-inline-button {
    border: 0;
    background: none;
    color: #f6e8b6;
    padding: 0;
    text-decoration: underline;
    cursor: pointer;
}

.cookie-preferences {
    position: fixed;
    inset: 0;
    z-index: 1500;
}

.cookie-preferences__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
}

.cookie-preferences__dialog {
    position: relative;
    max-width: 760px;
    margin: 5vh auto;
    border-radius: 20px;
    padding: 1.25rem;
}

.cookie-preferences__header,
.cookie-preferences__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cookie-preferences__close {
    background: transparent;
    border: 0;
    color: #f5deb3;
    font-size: 1.8rem;
    cursor: pointer;
}

.cookie-preferences__list {
    display: grid;
    gap: 0.8rem;
    margin: 1rem 0;
}

.cookie-toggle {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-toggle small {
    display: block;
    margin-top: 0.3rem;
    color: rgba(255, 255, 255, 0.68);
}

.cookie-toggle input {
    width: 20px;
    height: 20px;
    accent-color: #f0b93f;
}

.cookie-toggle.is-locked {
    opacity: 0.85;
}

@media (max-width: 767px) {
    .cookie-consent__panel,
    .cookie-preferences__header,
    .cookie-preferences__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-preferences__dialog {
        margin: 1rem;
    }
}