/* ================================================================
   Chat Widget — floating FAB, WhatsApp + Telegram
   ================================================================ */

.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

/* ── FAB button ──────────────────────────────── */
.chat-widget__fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange);
  color: #1A0E03;
  border: 0;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(251, 146, 60, 0.35);
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.chat-widget__fab:hover {
  background: var(--orange-h);
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(251, 146, 60, 0.45);
}

/* Icon swap */
.chat-widget__icon-close {
  display: none;
}
.chat-widget.open .chat-widget__icon-chat {
  display: none;
}
.chat-widget.open .chat-widget__icon-close {
  display: block;
}

/* ── Channel buttons ─────────────────────────── */
.chat-widget__channels {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  opacity: 0;
  transform: translateY(12px) scale(0.95);
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.chat-widget.open .chat-widget__channels {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-widget__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.chat-widget__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

/* WhatsApp */
.chat-widget__btn--wa {
  background: #25D366;
  color: #fff;
}
.chat-widget__btn--wa:hover {
  background: #20bd5a;
}

/* Telegram */
.chat-widget__btn--tg {
  background: #2AABEE;
  color: #fff;
}
.chat-widget__btn--tg:hover {
  background: #229ed9;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 480px) {
  .chat-widget {
    bottom: 16px;
    right: 16px;
  }
  .chat-widget__fab {
    width: 48px;
    height: 48px;
  }
  .chat-widget__fab svg {
    width: 20px;
    height: 20px;
  }
  .chat-widget__btn {
    font-size: 12px;
    padding: 8px 14px;
  }
  .chat-widget__btn svg {
    width: 18px;
    height: 18px;
  }
}

/* ── Reduced motion ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .chat-widget__channels,
  .chat-widget__fab,
  .chat-widget__btn {
    transition-duration: 0.01ms !important;
  }
}
