/* Shared WhatsApp entry points: no popups, external widgets or tracking. */
.whatsapp-icon { display: block; flex: 0 0 auto; width: 21px; height: 21px; }
.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 20px;
  border: 1px solid #147947;
  background: #147947;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background .15s ease, border-color .15s ease;
}
.whatsapp-button:hover { background: #0e6037; border-color: #0e6037; color: #fff; }
.whatsapp-button--inquiry { border-color: #5ab781; background: transparent; color: #c3f6d6; min-height: 46px; padding: 10px 20px; }
.whatsapp-button--inquiry:hover { border-color: #5ab781; background: #214332; color: #fff; }
.whatsapp-button:focus-visible, .whatsapp-floating:focus-visible { outline: 3px solid #147947; outline-offset: 4px; }
.site-inquiry .whatsapp-button:focus-visible { outline-color: #a2edbb; }
.rfq-contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rfq-contact-actions > * { flex: 1 1 210px; min-width: 0; }
.cq-form .rfq-contact-actions .btn { padding: 12px 20px; }
.whatsapp-contact-note { margin: 4px 0 0; color: #666159; font-size: 12px; line-height: 1.6; }
.whatsapp-contact-note span { white-space: nowrap; }
.whatsapp-floating {
  position: fixed;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 61;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 50%;
  background: #147947;
  color: #fff;
  box-shadow: 0 3px 14px rgba(0,0,0,.16);
  text-decoration: none;
  transition: background .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.whatsapp-floating .whatsapp-icon { width: 27px; height: 27px; }
.whatsapp-floating:hover { background: #0e6037; color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.22); }
body.nav-menu-open .whatsapp-floating,
body.wx-no-scroll .whatsapp-floating,
body:has(.image-zoom-modal.open) .whatsapp-floating { visibility: hidden; pointer-events: none; }
@media (max-width: 1080px) {
  body:has(input:focus, textarea:focus, select:focus, [contenteditable="true"]:focus) .whatsapp-floating { visibility: hidden; pointer-events: none; }
}
@media (max-width: 680px) {
  .whatsapp-floating {
    width: 46px;
    height: 46px;
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(var(--whatsapp-mobile-bottom, 70px), calc(14px + env(safe-area-inset-bottom, 0px)));
  }
  .whatsapp-floating .whatsapp-icon { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-button, .whatsapp-floating { transition: none; }
}
