

.direct-chat-text-wrap .direct-chat-text:first-child:not(:last-child){
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}
.direct-chat-text-wrap .direct-chat-text:not(:first-child):not(:last-child){
    border-radius: 0px;
    margin-top:1px;
}
.direct-chat-text-wrap .direct-chat-text:not(:first-child):before,
.direct-chat-text-wrap .direct-chat-text:not(:first-child):after{
    display: none;
}
.direct-chat-text-wrap .direct-chat-text:last-child:not(:first-child){
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    margin-top:1px;
}
.direct-chat-text{
    background: #539DC6;
    border-color: #539DC6;
    color: #fff;
}
.direct-chat-text:before,
.direct-chat-text:after{
    border-right-color: #539DC6;
}
.right .direct-chat-text {
    background: #ddd;
    border-color: #ddd;
    color: #333;
}
.right .direct-chat-text::before,
.right .direct-chat-text::after {
    border-left-color: #ddd !important;
    border-right-color: transparent;
}

.box .direct-chat-msg .spinner{
    display: none;
    position: absolute;
    right:3px;
}
.box .direct-chat-msg.loading .spinner,
.box .direct-chat-msg .direct-chat-text.loading .spinner{
    display: inline-block;
}

.navbar-nav > .messages-menu .notify{
    display: none;
}
.navbar-nav > .messages-menu.has-notify .notify{
    display: initial;
}
.direct-chat-contacts-open .box-footer{
    display:none !important;
}
#messages .cItemNew{
    position: relative;
}
#messages .cItemNew a p,
#messages .cItemNew a h4{
    color:red;
}
#messages i.fa-circle{
    display: none;
}
#messages .cItemNew i.fa-circle{
    /*display: inline-block;*/
    position: absolute;
    top:45%;
    right: 2px;
    color:red;
    font-size: 10px;
}
/*CHAT HEAD*/
.chathead-wrap{
    position: fixed;
    top:10%;
    margin-top: 50px;
    bottom: 10%;
    right: 15px;
    z-index: 10;
}

.chathead-arrow_box {
    position: relative;
    border: 1px solid #fff;
}
.chathead-arrow_box:after, .chathead-arrow_box:before {
    bottom: 100%;
    right: 10px;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.chathead-arrow_box:after {
    border-color: rgba(255, 255, 255, 0);
    border-bottom-color: #fff;
    border-width: 10px;
    margin-left: -10px;
}
.chathead-arrow_box:before {
    border-color: rgba(255, 225, 255, 0);
    border-bottom-color: #fff;
    border-width: 11px;
    margin-left: -11px;
}
.chathead .box-header .box-title {
    display: inline-block;
    font-size: 16px;
    margin: 0;
    line-height: 18px;
    text-overflow: ellipsis;
    overflow: hidden;
    padding-right: 50px;
    white-space: nowrap;
    width: 100%;
}
.chathead-content{
    width: 300px;
    left:-303px;
    position: absolute;
    top:66px;
    z-index: 11;
    box-shadow: 0px 0px 20px #f00;
    border-radius: 5px;
}
.chathead .chathead-content{
    display: none;
}
.chathead.chathead-open .chathead-content{
    display: initial;
}
.chathead-multiple .chathead-header{
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 28px;
    border: 2px solid #FFFFFF;
    box-shadow: 1px 1px 5px rgba(0,0,0,.5);
    overflow: hidden;
    position: relative;
    z-index: 10;
    -webkit-shape-outside: circle(50%, 50%, 60%);  
}
.direct-chat-img {
    display:inline-block;
    overflow: hidden;
    white-space: nowrap;
}
.chathead-header img{
    background-color: #fff;
}
.chathead-multiple .chathead-header img{
    display: none;
    margin: 0;
    z-index: 1;
}

.chathead-multiple .chathead-header img:nth-child(-n+3) {
    display: block;
    width: 28px;
    height: 28px;
    display: inline-block;
    position: absolute;
}

.chathead-multiple .chathead-header img:first-child {
    width: 56px;
    height: 56px;
    left: -28px;
    border-right: 1px solid #FFFFFF;
}
.chathead-multiple .chathead-header img:nth-child(2) {
    left: 28px;
    top:0;
    border-bottom: 1px solid #FFFFFF;
    border-left: 1px solid #FFFFFF;
    border-radius: 0 28px 0  0;
}
.chathead-multiple .chathead-header  img:nth-child(3) {
    left: 28px;
    bottom:0;
    border-top: 1px solid #FFFFFF;
    border-left: 1px solid #FFFFFF;
    border-radius: 0 0 28px 0;
}
.chathead-multiple .chathead-header{
    margin-bottom: 10px;
}

.chathead-single .chathead-header img{
    width: 56px;
    height: 56px;
    border-radius: 28px;
    border: 2px solid #FFFFFF;
    box-shadow: 1px 1px 5px rgba(0,0,0,.5);
    position: relative;
    /*        float: right;
            clear: right;*/
    margin-bottom: 10px;
    /* CANARY ONLY FEATURE NOW    */
    -webkit-shape-outside: circle(50%, 50%, 60%);  
}   
.chathead-header{
    -webkit-transition-property: top, bottom;
    -webkit-transition-duration: 5s;
}
.has-chathead-open .chathead-header{
    position:absolute;
    z-index: 10;
    top:3px;
    right: -3px;
}
.has-chathead-open .chathead-open .chathead-header{
    z-index: 11;
    top:0;
    right:0;
}

@media(max-width:767px){
    .chathead-wrap {
        position: fixed;
        z-index: 10;
        top: 60px;
        right: 0;
        left: auto;
        bottom: auto;
        margin-top:auto;
    }
    .chathead-wrap.has-chathead-open{
        z-index: 1003;
        bottom:0;
    }
    .chathead{
        margin-right: 5px;
    }
    .chathead-wrap.has-chathead-open .chathead{
        position: absolute;
        right: 0;
        left: auto;
    }
    .chathead .chathead-header{
        text-align: right;
        min-height: 30px;
        display: block;
    }
    .chathead.chathead-open .chathead-content{
        right: 10px;
        top:70px;
        left: auto;
    }
    .chathead-arrow_box:after, .chathead-arrow_box:before{
        right: 15px;
    }
    .chathead.chathead-open .chathead-header,
    .chathead.chathead-open .chathead-content{
        display: block;
        position: relative;
        top: auto;
        left: auto;
        bottom: auto;
        right: auto;
    }
    .chathead.chathead-open.toggle-keyboard{
        bottom:0;
    }
    .chathead.chathead-open.toggle-keyboard .chathead-content{
        position: relative;
    }
}