
#main-div {
  position: fixed;
  right: 20px;
  bottom: 100px;
  z-index: 99;

}
#main-div .wave .fa-times{
  display: none;
}
#main-div .wave.open .fa-times{
  display: block;
}

#main-div .wave.open .bubble-img{
  display: none;
}

#main-button {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 0;
  bottom: 0;
  height: 64px;
  width: 70px;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
  /* background-color:#66b0fe; */
  /* box-shadow: 0 0 10px 0 rgba(0,0,0,.5); */
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
}
#main-div .wave.open {
  background-color:#66b0fe;
  box-shadow: 0 0 10px 0 rgba(0,0,0,.5);

}
/* #main-div button,
#main-div a {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
} */

#main-button ~ button {
  visibility: hidden;
  font-weight: 600;
  height: 50px;
  padding: 0 20px;
  color: #fff;
  background: linear-gradient(90deg, #00a1f5, #0064f3);
  box-shadow: 0 0 10px 0 rgba(0,0,0,.5);
  border: 0;
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  opacity: 0;
  white-space: nowrap;
  cursor: pointer;
  transition: .2s all linear;
  -webkit-transition: .2s all linear;
  -moz-transition: .2s all linear;
  -ms-transition: .2s all linear;
  -o-transition: .2s all linear;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
}

#main-button.open ~ button {
  visibility: visible;
  opacity: 1;
  right: 70px;
  opacity: 1;
  transition: .4s all cubic-bezier(0, 0.01, 0, 1.27);
  -webkit-transition: .4s all cubic-bezier(0, 0.01, 0, 1.27);
  -moz-transition: .4s all cubic-bezier(0, 0.01, 0, 1.27);
  -ms-transition: .4s all cubic-bezier(0, 0.01, 0, 1.27);
  -o-transition: .4s all cubic-bezier(0, 0.01, 0, 1.27);
}

#main-button ~ a,#main-button .zalo-chat-widget {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -1;
  height: 60px;
  width: 60px;
  font-size: 36px;
  opacity: 0;
  text-decoration: none;
  color: #fff;
  background-color: #fff;
  box-shadow: 0 0 10px 0 rgba(0,0,0,.5);
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
  transition: .2s all linear;
  -webkit-transition: .2s all linear;
  -moz-transition: .2s all linear;
  -ms-transition: .2s all linear;
  -o-transition: .2s all linear;
}

#main-button ~ .telegram-color {
  background: linear-gradient(0deg, #017AB1, #01ABE6);
}

#main-button ~ .whatsapp-color {
  background: linear-gradient(0deg, #00B100, #09db09);
}

#main-button ~ .messenger-color {
  background: linear-gradient(0deg, #0078FF, #00C6FF);
}

#main-button.open ~ a,#main-button.open .zalo-chat-widget {
  opacity: 1;
  transition: .4s all cubic-bezier(0, 0.01, 0, 1.27);
  -webkit-transition: .4s all cubic-bezier(0, 0.01, 0, 1.27);
  -moz-transition: .4s all cubic-bezier(0, 0.01, 0, 1.27);
  -ms-transition: .4s all cubic-bezier(0, 0.01, 0, 1.27);
  -o-transition: .4s all cubic-bezier(0, 0.01, 0, 1.27);
}
#main-button.open ~ a:nth-of-type(1) {
  bottom: 75px;
}

#main-button.open ~ a:nth-of-type(2),#main-button.open .zalo-chat-widget {
  bottom: 145px;
}
#main-button.open ~ a:nth-of-type(3) {
  bottom: 215px;
}
#main-button.open ~ a:nth-of-type(4) {
    bottom: 285px;
}
#main-button.open ~ a:nth-of-type(5) {
  bottom: 360px;
}
#main-button.open ~ a:nth-of-type(6) {
  bottom: 430px;
}
#main-button.open ~ a:nth-of-type(7) {
  bottom: 500px;
}

.wave {
  animation-name: wave;
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.phone-tooltip {
    position: relative;
    display: inline-block;
}

.phone-tooltip .tooltip-text {
    visibility: hidden;
    background: linear-gradient(0deg, #0078FF, #00C6FF);
    color: #fff;
    text-align: center;
    padding: 6px 10px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    bottom: 7px;
    right: -36px;
    transform: translateX(-50%);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 20px;
}

.phone-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

@keyframes wave {
  0% {box-shadow: 0 0 0px 0px rgba(255, 255, 255, 0.5);}
  100% {box-shadow: 0 0 0px 10px rgba(255, 255, 255, 0);}
}

.open {
  animation-iteration-count: 1;
}

#main-div .zalo-chat-widget {
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -1;
  height: 60px;
  width: 60px;
  font-size: 36px;
  opacity: 0;
  text-decoration: none;
  background-color: #0064f3;
  box-shadow: 0 0 10px 0 rgba(0,0,0,.5);
  border-radius: 50%;
  transition: .2s all linear;
}

#main-button.open ~ .zalo-chat-widget {
  opacity: 1;
  bottom: 145px;
  z-index: 1;
  transition: .4s all cubic-bezier(0, 0.01, 0, 1.27);
}