/** @format */

.float-button {
  text-decoration: none;
  position: fixed;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  bottom: 30px;
  right: 30px;
  color: #fff;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border-radius: 50%;
  z-index: 100;
  font-family: Arial;
  font-size: 17px;
  animation: whatsapp-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 8px 24px rgba(18, 140, 126, 0.45),
    0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  isolation: isolate;
}

.float-button img {
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 2;
}

.float-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  z-index: 0;
  animation: whatsapp-pulse 2s ease-out infinite;
}

.float-button::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: #ff3b30;
  border: 3px solid #fff;
  border-radius: 50%;
  z-index: 3;
}

.float-button:hover {
  transform: scale(1.12) rotate(8deg);
  box-shadow:
    0 12px 32px rgba(18, 140, 126, 0.6),
    0 2px 6px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, #2be673 0%, #128c7e 100%);
  color: #fff;
}

.fa-whatsapp {
  font-size: 20px !important;
  padding-right: 5px;
  padding-left: 5px;
}

@keyframes whatsapp-in {
  from {
    opacity: 0;
    transform: scale(0) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  70% {
    transform: scale(1.45);
    opacity: 0;
  }

  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

@keyframes whatsapp-animation {
  from {
    opacity: 0%;
  }

  to {
    opacity: 100%;
  }
}

@media screen and (max-width: 545px) {
  span {
    display: none;
  }

  .float-button {
    bottom: 100px;
    right: 15px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
  }

  .fa-whatsapp {
    font-size: 22px !important;
    padding: 4px;
  }
}


