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

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

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

.cookie-text {
    margin-bottom: 1rem;
}

.cookie-text h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #f3f4f6;
    margin-bottom: 0.5rem;
}

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

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

.cookie-btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

.cookie-accept:hover {
    background: #b91c1c;
}

.cookie-reject {
    background: transparent;
    color: #d1d5db;
    border: 1px solid #4b5563;
}

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

.cookie-customize {
    background: #4f46e5;
    color: white;
}

.cookie-customize:hover {
    background: #3730a3;
}

.cookie-link {
    color: #6366f1;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 0.625rem 0.5rem;
}

.cookie-link:hover {
    color: #8b5cf6;
    text-decoration: underline;
}

/* Cookie Customization Panel */
.cookie-customization {
    background: #374151;
    margin-top: 1rem;
    border-radius: 8px;
    padding: 1.5rem;
    border-top: 1px solid #4b5563;
}

.cookie-custom-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #f3f4f6;
    margin-bottom: 1rem;
}

.cookie-categories {
    margin-bottom: 1.5rem;
}

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

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cookie-toggle {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
}

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

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: #6b7280;
    border-radius: 12px;
    transition: background 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

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

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

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

.cookie-toggle input[type="checkbox"]:disabled + .toggle-slider {
    background: #4b5563;
    cursor: not-allowed;
}

.cookie-info {
    flex: 1;
}

.cookie-info strong {
    display: block;
    color: #f3f4f6;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cookie-info p {
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.4;
    margin: 0;
}

.cookie-custom-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-save {
    background: #dc2626;
    color: white;
}

.cookie-save:hover {
    background: #b91c1c;
}

.cookie-cancel {
    background: transparent;
    color: #d1d5db;
    border: 1px solid #4b5563;
}

.cookie-cancel:hover {
    background: #4b5563;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-actions {
        justify-content: center;
    }
    
    .cookie-btn {
        padding: 0.75rem 1.5rem;
    }
    
    .cookie-customization {
        padding: 1rem;
    }
    
    .cookie-toggle {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .toggle-slider {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 0.75rem 0;
    }
    
    .cookie-content,
    .cookie-customization {
        padding: 0 15px;
    }
    
    .cookie-actions {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cookie-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .cookie-custom-actions {
        flex-direction: column;
    }
    
    .cookie-custom-actions .cookie-btn {
        width: 100%;
        max-width: none;
    }
}