/* The contact link is usable without JavaScript, cookies or a third-party widget. */
.whatsapp-widget {
  position: fixed;
  right: calc(8px + env(safe-area-inset-right, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 26;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 20px #0005;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.whatsapp-widget > img { display: block; width: 100%; height: 100%; }
.whatsapp-widget:hover { background: #25D366; color: #fff; }
.whatsapp-widget:focus-visible {
  outline: 3px solid #ffda29;
  outline-offset: 4px;
  box-shadow: 0 0 0 4px #0a1014, 0 4px 20px #0005;
}
.whatsapp-widget-label {
  position: absolute;
  right: calc(100% + 12px);
  padding: 10px 14px;
  border: 1px solid #ffffff24;
  border-radius: 5px;
  background: #0a1014;
  color: #fff;
  font: 600 12px/1.5 Manrope, sans-serif;
  white-space: nowrap;
  box-shadow: 0 4px 20px #0004;
  visibility: hidden;
  pointer-events: none;
}
.whatsapp-widget:hover .whatsapp-widget-label,
.whatsapp-widget:focus-visible .whatsapp-widget-label { visibility: visible; }
/* Native modal dialogs are top-layer and make this external link inert as well. */
body:has(dialog[open]) .whatsapp-widget,
body:has(.brief:focus-within) .whatsapp-widget,
body.input-focused .whatsapp-widget {
  display: none;
  pointer-events: none;
}
/* Owner-private preview has Sites editing chrome; production has no such toolbar. */
@media (min-width: 701px) {
  body:not([data-reals-runtime="production"]) .whatsapp-widget {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 700px) {
  .whatsapp-widget {
    width: 56px;
    height: 56px;
    right: calc(16px + env(safe-area-inset-right, 0px));
    /* Above the existing calculate/call bar, never on top of its controls. */
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }
  body:has(.main-nav.is-open) .whatsapp-widget { display: none; pointer-events: none; }
}
/* No pulse, entrance animation or moving control, including reduced-motion mode. */
@media (prefers-reduced-motion: reduce) {
  .whatsapp-widget, .whatsapp-widget-label { animation: none; transition: none; }
}
