@-webkit-keyframes slide-in-bottom {
  0% {
    -webkit-transform: translateY(1000px);
    transform: translateY(1000px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes slide-in-bottom {
  0% {
    -webkit-transform: translateY(1000px);
    transform: translateY(1000px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
  }
}

@-webkit-keyframes ring {
  0% {
    width: 54px;
    height: 54px;
    opacity: 1;
  }
  100% {
    width: 80px;
    height: 80px;
    opacity: 0;
  }
}
@keyframes ring {
  0% {
    width: 54px;
    height: 54px;
    opacity: 1;
  }
  100% {
    width: 80px;
    height: 80px;
    opacity: 0;
  }
}

#whatsapp-contact {
  background-color: #2db742;
  position: fixed;
  bottom: 1rem;
  width: 54px;
  height: 54px;
  text-align: center;
  cursor: pointer;
  z-index: 100;
  border-radius: 50px;
  -webkit-animation: slide-in-bottom 1s cubic-bezier(0.25, 0.46, 0.45, 0.94)
    both;
  animation: slide-in-bottom 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

#whatsapp-contact-container:after {
  content: "";
  width: 80px;
  height: 80px;
  border-radius: 100px;
  -webkit-border-radius: 100px;
  -moz-border-radius: 100px;
  background: -webkit-linear-gradient(
    330deg,
    rgb(255 255 255 / 0) 0%,
    rgb(255 255 255 / 0.2) 100%
  );
  background: linear-gradient(
    120deg,
    rgb(255 255 255 / 0) 0%,
    rgb(255 255 255 / 0.2) 100%
  );
  -moz-box-shadow: 0 0 5px 0 rgb(0 0 0 / 50%);
  -webkit-box-shadow: 0 0 5px 0 rgb(0 0 0 / 50%);
  box-shadow: 0 0 5px 0 rgb(0 0 0 / 50%);
  -webkit-transition: 0.3s all cubic-bezier(0.4, 0, 0.2, 1);
  transition: 0.3s all cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ring 1.5s infinite;
}

#whatsapp-contact.whatsapp-contact-right {
  right: 1rem;
}

#whatsapp-contact.whatsapp-contact-left {
  left: 1rem;
}

#whatsapp-contact a {
  display: inline-block;
  width: 54px;
  height: 54px;
  line-height: 50px;
}

#whatsapp-contact .icon-svg {
  color: #fff;
  font-size: 40px;
}

@media (max-width: 991.98px) {
  #whatsapp-contact {
    bottom: 0.7rem;
    width: 45px;
    height: 45px;
  }

  #whatsapp-contact.whatsapp-contact-right {
    right: 0.7rem;
  }
  
  #whatsapp-contact.whatsapp-contact-left {
    left: 0.7rem;
  }

  #whatsapp-contact a {
    width: 45px;
    height: 45px;
    line-height: 40px;
  }

  #whatsapp-contact .icon-svg {
    font-size: 30px;
  }
}

/* button text */
#whatsapp-button-text {
  display: block;
  position: absolute;
  width: max-content;
  background-color: #fff;
  bottom: 15px;
  border-radius: 5px;
  padding: 5px 10px;
  color: #000;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.03em;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  word-break: keep-all;
  line-height: 1em;
  text-overflow: ellipsis;
  vertical-align: middle;
  box-shadow: 0 6px 8px 2px rgba(0, 0, 0, 0.15);
}

#whatsapp-contact.whatsapp-contact-right #whatsapp-button-text {
  right: 62px;
}

#whatsapp-contact.whatsapp-contact-left #whatsapp-button-text {
  left: 62px;
}

@media (max-width: 991.98px) {
  #whatsapp-button-text {
    bottom: 12px;
  }

  #whatsapp-contact.whatsapp-contact-right #whatsapp-button-text {
    right: 50px;
  }
  
  #whatsapp-contact.whatsapp-contact-left #whatsapp-button-text {
    left: 50px;
  }
}