
/* --- Cookie Consent Popup (Dark Theme - Compact) --- */
.cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); /* Darker blocking overlay */
    z-index: 2147483647; /* Maximum z-index */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: flex-end; /* Show at bottom */
    backdrop-filter: blur(15px);
    padding: 15px;
}

.cookie-consent-overlay.active {
    display: flex;
    animation: fadeIn 0.4s ease-out;
}

.cookie-consent-popup {
    width: 100%;
    max-width: 800px;
    background: #1a1a1a; /* Dark background matching footer */
    color: #e0e0e0;
    border-radius: 12px;
    padding: 15px 20px; /* Reduced padding */
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.6);
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 10px; /* Reduced gap */
}

.cookie-consent-overlay.active .cookie-consent-popup {
    transform: translateY(0);
    opacity: 1;
}

.cookie-consent-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.cookie-consent-title {
    font-size: 1rem; /* Smaller title */
    font-weight: 700;
    color: #fff;
    margin: 0;
    font-family: 'DM Sans', sans-serif;
}

.cookie-consent-text {
    font-size: 0.8rem; /* Smaller text */
    color: #ccc;
    line-height: 1.4;
    margin: 0;
}

.cookie-consent-text p {
    margin-bottom: 4px; /* Tighter spacing */
}

.cookie-consent-text p:last-child {
    margin-bottom: 0;
}

.cookie-link {
    color: #BF253A; /* Primary color */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cookie-link:hover {
    color: #EF416E; /* Secondary color */
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
}

.btn-accept-cookies {
    background: #BF253A; /* Primary color */
    color: #fff;
    border: none;
    padding: 8px 20px; /* Smaller button */
    border-radius: 6px;
    font-size: 0.85rem; /* Smaller button text */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(191, 37, 58, 0.3);
    font-family: 'DM Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-accept-cookies:hover {
    background: #EF416E;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(191, 37, 58, 0.4);
}

.btn-accept-cookies:active {
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .cookie-consent-popup {
        padding: 15px;
        border-radius: 12px 12px 0 0;
        margin-bottom: 0;
        max-width: 100%;
    }
    .cookie-consent-actions {
        width: 100%;
    }
    .btn-accept-cookies {
        width: 100%;
        text-align: center;
        padding: 10px;
    }
}

/* Allow viewing content on policy pages */
.cookie-consent-overlay.allow-view {
    background: transparent;
    pointer-events: none; /* Let clicks pass through to the page */
    backdrop-filter: none; /* Remove blur on policy pages */
}

.cookie-consent-overlay.allow-view .cookie-consent-popup {
    pointer-events: auto; /* Keep the popup interactive */
    background: rgba(26, 26, 26, 0.95); /* Ensure popup is readable */
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

body.cookie-consent-open {
    overflow: hidden;
}
