.whatsapp-float {
  position: fixed;
  right: clamp(1rem, 2vw, 2rem);
  bottom: 6rem;
  z-index: 20;

  display: grid;
  width: clamp(3.2rem, 4vw, 4rem);
  height: clamp(3.2rem, 4vw, 4rem);
  place-items: center;

  border: 2px solid rgba(36, 210, 191, 0.44);
  border-radius: 50%;
  background: #25d366;
  box-shadow:
    0 0.9rem 2rem rgba(0, 0, 0, 0.32),
    0 0 1.2rem rgba(37, 211, 102, 0.28);

  color: var(--white);
  text-decoration: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.whatsapp-float i {
  position: relative;
  z-index: 1;
  font-size: clamp(1.95rem, 2.8vw, 2.55rem);
  line-height: 1;
}

.whatsapp-float::after {
  position: absolute;
  inset: -2px;
  border: 2px solid rgba(37, 211, 102, 0.65);
  border-radius: 50%;
  content: "";
  opacity: 0;
  pointer-events: none;
  animation: whatsapp-pulse 6s ease-out infinite;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  box-shadow:
    0 1rem 2.2rem rgba(0, 0, 0, 0.36),
    0 0 1.7rem rgba(37, 211, 102, 0.38);
  transform: scale(1.05);
}

@keyframes whatsapp-pulse {
  0%,
  8% {
    opacity: 0;
    transform: scale(1);
  }

  14% {
    opacity: 0.65;
  }

  24% {
    opacity: 0;
    transform: scale(1.45);
  }

  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}
