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

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

.cookie-banner-text {
    flex: 1;
}

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

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

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

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

.btn-cookie-primary {
    background-color: #2b6cb0;
    color: white;
    border-color: #2b6cb0;
}

.btn-cookie-primary:hover {
    background-color: #2c5282;
    border-color: #2c5282;
}

.btn-cookie-secondary {
    background-color: transparent;
    color: #4a5568;
    border-color: #cbd5e0;
}

.btn-cookie-secondary:hover {
    background-color: #f7fafc;
    border-color: #a0aec0;
}

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

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

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

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

.cookie-category {
    background-color: 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-color: #cbd5e0;
    border-radius: 12px;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

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

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

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

.cookie-toggle input[type="checkbox"]:disabled + .cookie-toggle-slider {
    background-color: #2b6cb0;
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-toggle input[type="checkbox"]:disabled ~ .cookie-category-name {
    opacity: 0.6;
}

.cookie-category-name {
    font-weight: 500;
    color: #1a365d;
    flex: 1;
}

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

.cookie-customizer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.cookie-policy-link {
    color: #2b6cb0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.cookie-policy-link:hover {
    color: #2c5282;
    text-decoration: underline;
}

.cookie-customizer-buttons {
    display: flex;
    gap: 12px;
}

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

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