/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    font-family: 'Open Sans', Arial, sans-serif;
}

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

.cookie-banner.hide {
    transform: translateY(100%);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .cookie-banner-content {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }
}

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

.cookie-banner-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #0057b8;
}

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

.cookie-banner-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .cookie-banner-buttons {
        flex-direction: row;
        gap: 0.75rem;
    }
}

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

.cookie-btn-primary {
    background: linear-gradient(90deg, #0057b8, #3b7bc7);
    color: white;
}

.cookie-btn-primary:hover {
    background: linear-gradient(90deg, #004494, #2a5a9a);
    transform: translateY(-1px);
}

.cookie-btn-secondary {
    background: #f8f9fa;
    color: #374151;
    border: 1px solid #d1d5db;
}

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

.cookie-btn-link {
    background: transparent;
    color: #0057b8;
    text-decoration: underline;
    padding: 0.5rem 1rem;
}

.cookie-btn-link:hover {
    color: #004494;
}

/* Cookie Settings Panel */
.cookie-settings-panel {
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
    padding-top: 1.5rem;
}

.cookie-settings-panel.hidden {
    display: none;
}

.cookie-settings-content h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #0057b8;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
}

.cookie-category-header {
    margin-bottom: 0.5rem;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #374151;
}

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

.cookie-toggle-slider {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background-color: #cbd5e0;
    border-radius: 24px;
    margin-right: 0.75rem;
    transition: background-color 0.3s ease;
}

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

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

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

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

.cookie-toggle input[type="checkbox"]:disabled ~ .cookie-toggle-label {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-category-description {
    margin: 0;
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
}

.cookie-settings-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .cookie-settings-buttons {
        flex-direction: row;
        gap: 0.75rem;
    }
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .cookie-banner-content {
        padding: 1rem;
    }
    
    .cookie-banner-text h3 {
        font-size: 1rem;
    }
    
    .cookie-banner-text p {
        font-size: 0.8rem;
    }
    
    .cookie-btn {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
    }
    
    .cookie-category {
        padding: 0.75rem;
    }
}
