/* Stile per il contenitore del banner dei cookie */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--light-bg, #1e1e1e);
    color: var(--text-color, #e0e0e0);
    z-index: 1000;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
    display: none; /* Nascosto di default */
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

#cookie-banner p {
    margin: 0;
    flex-grow: 1;
    font-size: 0.9rem;
}

#cookie-banner p a {
    color: var(--primary-color, #007bff);
    text-decoration: underline;
}

#cookie-banner .cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-family, 'Poppins', sans-serif);
    transition: background-color 0.3s ease;
}

.cookie-btn.accept {
    background-color: var(--primary-color, #007bff);
    color: white;
}

.cookie-btn.reject {
    background-color: #4a4a4a;
    color: white;
}

.cookie-btn.customize {
    background-color: transparent;
    border: 1px solid #6c757d;
    color: white;
}

/* Stile per il modale delle preferenze */
#cookie-preferences-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: none; /* Nascosto di default */
    align-items: center;
    justify-content: center;
}

#cookie-preferences-modal .modal-content {
    background-color: var(--dark-bg, #121212);
    padding: 30px;
    border-radius: var(--border-radius, 12px);
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.modal-content .preference-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

.modal-content .preference-item:last-of-type {
    border-bottom: none;
}

.modal-content .preference-item label {
    font-weight: 600;
}

.modal-content .preference-item p {
    font-size: 0.8rem;
    margin: 5px 0 0 0;
}

/* Switch Toggle CSS */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

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

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

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

input:checked + .slider {
    background-color: var(--primary-color, #2196F3);
}

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

input:checked + .slider:before {
    transform: translateX(22px);
}

.modal-actions {
    margin-top: 30px;
    text-align: right;
}

@media (max-width: 768px) {
    #cookie-banner {
        flex-direction: column;
    }
}