//CONTENEDOR PRINCIPAL
#wa-bubble{
  display: block;
  position: fixed;
  bottom: 20px;
  font-family: 'Roboto';
  font-weight: 400;
  z-index: 999999;
}
#wa-bubble.left{
  left: 15px;
}
#wa-bubble.right{
  right: 15px;
}

//ICONO
#wa-bubble.whatsapp-container .whatsapp-container-icon{
  display: block;
}
.whatsapp-icon.small{
  width: 45px;
  height: 45px;
}
.whatsapp-icon.medium{
  width: 55px;
  height: 55px;
}
.whatsapp-icon.big{
  width: 65px;
  height: 65px;
}

#wa-bubble.whatsapp-container .whatsapp-container-icon .whatsapp-icon{
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: linear-gradient(120deg,#25d366 0%,#25d366 100%);
  border-radius: 50%;
  transform-style: preserve-3d;
  outline: 1px solid transparent;
  will-change: border-radius;
  &:hover{
    cursor: pointer;
  }
  img{
    fill: #ffffff;
  }
  img.small{
    width: 25px;
    height: 25px;
  }
  img.medium{
    width: 30px;
    height: 30px;
  }
  img.big{
    width: 40px;
    height: 40px;
  }
}
.animation-morph{
  animation: morph 5s linear infinite;
}
@keyframes morph {
  0%, 100% {
    border-radius: 42% 58% 70% 30%/45% 45% 55% 55%;
    transform: translate(0) rotate(.02deg);
  }
  34% {
    border-radius: 70% 30% 46% 54%/30% 29% 71% 70%;
    transform: translateY(5px) rotate(.02deg);
  }
  50% {
    transform: translate(0) rotate(.02deg);
  }
  67% {
    border-radius: 100% 60% 60% 100%/100% 100% 60% 60%;
    transform: translateY(-3px) rotate(.02deg);
  }

}
.animation-pulse{
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(51, 217, 178, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(51, 217, 178, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(51, 217, 178, 0);
  }
}

//POPUP
.wa-bubble.whatsapp-popup-container{
  width: 100%;
  position: relative;
}
.wa-bubble.whatsapp-popup-box{
  width: 350px;
  border-radius: 25px;
  background-color: #FAFAFA;
  box-shadow: 0px 1px 2px 0px #eaeaea;
  position: absolute;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  border: 1px solid #eaeaea;
  transition: transform 500ms cubic-bezier(.215,.61,.355,1), visibility 500ms cubic-bezier(.215,.61,.355,1), opacity 300ms ease-in;
}
.wa-bubble.whatsapp-popup-box.show{
  display: block;
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);

}
.wa-bubble.whatsapp-popup-box.right{
  left:-295px;
  bottom: 15px;
}
.wa-bubble.whatsapp-popup-box.left{
  right:-295px;
  bottom: 15px;
}
.wa-bubble.whatsapp-popup-header{
  background-image: linear-gradient(120deg,#0A695DFF 0%,#095E54FF 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  line-height: 21px;
  .agent-image{
    width: 50px;
    height: 50px;
    border-radius: 100%;
    position: relative;
    &:after{
      content: '';
      display: inline-block;
      width: 10px;
      height: 10px;
      border-radius: 100%;
      background-color: rgb(74, 213, 4);
      //background-color: red;
      position: absolute;
      bottom: 3px;
      right: 2px;
    }
    img{
      width: 50px;
      height: 50px;
      border-radius: 100%;
      position: relative;
    }
  }
  .popup-header{
    color:#ffffff;
    margin: 0;
    display: block;
    font-size: 20px;
    .popup-header-description{
      display: block;
      font-size: 11px;
    }
  }
  .close-popup{
    color:#ffffff;
    margin: 0;
    img{
      width: 16px;
      height: 16px;
    }
    &:hover{
      cursor: pointer;
    }
  }
}
.whatsapp-popup-header-info{
  display:flex;
  gap: 15px;
  align-items: center;
}
.wa-bubble.whatsapp-popup-content{
  //padding: 15px 25px;
  background-color: #f8f8f8;
  .whatsapp-animation-content{
    background-color: rgb(230, 221, 212);
    padding: 15px 15px 15px 30px;
    min-height: 150px;
    position: relative;
    z-index: 2;
    &:after{
      z-index: -1;
      position: absolute;
      top:0;
      left: 0;
      width: 100%;
      height: 100%;
      content:'';
      background-image: url("../img/whatsapp.png");
      background-position: center;
      background-repeat: no-repeat;
      background-size: cover;
      opacity: .3;
    }
    .animation-before{
      z-index: 10;
      background-color: #FFFFFF;
      display: flex;
      width: 80px;
      padding: 15px;
      justify-content: center;
      border-radius: 35px;
    }
  }
  .whatsapp-content-description{
    background-color: #FFFFFF;
    display: none;
    flex-direction: column;
    width: 250px;
    padding: 15px ;
    border-radius: 0px 5px 5px 5px ;
    position: relative;
    p{
      margin: 0px;
    }
    .popup-message{
      margin: 0px;
      font-size: 15px;
    }
    &:before{
      content:'';
      position: absolute;
      display: inline-block;
      top:0;
      left: -24px;
      width: 24px;
      height: 38px;
      background-image: url("../img/arrow.png");
      background-repeat: no-repeat;
      background-size: auto;
    }
    .name-agent{
      color: #25d366;
      font-weight: 500;
      font-size: 15px;
    }
    .show-the-time{
      text-align: right;
      font-size: 13px;
      opacity: .6;
    }
  }
  .whatsapp-enter-text{
    padding: 15px 15px 0 15px;

    #popup-text-message{
      border-radius: 10px;
      width: 100%;
      height:60px;
      background-color: white;
      border: 1px solid #cfcfcf;
      padding: 15px;
      color: #626262;
    }
  }


}
/**
 * ==============================================
 * Dot Flashing
 * ==============================================
 */
$dotColor: #bbbbbb;
.dot-flashing {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: $dotColor;
  color: $dotColor;
  animation: dot-flashing 1s infinite linear alternate;
  animation-delay: 0.5s;
}
.dot-flashing::before, .dot-flashing::after {
  content: "";
  display: inline-block;
  position: absolute;
  top: 0;
}
.dot-flashing::before {
  left: -15px;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: $dotColor;
  color: $dotColor;
  animation: dot-flashing 1s infinite alternate;
  animation-delay: 0s;
}
.dot-flashing::after {
  left: 15px;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: $dotColor;
  color: $dotColor;
  animation: dot-flashing 1s infinite alternate;
  animation-delay: 1s;
}

@keyframes dot-flashing {
  0% {
    background-color: $dotColor;
  }
  50%, 100% {
    background-color: rgba(187, 187, 187, 0.2);
  }
}

.wa-bubble.whatsapp-popup-footer{
  padding: 10px 15px 10px 15px;
  background-color: #f8f8f8;
  .popup-submit-button{
    display: inline-flex;
    align-items: center;
    //background-color:#29A71A;
    background-color: #25d366;
    color: #FFFFFF;
    text-decoration: none;
    padding: 15px 30px 15px 30px;
    border-radius: 100px;
    transition: all .3s;
    &:hover{
      cursor: pointer;
      text-decoration: none;
      background-color: #128c7e;
    }
    &:visited{
      color: #FFFFFF;
      text-decoration: none;
    }
    img{
      margin-right: 10px;
    }
  }
  .full{
    display: flex;
    justify-content: center;
    align-items: center;
  }
}


