/* --- Overlay --- */
.cookie-prefs-overlay {
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0; */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    animation: fadeIn 0.3s ease-out;
    margin: 0 auto;
}

.cookie-prefs-overlay.hidden {
    display: none !important;
}

/* --- Modal --- */
.cookie-prefs-modal {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    max-width: 650px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 auto;
}

/* --- Modal heading --- */
.cookie-prefs-modal h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-H1-color, #333);
    font-weight: 600;
}

/* --- Labels / checkboxes --- */
.cookie-prefs-modal label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    color: #333;
    margin-left: 0%;
}
.cookie-prefs-modal-explain {
    display: flex;
    flex-direction: column;
}
.cookie-prefs-modal-explain p {
    font-size: .85rem;
    line-height: 1.4;
    padding-top: 5px;
}
.cookie-prefs-modal-explain a {
    color: var(--color-underline-cta);
    text-decoration: underline;
    cursor: pointer;
}
.cookie-prefs-modal-explain a:hover {
    text-decoration-color: var(--color-underline-cta);
    cursor: pointer;
}
.cookie-prefs-modal input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Disabled essential cookie */
.cookie-prefs-modal input[disabled] {
    cursor: not-allowed;
}

/* --- Buttons container --- */
.prefs-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    margin-top: 1rem;
}

/* --- Buttons --- */
.prefs-buttons button {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

/* Save button */
.prefs-save {
    background-color: #007bff;
    color: #fff;
}

.prefs-save:hover {
    background-color: #0066d2;
}

/* Close button */
.prefs-close {
    background-color: #E5E5E5;
    color: #333;
}

.prefs-close:hover {
    background-color: #d2d2d2;
}

/* --- Fade-in animation --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Responsive --- */
@media (max-width: 576px) {
    .cookie-prefs-modal {
        max-width: 90%;
        padding: 1.5rem;
    }

    .prefs-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
}

