/* ── Container ─────────────────────────────────── */
.whatsapp-fab {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  text-decoration: none;
}

/* ── Main FAB Button ───────────────────────────── */
.whatsapp-fab__button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #25D366;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  z-index: 1;
}

@media (min-width: 768px) {
  .whatsapp-fab__button {
    width: 56px;
    height: 56px;
  }
}

.whatsapp-fab__button:hover {
  background: #20BD5A;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ── WhatsApp Icon ─────────────────────────────── */
.whatsapp-fab__icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .whatsapp-fab__icon {
    width: 32px;
    height: 32px;
  }
}

/* ── Pulse Ring ────────────────────────────────── */
.whatsapp-fab__pulse {
  position: absolute;
  inset: 0;
  background: #25D366;
  border-radius: 50%;
  animation: whatsapp-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.2;
  z-index: -1;
}

@keyframes whatsapp-ping {
  75%, 100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* ── Hover Label ──────────────────────────────── */
.whatsapp-fab__label {
  padding: 8px 16px;
  background: #25D366;
  color: #fff;
  border-radius: 24px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);

  /* Hidden by default — slides in from the right on hover */
  opacity: 0;
  transform: translateX(20px) scale(0.8);
  transform-origin: right center;
  transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

@media (hover: hover) {
  .whatsapp-fab:hover .whatsapp-fab__label,
  .whatsapp-fab:focus-visible .whatsapp-fab__label {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Touch devices — hide the label entirely (tap goes straight to WhatsApp) */
@media (hover: none) {
  .whatsapp-fab__label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab__label {
    transition: none;
  }
}
