/* chat box begin */
.chat_window1 {
    display: block;
    width: 640px;
    height: 0;
    max-height: 90%;
    overflow: hidden;
    position: fixed;
    bottom: 0;
    right: 15px;
    z-index: 9999;
    box-sizing: border-box;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 0 7px -1px rgba(0,0,0,0.3);     
    background: #efefef;
}
.chat_window_on1 {
    height: 400px;
    transition: all 0.3s;
}

.multichat_on.chat_window1 {
    padding-bottom: 0;
    
}

.chat_window_on1.chat_box_off1
{
    width: 320px;    
    transition-delay: 0.2s;
}
.chat_zindex1
{
    z-index: 9999!important;
    height: auto!important;
}
.chat_window_on1.chat_box_off1 .chat_queue_cover1 .chat_queue_header1 .chat_box_header_icon1
{
    display: block;
}

.chat_box_cover1 {
    display: block;
    width: 320px;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    background: #0a263e;
    padding: 0;
    position: absolute;
    right: 0; 
    z-index: 900;
}
.chat_box1 {
    display: none;
    height: 100%;
    max-height: 100%;
    width: 100%;
    overflow: hidden;
    background: #0a263e;
    background: #5f6b77;
    padding: 0 0 60px;
    position: relative;
}
.chat_box_header1 {
    width: 100%;
    display: flex;
    align-items: center;
    height: 40px;
    background: #2ecd71;
    background: #0a263e;
    padding: 0px 10px 0 10px;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 0 5px 3px rgba(0,0,0,0.4);
    position: absolute;
    top: 0;
}
.chat_box_minimize1 {
    display: inline-block;
    height: 100%;
    width: auto;
    background: none;
    position: absolute;
    left: 0;
    top: 0;   

}
.chat_user_minimize1 {
    display: none;
    height: 100%;
    width: auto;
    background: none;
    position: absolute;
    left: 0;
    top: 0;  

}
.mobile_on1 .chat_user_minimize1, .chat_box_off1 .chat_user_minimize1
{
    display: inline-block;
}
.chat_box_header_left1 {
    display: inline-block;
    float: left;
    width: 70%;
}
.chat_box_header_left1
{
     
    flex: 1;
    -webkit-flex: 1;
}
.chat_box_header_icon1
{
    flex: 0 0 25px;
    -webkit-flex: 0 0 25px;
    align-self: flex-end;
    align-self: center;
    -webkit-align-self: center;
}
.chat_box_icon1 {
    display: inline-block;
    float: left;
    color: #fff;
}

.chat_box_icon1 .fa {
    font-size: 1.4em;
}
.chat_now_icon1 {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 5px;
}
.chat_now_icon1 img {
    border-radius: 50%;
}
.chat_box_name1 {
    display: inline-block;
    float: left;
    padding-left: 5px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat_box_header_icon1 {
    display: inline-block;
    float: right;
    width: auto;
    overflow: hidden;

}
.chat_minimise_btn1,
.chat_dismiss_btn1 {
    display: inline-block;
    float: right;
    color: #fff;
    padding: 0 5px;
    font-size: 1.4em;
    cursor: pointer;
}
.chat_minimise_btn1 .fa,
.chat_dismiss_btn1 .fa {
    display: block;
    margin: 0;
}
.chat_dismiss_btn1 .fa {
    transform: rotate(45deg);
}


.chat_dismissclose_btn1 {
display: -webkit-flex;
display: flex;
float: right;
color: #0a263e;
font-size: 1.4em;
cursor: pointer;
position: absolute;
right: 0px;
background: #ddd;
height: 100%;
width: 25px;
top: 0px;
align-items: center;
text-align: center;
justify-content: center;
}
.chat_dismissclose_btn1 .fa {
    display: block;
    margin: 0;
}
.chat_dismissclose_btn1 .fa {
    /*transform: rotate(45deg);*/
}



.chat_box_footer1 {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
    height: auto;
    overflow: hidden;
    position: absolute;
    bottom: 0;
}
.chat_input_form1 {
    display: block;
    height: auto;
    overflow: hidden;
}
.chat_input_txt1 {
    display: block;
    width: 100%;
    min-height: 50px;
    max-height: 80px;
    max-width: 100%;
    min-width: 100%;
    border: 1px solid #bbb;
    border-radius: 3px;
    padding: 0 5px;
    box-sizing: border-box;
    max-height: 100px;
    overflow: hidden;
    overflow-y: auto;
}
.chat_box_content1 {
    display: block;
    width: 100%;
    height: auto;
    max-height: 100%;
    overflow: hidden;
    overflow-y: auto;
    padding: 30px 15px;
    box-sizing: border-box;
    padding-top: 40px;
}
.chat_msg_sent1,
.chat_msg_received1 {
    display: block;
    float: none;
    width: auto;
    max-width: 80%;
    padding: 5px;
    box-sizing: border-box;
    border-radius: 5px;
    margin: 5px 0;
}
.chat_msg_name1 {
    display: block;
    font-weight: 600;
    color: #fff;
}
.chat_msg1 {
    display: block;
    width: 100%;
    height: auto;
    overflow: hidden;
}
.chat_msg_time1
{
    color:#b8b8b8;
    font-size: .7em;
     
}
.chat_msg_sent1 .chat_msg_name1 span:after {
    con tent: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #059aff;
    display: inline-block;
    margin-left: 5px;
}
.chat_msg_received1 .chat_msg_name1 span:before {
    con tent: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2ecd71;
    display: inline-block;
    margin-right: 5px;
}
.chat_msg_sent1 .chat_msg_name1 {
    text-align: right;
}
.chat_msg_text1 {
    margin-top: 5px;
    background: #fff;
    padding: 5px;
    border-radius: 4px;
    height: auto;
    overflow: hidden;
    word-break: break-word;
    display: inline-block;
    float: right;
}
.chat_msg_sent1 {
    float: right;
}
.chat_msg_received1 .chat_msg_text1 {
    background: #2ecd71;
    color: #fff;
    border-color: #26bb65;
    float: left;
}
.chat_box_opened1 {
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
}


.mobile_on1.chat_box_minimized1 .chat_box_content1,
.mobile_on1.chat_box_minimized1 .chat_queue_cover1 {
    display: flex;
}

.multichat_on1.chat_box_minimized1 {
    padding-bottom: 0;
    transition: none;
}
.chat_window1.chat_box_minimized1 {
    width: 320px;
    height: 40px;
}
.chat_box_minimized1.chat_box1 {
    padding-bottom: 0;
    transition: none;
}
.chat_alert1 {
    background: #e14848;
}

.chat_queue_cover1 {
    display: block;
    width: 320px;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
    left:0;
    padding-top: 40px;
    position: absolute;
    z-index: 999;
}
.chat_queue_header1 {
    width: 100%;
    height: 40px;
    position: absolute;
    background: #0a263e;
    display: flex;
    top: 0;
    z-index: 999;
    color: #fff;
    font-weight: 600;
    padding: 0 10px;
    line-height: 40px;
    white-space: nowrap;
    box-shadow: 0 0 5px 3px rgba(0,0,0,0.4);
}
 
.chat_queue1 {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    overflow-y: auto;
    background: #fff;
    background: #eee;
}
.chat_queue_list1 {
    display: flex;
    width: 100%;
    flex-direction: column-reverse;
    -webkit-flex-direction: column-reverse;
}
.chat_queue_user1 {
    display: flex;
    width: 100%;
    max-width: 320px;
    height: 60px;
    box-sizing: border-box;
    margin: 0 0 1px;
    background: #0a263e;
    background: #fff;
    overflow: hidden;
    position: relative;
}
.chat_queue_hover1
{
    display: flex;  
    height: 60px;    
    position: absolute;
    left: 0px;
    width: 94%;
    box-sizing: border-box;    
    transition: all .3s;
}
.chat_queue_user_option1
{
    width: 20px;
    height: 100%;
    display: block;
    flex: 0 0 20px;
    -webkit-flex: 0 0 20px;
     text-align: center;
    order: 1;
    right: 0;
    position: absolute;
}
.chat_queue_user1:hover .chat_queue_user_option1 {
    flex: 1;
    -webkit-flex: 1;
    display: flex;
   
}
.nicescroll-rails1
{
    left: 312px!important;
}
/*.chat_queue_user:hover .chat_queue_hover {
    width: 94%;
}*/
.chat_delete_toggle1 {

    cursor: pointer;
    display: bl ock;
    background: none;
    border: none;
    color: #777;
    margin: 0;
    width: 100%;
    height: 100%;
    line-height: 60px;
    font-size: 1.1em;
}
.active_queue_user1 .chat_delete_toggle1{
    color: #fff;
}
.chat_delete_confirm1 {
    transition: all 0.3s;
    left: -100%;
    position: absolute;
     display: flex;
    z-index: 9;
    background: rgb(255,75,31);
    background: #5f6b77;
    width: 100%;
    height: 100%;
    align-items: center;     
    justify-content: center;
    
}
.delete_on1 .chat_delete_confirm1 {
   left: 0
}
.chat_delete_txt1 {
    font-weight: 600;
    padding: 0 5px;
    color: #fff;
}
.chat_cancel_btn1,
.chat_confirm_btn1 {
    display: inline-block;
    padding: 0 5px;
    background: #fff;
    border-radius: 5px;
    color: #a4a4a4;    
    width: 40px;
    text-align: center;
    cursor: pointer;
    margin: 0px 5px;
}
.chat_confirm_btn1 {
    color: #ff0011;

}

.chat_profile_btn1 {
    display: inline-block;
    padding: 7px 10px;
    background: #fff;
    border-radius: 5px;
    color: #a4a4a4;    
    width: auto;
    text-align: center;
    cursor: pointer;
    margin: 0px 5px;
}
.chat_profile_btn1 {
    color: #0a263e;

}
.chat_profile_btn1 .fa {
    margin-right: 3px;
}

.queue_icon_cover1 {
    display: block;
    height: 100%;
    width: 60px;
    line-height: 80px;
    text-align: center;
    float: left;
    vertical-align: middle;
    flex: 0 0 60px;
    -webkit-flex: 0 0 60px;
}
.chat_user_icon1 {
    display: inline-block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    position: relative;
    border: 2px solid transparent;
    box-sizing: border-box;
}
.chat_user_icon1 img {
    display: inline-block;
    border-radius: 50%;
    vertical-align: auto;
    position: absolute;
    top: 0;
    left: 0;
}
.chat_queue_username1 {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    height: 30px;
    line-height: 30px;
    font-weight: 600;
    position: relative;

}
.msg_snippet1 {
    display: block;
    height: 20px;
    overflow: hidden;
    font-weight: 0.7em;
    color: #bbb;
    white-space: nowrap;
    width: auto;
    text-overflow: ellipsis;
    line-height: auto;
    font-size: 0.8em;

}
.chat_queue_user_right1 {
    display: block;
    height: 100%;
    width: 80px;
    vertical-align: middle;
    text-align: right;
    padding: 0 10px 0 0;
    box-sizing: border-box;
    flex: 0 0 80px;
    -webkit-flex: 0 0 80px;
    overflow: hidden;
}
.msg_time1 {
    font-size: 0.8em;
    color: #bbb;
    display: inline-block;
    width: 100%;
    height: 30px;
    padding-top: 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}
.new_chat_count1 {
    font-weight: 600;
    font-size: 0.7em;
    display: none;
    padding: 0 5px;
    background: #2ecd71;
    color: #fff;
    border-radius: 20px;
}
.chat_count_on1
{
    display: inline-block;
}
.chat_queue_user_left1 {
    display: block;
    di splay: flex; /*snippet change*/
    align-items: center;
    width: auto;
    height: 100%;
    cursor: pointer;
    padding: 0 10px;
    box-sizing: border-box;
    flex: 1;
    -webkit-flex: 1;
    overflow: hidden;
}
.active_queue_user1 {
    background: #5f6b77;
    color: #fff;
    position: relative;
}
.active_queue_user1:before {
    content: "";
    width: 5px;
    height: 100%;
    position: absolute;
    background: #2ecd71;
    background: #ffee00;
    left: 0;
    top: 0;
    z-index: 9;
}
.chat_bar1 {
    display: block;
    width: 100%;
    height: 60px;
    padding: 5px;
    box-sizing: border-box;
    overflow: hidden;
    overflow-x: auto;
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 9998;
    border-top: 1px solid #bbb;
    background: rgba(255,255,255,.8);
}
.chat_queue_notif1 .chat_user_icon1 {
    border-color: #2ecd71;

}

.chat_notification1
{    
    transition: all .4s;
    opacity: 0;
    bottom: -120%;  
    right:5px;
    position: fixed;
     align-items: center;
    z-index: 99999;
    background: #1e9ef5;
    border-radius: 40px;
    padding: 0px 15px;
    padding-left: 50px;
    box-shadow: 0px 3px 9px -3px rgba(0,0,0,.7);
    display: flex;
    max-width: 300px;
    height: 50px;
    
}
.chat_notification1.show
{
    
    bottom:0px;
    opacity: 1;
    z-index: 99999;
    animation: notification forwards 2s;
    -webkit-animation: notification forwards 2s;
   
}
@keyframes notification {
    0% {

        transform: translateY(0%);
        opacity: 0;
    }  
    30%
    {
        opacity: 1;
    }
    50%
    {
        transform: translateY(-30px);
        opacity: 1;
    }
    75%
    {
         transform: translateY(-30px);
        opacity: 1;
    }
   
    85% {
      
        opacity: .3;
    }
    100%
    {
         transform: translateY(-70px);
        opacity: 0
    }
}
.chat_notif_icon1
{
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;     
    border-radius: 50%;
    font-size: 1.8em;
    text-align: center;
    position: absolute;
    left: 0px;   
    color: #fff;
    z-index: 100;   
}
.chat_notif_icon1 .chat_user_icon1
{
    border: 2px solid #fff;
    box-shadow: 0px 0px 5px -3px rgba(0,0,0,.7);
     
}
.chat_notif_msg1
{
    color: #fff;
    font-size: .8em;
    padding: 0px 5px;
    display: flex; 
    max-width: 150px;
    overflow: hidden;
    height: 100%;
    align-items: center;
} 


.chat_queue_notif1 .chat_user_icon1 {
    ani mation: notation infinite 1s;
    transition: all 1s;
}

.chat_queue_notif1 .chat_queue_username1 {
    color: #2ecd71;
}
.chat_queue_notif1 .msg_snippet1 {
    color: #0a263e;
}
.chat_queue_notif1.active_queue_user1 .msg_snippet1
{
    color: #fff;
}
.chat_user_online1 .chat_user_icon1:after {
    content: "";
    width: 9px;
    height: 9px;
    position: absolute;
    display: block;
    border-radius: 50%;
    border: 1px solid #fff;
    top: 22px;
    right: -2px;
    background: #2ecd71;
}
/*****/
.add_chat_box1 {
   /* position: fixed;
    display: block;
    width: 60px;
    height: 60px;
    background: #e14848;
    top: 100px;
    left: 80px;
    z-index: 9999;
    text-align: center;
    line-height: 60px;
    color: #fff;
    cursor: pointer;
    font-size: 3em;*/
    cursor: pointer;

}
.add_chat_msg1 {
    position: fixed;
    display: block;
    width: 60px;
    height: 60px;
    background: #e14848;
    top: 100px;
    left: 150px;
    z-index: 9999;
    text-align: center;
    line-height: 60px;
    color: #fff;
    cursor: pointer;
    font-size: 1em;
}
.chat_ids1 {
    position: fixed;
    display: block;
    width: auto;
    height: 60px;
    background: #e14848;
    top: 100px;
    left: 250px;
    z-index: 9999;

}

.new_chat_msg1 .chat_box_header1, .new_chat_msg1 .chat_queue_header1 {
    background: #2ecd71;
}

/* mobile on*/
 
.mobile_on1 .chat_box_cover1 {
    position: absolute;
    left: 100%;
    z-index: 9999;
    transition: left 0.3s;
}
.mobile_on1 .chat_box_cover1.mobile_mode1 {
    left: 0;
}
.mobile_on1.chat_box_off1 .chat_box_cover1.mobile_mode1 {
    left: 100%;
}
.mobile_on1 .chat_queue_cover1 {
    position: absolute;
    z-index: 9999;
   
}
.chat_box_minimized1 .chat_box_header_back_icon1 {
    display: none;
}
.chat_box_header_back_icon1, .mobile_mode1 .chat_box_header_back_icon1 {
    display: block;
    order: -1;
    width: 30px;
    flex: 0 0 30px;
    -webkit-flex: 0 0 30px;
    z-index: 9999;
    color: #fff;
    cursor: pointer;
}
.chat_box_minimize1 {
    left: 40px;
    right: 40px;
}
.chat_user_minimize1 {
    left: 0px;
    right: 40px;
}
.mobile_on1 .chat_box_minimize1 {
    left: 40px;
    right: 40px;
}
.chat_queue_header1 .chat_box_header_icon1
{
    display: none;
}
.chat_box_off1 .chat_queue_header1 .chat_box_header_icon1
{
    display: block;
}
.mobile_on1 .chat_queue_header1 .chat_box_header_icon1
{
    display: block;
}
.display_off1
{
    display: none!important;
}
/* mobile on*/

@media screen and (max-width:767px){
    .chat_window1
	{
		/*right:2%;
        width: 96%;
		min-width:96%;
		max-width:96%; */  
        width: 320px;
        max-width: 320px;
    
	}
    .chat_queue_cover1
    {
        width: 100%;
    }
    .chat_box_cover1
    {
        width: 100%;
    }
    .chat_box_minimized1 .chat_box_footer1,
    .chat_box_minimized1 .chat_box_content1,
    .chat_box_minimized1 .chat_queue_cover1 {
        display: none;
    }
    
}
@media only screen and (max-width: 480px){
	.chat_window1
	{
		/*right:2%;
        width: 96%;
		min-width:96%;
		max-width:96%; */  
        width: 320px;
        max-width: 320px;
    
	}
   
}
@media only screen and (max-width: 399px){
	.chat_window1
	{
        left: 50%;
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }
}
@media only screen and (max-width: 359px){
    .chat_window1
    {
        width: 300px;
        max-width: 300px;
    }
    .chat_queue_user1, .chat_queue_confirm1
    {
        width: 300px;
        max-width: 300px
    }
    .nicescroll-rails
    {
        left: 292px!important;
    }
}
/* chat box ends */

