/* Floating WhatsApp — sitewide (Henry Club style) */

.sa-whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: auto;
  z-index: 100;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #075e54;
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 4px 20px rgba(37, 211, 102, 0.45),
    0 0 0 0 rgba(37, 211, 102, 0.4);
  animation: sa-wa-glow 2.4s ease-in-out infinite;
  transition: transform 0.2s ease;
}
.sa-whatsapp-float:hover {
  transform: scale(1.08);
  color: #fff;
}
.sa-whatsapp-float:active {
  transform: scale(0.96);
}
.sa-whatsapp-float svg {
  position: relative;
  z-index: 1;
  width: 1.75rem;
  height: 1.75rem;
}
.sa-whatsapp-float__ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.35);
  animation: sa-wa-ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.sa-whatsapp-float__ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.35);
  animation: sa-wa-ring 2.4s ease-out infinite;
}

@keyframes sa-wa-ping {
  0% {
    transform: scale(1);
    opacity: 0.65;
  }
  75%,
  100% {
    transform: scale(1.85);
    opacity: 0;
  }
}
@keyframes sa-wa-ring {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}
@keyframes sa-wa-glow {
  0%,
  100% {
    box-shadow:
      0 4px 20px rgba(37, 211, 102, 0.45),
      0 0 12px rgba(37, 211, 102, 0.25);
  }
  50% {
    box-shadow:
      0 4px 28px rgba(37, 211, 102, 0.65),
      0 0 22px rgba(37, 211, 102, 0.45);
  }
}

/* Chat assistant stays bottom-right; WhatsApp is bottom-left */
body:has(.sa-whatsapp-float) .sa-chatbot-fab {
  bottom: 1.5rem;
  right: 1.5rem;
  left: auto;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
}
body:has(.sa-whatsapp-float) .sa-chatbot-fab-label {
  display: none !important;
}
body:has(.sa-whatsapp-float) .sa-chatbot-panel {
  bottom: 5.5rem;
  right: 1.25rem;
  left: auto;
}

@media (max-width: 479px) {
  .sa-whatsapp-float {
    bottom: 1.25rem;
    left: 1.25rem;
    width: 3.375rem;
    height: 3.375rem;
  }
  body:has(.sa-whatsapp-float) .sa-chatbot-fab {
    bottom: 1.25rem;
    right: 1.25rem;
  }
  body:has(.sa-whatsapp-float) .sa-chatbot-panel {
    bottom: 5rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sa-whatsapp-float,
  .sa-whatsapp-float__ping,
  .sa-whatsapp-float__ring {
    animation: none;
  }
}
