/* Typing indicator styles */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
}

.typing-indicator .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--mm-company-main-color, #007bff);
    margin: 0 1px;
    animation: typing 1.5s infinite ease-in-out;
    opacity: 0.4;
}

.typing-indicator .dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator .dot:nth-child(2) {
    animation-delay: 0.3s;
}

.typing-indicator .dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Aggiornamenti per i messaggi dell'agente */
.ai-mm-agent-message {
    animation: fadeIn 0.3s ease-in;
}

.ai-mm-agent-message-content {
    display: inline-block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}