@keyframes buttonAnimate {
    0% {
        transform: none
    }

    10% {
        transform: translate(0, -20px)
    }

    20% {
        transform: none
    }

    30% {
        transform: translate(0, -20px)
    }

    40% {
        transform: none
    }

    100% {
        transform: none
    }

}

.btn_popup {
    position: fixed;
    left: 22px;
    bottom: 50px;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    z-index: 999
}

.btn_popup .btn_popup_txt {
    position: absolute;
    width: 156px;
    right: 100%;
    background-color: #f5f7f9;
    font-size: 12px;
    color: #43474e;
    top: 15px;
    padding: 7px 0 7px 12px;
    margin-right: 7px;
    letter-spacing: -.03em;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    transition: .4s ease all;
    -webkit-transition: .4s ease all;
    -moz-transition: .4s ease all
}

.btn_popup .btn_popup_icon {
    background: #2db742;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    box-shadow: 0 6px 8px 2px rgba(0, 0, 0, .14);
    -webkit-box-shadow: 0 6px 8px 2px rgba(0, 0, 0, .14);
    -moz-box-shadow: 0 6px 8px 2px rgba(0, 0, 0, .14);
    animation: buttonAnimate 2s infinite
}

.btn_popup .btn_popup_icon span {
    display: block;
    color: #fff;
    position: absolute;
    top: 59px;
    text-align: center;
    line-height: 15px;
    width: 100%;
    height: 30px;
    font-size: 14px
}

.btn_popup_icon:before {
    content: '';
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    left: 0;
    top: -20px;
    background: transparent url(../images/whatsapp_logo_transparent.svg) center center no-repeat;
    background-size: 30px auto;
    -webkit-background-size: 30px auto;
    -moz-background-size: 30px auto;
    transition: .4s ease all;
    -webkit-transition: .4s ease all;
    -moz-transition: .4s ease all
}

.btn_popup.active .btn_popup_icon::before {
    opacity: 0;
    -ms-transform: scale(0) rotate(360deg);
    transform: scale(0) rotate(360deg);
    -webkit-transform: scale(0) rotate(360deg);
    -moz-transform: scale(0) rotate(360deg)
}

.btn_popup_icon:after {
    content: '';
    opacity: 0;
    position: absolute;
    z-index: 2;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: transparent url(../images/whatsapp/x_icon.svg) center center no-repeat;
    background-size: 14px auto;
    -webkit-background-size: 14px auto;
    -moz-background-size: 14px auto;
    transition: .4s ease all;
    -webkit-transition: .4s ease all;
    -moz-transition: .4s ease all;
    transform: scale(0) rotate(-360deg);
    -webkit-transform: scale(0) rotate(-360deg);
    -moz-transform: scale(0) rotate(-360deg)
}

.btn_popup.active .btn_popup_icon::after {
    opacity: 1;
    -ms-transform: scale(1) rotate(0);
    transform: scale(1) rotate(0);
    -webkit-transform: scale(1) rotate(0);
    -moz-transform: scale(1) rotate(0)
}

.popup_chat_box {
    font-family: Arial, Helvetica, sans-serif;
    width: 351px;
    border-radius: 5px 5px 8px 8px;
    -webkit-border-radius: 5px 5px 8px 8px;
    -moz-border-radius: 5px 5px 8px 8px;
    position: fixed;
    overflow: hidden;
    box-shadow: 0 10px 10px 4px rgba(0, 0, 0, .04);
    -webkit-box-shadow: 0 10px 10px 4px rgba(0, 0, 0, .04);
    -moz-box-shadow: 0 10px 10px 4px rgba(0, 0, 0, .04);
    bottom: 190px;
    right: 25px;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    -ms-transform: translate(0, 50px);
    transform: translate(0, 50px);
    -webkit-transform: translate(0, 50px);
    -moz-transform: translate(0, 50px);
    transition: .4s ease all;
    -webkit-transition: .4s ease all;
    -moz-transition: .4s ease all;
    will-change: transform, visibility, opacity;
    max-width: calc(100% - 50px)
}

@media (max-width:991px) {
    .btn_popup {
        bottom: 70px
    }

    .popup_chat_box {
        bottom: 128px
    }

}

.popup_chat_box .popup_heading {
    background: #2db742;
    position: relative;
    padding: 9px 43px 11px 74px;
    color: #d9ebc6
}

.popup_chat_box .popup_heading:before {
    content: '';
    background: url(../images/whatsapp/whatsapp_logo_transparent.svg) center top no-repeat;
    background-size: auto;
    background-size: 26px;
    display: block;
    width: 44px;
    height: 26px;
    position: absolute;
    top: 5px;
    left: 12px
}

.popup_chat_box .popup_heading .popup_title {
    color: #FFF;
    padding-top: 2px;
    padding-bottom: 3;
    color: #fff;
    font-size: 18px;
    line-height: 18px
}

.popup_chat_box .popup_heading .popup_intro {
    color: #fff;
    opacity: .8;
    padding-top: 4px;
    font-size: 12px;
    line-height: 20px
}

.popup_chat_box .popup_content_left {
    text-align: left !important
}

.popup_chat_box .popup_content {
    background: #fff;
    padding: 3px 12px 3px 12px;
    text-align: center
}

.popup_chat_box .popup_notice {
    font-size: 11px;
    color: #a5abb7;
    font-weight: 500;
    padding: 0 3px
}

.popup_content_list .popup_content_item {
    margin: 14px 0 0;
    transform: translate(0, 20px);
    -webkit-transform: translate(0, 20px);
    -moz-transform: translate(0, 20px);
    will-change: opacity, transform;
    opacity: 0
}

.popup_chat_box .stt.stt_online {
    transition: .2s ease all;
    -webkit-transition: .2s ease all;
    -moz-transition: .2s ease all
}

.popup_chat_box .stt {
    border-left: 2px solid #2db742;
    padding: 5px 39px 6px 60px;
    position: relative;
    text-decoration: none;
    display: table;
    width: 100%;
    border-left: 2px solid #2db742;
    background: #f5f7f9;
    border-radius: 2px 4px 2px 4px;
    -webkit-border-radius: 2px 4px 2px 4px;
    -moz-border-radius: 2px 4px 2px 4px
}

.stt_online {
    background: #2db742;
    cursor: pointer;
    transition: .4s ease all;
    -webkit-transition: .4s ease all;
    -moz-transition: .4s ease all;
    backface-visibility: hidden;
    will-change: transform
}

.stt_online::before {
    content: '';
    transition: .4s ease all;
    -webkit-transition: .4s ease all;
    -moz-transition: .4s ease all;
    background: rgba(0, 0, 0, .2);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    opacity: 0;
    will-change: opacity
}

.btn_popup.active .btn_popup_txt {
    -ms-transform: translate(0, 15px);
    transform: translate(0, 15px);
    -webkit-transform: translate(0, 15px);
    -moz-transform: translate(0, 15px);
    opacity: 0;
    visibility: hidden
}
