/* ========================================== */
/* 1. COOKIE CONSENT BANNER STYLES            */
/* ========================================== */
.cookie-consent-banner {
    position: fixed; 
    bottom: 20px; 
    left: 50%; 
    transform: translateX(-50%);
    width: 100%; 
    max-width: 50%; 
    background-color: #ffffff; 
    color: #333333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); 
    border-radius: 8px; 
    padding: 24px;
    font-size: 14px; 
    line-height: 1.5; 
    z-index: 999999; 
    box-sizing: border-box; 
    display: none; 
}
.cookie-consent-text { 
    margin-bottom: 20px; 
}
.cookie-consent-text p { 
    margin: 0 0 10px 0; 
}
.cookie-consent-text a { 
    color: #0066cc; 
    text-decoration: underline; 
    font-weight: 500; 
}
.cookie-consent-buttons { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 12px; 
    justify-content: flex-end; 
}

/* ========================================== */
/* 2. GENERAL BUTTON STYLES                   */
/* ========================================== */
.cookie-btn { 
    padding: 11px 22px; 
    border-radius: 6px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: background-color 0.2s; 
    font-size: 14px; 
    flex: 1; 
    min-width: 130px; 
    text-align: center; 
}
.cookie-btn-accept { 
    background-color: #10b981; 
    color: #ffffff; 
    border: 1px solid #10b981; 
}
.cookie-btn-accept:hover { 
    background-color: #059669; 
}
.cookie-btn-reject { 
    background-color: #f3f4f6; 
    color: #1f2937; 
    border: 1px solid #d1d5db; 
}
.cookie-btn-reject:hover { 
    background-color: #e5e7eb; 
}
.cookie-btn-preferences { 
    background-color: transparent; 
    color: #4b5563; 
    border: 1px solid #cbd5e1; 
}
.cookie-btn-preferences:hover { 
    background-color: #f8fafc; 
}

/* ========================================== */
/* 3. MODAL SHELL & STRUCTURE                 */
/* ========================================== */
.cookie-modal-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.6); 
    display: none; 
    justify-content: center; 
    align-items: center; 
    z-index: 1000000; 
}
.cookie-modal { 
    background: #ffffff; 
    padding: 28px; 
    border-radius: 8px; 
    width: 100%; 
    max-width: 50%; 
    box-sizing: border-box; 
}
.cookie-modal-wide { 
    max-width: 50%; 
}
.cookie-modal h3 { 
    margin-top: 0; 
    font-size: 18px; 
    color: #111; 
}
.cookie-modal-buttons { 
    margin-top: 24px; 
    display: flex; 
    justify-content: flex-end; 
    gap: 12px; 
}

/* ========================================== */
/* 4. PREFERENCES LIST & LAYOUT               */
/* ========================================== */
.cookie-preference-item { 
    display: flex !important; 
    justify-content: space-between !important; 
    align-items: center !important; 
    padding: 14px 0; 
    border-bottom: 1px solid #f1f5f9; 
    width: 100%;
}
.cookie-preference-info { 
    flex: 1;
    padding-right: 20px;
    text-align: left;
}
.cookie-preference-title { 
    font-weight: 600; 
    display: block; 
    color: #1e293b; 
    margin-bottom: 2px;
}
.cookie-preference-desc { 
    font-size: 12.5px; 
    color: #64748b; 
    line-height: 1.4; 
}

/* ========================================== */
/* 5. CUSTOM DIV TOGGLES (No-Collision Switch) */
/* ========================================== */
.cookie-custom-toggle { 
    position: relative; 
    display: inline-block !important; 
    width: 44px !important; 
    height: 24px !important; 
    min-width: 44px !important; 
    background-color: #cbd5e1; 
    border-radius: 24px; 
    cursor: pointer; 
    transition: background-color 0.3s;
    flex-shrink: 0; /* Prevents the switch from shrinking out of view */
}
.cookie-custom-slider { 
    position: absolute; 
    content: ""; 
    height: 16px !important; 
    width: 16px !important; 
    left: 4px !important; 
    bottom: 4px !important; 
    background-color: #ffffff !important; 
    transition: transform 0.3s ease; 
    border-radius: 50%; 
    display: block !important;
}

/* Active State */
.cookie-custom-toggle.is-active { 
    background-color: #10b981 !important; 
}
.cookie-custom-toggle.is-active .cookie-custom-slider { 
    transform: translateX(20px) !important; 
}

/* Disabled State (For Essential) */
.cookie-custom-toggle.is-disabled { 
    background-color: #e2e8f0 !important; 
    cursor: not-allowed; 
}

/* ========================================== */
/* 6. STATIC COOKIE POLICY PAGE               */
/* ========================================== */
.cookie-policy-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 2px solid #f1f5f9; 
    padding-bottom: 10px; 
    margin-bottom: 15px; 
}
.cookie-policy-date { 
    font-size: 12px; 
    color: #64748b; 
}
.cookie-policy-scrollable-content { 
    max-height: 380px; 
    overflow-y: auto; 
    padding-right: 10px; 
    font-size: 13.5px; 
    color: #334155; 
    line-height: 1.6; 
    text-align: left; 
}
.cookie-policy-scrollable-content h4 { 
    color: #0f172a; 
    margin: 20px 0 10px 0; 
    font-size: 15px; 
}
.cookie-policy-table { 
    width: 100%; 
    border-collapse: collapse; 
    margin: 10px 0 20px 0; 
    font-size: 12px; 
}
.cookie-policy-table th, .cookie-policy-table td { 
    padding: 8px 10px; 
    border: 1px solid #e2e8f0; 
    text-align: left; 
}
.cookie-policy-table th { 
    background-color: #f8fafc; 
    font-weight: 600; 
    color: #1e293b; 
}

/* ========================================== */
/* 7. RESPONSIVE MEDIA QUERIES                */
/* ========================================== */
@media (max-width: 480px) {
    .cookie-consent-buttons { 
        flex-direction: column; 
    }
    .cookie-btn { 
        width: 100%; 
        flex: none; 
    }
}