
.whatsapp-button {
  position: fixed;
  bottom: 2.5rem;
  right: 2.45rem;
  z-index: 1500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #25D366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-base),
              box-shadow var(--transition-base),
              background-color var(--transition-base);
  /* Subtle attention pulse */
  animation: whatsapp-pulse 2.5s ease-in-out infinite;
}

.whatsapp-button:hover {
  background-color: #1ebe5d;
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  /* Pause the pulse on hover so it feels stable when interacting */
  animation-play-state: paused;
}

.whatsapp-button__icon {
  width: 42px;
  height: 42px;
}

/* Gentle pulsing ring effect */
@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25),
                0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25),
                0 0 0 12px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25),
                0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .whatsapp-button {
    animation: none;
  }
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 600px) {
  .whatsapp-button {
    bottom: 1rem;
    right: 1rem;
    width: 52px;
    height: 52px;
  }

  .whatsapp-button__icon {
    width: 28px;
    height: 28px;
  }
}
