/* ============================================================
   Delz AI Labs — Support Widget Styles
   Load this alongside delz-support-widget.js
   ============================================================ */

/* Typing dots animation */
@keyframes delz-bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40%            { transform: translateY(-6px); }
}

/* FAB glow pulse */
@keyframes delz-pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(1.08); }
}

/* ── Chat panel ─────────────────────────────────────────── */
#delz-chat-panel {
  position: fixed;
  right: clamp(16px, 4vw, 26px);
  bottom: calc(clamp(16px, 4vw, 26px) + 84px);
  z-index: 90;
  width: min(94vw, 320px);
  transform: translateY(12px) scale(0.94);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.3s cubic-bezier(0.05, 0.7, 0.1, 1),
    opacity   0.3s cubic-bezier(0.05, 0.7, 0.1, 1);
}

/* ── Floating action button ─────────────────────────────── */
.dz-fab {
  position: fixed;
  right: clamp(16px, 4vw, 26px);
  bottom: clamp(16px, 4vw, 26px);
  z-index: 91;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  padding: 0;
  background: linear-gradient(140deg, #F26A1F, #1B3FC4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Glow ring behind the FAB */
.dz-fab-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(140deg, #F26A1F, #1B3FC4);
  opacity: 0.35;
  filter: blur(10px);
  animation: delz-pulse 2.5s ease-in-out infinite;
}

/* Notification badge */
.dz-fab-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #F26A1F;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* ── Typing indicator dots ──────────────────────────────── */
#delz-typing {
  align-self: flex-start;
  background: #fff;
  border-radius: 8px;
  border-top-left-radius: 2px;
  padding: 10px 14px;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
  display: flex;
  gap: 4px;
  align-items: center;
}

#delz-typing span {
  width: 6px;
  height: 6px;
  background: #8696a0;
  border-radius: 50%;
  display: inline-block;
  animation: delz-bounce 1.2s ease-in-out infinite;
}

#delz-typing span:nth-child(2) { animation-delay: 0.2s; }
#delz-typing span:nth-child(3) { animation-delay: 0.4s; }
