/* ============================================================
   FLOATING WHATSAPP BUTTON — shared component
   Used by: index.html, about.html, faq.html, shop-all.html, and all
   three collection pages — every page on the site. Markup comes from
   src/_includes/whatsapp-float.njk (accepts an optional whatsappText
   param, no page-specific parameters beyond that).

   css/nav.css hides the nav's own Enquire/WhatsApp button at 1024px
   and below on every page (all pages share nav.njk). Every page that
   includes this button additionally hides it above 1024px via a
   small page-specific override in their own <style> block, so only
   one WhatsApp entry point shows at a time.

   Depends on tokens defined in each page's own :root block:
   --color-red, --color-cream.
============================================================ */

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-red);
  color: var(--color-cream);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}
