/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 3px solid #1e3a8a;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    padding: 1.5rem;
    display: none;
}

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

.cookie-banner-text {
    flex: 1;
    max-width: 600px;
}

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

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

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

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

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

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

.cookie-btn-secondary {
    background-color: #6b7280;
    color: white;
}

.cookie-btn-secondary:hover {
    background-color: #4b5563;
}

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

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

.cookie-policy-link {
    color: #1e3a8a;
    text-decoration: underline;
    font-size: 0.9rem;
}

.cookie-policy-link:hover {
    color: #3b82f6;
}

/* Cookie Customizer */
.cookie-customizer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

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

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

.cookie-category:last-of-type {
    margin-bottom: 1.5rem;
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.cookie-category-info h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
}

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

/* Cookie Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin-top: 2px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.2s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: #1e3a8a;
}

input:checked + .cookie-slider:before {
    transform: translateX(20px);
}

input:disabled + .cookie-slider {
    background-color: #9ca3af;
    cursor: not-allowed;
}

input:disabled + .cookie-slider:before {
    background-color: #f3f4f6;
}

.cookie-customizer-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cookie-banner-actions {
        justify-content: flex-start;
        width: 100%;
    }
    
    .cookie-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .cookie-category-header {
        align-items: center;
    }
    
    .cookie-customizer-actions {
        flex-direction: column;
    }
    
    .cookie-customizer-actions .cookie-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cookie-banner-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
    
    .cookie-policy-link {
        text-align: center;
        margin-top: 0.5rem;
    }
}