/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e3a5f;
    color: white;
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.4;
}

.cookie-banner-text a {
    color: #f59e0b;
    text-decoration: none;
}

.cookie-banner-text a:hover {
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.5rem 0.875rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: #f59e0b;
    color: white;
}

.cookie-btn-accept:hover {
    background: #d97706;
}

.cookie-btn-reject {
    background: transparent;
    color: #cbd5e1;
    border: 1px solid #475569;
}

.cookie-btn-reject:hover {
    background: #475569;
    color: white;
}

.cookie-btn-customize {
    background: transparent;
    color: #cbd5e1;
    border: 1px solid #475569;
}

.cookie-btn-customize:hover {
    background: #475569;
    color: white;
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-modal h3 {
    color: #1e3a5f;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 2rem;
}

.cookie-category h4 {
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.cookie-category p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cookie-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cookie-switch.active {
    background: #f59e0b;
}

.cookie-switch.disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.cookie-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.cookie-switch.active::after {
    transform: translateX(20px);
}

.cookie-toggle label {
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

.cookie-toggle label.disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

.cookie-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cookie-modal-actions .cookie-btn {
    min-width: 100px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner-text {
        min-width: auto;
    }
    
    .cookie-banner-actions {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-btn {
        min-width: 90px;
    }
    
    .cookie-modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .cookie-modal-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 0.75rem;
    }
    
    .cookie-banner-actions {
        gap: 0.5rem;
    }
    
    .cookie-btn {
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }
    
    .cookie-modal-actions .cookie-btn {
        min-width: 80px;
    }
}