/* Contenitore principale del widget, lo fissa in basso a destra */
#emmeci-chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999; /* Assicura che sia sopra gli altri elementi */
    font-family: Arial, sans-serif;
}

/* Bottone di attivazione */
#chatbot-toggle-button {
    background-color: #0073aa; /* Colore tipico di WordPress/Aziendale */
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Finestra principale del Chatbot */
#emmeci-chatbot-widget {
    width: 300px;
    height: 400px;
    border: 1px solid #ccc;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background-color: white;
    overflow: hidden;
}

#chatbot-header {
    background-color: #f7f7f7;
    padding: 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: default;
}

#chatbot-close-button {
    cursor: pointer;
    font-size: 1.2em;
}

#chatbot-messages {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    border-bottom: 1px solid #eee;
}

.user-message, .bot-message {
    padding: 8px;
    border-radius: 10px;
    margin: 5px 0;
    max-width: 80%;
}

.user-message {
    background-color: #0073aa;
    color: white;
    margin-left: auto; /* Allinea a destra */
    text-align: right;
}

.bot-message {
    background-color: #e0e0e0;
    color: #333;
    margin-right: auto; /* Allinea a sinistra */
}

#chatbot-input-area {
    display: flex;
    border-top: 1px solid #ccc;
}

#chatbot-input {
    flex-grow: 1;
    padding: 10px;
    border: none;
    outline: none;
}

#chatbot-send {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

#chatbot-send:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
}