/* === FAQ Chat Bubbles — Layout, Animation & Typing Indicator === */

.mc-faq-chat-row {
	display: flex;
	align-items: flex-start;
}

.mc-faq-chat-row.brand {
	flex-direction: row;
}

.mc-faq-chat-row.user {
	flex-direction: row-reverse;
}

.mc-faq-chat-bubble {
	will-change: opacity, transform;
}

.mc-faq-chat-label {
	display: block;
}

.mc-faq-chat-body {
	display: block;
}

.mc-faq-chat-body > *:first-child {
	margin-top: 0;
}

.mc-faq-chat-body > *:last-child {
	margin-bottom: 0;
}

/* === Typing Indicator === */
.mc-faq-chat-typing {
	display: flex;
	align-items: center;
	gap: 5px;
	flex-shrink: 0;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.mc-faq-chat-typing-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
	animation: mc-typing-bounce 1.4s infinite ease-in-out both;
}

.mc-faq-chat-typing-dot:nth-child(1) {
	animation-delay: -0.32s;
}

.mc-faq-chat-typing-dot:nth-child(2) {
	animation-delay: -0.16s;
}

.mc-faq-chat-typing-dot:nth-child(3) {
	animation-delay: 0s;
}

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

@media (max-width: 768px) {
	.mc-faq-chat-bubble {
		max-width: 92% !important;
	}
}