/* Cookie Consent Banner Styles */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 10px 0;
    transition: opacity 0.3s ease;
    /* Ensure it doesn't block form buttons */
    pointer-events: auto;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.1em;
}

.cookie-consent-text p {
    margin: 0 0 5px 0;
    color: #666;
    font-size: 0.85em;
    line-height: 1.4;
}

.cookie-consent-text ul {
    margin: 5px 0;
    padding-left: 20px;
}

.cookie-consent-text li {
    margin: 3px 0;
    color: #666;
    font-size: 0.8em;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
}

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

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

.cookie-btn-secondary {
    background-color: #f0f0f0;
    color: #333;
}

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

.cookie-btn-link {
    background: none;
    color: #ff6f10;
    text-decoration: underline;
}

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

/* Cookie Preferences Modal */
#cookie-preferences-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.cookie-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-modal-content h2 {
    margin: 0 0 20px 0;
    color: #333;
}

.cookie-preference-item {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 5px;
}

.cookie-preference-item label {
    display: block;
    cursor: pointer;
}

.cookie-preference-item input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.cookie-preference-item strong {
    color: #333;
    font-size: 1.1em;
}

.cookie-preference-item p {
    margin: 5px 0 0 28px;
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
}

.cookie-modal-buttons {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .cookie-consent-buttons {
        justify-content: center;
    }
    
    .cookie-btn {
        padding: 12px 16px;
        font-size: 0.9em;
    }
    
    .cookie-modal-content {
        padding: 20px;
        width: 95%;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    #cookie-consent-banner {
        background-color: #2a2a2a;
        color: #fff;
    }
    
    .cookie-consent-text h3 {
        color: #fff;
    }
    
    .cookie-consent-text p,
    .cookie-consent-text li {
        color: #ccc;
    }
    
    .cookie-btn-secondary {
        background-color: #444;
        color: #fff;
    }
    
    .cookie-btn-secondary:hover {
        background-color: #555;
    }
    
    .cookie-modal-content {
        background-color: #2a2a2a;
        color: #fff;
    }
    
    .cookie-modal-content h2 {
        color: #fff;
    }
    
    .cookie-preference-item {
        background-color: #333;
    }
    
    .cookie-preference-item strong {
        color: #fff;
    }
    
    .cookie-preference-item p {
        color: #ccc;
    }
}