.ai-chat-widget .titolo-chat {font-family: 'Montserrat', Helvetica, Arial, sans-serif !important;}
.ai-chat-widget .online-header { font-family: 'Montserrat', Helvetica, Arial, sans-serif !important; font-size: 13px !important; font-weight: normal !important;}
.ai-chat-widget .nome-chatbot { font-family: 'Montserrat', Helvetica, Arial, sans-serif !important; font-size: 16px; color:#486bb1 !important; margin: 0 0 5px 4px !important; }
.ai-chat-widget .chat-message { font-family: 'Montserrat', Helvetica, Arial, sans-serif !important; font-size: 16px !important; }
.ai-chat-widget .domanda-footer { font-family: 'Montserrat', Helvetica, Arial, sans-serif !important; font-size: 16px; color:#486bb1 !important; transition: all .3s ease; }
.ai-chat-widget .domanda-footer:hover { font-family: 'Montserrat', Helvetica, Arial, sans-serif !important; font-size: 16px; color:#ffffff !important;  }
.ai-chat-widget .footer-zona-input {
    height: 45px !important;
    max-height: 45px !important;
    min-height: 45px !important;
    border: 1px solid #486bb1 !important;
}
.ai-chat-widget .footer-text-input {
    font-family: 'Montserrat', Helvetica, Arial, sans-serif !important; font-size: 16px !important;
    height: 45px !important;
    max-height: 45px !important;
    min-height: 45px !important;
    color: #486bb1 !important;
}
.ai-chat-widget .footer-btn-invia { color: #486bb1;  transition: all .3s ease; }
.ai-chat-widget .footer-btn-invia:hover { transform: scale(1.2); }
.ai-chat-widget .footer-powered-by { font-family: 'Montserrat', Helvetica, Arial, sans-serif !important; font-size: 13px !important; }
/* Altezza contenitore: cambia qui */
.supportfast-host{
    position: relative;
    width: 100%;
    height: 650px;            /* <-- imposta l’altezza che vuoi */
    border: 1px solid #e5e7eb; /* opzionale */
    border-radius: 12px;       /* opzionale */
    overflow: hidden;
    margin-top: 50px;
    margin-bottom: 50px;
}

/* Center loading */
.supportfast-loading{
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    z-index: 2;
}

/* Quando montato: nascondi loader */
.supportfast-host.is-ready .supportfast-loading{
    display: none;
}

/* Forza il widget dentro il contenitore, non flottante */
.supportfast-host.is-ready #chat-widget-container{
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 100% !important;
}

/* Il widget sembra usare right inline:25px, reset */
.supportfast-host.is-ready #chat-element,
.supportfast-host.is-ready #chat-button-element,
.supportfast-host.is-ready #chat-button-mobile-element{
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    top: auto !important;
}

/* Nascondi i bottoni “floating” */
.supportfast-host.is-ready #chat-button-element,
.supportfast-host.is-ready #chat-button-mobile-element{
    display: none !important;
}

/* La chat occupa tutto lo spazio del contenitore */
.supportfast-host.is-ready #chat-element{
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    transform-origin: unset !important;
    position: absolute !important;
    max-width: unset !important;
}
#chat-button-element,
#chat-button-mobile-element{
    display: none !important;
}
.footer-zona-powered > div[style*="flex"]{
    flex: unset !important;
}

.footer-zona-powered > div[style*="max-width"]{
    max-width: 100% !important;
}
/*
.ai-chat-widget .chat-button {
    width: 80px; height: 80px; border-radius: 40px; border: 2px solid #ffffff;
    bottom: 40px; top:calc(100% - 140px); right: 50px !important;
}
 */
.ai-chat-widget .header-chat {
    background: rgb(72, 107, 177) !important;
    background: -moz-linear-gradient(left, rgba(113,198,217,0.9) 0%, rgba(72,107,177,0.9) 73%, rgba(106,76,153,0.9) 100%) !important;
    background: -webkit-linear-gradient(left, rgba(113, 198, 217, 0.9) 0%, rgba(72, 107, 177, 0.9) 73%, rgba(106, 76, 153, 0.9) 100%) !important;
    background: linear-gradient(to right, rgba(113, 198, 217, 0.9) 0%, rgba(72, 107, 177, 0.9) 73%, rgba(106, 76, 153, 0.9) 100%) !important;
    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#71c6d9', endColorstr='#6a4c99',GradientType=1 ) !important;
}
/*
.ai-chat-widget .chat { bottom: 160px; right: 50px !important; width: 40%; }
.ai-chat-widget .logo-header { width: 40px; height: 40px; margin: 0 10px 0 0;  }
*/
/*
.ai-chat-widget .header-button { transition: all .3s ease; }
.ai-chat-widget .header-button:hover { transform: scale(1.2); }
 */
/*.ai-chat-widget .chat-message-container, .ai-chat-widget .chat-message-user-container { background-color: #cccccc !important; }*/
/*
.footer-accordion-toggle {
    display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 10px 15px;
    background-color: white; border-top: 1px solid #486bb1; border-bottom: 1px solid #486bb1; margin-bottom: 15px; transition: all .3s ease;
}
.footer-accordion-toggle:hover { background-color: #486bb1; }
.footer-accordion-toggle:hover span.footer-accordion-title { color: #ffffff; }
.footer-accordion-toggle:hover span.footer-accordion-arrow { color: #ffffff; }
.footer-accordion-title { font-family: 'Montserrat', Helvetica, Arial, sans-serif !important; font-size: 16px; font-weight:600; color:#486bb1; }
.footer-accordion-arrow { color: #486bb1; }
.ai-chat-widget .footer-zona-domande {
    padding: 15px 10px 9px 10px; margin: 0 12px 15px 12px !important; background-color: #f0f0f0 !important; border-radius: 8px !important;
}
.footer-accordion-toggle .arrow { display: inline-block; transition: transform 0.3s ease; }
 */


/*


@media screen and (min-width: 601px) and (max-width: 1100px) {
    .ai-chat-widget .chat { bottom: 160px; right: 50px !important; width: 70%; }
}
*/