/* Shared public contact action. Section-specific hrefs remain in their source. */
html[data-nx-contact-fab] .nx-contact-fab {
  --nx-wa-brand: #25d366;
  box-sizing: border-box;
  position: fixed;
  right: max(24px, env(safe-area-inset-right, 0px));
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--nx-wa-brand);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 14px #0005;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
html .nx-contact-fab[hidden] { display: none !important; }
html[data-nx-contact-fab] .nx-contact-fab svg { width: 30px; height: 30px; fill: currentColor; flex: none; }
html[data-nx-contact-fab] .nx-contact-fab:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
@media (hover: hover) { html[data-nx-contact-fab] .nx-contact-fab:hover { background: #1ebc59; } }
html[data-nx-contact-fab] .nx-contact-fab:active { background: #159b47; }
/* Retire only the old floating WA, never inline, menu or footer support. */
html[data-nx-contact-fab="service"] .landing-app > a.fixed[aria-label="WhatsApp"][href^="https://wa.me/40758117409"],
html[data-nx-contact-fab="service"] .nx-sticky-mobile-cta a[href^="https://wa.me/40758117409"] { display: none !important; }
@media (max-width: 767px) {
  html[data-nx-contact-fab] .nx-contact-fab {
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  /* Keep the repair estimate action and its original React visibility gates. */
  html[data-nx-contact-fab="service"] .nx-sticky-mobile-cta {
    right: calc(88px + env(safe-area-inset-right, 0px));
    left: max(16px, env(safe-area-inset-left, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: fit-content;
    max-width: calc(100% - 104px);
    padding: 0 !important;
    background: none;
  }
  html[data-nx-contact-fab="service"] .nx-sticky-mobile-cta > div {
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  html[data-nx-contact-fab="service"] .nx-sticky-mobile-cta__secondary {
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #46536a !important;
    border-radius: 24px;
    background: #152033 !important;
    color: #edf2fa;
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
  }
  html[data-nx-contact-fab="service"] .nx-sticky-mobile-cta__secondary:focus-visible { outline: 2px solid #82b6ff; outline-offset: 3px; }
  html[data-nx-contact-blocked="true"] .nx-sticky-mobile-cta { visibility: hidden !important; }
  html[data-nx-contact-quote-obscured="true"] .nx-sticky-mobile-cta,
  html[data-nx-contact-fab="service"] .nx-sticky-mobile-cta[style*="translateY(100%)"] { visibility: hidden !important; }
}
