/* Typing indicator */

.message--typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 16px;
}

.message--typing span:not(.typing-tool-label) {
  display: block;
  width: 8px;
  height: 8px;
  background: var(--text-disabled);
  border-radius: 50%;
  animation: bounce 1.2s infinite ease-in-out;
}

.message--typing.has-tool-label span:not(.typing-tool-label) {
  width: 5px;
  height: 5px;
}

.message--typing span:not(.typing-tool-label):nth-of-type(1) { animation-delay: 0s; }
.message--typing span:not(.typing-tool-label):nth-of-type(2) { animation-delay: 0.2s; }
.message--typing span:not(.typing-tool-label):nth-of-type(3) { animation-delay: 0.4s; }

.typing-tool-label {
  font-size: 12px;
  color: var(--text-disabled);
  white-space: nowrap;
  margin-right: 2px;
}

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}
