/* A normal external link: no WhatsApp code, tracking or requests before a click. */
.nf-site .ew-whatsapp-contact {
  position: fixed;
  /* Above the sticky header (30); menu and consent still hide this group. */
  z-index: 35;
  right: max(24px, env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
}
.nf-site .ew-whatsapp {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
/* Keep the hit area still while the visible circle rises. */
.nf-site .ew-whatsapp__circle {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #004cff;
  box-shadow: 0 3px 12px #00298024;
  transition: transform 160ms var(--ease-out);
}
.nf-site .ew-whatsapp__circle::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #003ed1;
  box-shadow: 0 7px 18px #00298030;
  opacity: 0;
  transition: opacity 160ms ease;
}
.nf-site .ew-whatsapp img { position: relative; display: block; width: 28px; height: 28px; margin: 0; object-fit: contain; }
.nf-site .ew-whatsapp__card {
  position: absolute;
  right: 0;
  bottom: 100%;
  width: 256px;
  max-width: calc(100vw - 48px);
  /* This transparent bridge keeps the complete pointer path hoverable. */
  padding-bottom: 14px;
}
.nf-site .ew-whatsapp__card[hidden] { display: none; }
.nf-site .ew-whatsapp__card-body {
  padding: 20px;
  border: 1px solid #17192320;
  border-radius: 16px;
  background: #fff;
  color: #171923;
  box-shadow: 0 8px 32px #17192318;
  max-height: calc(100dvh - 118px - env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.nf-site .ew-whatsapp__heading {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
.nf-site .ew-whatsapp__card p { margin: 8px 0 12px; font-size: inherit; line-height: inherit; }
.nf-site .ew-whatsapp__qr { display: block; width: 198px; height: 198px; margin: 0 auto; }
.nf-site .ew-whatsapp__brand {
  display: block;
  margin-top: 10px;
  font-weight: 600;
}
.nf-site .ew-whatsapp:focus-visible {
  outline: 3px solid #171923;
  outline-offset: 4px;
  box-shadow: 0 0 0 4px #fff;
}
/* Focus feedback is immediate, including when a pointer is still over the link. */
.nf-site .ew-whatsapp:focus-visible .ew-whatsapp__circle,
.nf-site .ew-whatsapp:focus-visible .ew-whatsapp__circle::before { transition: none; }
@media (hover: hover) and (pointer: fine) {
  .nf-site .ew-whatsapp:hover:not(:focus-visible) .ew-whatsapp__circle { transform: translateY(-3px); }
  .nf-site .ew-whatsapp:hover .ew-whatsapp__circle::before { opacity: 1; }
}
.nf-site .ew-whatsapp:active:not(:focus-visible) .ew-whatsapp__circle { transform: scale(.97); transition-duration: 100ms; }
.nf-site .ew-whatsapp:active .ew-whatsapp__circle::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .nf-site .ew-whatsapp .ew-whatsapp__circle { transform: none !important; }
  .nf-site .ew-whatsapp .ew-whatsapp__circle { transition: none; }
}
/* Leave room below the final footer controls, including the back-to-top link. */
.nf-site .nf-footer { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
body:has([data-analytics-consent]:not([hidden])) .ew-whatsapp-contact { display: none; }
@media (max-width: 1000px) {
  body:has(.nf-menu[open]) .ew-whatsapp-contact { display: none; }
}
@media (max-width: 600px) {
  .nf-site .ew-whatsapp-contact {
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
  }
  .nf-site .ew-whatsapp img { width: 26px; height: 26px; }
  .nf-site .ew-whatsapp__card { display: none; }
  body:has(input:focus, textarea:focus, select:focus) .ew-whatsapp-contact { display: none; }
}
