.chat_btn_popup {
    position: fixed;
    left: 30px;
    bottom: 70px;
    cursor: pointer;
    z-index: 999999999;
}
.chat_btn_popup.chat_right{
    left:auto;
    right:30px;
} 
.chat_popup_box {
    width: 351px;
    border-radius: 5px 5px 8px 8px;
    position: fixed;
    overflow: hidden;
    box-shadow: 0 10px 10px 4px rgba(0,0,0,.04);
    bottom: 102px;
    left: 25px;
    z-index: 999999998;
    opacity: 0;
    visibility: hidden;
    transform: translate(0,50px);
    transition: 0.4s ease all;
    -webkit-transition: 0.4s ease all;
    -moz-transition: 0.4s ease all;
    will-change: transform,visibility,opacity;
    max-width: calc(100% - 50px)
}
.chat_popup_box.chat_right{
    left:auto;
    right:25px;
}
.chat_popup_box.chat_active {
    -ms-transform: translate(0,0);
    transform: translate(0,0);
    -webkit-transform: translate(0,0);
    -moz-transform: translate(0,0);
    visibility: visible;
    opacity: 1
}
.chat_popup_box .chat_popup_heading {
    position: relative;
    padding: 12px 42px 10px 74px;
    color: #d9ebc6;
    font-weight:400;
    background: #2db742;
}
.chat_popup_box.chat_right .chat_popup_heading{
    padding: 12px 74px 10px 42px;
}
.chat_popup_box .chat_popup_heading:before {
    content: '';
    background: url(icons/whatsapp_logo.svg) center top no-repeat;
    background-size: 33px;
    display: block;
    width: 55px;
    height: 33px;
    position: absolute;
    top: 20px;
    left:12px
}
.chat_popup_box.chat_right  .chat_popup_heading:before{
    left: auto;
    right:12px;
}
.chat_popup_box .chat_popup_heading .chat_popup_title {
    padding-top: 2px;
    padding-bottom: 3px;
    color: #fff;
    font-size: 16px;
    line-height: 24px;
    font-weight:bold;
}
.chat_popup_box .chat_stt {
    padding: 10px 40px 10px 74px;
    position: relative;
    text-decoration: none;
    display: table;
    width: 100%;
    border-right: 2px solid #2db742;
    background: #f5f7f9;
    border-radius: 4px 2px 4px 2px;
}
.chat_popup_box.chat_right .chat_stt{
   padding: 10px 74px 10px 40px;
}
.chat_popup_box .chat_stt:after {
    content: '';
    background: url(icons/whatsapp_logo_green.svg) 100% 0 no-repeat;
    position: absolute;
    right: 14px;
    top: 21px;
    width: 20px;
    height: 20px;
    background-size: 100% 100%;
}
.chat_popup_box.chat_right .chat_stt:after{
   right:auto;
   left:14px;
}
.chat_popup_box .chat_stt.chat_stt_offline::after {
    background-image: url(icons/whatsapp_logo_gray_sm.svg);
}
.chat_popup_box .chat_stt.chat_stt_offline{
    border-right: 2px solid #ccc;
}
.chat_popup_box .chat_popup_content {
    background: #fff;
    padding: 10px 19px 18px 20px;
}
.chat_popup_box .chat_popup_avatar {
    position: absolute;
    overflow: hidden;
    border-radius: 50%;
    left: 10px;
    top: 7px
}
.chat_popup_box.chat_right .chat_popup_avatar{
    left:auto;
    right:10px;
}
.chat_popup_content_item .chat_cs_img_wrap {
    width: 50px;
    height: 50px;
}
.chat_popup_content_list .chat_popup_content_item {
    margin: 10px 0 0;
    transform: translate(0,20px);
    -webkit-transform: translate(0,20px);
    -moz-transform: translate(0,20px);
    will-change: opacity,transform;
    opacity: 0
}
.chat_popup_content_list .chat_popup_content_item .chat_member_name {
    font-size: 14px;
    font-weight:bold;
    color: #363c47;
    line-height:1.5
}
.chat_popup_box.chat_pending .chat_popup_content_list .chat_popup_content_item {
    transition: 0.4s ease all;
    -webkit-transition: 0.4s ease all;
    -moz-transition: 0.4s ease all;
    transition-delay: 2.1s;
    -webkit-transition-delay: 2.1s;
    -moz-transition-delay: 2.1s
}
.chat_popup_box.chat_lauch .chat_popup_content_list .chat_popup_content_item {
    opacity: 1;
    transform: translate(0,0);
    -webkit-transform: translate(0,0);
    -moz-transform: translate(0,0)
}
.chat_popup_box.chat_pending .chat_popup_content_list .chat_popup_content_item:nth-child(1) {
     transition-delay: 0.3s;
     -webkit-transition-delay: 0.3s;
     -moz-transition-delay: 0.3s
}
.chat_popup_box.chat_pending .chat_popup_content_list .chat_popup_content_item:nth-child(2) {
     transition-delay: 0.5s;
     -webkit-transition-delay: 0.5s;
     -moz-transition-delay: 0.5s
}
.chat_popup_box.chat_pending .chat_popup_content_list .chat_popup_content_item:nth-child(3) {
     transition-delay: 0.7s;
    -webkit-transition-delay: 0.7s;
    -moz-transition-delay: 0.7s
}
.chat_popup_box.chat_pending .chat_popup_content_list .chat_popup_content_item:nth-child(4) {
    transition-delay: 0.9s;
   -webkit-transition-delay: 0.9s;
   -moz-transition-delay: 0.9s
}
.chat_stt_offline {
    background: #ddd!important;
    color: #595B60;
    box-shadow: none;
    cursor: initial
}
.chat_popup_content_list .chat_popup_content_item .chat_member_duty {
    font-size:13px;
    color: #777;
    padding:5px 0 0;
    line-height: 1.3;
}

.chat_btn_popup .chat_btn_popup_txt {
    position: absolute;
    width: 156px;
    left: 100%;
    background-color: #f5f7f9;
    font-size:13px;
    color: #43474e;
    top: 15px;
    padding: 7px 12px 7px 0;
    margin-left: 7px;
    letter-spacing: -.03em;
    border-radius: 4px;
    text-align:center;
    transition: 0.4s ease all;
}
.chat_btn_popup.chat_right .chat_btn_popup_txt{
    left:auto;
    right:100%;
}
.chat_btn_popup.chat_active .chat_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)
}

.chat_btn_popup.chat_active .chat_btn_popup_icon:after {
    opacity: 1;
    -ms-transform: scale(1) rotate(0deg);
    transform: scale(1) rotate(0deg);
    -webkit-transform: scale(1) rotate(0deg);
    -moz-transform: scale(1) rotate(0deg)
}
.chat_btn_popup.chat_active .chat_btn_popup_txt {
    transform: translate(0,15px);
    opacity: 0;
    visibility: hidden
}

.chat_btn_popup .chat_btn_popup_icon {
    width: 56px;
    height: 56px;
    background: #2db742;
    /*background: var(--primerycolor);*/
    border-radius: 50%;
    box-shadow: 0 6px 8px 2px rgba(0,0,0,.14);
}

.chat_btn_popup .chat_btn_popup_icon:before {
    content: '';
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    right: 0;
    top: 0;
    background: transparent url(icons/whatsapp_logo.svg) center center no-repeat;
    background-size: 30px auto;
    transition: 0.4s ease all;
}

.chat_btn_popup .chat_btn_popup_icon:after {
    content: '';
    opacity: 0;
    position: absolute;
    z-index: 2;
    width: 100%;
    height: 100%;
    right: 0;
    top: 0;
    background: transparent url(icons/x_icon.svg) center center no-repeat;
    background-size: 14px auto;
    transition: 0.4s ease all;
    transform: scale(0) rotate(360deg);
}
