/* =============================================================================
   SUPPORT CHAT STYLES
   Keyro chat assistant styling
   ============================================================================= */

/* Brand surface used throughout chat — flat navy per the no-gradient ruling */
.vana-gradient {
  background: #14306e;
}

/* =============================================================================
   CHAT BUTTON (Desktop - bottom right)
   ============================================================================= */

.support-chat-button {
  background: #14306e;
}

/* =============================================================================
   CHAT MODAL
   ============================================================================= */

.support-chat-modal {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}

.support-chat-modal.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Desktop panel size + position. Defined here (not via Tailwind md:* utilities)
   so the modal always has a fixed width and never shrink-wraps to its content —
   long message lines otherwise stretch the panel across the viewport.
   Below 768px the mobile bottom-sheet classes on the element take over. */
@media (min-width: 768px) {
  #support-chat-container .support-chat-modal {
    top: auto;
    left: auto;
    right: 1rem;
    bottom: 1rem;
    width: 400px;
    height: 600px;
    max-height: calc(100vh - 2rem);
    border-radius: 1rem;
  }
}

/* =============================================================================
   CHAT HEADER
   ============================================================================= */

.support-chat-header {
  background: #14306e; /* solid navy: the "Keyro" title metered 3.3:1 on the old orange gradient */
}

/* =============================================================================
   MESSAGE AVATARS & BUTTONS
   ============================================================================= */

.support-chat-avatar {
  background: #14306e;
}

.support-chat-send-btn {
  background: #14306e;
}

/* =============================================================================
   START CHAT ICON
   ============================================================================= */

.support-chat-start-icon {
  background: #14306e;
}

/* =============================================================================
   TURBO STREAM BUTTON (when chat is created)
   ============================================================================= */

.support-chat-button-hidden {
  background: linear-gradient(135deg, #FF4F00 0%, #3b82f6 100%);
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.support-chat-modal-open {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* =============================================================================
   "KEYRO IS TYPING…" INDICATOR
   ============================================================================= */

.keyro-typing-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: #9ca3af;
  animation: keyro-typing-bounce 1.2s infinite ease-in-out;
}

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

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

@keyframes keyro-typing-bounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}
