/* Horizonte Patrimonial V41.2 — WhatsApp flutuante unificado */
.hp-whatsapp-float {
  position: fixed !important;
  inset: auto clamp(16px, 2.2vw, 28px) calc(22px + env(safe-area-inset-bottom, 0px)) auto !important;
  z-index: 2147483000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 60px !important;
  height: 60px !important;
  min-width: 60px !important;
  padding: 0 !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 50% !important;
  background: #25D366 !important;
  color: #fff !important;
  box-shadow: 0 8px 28px rgba(0,0,0,.32), 0 0 0 3px rgba(37,211,102,.15) !important;
  font: inherit !important;
  line-height: 1 !important;
  text-decoration: none !important;
  text-align: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.hp-whatsapp-float svg {
  display: block !important;
  width: 33px !important;
  height: 33px !important;
  flex: 0 0 33px !important;
  fill: currentColor !important;
}
.hp-whatsapp-float:hover {
  background: #1faf56 !important;
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 34px rgba(0,0,0,.36), 0 0 0 3px rgba(37,211,102,.22) !important;
}
.hp-whatsapp-float:focus-visible {
  outline: 3px solid #D4AF37 !important;
  outline-offset: 4px !important;
}
@media (max-width: 600px) {
  .hp-whatsapp-float {
    inset: auto 16px calc(16px + env(safe-area-inset-bottom, 0px)) auto !important;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
  }
  .hp-whatsapp-float svg {
    width: 31px !important;
    height: 31px !important;
    flex-basis: 31px !important;
  }
}
/* Artigos previdenciários mantêm o CTA flutuante existente do simulador,
   acima do novo ícone do WhatsApp, sem sobreposição. */
.hp-legacy-float-with-wa {
  bottom: calc(103px + env(safe-area-inset-bottom, 0px)) !important;
  right: clamp(16px, 2.2vw, 28px) !important;
  z-index: 2147482999 !important;
}
@media (max-width: 600px) {
  .hp-legacy-float-with-wa {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    right: 16px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hp-whatsapp-float { transition: none !important; }
}
@media print {
  .hp-whatsapp-float { display: none !important; }
}
