/**
 * Floating WhatsApp — fixed bottom-right (replaces Astra scroll-to-top)
 */

.lp-float-wa {
  --lp-wa-green: #25d366;
  --lp-wa-green-hover: #20bd5a;
  position: fixed;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--lp-wa-green);
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.lp-float-wa:hover {
  background: var(--lp-wa-green-hover);
  color: #fff !important;
  transform: scale(1.06);
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.5), 0 6px 16px rgba(0, 0, 0, 0.4);
}

.lp-float-wa:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.lp-float-wa:active {
  transform: scale(0.96);
}

.lp-float-wa .fa-whatsapp {
  font-size: calc(30px + var(--lp-font-bump));
  line-height: 1;
}

/* Hide Astra scroll-to-top if anything still outputs it */
#ast-scroll-top {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .lp-float-wa {
    transition: none;
  }

  .lp-float-wa:hover,
  .lp-float-wa:active {
    transform: none;
  }
}
