﻿.cookie-consent-banner {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 1060;
    max-width: 920px;
    margin: 0 auto;
    padding: 1rem;
    border: 1px solid rgba(129, 20, 39, 0.16);
    border-radius: 1.25rem;
    background: rgba(255, 252, 244, 0.98);
    color: var(--ink);
    box-shadow: 0 1.5rem 4rem rgba(36, 26, 23, 0.22);
    backdrop-filter: blur(16px);
}

.cookie-consent-banner-title {
    margin-bottom: 0.35rem;
    color: var(--cherry);
    font-size: 1rem;
    font-weight: 750;
}

.cookie-consent-banner-text {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.cookie-consent-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1070;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(36, 26, 23, 0.58);
}

.cookie-consent-modal {
    width: min(100%, 680px);
    max-height: min(720px, calc(100vh - 2rem));
    overflow-y: auto;
    border-radius: 1.35rem;
    background: var(--stone);
    color: var(--ink);
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.35);
}

.cookie-consent-modal-header,
.cookie-consent-modal-body,
.cookie-consent-modal-footer {
    padding: 1.25rem;
}

.cookie-consent-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(129, 20, 39, 0.12);
}

.cookie-consent-modal-title {
    margin: 0;
    color: var(--cherry);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.cookie-consent-modal-description {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.cookie-consent-close {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(129, 20, 39, 0.08);
    color: var(--cherry);
}

    .cookie-consent-close:hover,
    .cookie-consent-close:focus {
        background: rgba(129, 20, 39, 0.14);
    }

.cookie-consent-category {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(129, 20, 39, 0.10);
}

    .cookie-consent-category:last-child {
        border-bottom: 0;
    }

.cookie-consent-category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-consent-category-title {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 750;
}

.cookie-consent-category-text {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.cookie-consent-required {
    color: var(--earth-dark);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.cookie-consent-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 650;
    white-space: nowrap;
}

    .cookie-consent-switch input {
        width: 2.5rem;
        height: 1.25rem;
        cursor: pointer;
        accent-color: var(--cherry);
    }

.cookie-consent-modal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    border-top: 1px solid rgba(129, 20, 39, 0.12);
}

@media (max-width: 767.98px) {
    .cookie-consent-banner {
        right: 0.75rem;
        bottom: 0.75rem;
        left: 0.75rem;
    }

    .cookie-consent-actions {
        justify-content: stretch;
    }

        .cookie-consent-actions .btn,
        .cookie-consent-modal-footer .btn {
            width: 100%;
        }

    .cookie-consent-category-header {
        flex-direction: column;
    }

    .cookie-consent-switch {
        width: 100%;
        justify-content: space-between;
    }
}
