/* Cookie Consent Popup */
#cookieConsentOverlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.92);
    color: #fff;
    padding: 20px 30px;
    z-index: 999999;
    font-family: 'Roboto', sans-serif;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.5);
    display: none;
    border-top: 4px solid #1a5276;
}

#cookieConsentOverlay.show {
    display: block !important;
}

.cookie-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.cookie-consent-text {
    flex: 1;
    min-width: 250px;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-consent-text h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: #5dade2;
}

.cookie-consent-text p {
    margin: 0;
    opacity: 0.9;
}

.cookie-consent-text a {
    color: #5dade2;
    text-decoration: underline;
    cursor: pointer;
}

.cookie-consent-text a:hover {
    color: #85c1e9;
}

.cookie-consent-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Roboto', sans-serif;
}

.cookie-btn-accept {
    background: #1a5276;
    color: #fff;
}

.cookie-btn-accept:hover {
    background: #2e86c1;
}

.cookie-btn-settings {
    background: transparent;
    color: #bbb;
    border: 1px solid #555;
}

.cookie-btn-settings:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #888;
    color: #fff;
}

.cookie-btn-decline {
    background: transparent;
    color: #999;
    border: 1px solid #444;
}

.cookie-btn-decline:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: #c0392b;
    color: #e74c3c;
}

/* Settings Panel */
#cookieSettingsPanel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: #fff;
    padding: 30px;
    z-index: 1000000;
    font-family: 'Roboto', sans-serif;
    display: none;
    max-height: 80vh;
    overflow-y: auto;
    border-top: 4px solid #1a5276;
}

#cookieSettingsPanel.show {
    display: block !important;
}

#cookieSettingsPanel h3 {
    color: #5dade2;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
}

#cookieSettingsPanel p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.cookie-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #333;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-setting-item:last-child {
    border-bottom: none;
}

.cookie-setting-info {
    flex: 1;
    min-width: 180px;
}

.cookie-setting-info h5 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 500;
}

.cookie-setting-info p {
    margin: 0;
    font-size: 13px;
    opacity: 0.6;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-toggle {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: .3s;
    border-radius: 28px;
}

.slider-toggle:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.switch input:checked + .slider-toggle {
    background-color: #1a5276;
}

.switch input:checked + .slider-toggle:before {
    transform: translateX(22px);
}

.switch input:disabled + .slider-toggle {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-settings-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.cookie-save-btn {
    padding: 10px 30px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #1a5276;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Roboto', sans-serif;
}

.cookie-save-btn:hover {
    background: #2e86c1;
}

.cookie-close-settings {
    background: transparent;
    color: #999;
    border: 1px solid #555;
    padding: 10px 30px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.cookie-close-settings:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Mobile */
@media (max-width: 768px) {
    #cookieConsentOverlay {
        padding: 15px 20px;
    }
    
    .cookie-consent-inner {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-consent-buttons {
        justify-content: center;
    }
    
    .cookie-btn {
        padding: 8px 18px;
        font-size: 12px;
        flex: 1;
        text-align: center;
    }
    
    #cookieSettingsPanel {
        padding: 20px;
    }
    
    .cookie-setting-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-settings-actions {
        flex-direction: column;
        align-items: stretch;
    }
}