﻿.typing-bubble {
    max-width: 85%;
    margin-right: auto;
    padding: 10px 14px;
    background-color: #f1f1f1;
    border-radius: 18px;
    font-style: italic;
    font-size: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    display: inline-block;
}

.typing-dots {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

    .typing-dots span {
        width: 6px;
        height: 6px;
        background-color: #999;
        border-radius: 50%;
        animation: blink 1.4s infinite both;
    }

        .typing-dots span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-dots span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes blink {
    0%, 80%, 100% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }
}
