.wa-float {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 1200;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #25d366;
  color: #0b0f14;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18), 0 6px 12px rgba(0, 0, 0, 0.14);
  transform: translateY(calc(-1 * var(--wa-footer-offset, 0px)));
  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
  animation: wa-pulse 6s ease-in-out infinite;
}

.wa-float:hover,
.wa-float:focus-visible {
  filter: brightness(1.02);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22), 0 8px 16px rgba(0, 0, 0, 0.18);
  transform: translateY(calc(-1 * var(--wa-footer-offset, 0px))) scale(1.04);
}

.wa-float:active {
  transform: translateY(calc(-1 * var(--wa-footer-offset, 0px))) scale(0.98);
}

.wa-float i {
  font-size: 28px;
  line-height: 1;
}

.wa-float .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 576px) {
  .wa-float {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: 54px;
    height: 54px;
  }
  .wa-float i {
    font-size: 27px;
  }
}

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

@keyframes wa-pulse {
  0% {
    transform: translateY(calc(-1 * var(--wa-footer-offset, 0px))) scale(1);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18), 0 6px 12px rgba(0, 0, 0, 0.14);
  }
  6% {
    transform: translateY(calc(-1 * var(--wa-footer-offset, 0px))) scale(1.06);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22), 0 8px 16px rgba(0, 0, 0, 0.18);
  }
  12% {
    transform: translateY(calc(-1 * var(--wa-footer-offset, 0px))) scale(1);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18), 0 6px 12px rgba(0, 0, 0, 0.14);
  }
  100% {
    transform: translateY(calc(-1 * var(--wa-footer-offset, 0px))) scale(1);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18), 0 6px 12px rgba(0, 0, 0, 0.14);
  }
}
