/*******************************************************************************
* WhatsApp
*******************************************************************************/

.whatsapp-button {
  position: fixed;
  bottom: 60px;
  right: 20px;
  z-index: 1;
}

.whatsapp-button__link {
  position: relative;
  display: block;
  border-radius: 50%;
  z-index: 1;
  line-height: 1;
}

.whatsapp-button__link::before {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  background: #00e676;
  border-radius: 50%;
  z-index: -1;
  -webkit-animation: ping 1.5s ease-in-out infinite both;
  animation: ping 1.5s ease-in-out infinite both;
}

.whatsapp-button__icon {
  width: 50px;
  height: 50px;
}

.whatsapp-button__text-wrapper {
  position: absolute;
  top: 5px;
  right: 8px;

  width: max-content;
  padding: 8px 50px 8px 16px;

  color: #000;
  font-size: inherit;
  font-style: italic;
  font-weight: 600;

  background: #b0f49e;
  border-radius: 30rem;
  border: 1px solid #ffffff;

  pointer-events: none;

  z-index: 0;

  transition: 350ms;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: right;
}

.whatsapp-button:hover .whatsapp-button__text-wrapper {
  opacity: 1;
  transform: scaleX(1);
}

@keyframes ping {
  0% {
    -webkit-transform: scale(0.5);
            transform: scale(0.5);
    opacity: 1;
  }
  80% {
    -webkit-transform: scale(1.5);
            transform: scale(1.5);
    opacity: 0;
  }
  100% {
    -webkit-transform: scale(2);
            transform: scale(2);
    opacity: 0;
  }
}