/* Niwa AI — Animations (typing indicator, keyframes) */

/* === Simple Typing Animation === */
#za-flyout .za-typing,
.za-shortcode .za-typing {
  clear: both;
  margin: 6px 0;
}

#za-flyout .za-typing .za-bubble,
.za-shortcode .za-typing .za-bubble {
  max-width: 85%;
  background: #f3f4f6 !important;
  color: #111827 !important;
  border-top-left-radius: 4px;
  border: 1px solid var(--niwa-border) !important;
  padding: 12px 16px;
}

#za-flyout .za-typing-dots,
.za-shortcode .za-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

#za-flyout .za-typing-dots span,
.za-shortcode .za-typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6b7280;
  animation: za-typing-bounce 1.4s infinite ease-in-out;
}

#za-flyout .za-typing-dots span:nth-child(1),
.za-shortcode .za-typing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

#za-flyout .za-typing-dots span:nth-child(2),
.za-shortcode .za-typing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

#za-flyout .za-typing-dots span:nth-child(3),
.za-shortcode .za-typing-dots span:nth-child(3) {
  animation-delay: 0s;
}

@keyframes za-typing-bounce {

  0%,
  80%,
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }

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