/* A direct link, with no third-party chat widget or background requests. */
.ypn-whatsapp {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  box-sizing: border-box;
  border: 1px solid #ffffff66;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  opacity: 1;
  text-decoration: none;
  box-shadow: 0 4px 16px #001f3d26;
  transition: background-color 150ms ease;
}
.ypn-whatsapp svg { width: 32px; height: 32px; }
.ypn-whatsapp:hover { background: #1ebe5d; color: #fff; opacity: 1; }
.ypn-whatsapp:focus-visible {
  outline: 3px solid var(--ypn-navy, #001f3d);
  outline-offset: 4px;
}
/* Keep privacy choices and the mobile menu clear of floating controls. */
body:has(.ypn-cookie-banner:not([hidden])) .ypn-whatsapp,
body:has(#ypn-cookie-settings[open]) .ypn-whatsapp,
body.rb-nav-mobile-open .ypn-whatsapp { visibility: hidden; }
@media (max-width: 600px) {
  .ypn-whatsapp {
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
}
@media (prefers-reduced-motion: reduce) {
  .ypn-whatsapp { transition: none; }
}
@media print { .ypn-whatsapp { display: none; } }
