/* Floating WhatsApp button, bottom right. Sits above the mobile action bar and hides under the open menu. */
.wa-fab {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 45;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  filter: drop-shadow(0 4px 12px rgb(0 0 0 / .18));
  transition: transform 160ms var(--ease, ease);
}
.wa-fab img { display: block; width: 56px; height: 56px; }
.wa-fab:hover { transform: scale(1.06); }
.wa-fab:active { transform: scale(.96); }
.wa-fab:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
body.nav-locked .wa-fab { display: none; }

@media (max-width: 639px) {
  .wa-fab { right: 16px; }
  :root:has(> body > nav.actionbar) .wa-fab { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .wa-fab { transition: none; }
  .wa-fab:hover, .wa-fab:active { transform: none; }
}
