/* ── Chat Widget ── */
.chat-widget {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.chat-widget__buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s, transform .2s;
}
.chat-widget.open .chat-widget__buttons {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.chat-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 0 10px;
  height: 44px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: .875rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.chat-btn:hover {
  transform: translateX(-4px);
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
}
.chat-btn__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.2);
  flex-shrink: 0;
}
.chat-btn__icon svg { width: 16px; height: 16px; fill: #fff; }

/* Brand colors */
.chat-btn--whatsapp  { background: #25d366; }
.chat-btn--messenger { background: #0084ff; }

/* Toggle button */
.chat-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(75,108,183,.45);
  transition: background .15s, transform .15s;
  flex-shrink: 0;
}
.chat-toggle:hover { background: var(--accent-hover); }
.chat-toggle svg { width: 24px; height: 24px; transition: transform .2s; }
.chat-widget.open .chat-toggle svg.icon-chat { display: none; }
.chat-widget:not(.open) .chat-toggle svg.icon-close { display: none; }

@media (max-width: 480px) {
  .chat-widget { bottom: 20px; right: 16px; }
  .chat-btn { font-size: .8125rem; height: 40px; padding: 0 12px 0 8px; }
}
