/* chat box begin */
.chat_window {
    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_on {
    height: 400px;
    transition: all 0.3s;
}

.multichat_on.chat_window {
    padding-bottom: 0;
    
}

.chat_window_on.chat_box_off
{
    width: 320px;    
    transition-delay: 0.2s;
}
.chat_zindex
{
    z-index: 9999!important;
    height: auto!important;
}
.chat_window_on.chat_box_off .chat_queue_cover .chat_queue_header .chat_box_header_icon
{
    display: block;
}
.onlinecolor
{
    color: #2ecd71;
    font-size: 9px;
}

.fontonoff
{
    font-size: 11px;
}

.offlincolor
{
       font-size: 9px;
}


.chat_box_cover {
    display: block;
    width: 320px;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    background: #0a263e;
    padding: 0;
    position: absolute;
    right: 0; 
    z-index: 900;
}
.chat_box {
    display: none;
    height: 100%;
    max-height: 100%;
    width: 100%;
    overflow: hidden;
    background: #0a263e;
    background: #5f6b77;
    padding: 0 0 60px;
    position: relative;
}
.chat_box_header {
    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_minimize {
    display: inline-block;
    height: 100%;
    width: auto;
    background: none;
    position: absolute;
    left: 0;
    top: 0;   

}
.chat_user_minimize {
    display: none;
    height: 100%;
    width: auto;
    background: none;
    position: absolute;
    left: 0;
    top: 0;  

}
.mobile_on .chat_user_minimize, .chat_box_off .chat_user_minimize
{
    display: inline-block;
}
.chat_box_header_left {
    display: inline-block;
    float: left;
    width: 70%;
}
.chat_box_header_left
{
     
    flex: 1;
    -webkit-flex: 1;
}
.chat_box_header_icon
{
    flex: 0 0 25px;
    -webkit-flex: 0 0 25px;
    align-self: flex-end;
    align-self: center;
    -webkit-align-self: center;
}
.chat_box_icon {
    display: inline-block;
    float: left;
    color: #fff;
}

.chat_box_icon .fa {
    font-size: 1.4em;
}
.chat_now_icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 5px;
}
.chat_now_icon img {
    border-radius: 50%;
}
.chat_box_name {
    display: inline-block;
    float: left;
    padding-left: 5px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat_box_header_icon {
    display: inline-block;
    float: right;
    width: auto;
    overflow: hidden;

}
.chat_minimise_btn,
.chat_dismiss_btn {
    display: inline-block;
    float: right;
    color: #fff;
    padding: 0 5px;
    font-size: 1.4em;
    cursor: pointer;
}
.chat_minimise_btn .fa,
.chat_dismiss_btn .fa {
    display: block;
    margin: 0;
}
.chat_dismiss_btn .fa {
    transform: rotate(45deg);
}



.chat_dismissclose_btn {
    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_btn .fa {
    display: block;
    margin: 0;
}
.chat_dismissclose_btn .fa {
    /*transform: rotate(45deg);*/
}


.chat_box_footer {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
    height: auto;
    overflow: hidden;
    position: absolute;
    bottom: 0;
}
.chat_input_form {
    display: block;
    height: auto;
    overflow: hidden;
}
.chat_input_txt {
    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_content {
    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_sent,
.chat_msg_received {
    display: block;
    float: none;
    width: auto;
    max-width: 80%;
    padding: 5px;
    box-sizing: border-box;
    border-radius: 5px;
    margin: 5px 0;
}
.chat_msg_name {
    display: block;
    font-weight: 600;
    color: #fff;
}
.chat_msg {
    display: block;
    width: 100%;
    height: auto;
    overflow: hidden;
}
.chat_msg_time
{
    color:#b8b8b8;
    font-size: .7em;
     
}
.chat_msg_sent .chat_msg_name span:after {
    con tent: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #059aff;
    display: inline-block;
    margin-left: 5px;
}
.chat_msg_received .chat_msg_name span:before {
    con tent: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2ecd71;
    display: inline-block;
    margin-right: 5px;
}
.chat_msg_sent .chat_msg_name {
    text-align: right;
}
.chat_msg_text {
    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_sent {
    float: right;
}
.chat_msg_received .chat_msg_text {
    background: #2ecd71;
    color: #fff;
    border-color: #26bb65;
    float: left;
}
.chat_box_opened {
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
}


.mobile_on.chat_box_minimized .chat_box_content,
.mobile_on.chat_box_minimized .chat_queue_cover {
    display: flex;
}

.multichat_on.chat_box_minimized {
    padding-bottom: 0;
    transition: none;
}
.chat_window.chat_box_minimized {
    width: 320px;
    height: 40px;
}
.chat_box_minimized.chat_box {
    padding-bottom: 0;
    transition: none;
}
.chat_alert {
    background: #e14848;
}

.chat_queue_cover {
    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_header {
    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_queue {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    overflow-y: auto;
    background: #fff;
    background: #eee;
}
.chat_queue_list {
    display: flex;
    width: 100%;
    flex-direction: column-reverse;
    -webkit-flex-direction: column-reverse;
}
.chat_queue_user {
    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_hover
{
    display: flex;  
    height: 60px;    
    position: absolute;
    left: 0px;
    width: 94%;
    box-sizing: border-box;    
    transition: all .3s;
}
.chat_queue_user_option
{
    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_user:hover .chat_queue_user_option {
    flex: 1;
    -webkit-flex: 1;
    display: flex;
   
}
.nicescroll-rails
{
    left: 312px!important;
}
/*.chat_queue_user:hover .chat_queue_hover {
    width: 94%;
}*/
.chat_delete_toggle {

    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_user .chat_delete_toggle{
    color: #fff;
}
.chat_delete_confirm {
    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_on .chat_delete_confirm {
   left: 0
}
.chat_delete_txt {
    font-weight: 600;
    padding: 0 5px;
    color: #fff;
}
.chat_cancel_btn,
.chat_confirm_btn {
    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_btn {
    color: #ff0011;

}


.chat_profile_btn {
    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_btn {
    color: #0a263e;

}
.chat_profile_btn .fa {
    margin-right: 3px;
}

.queue_icon_cover {
    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_icon {
    display: inline-block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    position: relative;
    border: 2px solid transparent;
    box-sizing: border-box;
}
.chat_user_icon img {
    display: inline-block;
    border-radius: 50%;
    vertical-align: auto;
    position: absolute;
    top: 0;
    left: 0;
}
.chat_queue_username {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    height: 30px;
    line-height: 30px;
    font-weight: 600;
    position: relative;

}
.msg_snippet {
    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_right {
    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_time {
    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_count {
    font-weight: 600;
    font-size: 0.7em;
    display: none;
    padding: 0 5px;
    background: #2ecd71;
    color: #fff;
    border-radius: 20px;
}
.chat_count_on
{
    display: inline-block;
}
.chat_queue_user_left {
    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_user {
    background: #5f6b77;
    color: #fff;
    position: relative;
}
.active_queue_user:before {
    content: "";
    width: 5px;
    height: 100%;
    position: absolute;
    background: #2ecd71;
    background: #ffee00;
    left: 0;
    top: 0;
    z-index: 9;
}
.chat_bar {
    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_notif .chat_user_icon {
    border-color: #2ecd71;

}

.chat_notification
{    
    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_notification.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_icon
{
    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_icon .chat_user_icon
{
    border: 2px solid #fff;
    box-shadow: 0px 0px 5px -3px rgba(0,0,0,.7);
     
}
.chat_notif_msg
{
    color: #fff;
    font-size: .8em;
    padding: 0px 5px;
    display: flex; 
    max-width: 150px;
    overflow: hidden;
    height: 100%;
    align-items: center;
} 


.chat_queue_notif .chat_user_icon {
    ani mation: notation infinite 1s;
    transition: all 1s;
}

.chat_queue_notif .chat_queue_username {
    color: #2ecd71;
}
.chat_queue_notif .msg_snippet {
    color: #0a263e;
}
.chat_queue_notif.active_queue_user .msg_snippet
{
    color: #fff;
}
.chat_user_online .chat_user_icon: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_box {
   /* 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_msg {
    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_ids {
    position: fixed;
    display: block;
    width: auto;
    height: 60px;
    background: #e14848;
    top: 100px;
    left: 250px;
    z-index: 9999;

}

.new_chat_msg .chat_box_header, .new_chat_msg .chat_queue_header {
    background: #2ecd71;
}

/* mobile on*/
 
.mobile_on .chat_box_cover {
    position: absolute;
    left: 100%;
    z-index: 9999;
    transition: left 0.3s;
}
.mobile_on .chat_box_cover.mobile_mode {
    left: 0;
}
.mobile_on.chat_box_off .chat_box_cover.mobile_mode {
    left: 100%;
}
.mobile_on .chat_queue_cover {
    position: absolute;
    z-index: 9999;
   
}
.chat_box_minimized .chat_box_header_back_icon {
    display: none;
}
.chat_box_header_back_icon, .mobile_mode .chat_box_header_back_icon {
    display: block;
    order: -1;
    width: 30px;
    flex: 0 0 30px;
    -webkit-flex: 0 0 30px;
    z-index: 9999;
    color: #fff;
    cursor: pointer;
}
.chat_box_minimize {
    left: 40px;
    right: 40px;
}
.chat_user_minimize {
    left: 0px;
    right: 40px;
}
.mobile_on .chat_box_minimize {
    left: 40px;
    right: 40px;
}
.chat_queue_header .chat_box_header_icon
{
    display: none;
}
.chat_box_off .chat_queue_header .chat_box_header_icon
{
    display: block;
}
.mobile_on .chat_queue_header .chat_box_header_icon
{
    display: block;
}
.display_off
{
    display: none!important;
}
/* mobile on*/

@media screen and (max-width:767px){
    .chat_window
	{
		/*right:2%;
        width: 96%;
		min-width:96%;
		max-width:96%; */  
        width: 320px;
        max-width: 320px;
    
	}
    .chat_queue_cover
    {
        width: 100%;
    }
    .chat_box_cover
    {
        width: 100%;
    }
    .chat_box_minimized .chat_box_footer,
    .chat_box_minimized .chat_box_content,
    .chat_box_minimized .chat_queue_cover {
        display: none;
    }
    
}
@media only screen and (max-width: 480px){
	.chat_window
	{
		/*right:2%;
        width: 96%;
		min-width:96%;
		max-width:96%; */  
        width: 320px;
        max-width: 320px;
    
	}
   
}
@media only screen and (max-width: 399px){
	.chat_window
	{
        left: 50%;
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }
}
@media only screen and (max-width: 359px){
    .chat_window
    {
        width: 300px;
        max-width: 300px;
    }
    .chat_queue_user, .chat_queue_confirm
    {
        width: 300px;
        max-width: 300px
    }
    .nicescroll-rails
    {
        left: 292px!important;
    }
}
/* chat box ends */

