/* (v135) O WhatsApp flutuante dos sites das lojas: um botão redondo no canto de baixo à direita, fora do caminho. */
.whats-flutua {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 45; display: inline-flex; align-items: center; justify-content: center; gap: 0;
  width: 58px; height: 58px; border-radius: 999px; background: #1FAF54; color: #FFFFFF; text-decoration: none;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45), 0 0 0 4px rgba(255, 255, 255, .9);
  transition: transform .18s ease, bottom .2s ease, width .2s ease, opacity .2s ease;
}
.whats-flutua:hover { transform: translateY(-2px); }
.whats-flutua:active { transform: scale(.95); }
.whats-flutua:focus-visible { outline: 3px solid #0B6B33; outline-offset: 4px; }
.whats-flutua-texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* No computador, o nome aparece ao passar o mouse. */
@media (hover: hover) and (min-width: 721px) {
  .whats-flutua:hover { width: auto; padding: 0 22px 0 16px; gap: 8px; }
  .whats-flutua:hover .whats-flutua-texto { position: static; width: auto; height: auto; overflow: visible; clip: auto; font: 700 15px/1 inherit; }
}
/* Cardápio: quando a barra da sacola aparece embaixo, o botão sobe para não ficar em cima dela. */
body:has(#barraSacola:not([hidden])) .whats-flutua { bottom: calc(max(18px, env(safe-area-inset-bottom)) + 78px); }
/* Página única no celular: a barra de baixo já tem o WhatsApp. */
@media (max-width: 720px) {
  body.inst:has(.inst-barra) .whats-flutua { display: none; }
}
/* Com a tela do item ou a sacola aberta (por cima de tudo), o botão sai da frente. */
body:has(.folha:not([hidden])) .whats-flutua,
body:has(.inst-orc:not([inert])) .whats-flutua { display: none; }
/* O aviso "na sacola" do cardápio no celular passa por cima: o botão espera ele sumir. */
body:has(.capp-toast.visivel) .whats-flutua { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .whats-flutua { transition: none; } }
@media print { .whats-flutua { display: none; } }
