/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

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

.cookie-banner-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3a8a;
    margin: 0 0 8px 0;
}

.cookie-banner-text p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.cookie-policy-link {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 500;
}

.cookie-policy-link:hover {
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

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

.cookie-btn-reject {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

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

.cookie-btn-customize {
    background: white;
    color: #1e3a8a;
    border: 1px solid #1e3a8a;
}

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

.cookie-btn-primary {
    background: #1e3a8a;
    color: white;
}

.cookie-btn-primary:hover {
    background: #1e40af;
}

.cookie-btn-secondary {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.cookie-btn-secondary:hover {
    background: #e2e8f0;
}

/* Cookie Customizer */
.cookie-customizer {
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.cookie-customizer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.cookie-customizer h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3a8a;
    margin: 0 0 20px 0;
}

.cookie-categories {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.cookie-category {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
}

.cookie-category-header {
    margin-bottom: 8px;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.cookie-toggle input[type="checkbox"] {
    display: none;
}

.cookie-toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: #e2e8f0;
    border-radius: 12px;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cookie-toggle input[type="checkbox"]:checked + .cookie-toggle-slider {
    background: #10b981;
}

.cookie-toggle input[type="checkbox"]:checked + .cookie-toggle-slider::before {
    transform: translateX(20px);
}

.cookie-toggle input[type="checkbox"]:disabled + .cookie-toggle-slider {
    background: #94a3b8;
    opacity: 0.6;
}

.cookie-category-name {
    font-weight: 500;
    color: #1e3a8a;
    font-size: 0.95rem;
}

.cookie-category-description {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.cookie-customizer-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px;
    }
    
    .cookie-banner-text {
        text-align: center;
    }
    
    .cookie-banner-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 80px;
    }
    
    .cookie-customizer-content {
        padding: 16px;
    }
    
    .cookie-customizer-actions {
        justify-content: stretch;
    }
    
    .cookie-customizer-actions .cookie-btn {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .cookie-banner-actions {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-customizer-actions {
        flex-direction: column;
    }
}

/* Ensure banner doesn't interfere with page content */
body.cookie-banner-visible {
    padding-bottom: 120px;
}

@media (max-width: 768px) {
    body.cookie-banner-visible {
        padding-bottom: 160px;
    }
}