/*Customized widget - Floating Buttons (HTML)*/
.floating-button{
    position: fixed;
    width: 40px;
    height: 40px;
    line-height: 40px;
    bottom: 90px;
    right: 19px;
    font-size: 18px;
    background-color: #4F6ACA;
    color: #fff !important;
    border-radius: 50px;
    text-align: center;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    border: none;
}

.floating-button *{
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.floating-button.float-btn-trigger{
    background-color: #4F6ACA;
    /* animation: 2.5s wiggle ease infinite; */
    /* animation-delay: 1s; */
    width: auto;
    min-width:40px;
}

.floating-button:not(.float-btn-trigger){
    opacity: 0;
}

.floating-button.float-btn-trigger .icon-trigger{
    width: 40px;
    height: 40px;
    line-height: 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    animation: 2.5s wiggle ease infinite;
    animation-delay: 1s;
    position: relative;
}

.floating-button.float-btn-trigger .chat-with-us {
	padding-inline: 0 0;
	font-size: 14px;
	text-transform: capitalize;
    overflow: hidden;
    text-indent:-100px;
    transform: scale(0);
    transform-origin: 100% 50%;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.floating-button.float-btn-trigger .chat-with-us.pop {
    padding-inline: 15px 0;
    text-indent:0;
    transform: scale(1);
}

.floating-button.float-btn-trigger #open-float{
    opacity: 1;
}
.floating-button.float-btn-trigger #close-float{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) rotate(0deg);
    opacity: 0;
}

.floating-button.floating-button_mail{background-color: rgba(0, 114, 198, 1);}
.floating-button.floating-button_phone{background-color: rgba(220, 16, 16, 1);}
.floating-button.floating-button_whatsapp{background-color: rgba(37, 211, 102, 1);}

/*when toogle*/
.floating-button.float-btn-trigger.toogle .icon-trigger{
    animation: none;
}

.floating-button.toogle:not(.float-btn-trigger){
    opacity: 1;
}

.floating-button.float-btn-trigger.toogle #open-float{
    opacity: 0;
}
.floating-button.float-btn-trigger.toogle #close-float{
    opacity: 1;
    transform: translate(-50%,-50%) rotate(180deg);
}

.floating-button.floating-button_mail.toogle{bottom:140px;}
.floating-button_phone.toogle{bottom: 190px;}
.floating-button_whatsapp.toogle{bottom:240px;}

/*animation for trigger*/
@keyframes wiggle {
  0% {
    transform: scale(1),rotate(0);
  }
  9.375% {
    transform: scale(1.1) rotate(0);
  }
  18.75% {
    transform: scale(1.1) rotate(-3deg);
  }
  28.125% {
    transform: scale(1.1) rotate(20deg);
  }
  37.5% {
    transform: scale(1.1) rotate(-15deg);
  }
  46.875% {
    transform: scale(1.1) rotate(5deg);
  }
  56.25% {
    transform: scale(1.1) rotate(-1deg);
  }
  65.625% {
    transform: scale(1.1) rotate(0);
  }
  75% {
    transform: scale(1) rotate(0);
  }

  100% {
    transform: scale(1) rotate(0);
  }
}

/*when mobile only*/
@media only screen and (max-width: 767.98px) {
    .floating-button{
        bottom:10px;
        right: 15px;
    }

    .floating-button.floating-button_mail.toogle{bottom:70px;}
    .floating-button_phone.toogle{bottom: 130px;}
    .floating-button_whatsapp.toogle{bottom:190px;}
    
    #side-contact {
        position: fixed;
        background: #fff;
        width: 100%;
        height: 60px;
        bottom: 0;
        right: -100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
        z-index: 999;
        -webkit-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out;
        /*padding-right: 70px;*/
    }
    
    #side-contact.toogle {
        right: 0;
    }
    
    #side-contact a.floating-button:not(.float-btn-trigger) {
        position: initial;
        opacity:1;
    }

    .floating-button.float-btn-trigger .chat-with-us.pop {
        padding-inline: 15px 0;
        text-indent:0;
        transform: scale(1);
        animation: none;
    }

    .floating-button.float-btn-trigger.toogle .chat-with-us.pop {
        padding-inline: 0 0;
        text-indent:-100px;
        transform: scale(0);
    }
    
}
            .button.button-xs.button-primary.whatsapp,
            .button.button-dark-outline.whatsapp{
              background: rgba(37, 211, 102, 1);
              border-color: rgba(37, 211, 102, 1);
              color: white;
            }

            .button.button-xs.button-primary.whatsapp::before,
            .button.button-dark-outline.whatsapp::before{
                display: none !important;
            }