/* La finestra dell'assistente delle guide (Components/AssistenteChat.razor), sotto l'intestazione e
   allineata al pulsante "Assistente". Non in basso a destra: lì c'è il pager delle griglie. */
.assistente-finestra {
    position: fixed;
    top: 64px;
    right: 16px;
    width: 480px;
    height: 680px;
    max-height: calc(100vh - 80px);
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.assistente-intestazione {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #2e7cf6;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    flex-shrink: 0;
}

.assistente-chiudi {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.assistente-chiudi:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.assistente-corpo {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.assistente-chat {
    width: 100%;
    height: 100%;
}

.assistente-messaggio > p:last-child {
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .assistente-finestra {
        top: 56px;
        right: 0;
        width: 100vw;
        height: calc(100vh - 56px);
        max-height: none;
        border-radius: 0;
    }
}
