/* ==========================================================================
   FLOATING WHATSAPP BUTTON — "CHAT WITH US"
   Desktop Pill + Mobile Circular Widget with Safe Area Padding & Pulse Animation
   ========================================================================== */

.floating-whatsapp-widget {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #25D366;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 9999px;
  padding: 12px 20px 12px 14px;
  box-shadow: 0 4px 18px rgba(18, 140, 126, 0.35), 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  animation: waPulse 4s ease-in-out infinite;
}

.floating-whatsapp-widget:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 26px rgba(18, 140, 126, 0.45), 0 3px 8px rgba(0, 0, 0, 0.16);
  color: #FFFFFF;
}

.floating-whatsapp-widget:active {
  transform: translateY(-1px) scale(0.98);
}

.whatsapp-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.whatsapp-icon-wrap svg {
  width: 100%;
  height: 100%;
  fill: #FFFFFF;
}

.whatsapp-label {
  display: inline-block;
  white-space: nowrap;
}

/* Subtle, non-distracting pulse animation */
@keyframes waPulse {
  0%, 100% {
    box-shadow: 0 4px 18px rgba(18, 140, 126, 0.35), 0 2px 6px rgba(0, 0, 0, 0.12);
  }
  50% {
    box-shadow: 0 4px 24px rgba(37, 211, 102, 0.55), 0 2px 8px rgba(0, 0, 0, 0.16);
  }
}

/* Mobile: Compact Circular Button safely offset from bottom */
@media (max-width: 768px) {
  .floating-whatsapp-widget {
    right: 18px;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }

  .whatsapp-label {
    display: none;
  }

  .whatsapp-icon-wrap {
    width: 26px;
    height: 26px;
  }
}

/* Extra small mobile adjustments to avoid bottom bar overlap */
@media (max-width: 480px) {
  .floating-whatsapp-widget {
    right: 16px;
    bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    width: 48px;
    height: 48px;
  }
}
