/*
Theme Name: Lumesia Insurance CMS
Description: This is a custom child theme for Salient - FAI Lumesia Insurance
Author: Paolo Beraldo
Author URI:  https://paolo-beraldo.com/
Template: salient
Version: 1.0
*/

/* Stili per popup consensi con loading spinner */
#send_consent.disabled {
    opacity: 0.7;
    cursor: not-allowed !important;
}

#send_consent .fa-spinner {
    animation: spin 1s linear infinite;
}

/* Spinner alternativo se Font Awesome non è disponibile */
#send_consent .loading-spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
    font-size: 16px;
    font-weight: bold;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Miglioramenti per il popup consensi */
.consent-popup {
    max-width: 600px;
    padding: 20px;
}

.consent-popup .consensi {
    width: 102%;
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 20px;
    /* Proprietà per scrollbar su Firefox - sfondo impostato a transparent */
    scrollbar-width: auto;
    scrollbar-color: #afca0b transparent !important; /* MODIFICATO */
}

.consent-popup .label-text {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.consent-popup .label-text strong {
    display: block;
    margin-bottom: 10px;
    color: #333;
}

.consent-popup input[type="radio"] {
    margin-right: 8px;
    margin-left: 0;
}

.consent-popup label {
    margin-right: 20px;
    cursor: pointer;
    color: #555;
}

.consent-popup input[type="radio"].required {
    border: 2px solid #dc3545;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.3);
}

/* Responsive per mobile */
@media (max-width: 768px) {
    .consent-popup {
        padding: 15px;
        margin: 10px;
    }

    .consent-popup .consensi {
        max-height: 100%;
    }

    .consent-popup .label-text {
        padding: 12px;
    }
}

@media only screen and (max-width: 690px) {
    html body[data-button-style*=slightly_rounded] .nectar-button.medium {
        font-size: 14px !important;
    }
}


/* ===== INIZIO CODICE AGGIUNTO PER SCROLLBAR PERSONALIZZATA ===== */

/* Stili per scrollbar su browser WebKit (Chrome, Safari, Edge) */

/* La scrollbar in generale (larghezza) */
.consent-popup .consensi::-webkit-scrollbar {
    width: 12px !important;
}

/* Il "binario" della scrollbar (reso trasparente) */
.consent-popup .consensi::-webkit-scrollbar-track {
    background: transparent !important; /* MODIFICATO */
}

/* La "maniglia" della scrollbar (la parte che si trascina) */
.consent-popup .consensi::-webkit-scrollbar-thumb {
    background-color: #afca0b !important;
    border-radius: 10px;
    /* Il bordo è stato rimosso per non creare un contorno colorato */
}

/* Maniglia al passaggio del mouse */
.consent-popup .consensi::-webkit-scrollbar-thumb:hover {
    background-color: #98b309 !important;
}

/* ===== FINE CODICE AGGIUNTO PER SCROLLBAR PERSONALIZZATA ===== */