/* =========================================================
   Component · floating WhatsApp button.
   ========================================================= */

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; z-index: 60;
  right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  box-shadow: 0 14px 30px -10px rgba(10, 80, 40, .6);
  transition: transform .45s var(--servo), opacity .3s;
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: wa-ping 2.8s infinite; }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.wa-float:hover { transform: translateY(-3px) scale(1.04); }
.wa-float:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wa-float.is-hidden { opacity: 0; transform: translateY(16px) scale(.8); pointer-events: none; }
.wa-float__tip {
  position: absolute; right: 66px;
  padding: 8px 12px; border-radius: 10px;
  background: var(--ink); color: var(--bg); font: 500 12px var(--mono); white-space: nowrap;
  opacity: 0; transform: translateX(6px); pointer-events: none;
  transition: opacity .2s, transform .35s var(--servo);
}
.wa-float:hover .wa-float__tip, .wa-float:focus-visible .wa-float__tip { opacity: 1; transform: none; }
@keyframes wa-ping {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .45); }
  70%, 100% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
}
