/* Anahata v2 — WhatsApp chat button (snippets/ui-whatsapp-button). Bottom
   right, just above the bar pinned to the bottom — --wa-bottom is set by
   assets/ui-whatsapp.js; the fallback clears the phone tab bar. */

.wa-button {
  position: fixed;
  right: var(--a-space-4);
  bottom: var(--wa-bottom, calc(var(--a-tabbar-height) + env(safe-area-inset-bottom, 0px) + var(--a-space-3)));
  z-index: 35;   /* over page content and the bottom bars (30), under the header's search state and dialogs */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: var(--a-radius-round);
  background: var(--a-whatsapp);
  color: var(--a-on-dark);
  box-shadow: var(--a-shadow-fab);
  text-decoration: none;
  transition: bottom 0.25s ease, transform 0.2s ease;
}

.wa-button:hover {
  transform: scale(1.06);
}

.wa-button:focus-visible {
  outline: 2px solid var(--a-ink);
  outline-offset: 3px;
}

/* the desktop search state covers the page — the button steps aside */
html.site-search-open .wa-button {
  display: none;
}

@media screen and (min-width: 990px) {
  .wa-button {
    right: var(--a-space-6);
    width: 58px;
    height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-button {
    transition: none;
  }
}
