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

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

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

.cookie-text {
    flex: 1;
}

.cookie-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    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.2s ease;
}

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

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

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

.cookie-btn.decline:hover {
    background-color: #f5f1eb;
    color: #1e3a8a;
}

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

.cookie-btn.reject:hover {
    background-color: #f5f1eb;
    color: #1e3a8a;
}

.cookie-btn.customize {
    background-color: transparent;
    color: #f5f1eb;
    border: 1px solid #ea580c;
}

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

/* Cookie Preferences Panel */
.cookie-preferences {
    display: none;
    background-color: #f5f1eb;
    color: #1e3a8a;
    padding: 24px;
    border-top: 1px solid rgba(245, 241, 235, 0.3);
}

.cookie-preferences.show {
    display: block;
}

.cookie-preferences h3 {
    margin: 0 0 16px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.cookie-category {
    margin-bottom: 16px;
    padding: 12px;
    background-color: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cookie-category h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

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

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

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

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

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

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

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

.cookie-toggle input:disabled + .cookie-slider {
    background-color: #1e3a8a;
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-preferences-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: flex-end;
}

.cookie-preferences-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

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

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

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

.cookie-link {
    color: #f5f1eb;
    text-decoration: underline;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.cookie-link:hover {
    color: #ea580c;
}

/* Responsive design for cookie banner */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .cookie-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    .cookie-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 16px;
    }
    
    .cookie-text p {
        font-size: 0.9rem;
    }
    
    .cookie-actions {
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 80px;
    }
}