
/* Cookie Consent Specific Styles */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2c3e50; /* Darker background */
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000; /* Ensure it's on top */
    border-top-left-radius: 10px; /* Rounded top corners */
    border-top-right-radius: 10px;
}
#cookie-banner p {
    margin: 0;
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}
#cookie-banner .button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
#cookie-banner button {
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}
#cookie-banner .btn-accept {
    background-color: #4CAF50; /* Green accept button */
    color: white;
    border: 1px solid #4CAF50;
}
#cookie-banner .btn-accept:hover {
    background-color: #45a049;
}
#cookie-banner .btn-reject {
    background-color: #f44336; /* Red reject button */
    color: white;
    border: 1px solid #f44336;
}
#cookie-banner .btn-reject:hover {
    background-color: #da190b;
}
#cookie-banner .btn-customize {
    background-color: #007bff; /* Blue customize button */
    color: white;
    border: 1px solid #007bff;
}
#cookie-banner .btn-customize:hover {
    background-color: #0056b3;
}

#cookie-preferences-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001; /* Above banner */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#cookie-preferences-modal.show {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-height: 90vh; /* Make modal scrollable if content is long */
    overflow-y: auto;
    position: relative;
}
.modal-content h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.75rem;
}
.modal-content .checkbox-group {
    margin-bottom: 20px;
}
.modal-content .checkbox-item {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}
.modal-content .checkbox-item input[type="checkbox"] {
    margin-top: 4px;
    margin-right: 10px;
    transform: scale(1.2); /* Slightly larger checkboxes */
}
.modal-content .checkbox-item label {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}
.modal-content .checkbox-item p {
    font-size: 0.9rem;
    color: #555;
    margin-left: 30px; /* Indent description */
    margin-top: 5px;
    line-height: 1.3;
}
.modal-content .modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}
.modal-content .modal-buttons button {
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.modal-content .btn-save {
    background-color: #28a745; /* Green save button */
    color: white;
    border: 1px solid #28a745;
}
.modal-content .btn-save:hover {
    background-color: #218838;
}
.modal-content .btn-close {
    background-color: #6c757d; /* Gray close button */
    color: white;
    border: 1px solid #6c757d;
}
.modal-content .btn-close:hover {
    background-color: #5a6268;
}
/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    #cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 20px;
    }
    #cookie-banner p {
        text-align: center;
        margin-bottom: 10px;
    }
    #cookie-banner .button-group {
        width: 100%;
        justify-content: center;
    }
    .modal-content {
        padding: 20px;
    }
}

