/* ===========================================================
   WhatsApp floating action button
   Mirrors the accessibility button (45px) but on the right side
   (start of reading direction in RTL).
   =========================================================== */

.wa-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #25D366;          /* WhatsApp green */
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px -8px rgba(37, 211, 102, 0.6), 0 0 0 3px rgba(255, 255, 255, 0.8);
  z-index: 9998;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, box-shadow 0.3s ease;
  font-family: 'Heebo', sans-serif;
}
.wa-fab:hover,
.wa-fab:focus-visible {
  background: #128C7E;           /* WhatsApp dark green */
  transform: scale(1.06);
  box-shadow: 0 14px 32px -8px rgba(18, 140, 126, 0.7), 0 0 0 3px rgba(255, 255, 255, 0.9);
  outline: none;
}
.wa-fab:focus-visible {
  box-shadow: 0 14px 32px -8px rgba(18, 140, 126, 0.7), 0 0 0 3px #fff, 0 0 0 6px #25D366;
}
.wa-fab svg {
  width: 23px;
  height: 23px;
  display: block;
  fill: currentColor;
}
.wa-fab .wa-tooltip {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: #1F3242;
  color: white;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.78rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  font-family: 'Heebo', sans-serif;
}
.wa-fab:hover .wa-tooltip,
.wa-fab:focus-visible .wa-tooltip {
  opacity: 1;
}

/* gentle pulse on first load (one cycle, 2x) */
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 10px 26px -8px rgba(37, 211, 102, 0.6), 0 0 0 3px rgba(255, 255, 255, 0.8); }
  50% { box-shadow: 0 10px 26px -8px rgba(37, 211, 102, 0.6), 0 0 0 3px rgba(255, 255, 255, 0.8), 0 0 0 12px rgba(37, 211, 102, 0.2); }
}
.wa-fab.wa-pulse {
  animation: wa-pulse 2.6s ease-in-out 2;
}

/* Mobile */
@media (max-width: 520px) {
  .wa-fab { bottom: 1rem; right: 1rem; width: 44px; height: 44px; }
  .wa-fab svg { width: 22px; height: 22px; }
  .wa-fab .wa-tooltip { display: none; }
}
