/* ===========================
   Сообщения
=========================== */
#messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#forgebit-widget .message {
  display: flex;
  padding: 0 4px;
}

#forgebit-widget .message.assistant {
  justify-content: flex-start;
}

#forgebit-widget .message.user {
  justify-content: flex-end;
}

#forgebit-widget .bubble {
  max-width: 74%;
  padding: 12px 15px;
  border-radius: 18px;
  line-height: 1.5;
  font-size: 15px;
}

#forgebit-widget .message.assistant .bubble {
  background: #f3f4f6;
  color: var(--fb-text);
}

#forgebit-widget .message.user .bubble {
  background: var(--fb-primary);
  color: #111;
}

#forgebit-widget .welcome h3 {
  margin-top: 0;
}

#forgebit-widget .welcome ul {
  padding-left: 20px;
}

#chat-footer button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#chat-footer input:disabled {
  background: #f3f4f6;
}

#forgebit-widget .typing-indicator {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

#forgebit-widget .typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: typing 1.4s infinite ease-in-out;
}

#forgebit-widget .typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

#forgebit-widget .typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%,
  80%,
  100% {
    transform: scale(0.5);
    opacity: 0.3;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}
