
.chat-button {
    font-size: 17px;
    line-height: 38px;
    padding: 0;
    width: 38px !important;
    height: 38px;
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
    display: inline-block;
    box-sizing: border-box;
}

.chat-button.like {
    background-color: rgba(0, 128, 0, 0.3);
}

.chat-button.dislike {
    background-color: rgba(255, 0, 0, 0.3);
}

.chat-button.like:hover {
    background-color: rgba(0, 128, 0, 0.7);
}
.chat-button.dislike:hover {
    background-color: rgba(255, 0, 0, 0.7);
}

.chat-text {
    width: 470px;
    float: left;
    margin-right: 5px;
    padding: 5px;
    font-size: 13px;
    border: 1px solid #CCC;
    color: #666;
    border-radius: 4px;
    background-color: #FFF;
    resize: none;
}


.chat-user {
    padding: 10px;
    font-weight: bold;
    font-size: 14px;
    color: #555;
    height: 40px;
    line-height: 25px;
    background: #F1F1F1;
    position: relative;
}

.chat-userimage {
    float: left;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
}


.chat-status {
    display: block;
    font-size: 11px;
    line-height: 16px;
    color: #666;
}

.chat-title {
    padding: 10px;
    background: #6894d6;
    border-radius: 4px 4px 0 0;
    color: #FFF;
    font-weight: bold;
}

.layer-chat.red .chat-title {
    background: #D24A4A;
}

.chat-panel {
    padding: 0;
    height: 0;
    box-sizing: border-box;
    background: #FFF;
    position: relative;
    /* border-radius: 0 0 4px 4px; */
}

.tablet .chat-panel {
    margin-left: auto;
    margin-right: auto;
    max-width: 760px;
}

.chat-widget {
    border-bottom: 1px solid #EEE;
    padding: 10px;
}

.chat-count {
    font-size: 12px;
    color: #666;
    width: 40px;
    display: inline-block;
}

.chat-send {
    border-radius: 4px;
    height: 30px;
    width: 40px;
    background: #CCC url('../images/button-send.png') center center no-repeat;
}

.chat-send:hover {
    background-color: #6894d6;
}

.chat-messages {
    overflow-y: scroll;
    box-sizing: border-box;
    left: 0;
    right: 0;
    max-height: calc(100vh - 80px);
    height: calc(100vh - 80px);
    background-color: #FFF;
    padding: 10px 15px;
    overscroll-behavior-y: contain;
    overscroll-behavior: none;
    background: #eee url(../img/main-smart-mobile.png) 0 bottom repeat-x;
}

.chat-placeholder {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    text-align: center;
    color: rgba(0,0,0,0.5);
    font-size: 13px;
}


.tablet .chat-messages {
    margin-left: auto;
    margin-right: auto;
    max-width: 760px;
}

.layer-chat.unactive:after {
    content: "";
    height: 100%;
    width: 100%;
    background: rgba(0,0,0,0.5);
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 7;
    border-radius: 4px 4px 0 0;

}
/*
.chat-messages i {
  font-size: 11px;
}
*/
.chat-messages hr {
    margin-top: 5px;
    margin-bottom: 5px;
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(160, 160, 160, 0.75), rgba(0, 0, 0, 0));
}


.direct-chat-msg:before, .direct-chat-msg:after {
    content: " ";
    display: table;
}

.direct-chat-msg:after {
    clear: both;
}

.direct-chat-msg {
    margin-bottom: 10px;
}

.direct-chat-msg, .direct-chat-text {
    display: block;
}

.direct-chat-text a{
    color: #3D659F;
}


.right .direct-chat-text {
    margin-right: 50px;
    margin-left: 0;
    background: #ffffff;
    border-color: #f1f1f1;
}

.right.private .direct-chat-text {
    margin-left: 25px;
    margin-right: 0;
}


.right .direct-chat-line {
    margin-left: 0px;
}

.right.private .direct-chat-line {
    /* margin-left: 25px; */
    margin-right: 0;
}

.direct-chat-text {
    border-radius: 6px;
    position: relative;
    padding: 0;
    margin: 0px 0 0 50px;
    background: #f1f1f1;
    /* border: 1px solid #f1f1f1; */
    color: rgba(0,0,0,0.6);
    font-size: 12px;
    display: block;
    text-decoration: none;
    word-break: break-word;
    box-shadow: 0px 1px 3px rgba(0,0,0,0.2);
}

.direct-chat-msg.tips .direct-chat-message {
    line-height: 16px;
}
.direct-chat-text.service {
    /* border-left: 3px solid rgba(0,0,0,0.2); */
    background: rgba(0,0,0,0.03);
    padding: 5px 0;
    font-size: 12px;
    line-height: 14px;
}

.direct-chat-text.service small {
    padding-left: 10px;
}

.direct-chat-text.service small i {
    color: rgba(0,0,0,0.45);
}

.direct-chat-text.service .direct-chat-message {
    font-size: 12px;
    padding: 5px 10px 5px 10px;
    font-size: 11px;
}

.direct-chat-msg > div {
    background: #fffeec;
}
.direct-chat-msg.right > div {
    background: #ffffff;
}

.note .direct-chat-text {
    margin: 5px 0 0 0;
    background: #FFF;
}

.note .direct-chat-link {
    margin-right: 30px;
}

.note .section-menu {
    left: auto;
    right: 0px;
}

.private .direct-chat-text {
    margin: 5px 25px 0 0;
}

.post .direct-chat-text {
    margin: 5px 0 0 0;
}


.direct-chat-text.deleted {
    background-color: #eee;
    border-color: #eee;
    padding-bottom: 5px;
}

.direct-chat-text.list {
    background-color: #8fef83;
    border: 1px solid #8fef83;
}

.direct-chat-text.removed {
    background-color: #C6C6C6;
    border: 1px solid #BDBDBD;
    color: #666;
}

.direct-chat-name {
    font-weight: 600;
    font-size: 12px;
}

.direct-chat-timestamp {
    color: #888;
    text-align: right;
    font-size: 11px;
    margin-top: 5px;
}

.right .direct-chat-timestamp {
    color: #677b9a;
}

.direct-chat-img {
    border-radius: 50%;
    float: left;
    width: 40px;
    height: 40px;
}

.right .direct-chat-img {
    float: right;
}

.post.right .direct-chat-img {
    float: left;
}

.direct-chat-img-int {
    border-radius: 50%;
    float: left;
    width: 25px;
    height: 25px;
    margin-top: -2px;
    margin-right: 10px;
}

.direct-chat-info {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
}

.direct-chat-msg.status-work .direct-chat-text {
    border-color: red;
}

.direct-chat-msg.status-disable .direct-chat-text {
    opacity: 0.6;
}

.post .direct-chat-text:after,
.post .direct-chat-text:before {
    content: '';
    border: none;
}

.note .direct-chat-text:after,
.note .direct-chat-text:before {
    content: '';
    border: none;
}


.direct-chat-text:after, .direct-chat-text:before {
    position: absolute;
    right: 100%;
    top: 15px;
    border: solid transparent;
    border-right-color: #e8e8e8;
    content: ' ';
    height: 0;
    width: 0;
    pointer-events: none;
}

.direct-chat-text:before {
    border-width: 6px;
    margin-top: -6px;
}

.direct-chat-text.list:after, .direct-chat-text.list:before {
    border-right-color: #8fef83;
}

.direct-chat-text.removed:after, .direct-chat-text.removed:before {
    border-right-color: #BDBDBD;
}

.direct-chat-msg.status-work .direct-chat-text:after, .direct-chat-msg.status-work .direct-chat-text:before {
    border-right-color: red;
}


.right .direct-chat-text:after, .right .direct-chat-text:before {
    right: auto;
    left: 100%;
    border-right-color: transparent;
    border-left-color: #dce6f4;
}

.right .direct-chat-text.list:after, .right .direct-chat-text.list:before {
    border-right-color: transparent;
    border-left-color: #8fef83;
}

.right .direct-chat-text.removed:after, .right .direct-chat-text.removed:before {
    border-right-color: transparent;
    border-left-color: #BDBDBD;
}

.right.status-work .direct-chat-text:after, .right.status-work .direct-chat-text:before {
    border-right-color: transparent;
    border-left-color: red;
}

.direct-chat-warning .right>.direct-chat-text:after, .direct-chat-warning .right>.direct-chat-text:before {
    border-left-color: #a7caff;
}



.direct-has-photo {
    padding-top: 10px;
    line-height: 0;
    padding: 2px;
    text-align: center;
}

.direct-has-sticker {
    text-align: center;
}

.right .direct-has-photo {
}


.direct-chat-photo {
    max-width: 220px;
    max-height: 220px;
    margin: 0 auto;
    border-radius: 4px;
}

.chat-history {
    cursor: pointer;
    text-decoration: underline;
}

.chat-history:hover {
    text-decoration: none;
}

.chat-username {
    width: 450px;
    height: 40px;
    line-height: 20px;
    overflow: hidden;
}

.chat-download-link {
    display: block;
    font-size: 18px;
    padding: 35px 0;
    text-align: center;
}

.direct-chat-new {
    color: red;
}

.conference-list {
    min-height: 100px;
    overflow-y: auto;
}


.conference-item {
    clear: both;
    padding: 10px 15px;
    font-weight: normal;
    font-size: 14px;
    cursor: pointer;
    color: #555;
    height: 30px;
    line-height: 30px;
    border-bottom: 1px solid #EEE;
}

.conference-item:last-child {
    border-radius: 0 0 4px 4px;
}


.conference-item:hover {
    background: #EEE;
}


.chat-popup-button {
    background-image: url(../images/chat-popup-button.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 0 0;
    width: 10px;
    height: 10px;
    display: inline-block;
    cursor: pointer;
}

.chat-popup-menu {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera */
    display: none;
    height: min-content;
    vertical-align: middle;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    margin: auto;
    position: absolute;
    display: block;
    background: #FFF;
    color: #666;
    display: none;
    z-index: 11;
    padding: 4px 0;
    border: 1px solid #ccc;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 4px;
    -webkit-box-shadow: 0 6px 12px rgba(0,0,0,.175);
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
}

.chat-popup-submenu-item,
.chat-popup-menu-item {
    display: block;
    padding: 5px 10px;
    line-height: 17px;
    text-align: left;
    font-size: 12px !important;
    text-decoration: none;
    color: #666;
    position: relative;
}

.chat-popup-submenu-item.active,
.chat-popup-menu-item.active,
.chat-popup-submenu-item:hover,
.chat-popup-menu-item:hover {
    background: #EEE;
}

.chat-popup-menu-item:hover .chat-popup-submenu {
    display: block;
}


.chat-popup-menu-item-sub {
    position: relative;
}

.chat-popup-menu-item-sub:before,
.chat-popup-menu-item-sub:after {
    border-right: 1px solid;
    content: '';
    display: block;
    height: 6px;
    margin-top: -5px;
    position: absolute;
    -moz-transform: rotate(135deg);
    -o-transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
    transform: rotate(135deg);
    right: 10px;
    top: 50%;
}

.chat-popup-menu-item-sub:after {
    margin-top: -1px;
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}


.chat-popup-submenu {
    display: none;
    top: -5px;
    width: 180px;
    left: -179px;
    position: absolute;
    display: block;
    background: #FFF;
    color: #666;
    display: none;
    z-index: 11;
    padding: 4px 0;
    border: 1px solid #ccc;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 4px;
    -webkit-box-shadow: 0 6px 12px rgba(0,0,0,.175);
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
}

.right .chat-popup-submenu {
    left: 179px;
}


.direct-chat-author {
    font-weight: bold;
    padding: 6px 30px 6px 30px;
    font-size: 11px;
    position: relative;
}

.direct-chat-text.deleted .direct-chat-author {
    padding: 5px 10px;
    background: rgba(122,122,122,0.05);
}

.direct-chat-text.deleted .direct-chat-message {
    padding: 8px 10px 0 10px;
}

.direct-chat-title {
    padding: 5px 10px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    background: rgba(0,0,0,0.02);
    font-size: 10px;
    line-height: 13px;
    position: relative;
}


.direct-chat-title b {
    display: block;
    font-weight: bold;
}


.direct-chat-quote {
    border-radius: 4px;
    padding: 6px;
    font-size: 11px;
    line-height: 14px;
    background: rgba(0,0,0,0.02);
    font-style: italic;
    margin: 5px 5px 0 5px;
    border-left: 3px solid rgba(0,0,0,0.2);
}



.direct-chat-message {
    display: block;
    text-decoration: none;
    padding: 5px 10px 0 10px;
    font-size: 12px;
}

.direct-chat-full {
    display: none;
}

.direct-full-show {
    text-decoration: underline;
    margin-top: 10px;
    color: #3D659F;
}

.direct-full-show:hover {
    color: red;
}

.direct-chat-type {
    /* float: right; */
    display: inline-block;
}

.direct-chat-type i {
    font-size: 12px;
}

.direct-chat-line {
    position: relative;
    /* font-size: 13px; */
    right: 0;
    margin: 0;
    line-height: 13px;
    padding: 5px 10px;
    /* background-color: rgba(0, 0, 0, 0.05); */
    /* margin-left: 50px; */
}

.private .direct-chat-line {
    margin-left: 0px;
    /* margin-right: 25px; */
}

.post .direct-chat-line {
    margin: 0;
}

.direct-chat-meta {
    font-size: 11px;
    margin-right: 10px;
    display: inline-block;
}

.direct-chat-meta.nl {
    display: block;
}
.direct-chat-meta.info {
    display: inline-block;
    margin-bottom: 5px;
}

.direct-chat-meta a {
    color: rgba(0, 0, 0, 0.6);
    text-decoration: none;
}

.direct-chat-meta.bold {
    font-weight: bold;
}

.direct-chat-meta.bold i {
    font-weight: bold;
    font-size: 14px;
}

.direct-chat-meta i {
    color: rgba(0,0,0,0.4);
}

.direct-chat-meta.pull-right {
    margin: 0;
}


.direct-chat-like,
.direct-chat-dislike {
    position: absolute;
    bottom: 0;
    right: 0;
    bottom: 0;
    color: #757575;
    font-weight: bold;
    display: inline-block;
    text-align: center;
    width: 50px;
    font-size: 11px;
    line-height: 22px;
    cursor: pointer;
}

.direct-chat-like {
    background-color: #e5ffe5;
    right: 50px;
    border-top-left-radius: 6px;
}

.direct-chat-dislike {
    background-color: #ffe5e5;
    border-bottom-right-radius: 6px;
}

.direct-chat-like:hover {
    background-color: #c8f1c8;
}

.direct-chat-dislike:hover {
    background-color: #ffc6c6;
}

.direct-chat-attach {
    position: absolute;
    text-align: center;
    /* padding-top: 10px; */
    right: 0;
    top: 0;
    bottom: 0;
    /* border-left: 1px solid #FFF; */
    width: 70px;
    color: rgba(0,0,0,0.35);
    cursor: pointer;
}

.direct-chat-attach i {
    /* top: 10px; */
    /* position: absolute; */
    font-size: 53px;
}

.direct-chat-attach b {
    position: absolute;
    left: 0;
    width: 100%;
    top: 18px;
    text-align: center;
    font-weight: bold;
    font-size: 11px;
}


.direct-chat-attach:hover {
    color: rgba(0,0,0,0.6);
}

.direct-chat-theme {
    position: relative;
    padding: 0;
    border-radius: 6px;
    box-shadow: 0px 1px 3px rgba(0,0,0,0.2);
    color: #555;
    font-size: 13px;
}

.direct-chat-theme a {
    color: #555;
}

.with-menu {
    padding-left: 30px;
}


.direct-chat-vr {
    position: absolute;
    right: 120px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #FFF;
}

.direct-chat-link {
    display: block;
    text-decoration: none;
    color: rgba(0,0,0,0.5);
}

.has-attach .direct-chat-link {
    margin-right: 60px;
}

.direct-chat-buttons {
    margin: 0 50px;
}

.right .direct-chat-buttons {
    margin: 0 50px;
    text-align: right;
}

.button.chat-action {
    padding: 2px;
    width: 35px;
    height: 35px;
    background-color: rgba(0,0,0,0.05);
    color: rgba(0,0,0,0.3);
}

.button.chat-action:hover {
    background-color: rgba(0,0,0,0.3);
}

.button.chat-action i{
    font-size: 20px;
    color: rgba(0,0,0,0.5);
}

.button.chat-action:hover i{
    color: #FFF;
}


.direct-chat-load {
    padding: 10px 16px;
    text-align: center;
}

.chat-load {
    border-radius: 5px;
    padding: 5px 10px;
    background: #e8e8e8;
    border: 1px solid #d2d6de;
    color: #555;
}

.chat-loading {
    height: 30px;
    width: 30px;
    background: transparent url(../images/spin-mobile-mini.svg) no-repeat center center;
    display: block;
    margin: 0 auto;
}



.direct-chat-gallery {
    margin-right: 0;
    margin-left: 50px;
    padding: 5px 10px;
    /* background: #f1f1f1; */
}

.private .direct-chat-gallery {
    margin-left: 0;
}

.right .direct-chat-gallery {
    margin-left: 0;
    background: #ffffff;
    /* border: 1px solid #f1f1f1; */
    /* border-top: 0; */
}

.private.right .direct-chat-gallery {
    /* margin-left: 25px; */
    margin-right: 0px;
}

.post .direct-chat-gallery {
    margin: 0 !important;
}

.direct-chat-gallery li {
    display: block;
    float: left;
    margin-right: 6px;
}

.direct-chat-gallery li img {
    height: auto;
    margin: 0 auto;
    max-width: 100%;
    display: block;
}

.img-chat-pad {
    margin-right: 10px;
}

.direct-chat-usrtitle {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: bold;
    margin-right: 90px;
}

.direct-chat-post-title {
    white-space: pre-wrap;
    padding: 6px 7px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    background: rgba(0,0,0,0.02);
    margin: 4px 4px 0 4px;
}

.direct-chat-resended {
    white-space: pre-wrap;
    padding: 6px 7px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 10px;
    background-color: #e3f1f97d;
    margin: 4px 4px 0 4px;
    line-height: 12px;
}

.direct-chat-msg.appeal > div {
    background: #ffffff !important;
}




.direct-chat-gallery li img.load {
    display: block;
    height: 230px !important;
    width: 350px !important;
    background-color: #ebebeb;
    position: relative;
}

.direct-chat-gallery li img.load:after {
    content: 'Загрузка';
    position: absolute;
    top: 48%;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
    color: #999;
}

.chat-nav-button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #7aaee8;
    position: absolute;
    top: -60px;
    right: 30px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0.7;
    cursor: pointer;
    display: none;
    line-height: initial;
}

.chat-nav-button.down {
    flex-direction: column-reverse;
}

.chat-nav-button.up {
    right: 85px;
}

.chat-nav-button i {
    font-size: 18px;
    color: #FFF;
}

.chat-nav-button .count {
    display: block;
    color: #ffffff;
    font-size: 12px;
}
.chat-nav-button:hover {
    opacity: 0.9;
}

.ya-share2 {
    margin: 5px 10px;
}

.emojionearea {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 1 !important;
}


.file-slide {
    text-decoration: none;
    text-overflow: ellipsis;
    overflow: hidden;
    display: block;
    text-align: center;
} 