.whatsapp-chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1050;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  animation: whatsapp-bounce 3s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.whatsapp-chat::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.45);
  animation: whatsapp-pulse 2s ease-out infinite;
}

.whatsapp-chat:hover,
.whatsapp-chat:focus {
  color: #fff;
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  text-decoration: none;
  animation-play-state: paused;
}

.whatsapp-chat:hover::before,
.whatsapp-chat:focus::before {
  animation-play-state: paused;
}

.whatsapp-chat svg {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  fill: currentColor;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.75;
  }

  70% {
    transform: scale(1.25);
    opacity: 0;
  }

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

@keyframes whatsapp-bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  8% {
    transform: translateY(-4px);
  }

  16% {
    transform: translateY(0);
  }
}

.whatsapp-chat span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 576px) {
  .whatsapp-chat {
    right: 14px;
    bottom: 14px;
    width: 54px;
    height: 54px;
  }
}
