/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e3a8a;
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    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: 2rem;
}

.cookie-text {
    flex: 1;
}

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

.cookie-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

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

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

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

.cookie-btn.reject {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn.reject:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cookie-link {
    color: #93c5fd;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.cookie-link:hover {
    color: white;
    text-decoration: underline;
}

/* Cookie Customization Modal */
.cookie-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.cookie-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #6b7280;
}

.cookie-modal-close:hover {
    color: #1e3a8a;
}

.cookie-modal h3 {
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.cookie-category {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.cookie-category h4 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

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

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1e3a8a;
}

.cookie-toggle label {
    font-size: 0.9rem;
    color: #374151;
    cursor: pointer;
}

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

.cookie-toggle label.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.cookie-modal-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

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

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .cookie-link {
        text-align: center;
        width: 100%;
    }
    
    .cookie-modal-content {
        margin: 2% auto;
        padding: 1.5rem;
        width: 95%;
        max-height: 90vh;
    }
    
    .cookie-modal-buttons {
        flex-direction: column;
    }
    
    .cookie-modal-btn {
        width: 100%;
    }
}