/**
 * CSS Base per il Chatbot
 */

#chatbot-widget {
    width: 320px;
    height: 460px;
    border: 1px solid #ccc;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    background: #fff;
}

#chatbot-messages {
    flex-direction: column;
    display: flex;
    flex: 1;
    padding: 10px;
    overflow-y: auto;
}

.message {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 4px;
}

.message.user {
    background: #007bff;
    color: white;
    text-align: right;
    align-self: flex-end;
    max-width: 85%
}

.message.bot {
    background: #f1f1f1;
    color: #333;
    max-width: 85%
}

#chatbot-typing {
    padding: 10px;
    font-style: italic;
    color: #666;
}

#chatbot-form {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ccc;
}

#chatbot-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#chatbot-send {
    padding: 8px 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    margin-left: 5px;
    cursor: pointer;
}

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


/* WP */
/* Posizionamento fisso in basso a destra */
#chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    height: 460px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
#chatbot-widget.hidden {
    display: none;
}
.chat-header {
    display: flex;
    justify-content: center;
    border-radius: 8px 0 0;
    padding: 3px;
}
#chat-open {
    position: fixed;
    right: 1em;
    bottom: 8.5em;
    background:none;
    padding:0;
    filter: drop-shadow(5px 5px 7px black);
    z-index:10;
}
#chat-close {
    position: absolute;
    right: -0.5em;
    border: 2px solid red;
    border-radius: 50%;
    padding: 0.50em 0.7em;
    top: -0.5em;
}
