/* Floating WhatsApp button: bottom right, stacked just above the back-to-top button (which is 46px high at 1rem from the bottom). */
.wa-fab{position:fixed;right:calc(1rem + env(safe-area-inset-right,0px));bottom:calc(4.25rem + env(safe-area-inset-bottom,0px));z-index:56;display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#25d366;color:#fff;box-shadow:0 6px 18px rgba(18,140,70,.4),0 2px 6px rgba(0,0,0,.15);text-decoration:none;transition:transform .2s ease,box-shadow .2s ease,bottom .25s ease;animation:wa-in .5s cubic-bezier(.2,1.2,.3,1) .6s backwards}
.wa-fab svg{width:28px;height:28px;display:block}
.wa-fab::before{content:"";position:absolute;inset:0;border-radius:50%;border:2px solid #25d366;opacity:0;animation:wa-pulse 2.6s ease-out 2s 3}
.wa-fab:hover,.wa-fab:focus-visible{transform:scale(1.07);box-shadow:0 10px 24px rgba(18,140,70,.5),0 2px 6px rgba(0,0,0,.18);color:#fff}
.wa-fab:focus-visible{outline:3px solid var(--c-text,#222);outline-offset:3px}
/* the back-to-top button only exists after scrolling: until then the WhatsApp button sits in its place at the bottom */
.to-top[hidden] ~ .wa-fab{bottom:calc(1rem + env(safe-area-inset-bottom,0px))}
/* product page: the sticky Add to cart bar covers the bottom, so stay above it */
body:has(.sab.is-on) .wa-fab{bottom:calc(5.5rem + env(safe-area-inset-bottom,0px))}
body:has(.sab.is-on) .to-top[hidden] ~ .wa-fab{bottom:calc(5.5rem + env(safe-area-inset-bottom,0px))}
html.lp-open .wa-fab,body.modal-open .wa-fab{display:none}
@keyframes wa-in{from{opacity:0;transform:scale(.4)}to{opacity:1;transform:none}}
@keyframes wa-pulse{0%{opacity:.7;transform:scale(1)}100%{opacity:0;transform:scale(1.6)}}
@media (max-width:520px){.wa-fab{width:48px;height:48px}.wa-fab svg{width:26px;height:26px}}
@media (prefers-reduced-motion:reduce){.wa-fab{animation:none;transition:none}.wa-fab::before{animation:none}}
@media print{.wa-fab{display:none}}
