.chat_main{
    position: fixed !important;
    right: 16px;
    bottom: 0px;
    left: auto;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
    z-index: 999;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}
.chat_main_chat .attachment_holder_view{
    overflow: hidden;
}
#page_mail_index .chat_main, #page_advancedmail_panel .chat_main,#page_advancedmail_panel .chats{
    display: none
}
.user-sticky-bar ul.user-sticky-bar-items li.user-icon a.no_image_user, .user-sticky-bar ul.user-sticky-bar-items li.user-icon img.has_image,
.panel-item-content .img-wrapper img,
.panel-item .img-wrapper img,
.item-user-request-outer .img-wrapper img,
.user_tooltip_image .img-wrapper img,
.admincp_right_group .admincp_user .admincp_user_image .img-wrapper img, .admincp_right_group .admincp_user .admincp_user_image .no_image_user img
{
    width: 100% !important;
    height: 100% !important;
}
.chat_header{
    min-width: 201px;
    width: 276px;
    background: #F5F6F7;
    color:#333;
    font-weight: bold;
    height: 29px;
    outline: none;
    padding: 6px 4px 5px;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid #dddfe2;
    padding-left: 12px;
    padding-right: 5px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    display: flex;
    justify-content: space-between;
}
.chat_friends_block{
    max-height: 302px;
    min-height: 100px;
    width: 276px;
    background: #f9f9f9;
    overflow-y: auto;
}
.chat_friends_block::-webkit-scrollbar-thumb,.chat_main_chat .main_messages::-webkit-scrollbar-thumb,.chat_main_chat .mail_thread_form_holder::-webkit-scrollbar-thumb{
    background-color: #555;
    outline: 1px solid #555;
}
.chat_friends_block::-webkit-scrollbar,.chat_main_chat .main_messages::-webkit-scrollbar,.chat_main_chat .mail_thread_form_holder::-webkit-scrollbar-thumb{
    width: 3px;
}
.setting_icon_socialchat{
    position: absolute;
    right: 35px;
    bottom: 6px;
}
.disabled_div
{
    background: #f3f2f2 !important;
    pointer-events: none;
}
.disabled_div2
{
    pointer-events: none;
}
.chat_main_chat audio{
    width: 200px;
}
.setting_icon_socialchat i.ico-gear-o{
    color: #6784a1;
}
.socialchat_dropdown{
    font-size:13px !important;
}
.socialchat_dropdown i{
    font-size: 13px !important;
}
.search_socialchat .form-group{
    margin: 0;
}
.search_socialchat input{
    border: none;
    border-top: 1px solid #ccc;
}
.socialchat_hide_block{
    display: none;
}
div.chat_header i.ico-gear-o{
    padding-right: 10px;
}
div.chat_header i{
    color: #8d949e;
    font-size:12px;
}
.btn-scrolltop{
    display: none !important;
}
.chat_setting_icon{
    display: none;
}
.chat_last_activity{
    font-size:12px;
    float:right;
}
.friend_chat{
     display: flex;
    justify-content: space-between;
}
.friend_chat .img-wrapper, .friend_chat .block_user_image{
    width: 30px;
    height: 30px;
    float: left;
}
 .chat_main div.chat_link_a{
    display: flex;
    width: 100%;
    cursor: pointer;
    padding:5px;
    color: #555;
    justify-content: space-between;
}

 .chat_main div.chat_link_a:hover {
    background: #dddfe24a;
    color:#444;
}
.chat_friend_title{
    width: calc(100% - 50px);
   position: relative;
}
.wave_img{
    float: right;
    display: none;
    position: relative;
    margin-top: 4px;
    margin-right: 1px;
}
.span_title_chat{
    padding-top: 10px;
    position: relative;
    padding-left: 10px;
    display: block;
    width: calc(100% - 58px);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    float: left;
}
.friend_online_mail{
    padding-top:9px;
    color:#999;
}
.friend_online_mail i{
    color: green;
    padding-right: 10px;
    font-size: 10px;
}
.socialchat_autocomplete{
    display: none;
    width: 100%;
    padding:10px;
    max-height: 200px;
    overflow-y: auto;
    min-height: 100px;
    position: relative;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
#socialchat_loader_img
{
    display: none;
    width: 50px;
    position: absolute;left:50%;top:50%; transform: translate(-50%, -50%);
}
#socialchat_loader_img_block
{
    display: none;
    width: 50px;
    position: absolute;left:50%;top:50%; transform: translate(-50%, -50%);
}
.block_user_block{
    margin:5px 0;
}
#blocked_users_content{
    max-height: 400px;
    overflow-y: auto;
    min-height: 200px;
}
.no_chat_friends{
    padding:10px;
}
.chats{
    position: fixed;
    bottom:0;
    display: flex;
    right: 300px;
    z-index: 999;
    align-items: flex-end;
}
.chat_main_chat {
    box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
    z-index: 999;
    background: #fff;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    position: relative;
    width: 276px;
    display: block;
    margin-right: 40px;
}
.chat_main_chat .core-messages__conversation{
    max-height: 334px !important;
    min-height: initial;
}
.chat_main_chat .instant_message{
    height: 50px;
}
.chat_main_chat .chat_header{
    font-weight: normal;
    text-transform: capitalize;
}
.chat_main_chat .main_messages{
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: 250px;
    padding: 5px 5px 0px 5px;
}
.chat_main_chat textarea.form-control{
    height: 50px;
    min-height: initial;
    border-radius: 0;border-top: 1px solid #eee !important;
}
.chat_main_chat .core-messages__conversation .mail_thread_holder .mail_content{
    font-size:12px;
    padding:5px 10px;
    min-height: 25px;
}
.chat_main_chat .parsed_image{
    max-width: 100%;
    padding: 10px 0;
}
.delete_message {
    display: none;
}
.delete_message {
    position: absolute;
    left: -15px;
    top: 4px;
    opacity: 0.2;
    color: #333;
}
.mail_thread_holder:hover .delete_message {
    display: block;
}
.chat_main_chat .core-messages__conversation .mail_thread_holder .mail_content{
    position: relative;
}
.chat_main_chat .core-messages__conversation .mail_thread_holder .mail_user_image{
    margin-top:0;
    margin-right:6px !important;
}
 .chats a{
    color: #777 !important;
}
 .chats a:hover{
    color: #7288A1 !important;
}
.chat_main_chat .dropdown_chat{
    display: inline;padding-right:5px;
}
.chat_main_chat:focus .chat_header{
    background: #297fc7;
    color:#fff;
}
.chat_main_chat:focus div.chat_header i.ico-gear-o,.chat_main_chat:focus div.chat_header i.ico-close{
    color:#fff;
}
.focused_chat .chat_header{
    background: #297fc7;
    color:#fff;
}
.focused_chat div.chat_header i{
    color:#fff;
}
.mail_thread_form_holder_inner, .mail_thread_form_holder, #js_compose_new_message{
    margin-top:0 !important;
}
 .ico.ico-paperplane{
    color:#fff !important;
}
.chat_main_chat .global_attachment_manage a.border_radius_4{
    width: 25px;
    white-space: nowrap;
    overflow: hidden;
    color: #a2a2a2 !important;
    font-size: 15px;
}
.js_global_position_photo .js_hover_info{
    display: none !important;
}
.chat_main_chat .global_attachment_manage{
    right: inherit !important;
    left: 152px !important;
    top:3px;
}
.chat_main_chat .global_attachment.attachment-form-open .global_attachment_manage > a{
    background: none;
}
.chat_main_chat .mail_thread_form_holder{
    height: 92px;
    overflow-y: auto;
    position: relative;
}
.chat_main_chat .editor_holder,.chat_main_chat .edit_menu_container{
    border-radius: 0;
    border:none;
}
.chat_main_chat .attachment-holder{
    border:none;
    margin-bottom: -1px;
}
.chat_main_chat .global_attachment{
    height: 42px;
    line-height: 32px;
    padding-top: 3px;
}
.colors_block div {
    float: left;
    width: 60px;
    height: 60px;
    cursor: pointer;
    margin-right: 11px;
    margin-bottom: 11px;
}
.mail_lightblue {
    background: #44bec7;
}
.mail_orange {
    background: #0084ff;
}
.mail_text a{
    color:#fff !important;
}
.mail_blue {
    background: #297fc7;
}
.mail_red_vasa {
    background: #fa3c4c;
}
.mail_purple {
    background: #d696bb;
}
.mail_green_vasa {
    background: #67b868;
}
.mail_lightgreen {
    background: #13cf13;
}
.mail_pink {
    background: #ff5ca1;
}
.chat_main_chat .comment_popup{
    position: absolute;
    bottom: 44px;
    z-index: 1000;
    right: -10px;
    left: -10px;
}
.tool {
    position : relative;
}

.tool::before, .tool::after {
    position : absolute;
    left : 50%;
    opacity : 0;
    z-index: -100;
}

.tool:hover::before,  .tool:hover::after {
    opacity : 1;
    z-index: 100;
}

.tool::before {
    border-style : solid;
    border-width : 0.6em 0.5em 0 0.5em;
    border-color : #3e474f transparent transparent transparent;
    bottom : 100%;
    margin-left : -.5em;
    content : " ";
}
.comment_main_block img:hover,.comment_main_block i:hover {
    -moz-transform: scale(1.1);
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}
.tool::after {
    background : #3e474f;
    border-radius : .25em;
    bottom : 144%;
    color : white;
    width : 100px;
    text-align: center;
    padding: 0.5em;
    margin-left : -3.75em;
    content : attr(data-tip);
}
.chat_main_chat .comment_inner{
    background: #fff;
    box-shadow:0 0 0 1px rgba(0, 0, 0, .1), 0 1px 10px rgba(0, 0, 0, .35);
    border-radius: 2px;
    position: relative;
}
.chat_main_chat .comment_main_block{
    width: 100%;
    overflow-y: auto;
    padding: 6px;
    overflow-x: hidden;
    max-height: 200px;
}
.overflow_change{
    overflow: visible !important;
}
.sticker_chat_popup .comment_arrow{
    right:initial;
    left: 53px;
}
.smile_chat_popup .comment_arrow{
    right:initial;
    left: 73px;
}
.chat_main_chat .emoji-popup{
    display: none !important;
}
.comment_main_block img
{
    -moz-transition: all 0.3s;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    zoom:0.9;
}
.chat_main_chat .comment_main_block::-webkit-scrollbar
{
    width: 5px;
}
.chat_main_chat .comment_main_block::-webkit-scrollbar-track
{
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}
.chat_main_chat .comment_main_block::-webkit-scrollbar-thumb
{
    background-color: #555;
    outline: 1px solid #555;
}
.chat_main_chat .inner_sticker{
    max-width: 44px;
    margin-right:5px;
    margin-bottom: 5px;
    display:inline-block;
}
.mobile_hide{
    display: block;
}
.mobile_show{
    display: none;
}

@media (max-width: 1150px) {
    .chat_main{
        right: 6px;
    }
    .chat_main div.chat_header i{
        font-size:17px;
        position: relative;
        top:-2px;
    }
    .mobile_opened.chat_main .chat_header{
        min-width: 100%;
        width: 100%;
    }
    .mobile_opened .mobile_hide{
        display: flex;
        color:#fff;
    }
    .chat_main .chat_header{
        min-width: 68px;
        width: 68px;
        background: #2681d5;
    }
    .chat_main div.chat_header i{
        color: #fff;
    }
    .chats{
        right: 48px;
    }
    .mobile_show{
        display: inline;
        padding-right: 11px;
    }
    .mobile_hide{
        display: none;
    }
}

@media (max-width: 768px) {
    html[dir="ltr"] .btn-app-addnew{
        bottom:50px !important;
    }
    .chat_main_chat .comment_embed iframe{
        width:100%;
        height:auto;
    }
    .chat_main_chat .uploaded_image{
        max-width: 100%;
    }
    .chat_main_chat .js_comment_feed_textarea{
        width:57%;
    }
    .chat_main_chat .comment_popup{
        right:-74px;
    }
    .chat_main_chat .comment_arrow{
        right:74px;
    }
    .chat_main_chat .comment_popup.sticker_popup{
        right: -15px;
    }
    .chat_main_chat .sticker_popup .comment_arrow{
        right:15px;
    }
}
.core-messages__conversation .mail_thread_holder.is_user .mail_content .mail_text a{
    color:#fff !important;
}
.core-messages__conversation .mail_thread_holder{
    margin-bottom: 10px;
}
.chat_main_chat .twa
{
    display: inline-block;
    height: 2em;
    width: 2em;
    margin: 0 .05em 0 .01em;
    vertical-align: -0.6em;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 1.8em 1.8em;
}
.chat_main_chat #attachment-toggle-button:hover
{
    color:#555555 !important;
}
html[dir='ltr'] .chat_main_chat .attachment_holder_view .attachment-body{
    padding-right: 37px;
}
.chat_main_chat .core-messages__conversation .mail_thread_holder.is_user .mail_content .attachment_row_link,.chat_main_chat .core-messages__conversation .mail_thread_holder.is_user .mail_content .item-info{
    color:#fff !important;
}
.mail_text img{
    max-width: 100% !important;
}
.chat_main_chat .mail_view_more{
    display: table;
    margin:auto;
}

.new_user_chat{
    display: flex;
    zoom:0.9;
    align-items: center;
}
.new_chat_info{
    margin-left:10px;
    line-height: 20px;
}
.chat_grey{
    color:#aaa;
    font-size: 13px;
}
.new_user_chat ._image__50_square{
    width: 50px !important;
    height:50px !important;
}
.message_chat_loader {
    display: none;
    z-index: 1000;
    top: 28%;
    width: 50px;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
}
.chat_count_new{
    display: none;
    padding: 0 4px;
    margin-right: 6px;
    border: 1px solid indianred;
    border-radius: 2px;
    background: indianred;
    color: #fff;
}
.quadrat {
    color:#fff !important;
    -webkit-animation: newnotification 1s infinite;  /* Safari 4+ */
    -moz-animation: newnotification 1s infinite;  /* Fx 5+ */
    -o-animation: newnotification 1s infinite;  /* Opera 12+ */
    animation: newnotification 1s infinite;  /* IE 10+, Fx 29+ */
}

@-webkit-keyframes newnotification {
    0%, 49% {
        background: #297fc7;
    }
    50%, 100% {
        background: #369ef5;
    }
}
.mail_user_image .img-wrapper img,.chat_friend_title .img-wrapper img{
    width: 100% !important;
    height: 100% !important;
}
.search_socialchat .form-control-feedback{
    top:0;
}
.chat-search-icon{
    position: absolute;
    top: 9px;
    right: 10px;
}