/* Typing Indicator CSS for Builder Bee Chat Widget */
/* Add this to your existing chat CSS file */

.typing-indicator {
    opacity: 0.8;
}

.typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #666;
    animation: typing-bounce 1.4s infinite ease-in-out;
}

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

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

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

@keyframes typing-bounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Enhanced error message styling */
.intercom-comment.error-message .intercom-comment-text {
    color: #d73a49;
    background-color: #ffeaea;
    border-left: 3px solid #d73a49;
    padding: 12px;
    border-radius: 6px;
}

/* Loading state for send button */
.intercom-composer-send-button.loading {
    opacity: 0.6;
    pointer-events: none;
}

.intercom-composer-send-button.loading span {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

