.clearfix:before, .clearfix:after {
    content: " ";
    display: flex;
}
.wall-img .wall-img-item {
    display: block;
    float: left;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    border: 2px solid #fff;
    background-repeat: no-repeat;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    -webkit-transition: opacity;
    -o-transition: opacity;
    transition: opacity;
    -webkit-transition-duration: .2s;
    transition-duration: .2s
}
.wall-img .wall-img-item:hover {
    opacity: .8;
    filter: alpha(opacity=80)
}
.wall-img .wall-img-item>img {
    display: none
}
.wall-img .wall-img-item:first-child:nth-last-child(2),
.wall-img .wall-img-item:first-child:nth-last-child(2)~a {
    width: calc(100% / 2);
    padding-bottom: 40%
}
.wall-img .wall-img-item:first-child:nth-last-child(3),
.wall-img .wall-img-item:first-child:nth-last-child(3)~a {
    width: calc(100% / 3);
    padding-bottom: 30%
}
.wall-img .wall-img-item:first-child:nth-last-child(4),
.wall-img .wall-img-item:first-child:nth-last-child(4)~a:not(:last-child) {
    width: calc(100% / 3);
    padding-bottom: 30%
}
.wall-img .wall-img-item:first-child:nth-last-child(5),
.wall-img .wall-img-item:first-child:nth-last-child(5)~a:not(:nth-last-of-type(-n+2)),
.wall-img .wall-img-item:first-child:nth-last-child(6),
.wall-img .wall-img-item:first-child:nth-last-child(6)~a,
.wall-img .wall-img-item:first-child:nth-last-child(7)~a:nth-last-of-type(-n+3) {
    width: calc(100% / 3);
    padding-bottom: 30%
}
.wall-img .wall-img-item:first-child:nth-last-child(5)~a:nth-last-of-type(-n+2) {
    width: calc(100% / 2);
    padding-bottom: 40%
}
.wall-img .wall-img-item:first-child:nth-last-child(7),
.wall-img .wall-img-item:first-child:nth-last-child(7)~a:not(:nth-last-of-type(-n+3)),
.wall-img .wall-img-item:first-child:nth-last-child(n+8),
.wall-img .wall-img-item:first-child:nth-last-child(n+8)~a {
    width: calc(100% / 4);
    padding-bottom: 22%
}
.wall-img .wall-img-item:first-child:nth-last-child(4)~a:nth-child(4),
.wall-img .wall-img-item:only-child {
    width: 100%;
    padding-bottom: 50%
}
.wall-img .wall-img-item:nth-child(8)~a {
    display: none !important;
}
.messages-container .input-with-icon {
    display: block;
    position: relative;
}
.messages-container .input-with-icon i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 15px;
    font-size: 20px;
    color: #a0a0a0;
    font-style: normal;
    cursor: normal;
    pointer-events: none;
}
.messages-container input,
.messages-container input[type=text],
.messages-container input[type=password],
.messages-container input[type=email],
.messages-container input[type=number],
.messages-container textarea,
.messages-container select {
    height: 48px;
    line-height: 48px;
    padding: 0 20px;
    outline: none;
    font-size: 16px;
    color: gray;
    margin: 0 0 16px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    display: block;
    background-color: #fff;
    font-weight: 500;
    opacity: 1;
    border-radius: 4px;
    border: none;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, .12);
}
.messages-container textarea {
    height: auto;
    line-height: 27px;
    padding: 20px;
    min-height: 130px;
    transition: none!important;
    min-width: 100%;
}
.messages-container .input-with-icon input {
    padding-right: 45px;
}
.messages-container .messages-headline input {
    background-color: #f6f6f6;
    box-shadow: none;
    height: 38px;
    padding: 14px;
    font-size: 14px;
    margin: 0;
}
.messages-container .messages-headline .input-with-icon i {
    font-size: 18px;
    right: 14px;
}

.messages-container span.button,
.messages-container button.button,
.messages-container input[type=button],
.messages-container input[type=submit],
.messages-container a.button {
    background-color: #2a41e8;
    top: 0;
    padding: 12px 20px;
    line-height: 24px;
    color: #fff;
    position: relative;
    font-size: 16px;
    font-weight: 500;
    display: inline-block;
    transition: all .2s ease-in-out;
    cursor: pointer;
    overflow: hidden;
    border: none;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(102, 103, 107, .15);
}
.messages-container button.button.gray,
.messages-container input[type=button].gray,
.messages-container input[type=submit].gray, a.button.gray {
    background-color: #ffffff;
    color: #666;
    box-shadow: none;
}

.messages-container .notification {
    line-height: 24px;
    margin-bottom: 15px;
    position: relative;
    padding: 20px 26px;
    padding-right: 50px;
    border-radius: 3px;
}
.messages-container .notification.warning {
    background-color: #fbfadd;
}
.messages-container .notification.warning,
.messages-container .notification.warning a,
.messages-container .notification.warning strong {
    color: #8f872e;
}

.messages-container .notification p {
    margin: 0;
    font-size: 15px;
}
.messages-container .notification a {
    text-decoration: underline;
}
.messages-container .notification.success .close,
.messages-container .notification.error .close,
.messages-container .notification.warning .close,
.messages-container .notification.notice .close {
    padding: 0 9px;
    position: absolute;
    right: 23px;
    top: 8px;
    display: block;
    height: 8px;
    width: 8px;
    cursor: pointer;
    text-decoration: none;
}
.messages-container .notification.closeable a.close:before {
    content: "\f342";
    font-family: line-awesome!important;
    cursor: pointer;
    font-weight: 600;
}
.messages-container .notification.warning,
.messages-container .notification.warning a,
.messages-container .notification.warning strong {
    color: #8f872e;
}

/* main */

 .messages-container {
     margin: 0;
     box-shadow: 0 0 12px 0 rgba(0, 0, 0, .06);
     border-radius: 4px;
     background-color: #fff
}
 .messages-inbox ul,
 .messages-sublist-inner ul {
     height: calc(100vh - 42px - 60px - 82px);
}
 .message-content, .messages-container-inner .messages-inbox,
 .message-content, .messages-container-inner .messages-sublist-inner {
     overflow: hidden
}
 .message-content-inner, .messages-container-inner .messages-inbox ul,
 .message-content-inner, .messages-container-inner .messages-sublist-inner ul {
     overflow-y: scroll;
     width: calc(100% + 18px)
}
 .message-content-inner::-webkit-scrollbar, .messages-container-inner .messages-inbox ul::-webkit-scrollbar,
 .messages-container-inner .messages-sublist-inner ul::-webkit-scrollbar {
     width: 17px
}
 .messages-headline {
     max-height: 82px;
     font-size: 16px;
     margin: 0;
     padding: 22px 30px;
     color: #333;
     background-color: #fff;
     display: block;
     border-bottom: 1px solid #eaeaea;
     border-radius: 4px 4px 0 0;
     position: relative
}
 .messages-headline input {
     background-color: #f6f6f6;
     box-shadow: none;
     height: 38px;
     padding: 14px;
     font-size: 14px;
     margin: 0
}
 .messages-headline input:focus {
     box-shadow: none
}
 .messages-headline .input-with-icon i {
     font-size: 18px;
     right: 14px
}
 .messages-headline h4 {
     font-size: 16px;
     color: #333;
     padding: 6px 0;
     margin: 0;
     font-weight: 600;
     display: inline-block;
     line-height: 1.4;
}
 .message-action {
     border-radius: 50px;
     font-size: 13px;
     color: #666;
     font-weight: 500;
     display: inline-block;
     transition: .3s;
     color: #666;
     padding: 0;
     position: absolute;
     top: 50%;
     right: 30px;
     transform: translateY(-50%)
}
 .message-action i {
     font-size: 14px;
     position: relative;
     top: 1px;
     margin-right: 1px
}
 .message-action:hover {
     color: #ee3535
}
 .messages-inbox ul,
 .messages-sublist-inner ul {
     list-style: none;
     padding: 0;
     margin: 0
}
 .message-avatar img {
     display: inline-block;
     width: 54px;
     height: 54px;
     border-radius: 50%
}
 .messages-inbox ul li a,
 .messages-sublist-inner ul li a {
     position: relative;
     display: block;
     padding: 30px
}
 .messages-inbox ul li,
 .messages-sublist-inner ul li {
     transition: .2s;
     position: relative
}
 .messages-inbox ul li:nth-child(2n),
 .messages-sublist-inner ul li:nth-child(2n) {
     background-color: #fafafa
}
 .messages-inbox ul li:last-child,
 .messages-sublist-inner ul li:last-child {
     border-bottom: none
}
 .messages-inbox ul li.active-message,
 .messages-sublist-inner ul li.active-message {
     background-color: #fafafa
}
 .messages-inbox ul li:before,
 .messages-sublist-inner ul li:before {
     position: absolute;
     top: 0;
     left: 0;
     width: 3px;
     height: 100%;
     background-color: #66676b;
     display: block;
     content: "";
     opacity: 0;
     transition: .3s
}
 .messages-inbox ul li:hover:before, .messages-inbox ul li.active-message:before,
 .messages-sublist-inner ul li:hover:before, .messages-sublist-inner ul li.active-message:before {
     opacity: 1
}
 .messages-inbox .message-avatar {
     position: absolute;
     left: 30px;
     top: 50%;
     transform: translateY(-50%)
}
 .messages-inbox .message-by {
     margin-left: 85px;
     font-size: 15px;
     color: #666
}
 .messages-sublist-inner .message-by {
     font-size: 15px;
     color: #666
}
 .messages-inbox .message-by p,
 .messages-sublist-inner .message-by p {
     margin: 0;
     padding: 0;
     line-height: 25px;
     font-size: 15px
}
 .message-by-headline h5, .message-by-headline span {
     display: inline-block
}
 .message-by-headline span {
     float: right;
     color: #888;
     font-size: 14px
}
 .message-by-headline h5 {
     font-weight: 600;
     color: #333;
     margin: 0 0 7px;
     padding: 0
}
 .message-by-headline:after {
     content: ".";
     display: block;
     clear: both;
     visibility: hidden;
     line-height: 0;
     height: 0
}
 .message-by h5 i {
     background-color: #66676b;
     border-radius: 4px;
     line-height: 20px;
     font-size: 12px;
     color: #fff;
     font-style: normal;
     padding: 3px 8px;
     margin-left: 3px
}
 .messages-container-inner {
     display: flex
}
 .messages-container-inner .messages-inbox, .messages-container-inner .message-content,
 .messages-container-inner .messages-sublist-inner {
     flex: 1
}
 .messages-container-inner .message-content-inner {
     padding: 30px;
     padding-bottom: 0;
     flex-grow: 1
}
 .messages-container-inner .message-content {
     position: relative;
     display: flex;
     flex-direction: column;
}
 .messages-container-inner .messages-inbox {
     max-width: 340px;
     border-right: 1px solid #eaeaea
}
 .messages-container-inner .messages-inbox ul li a,
 .messages-container-inner .messages-sublist-inner ul li a {
     padding: 25px
}
 .messages-container-inner .messages-inbox ul li a:hover,
 .messages-container-inner .messages-sublist-inner ul li a:hover {
     text-decoration: none;
}
 .messages-container-inner .messages-inbox .message-by p,
 .messages-container-inner .messages-sublist-inner .message-by p {
     height: 26px;
     max-width: 205px;
     text-overflow: ellipsis;
     white-space: nowrap;
     overflow: hidden;
     font-size: 14px;
     color: #888
}
 .messages-container-inner .message-avatar img {
     width: 40px;
     height: 40px
}
 .messages-container-inner .messages-inbox .message-avatar,
 .messages-container-inner .messages-sublist-inner .message-avatar {
     left: 25px
}
 .messages-container-inner .messages-inbox .message-by {
     margin-left: 60px
}
 .messages-container-inner .message-by-headline h5 {
     font-size: 14px;
     margin-bottom: 3px;
     max-width: 160px;
     line-height: 23px
}
 .messages-container-inner .message-by-headline span {
     font-size: 13px;
     position: absolute;
     top: 25px;
     right: 25px
}
 .message-bubble {
     display: block;
     position: relative;
     margin-bottom: 25px
}
 .message-bubble.noty {
     margin-bottom: 15px
}
 .message-bubble .message-avatar {
     position: absolute;
     left: 0;
     top: 0
}
 .message-bubble .message-avatar img {
     width: 50px;
     height: 50px
}
 .message-bubble .message-text {
     margin-left: 70px;
     background-color: #f4f4f4;
     border-radius: 4px;
     padding: 12px 18px;
     position: relative;
     display: inline-block;
     float: left;
     line-height: 25px
}
 .message-bubble.me .message-text {
     float: right
}
 .message-bubble .message-text p {
     font-size: 15px;
     padding: 0;
     margin: 0;
     line-height: 25px
}
 .message-bubble.me .message-avatar {
     left: auto;
     right: 0
}
 .message-bubble.me .message-text {
     margin-left: 0;
     margin-right: 70px;
     background-color: #66676b;
     color: #fff;
     position: relative
}
 .message-bubble:not(.noty) .message-text:before {
     content: "";
     width: 0;
     height: 0;
     border-top: 6px solid transparent;
     border-bottom: 6px solid transparent;
     border-right: 6px solid #f4f4f4;
     left: -6px;
     right: auto;
     top: 19px;
     position: absolute
}
 .message-bubble.me .message-text:before {
     border-top: 6px solid transparent;
     border-bottom: 6px solid transparent;
     border-left: 6px solid #66676b;
     border-right: none;
     right: -6px;
     left: auto
}
 .message-bubble._deleted .message-bubble-inner {
     z-index: 1;
}
 .message-bubble._deleted .message__deleted_backdrop {
    z-index: 2;
}
 .message-time-sign {
     text-align: center;
     display: block;
     position: relative;
     margin-bottom: 25px
}
 .message-time-sign:before {
     content: "";
     height: 1px;
     background-color: #eaeaea;
     display: block;
     max-width: 30%;
     margin: 0 auto;
     position: relative;
     top: 14px;
     z-index: 10
}
 .message-time-sign span {
     background-color: #fff;
     font-size: 14px;
     color: #888;
     z-index: 11;
     position: relative;
     padding: 0 10px
}
 .message-reply {
     border-top: 1px solid #eaeaea;
     padding: 30px;
     display: flex;
     align-items: flex-start;
     margin-top: 15px
}
 .message-reply textarea {
     min-width: auto;
     height: 48px;
     min-height: 48px;
     padding: 10px 0;
     margin: 0 15px 0 0;
     flex: 1;
     font-size: 15px;
     font-weight: 400;
     line-height: 26px;
     box-shadow: none;
     border: none;
     box-sizing: border-box;
     resize: none
}
 .message-reply button {
     border-radius: 4px;
     flex: auto;
     flex-grow: 0;
     height: 44px;
     text-align: center;
     align-self: center;
     padding: 0 25px
}
 .message-reply i {
     padding: 0;
     margin: 0
}
 .typing-indicator {
     width: auto;
     height: 24px;
     padding-top: 8px
}
 .typing-indicator span {
     height: 8px;
     width: 8px;
     float: left;
     margin: 0 1px;
     background-color: #a0a0a0;
     display: block;
     border-radius: 50%;
     opacity: .4
}
 .typing-indicator span:nth-of-type(1) {
     animation: 1s blink infinite .33333s
}
 .typing-indicator span:nth-of-type(2) {
     animation: 1s blink infinite .66666s
}
 .typing-indicator span:nth-of-type(3) {
     animation: 1s blink infinite .99999s
}
 @keyframes blink {
     50% {
         opacity: 1
    }
}
 @media(max-width:992px) {
     .messages-container-inner .messages-inbox {
         max-width: 300px
    }
}
 @media(max-width:768px) {
     .messages-container-inner {
         display: block
    }
     .messages-container-inner .messages-inbox,
     .messages-container-inner .messages-sublist-inner {
         max-width: 100%;
         border-bottom: 1px solid #e4e4e4;
         border-right: none
    }
     .messages-inbox ul {
         max-height: 500px
    }
     .messages-container-inner .message-by-headline span {
         position: relative;
         top: 0;
         right: 0;
         display: block;
         float: none;
         padding: 0;
         margin: -4px 0 0
    }
     .message-action {
         display: block;
         position: relative;
         right: 0;
         top: 0;
         transform: none;
         margin-top: -5px
    }
     .messages-headline {
         max-height: 120px
    }
}

.messages-container mark {
    position: absolute;
    top: 2px;
    right: 0px;
    padding: 3px 3px;
    line-height: 1;
    border-radius: 4px;
    background: #333;
    color: #fff;
}

/* theme */

.messages-inbox ul li:nth-child(2n),
.messages-sublist-inner ul li:nth-child(2n) {
    background-color: #fefefe;
}
.message-content-inner {
    height: calc(100vh - 42px - 60px - 82px);
}
.messages-container-inner .message-content {
    height: calc(100vh - 42px - 60px);
}
.messages-container.messages-container-onlydialog .messages-container-inner .message-content {
    height: 500px;
}
.messages-headline {
    min-height: 82px;
}
.message-content-search .messages-headline {
    padding: 28px 30px;
}
.message-action-type {
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    display: inline-block;
    transition: .3s;
    color: #666;
    padding: 0;
    margin-right: 20px;
    text-decoration: none;
}
.message-action-type:hover {
    text-decoration: none;
}
.message-action-type:hover {
  color: #2a41e8;
}
.message-action-type.active {
  color: #2a41e8;
}
.message-action-type i {
    font-size: 14px;
    position: relative;
    top: 1px;
    margin-right: 1px;
}
.messages-container-inner .messages-inbox .message-by p,
.messages-container-inner .messages-sublist-inner .message-by p {
    position: relative;
    padding-right: 50px;
    max-width: 100%;
}
.messages-container-inner .messages-inbox .message-by p .message-read,
.messages-container-inner .messages-sublist-inner .message-by p .message-read {
    margin-left: 5px;
}
.messages-container-inner .messages-inbox .message-by p mark.message-cnt-new,
.messages-container-inner .messages-sublist-inner .message-by p mark.message-cnt-new {
    position: absolute;
    top: 2px;
    right: 0px;
    padding: 3px 3px;
    line-height: 1;
    background: #333;
}
.messages-inbox ul li.unread-message,
.messages-sublist-inner ul li.unread-message {
    background-color: #f7f7f7;
}
.message-content.message-content-notfound {
    position: relative;
}
.message-content.message-content-notfound span,
.message-content.message-content-dialog span.meetings_request_ds_chat_not_avail {
    position: absolute;
    top: calc((100% - 30px) / 2);
    left: 0px;
    right: 0px;
    line-height: 30px;
    text-align: center;
    color: #acacac;
}
.message-content.message-content-dialog span.meetings_request_ds_chat_not_avail {
    top: calc((100% + 30px) / 2);
    padding: 0px 20px;
}
.message-content.message-content-dialog span.meetings_request_ds_chat_not_avail:before {
    font-family: line-awesome!important;
    speak: none;
    font-style: normal;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    content: "\f1c6";
    position: absolute;
    top: calc((100% - 100px) / 2 - 70px);
    right: calc((100% - 100px) / 2);
    color: #f1f1f1;
    font-size: 100px;
}
.message-content.message-content-search .message-content-inner {
    position: relative;
}
.message-content.message-content-search .message-content-inner:not(._search):before {
    font-family: line-awesome!important;
    speak: none;
    font-style: normal;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;

    content: "\f1c6";

    position: absolute;
    top: calc((100% - 100px) / 2);
    right: calc((100% - 100px) / 2);
    color: #f1f1f1;
    font-size: 100px;
}
.message-content.message-content-loading .message-content-inner {
    position: relative;
}
.message-content.message-content-loading .messages-headline {
    border-bottom: 0px;
}
.message-content.message-content-loading .message-content-inner .typing-indicator {
    position: absolute;
    top: calc((100% - 24px - 82px) / 2);
    right: calc((100% - 30px) / 2);
}
.messages-headline .dialog__action.dialog__back {
    font-size: 20px;
    vertical-align: middle;
}
.messages-headline .dialog__action.dialog__back:hover {
    text-decoration: none;
}
.messages-container.messages-container-onlydialog .messages-headline .dialog__action.dialog__back {
    display: none;
}
.message-reply {
    padding: 15px 30px;
    margin-top: 0px;
}
.messages-container-inner .message-content-inner {
    padding-bottom: 10px;
}
.message-reply .button {
    width: 52px;
    padding: 0px;
    text-align: center;
}
.message-reply .button i {
    font-size: 22px !important;
    top: 0px !important;
    margin-left: -5px !important;
}
.message-bubble .message-text .message__time {
    position: absolute;
    bottom: -14px;
    right: 5px;
    font-size: 11px;
    line-height: 1;
    color: #989898;
}
.message-bubble.me .message-text .message__time {
    /* right: unset; */
    /* left: 5px; */
}
 .message-bubble._deleted .message-bubble-inner {
     z-index: 1;
}
 .message-bubble._deleted .message__deleted_backdrop {
    z-index: 2;
}
.message-bubble .message-text .message__msgcheck {
    display: none;
    color: #2a41e8;
}
.message-bubble.me._msgread .message-text .message__msgcheck {
    display: inline;
}
.message-bubble:not(.me):before {
    content: '';
    position: absolute;
    top: 1px;
    left: 75px;
    right: 0px;
    bottom: 1px;
    transition: background-color 0.3s;
    background-color: #f5fcff;
}
.message-bubble._msgread:not(.me):before {
    background-color: transparent;
}
.message-bubble .message-text .message__action {
    position: absolute;
    top: calc((100% - 22px) / 2);
    color: #202020;
    padding: 3px;
    border-radius: 5px;
    background: transparent;
    opacity: 0;
    transition: 0.2s;
    cursor: pointer;
}
.messages-disabled .message-bubble .message-text .message__action.message__resend,
.messages-disabled .message-bubble .message-text .message__action.message__delete {
    display: none;
}
.message-bubble:hover .message-text .message__action {
    opacity: 0.7;
}
.message-bubble .message-text .message__action:hover {
    background-color: #2a41e81a;
    opacity: 1;
}
.message-bubble:not(.me) .message-text .message__action.message__resend {
    right: -60px;
}
.message-bubble.me .message-text .message__action.message__resend {
    left: -60px;
}
.message-bubble:not(.me) .message-text .message__action.message__delete {
    right: -85px;
}
.message-bubble.me .message-text .message__action.message__delete {
    left: -85px;
}
.message-bubble .message__deleted_backdrop {
    display: none;
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: -20px;
    background-color: #fffffff0;
    border-radius: 22px;
}
.message-bubble._deleted .message__deleted_backdrop {
    display: block;
}
.message-bubble .message__deleted_backdrop > span {
    position: absolute;
    top: calc((100% - 50px) / 2);
    left: 0px;
    right: 0px;
    line-height: 30px;
    text-align: center;
    color: #a4a4a4;
}
.message-bubble .message__deleted_backdrop > span .message__action.message__delete {
    color: #2a41e8;
    margin-left: 5px;
    cursor: pointer;
}
.message-bubble .message-text .message__action.message__star {
    font-family: line-awesome!important;
    speak: none;
    font-style: normal;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    color: #e82a2a;
}
.message-bubble .message-text .message__action.message__star:before {
    content: "\f31b";
}
.message-bubble .message-text .message__action.message__star._active {
    opacity: 1;
}
.message-bubble .message-text .message__action.message__star._active:before {
    content: "\f318";
}
.message-bubble .message-text .message__action.message__star:hover {
    background-color: #e82a2a1a;
}
.message-bubble:not(.me) .message-text .message__action.message__star {
    right: -35px;
}
.message-bubble.me .message-text .message__action.message__star {
    left: -35px;
}

.message-bubble[data-midsearch] .message-text {
    cursor: pointer;
}
.message-bubble .message-text .message-text-search {
    background: #ffd4d4;
}
.message-bubble.me .message-text .message-text-search {
    background: #ffd4d4;
    color: #333;
}

.message-resend {
    border-top: 1px solid #eaeaea;
    padding: 15px 30px;
    margin-top: 0px;
}
.message-resend h5 {
    margin-bottom: 5px;
}
.message-resend p {
    margin-bottom: 0px;
    border-left: 1px solid #e4e4e4;
    padding: 5px 10px;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.message-resend p i {
    font-size: 11px;
    padding-left: 5px;
}
.message-resend .dialog__action.dialog__resend_remove {
    position: relative;
    font-size: 20px;
    top: 3px;
}
.message-content-dialog.__resend_active .message-bubble .message-text .message__action.message__resend {
    display: none;
}
.message-bubble .message-text .message-text-resend {
    background-color: #e7e7e7;
    border-left: 2px solid #c0c0c0;
    padding: 5px 0px 0px 10px;
    margin-top: 5px;
}
.message-bubble .message-text .message-text-resend h5 {
    padding-right: 10px;
}
.message-bubble .message-text .message-text-resend .message-text-resend-time {
    font-size: 8px;
    margin-left: 5px;
}
.message-bubble .message-text .message-text-resend h5 img {
    width: 20px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 5px;
}
.message-bubble .message-text .message-text-resend .message-text-resend-text {
    padding-left: 25px;
    margin-bottom: 0px;
}
.message-bubble .message-text .message-text-resend .message-text-resend-text p {
    padding-right: 10px;
}
.message-bubble .message-text .message-text-resend  .message-text-resend {
    border-left: 2px solid #a9a9a9;
}
.message-bubble.me .message-text .message-text-resend {
    background-color: #797979;
    border-left: 2px solid #989898;
}
.message-bubble.me .message-text .message-text-resend h5 {
    color: #fff;
}
.message-bubble .message-text .message-text-resend.message-text-resend-item {
    padding: 0px;
}
.message-bubble .message-text .message-text-resend.message-text-resend-item:hover {
    background-color: #d8d8d8;
}
.message-bubble.me .message-text .message-text-resend.message-text-resend-item:hover {
    background-color: #4f4f4f;
}
.message-bubble .message-text .message-text-resend.message-text-resend-item h5 {
    display: inline-block;
    width: 100%;
}
.message-bubble .message-text .message-text-resend.message-text-resend-item img {
    display: inline-block;
    width: 100px;
    height: 100px;
    vertical-align: top;
}
.message-bubble .message-text .message-text-resend.message-text-resend-item img + div {
    display: inline-block;
    width: calc(100% - 100px - 20px);
    padding: 8px 10px;
    height: 100px;
}
.message-bubble .message-text .message-text-resend.message-text-resend-item img + div h5 {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-right: 0px;
    font-size: 18px;
}
.message-bubble .message-text .message-text-resend.message-text-resend-item img + div p {
    max-height: 60px;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    color: #959595;
    line-height: 18px;
}
.message-bubble.me .message-text .message-text-resend.message-text-resend-item img + div p {
    color: #cecece
}
.message-bubble {
    min-height: 50px;
}
.message-form .mavatar_uploadform  {
    border-top: 1px solid #eaeaea;
    padding: 15px 30px 0px 30px;
    margin-top: 0px;
}
.message-form .mavatar_uploadform #uploader .upload-link {
    display: none;
}
.message-form .mavatar_uploadform .attachments-container .attachment-box {
    max-width: 99px;
    margin: 0 15px 15px 0;
    padding: 5px 20px 40px 8px;
}
.message-form .mavatar_uploadform .attachments-container .attachment-box  span {
    font-size: 12px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.message-form .mavatar_uploadform .attachments-container .attachment-box i {
    bottom: 4px;
    color: #535353;
}
.message-form .mavatar_uploadform .attachments-container .attachment-box .attachment-box-with-bg {
    opacity: 0.3;
}
.message-bubble .message-text .wall-img .wall-img-item:nth-child(8)~a {
    display: block !important;
}
.message-bubble .message-text .wall-img .wall-img-item {
    border-color: #f4f4f4;
}
.message-bubble.me .message-text .wall-img .wall-img-item {
    border-color: #66676b;
}
.message-bubble .message-text .message-text-resend .wall-img {
    margin-right: 15px;
}
.message-bubble .message-text .message-text-resend .wall-img .wall-img-item {
    border-color: #e7e7e7;
}
.message-bubble.me .message-text .message-text-resend .wall-img .wall-img-item {
    border-color: #797979;
}
.message-bubble .message-text .wall-img .wall-img-item:first-child:nth-last-child(4),
.message-bubble .message-text .wall-img .wall-img-item:first-child:nth-last-child(4)~a:not(:last-child) {
    width: calc(100% / 4);
    padding-bottom: 22%;
}
.message-bubble .message-text .wall-img .wall-img-item:first-child:nth-last-child(4)~a:nth-child(4) {
    width: calc(100% / 4);
    padding-bottom: 22%;
}
.message-bubble .message-text .attachments-container {
    margin-bottom: 0px;
}
.message-bubble .message-text .attachments-container .attachment-box {
    max-width: 120px;
    margin: 10px 10px 10px 0;
}
.message-bubble .message-text .attachments-container .attachment-box span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.message-bubble:not(.me) .message-text .attachments-container .attachment-box {
    background-color: #707070;
    color: #fff;
}
.message-bubble:not(.me) .message-text .attachments-container .attachment-box:hover {
    background-color: #2a41e8;
}
.message-bubble:not(.me) .message-text .attachments-container .attachment-box i {
    color: #e1e1e1;
}
.message-bubble .message-text .attachments-container .attachment-box:before {
    border-color: rgba(0, 0, 0, .15) #f4f4f4;
}
.message-bubble .message-text .attachments-container .attachment-box:hover:before {
    border-color: rgba(0, 0, 0, .25) #f4f4f4;
}
.message-bubble.me .message-text .attachments-container .attachment-box:before {
    border-color: rgba(0, 0, 0, .15) #66676b;
}
.message-bubble.me .message-text .attachments-container .attachment-box:hover:before {
    border-color: rgba(0, 0, 0, .25) #66676b;
}
.message-bubble .message-text .message-text-resend .attachments-container .attachment-box:before {
    border-color: rgba(0, 0, 0, .15) #e7e7e7;
}
.message-bubble .message-text .message-text-resend .attachments-container .attachment-box:hover:before {
    border-color: rgba(0, 0, 0, .25) #e7e7e7;
}
.message-bubble.me .message-text .message-text-resend .attachments-container .attachment-box:before {
    border-color: rgba(0, 0, 0, .15) #797979;
}
.message-bubble.me .message-text .message-text-resend .attachments-container .attachment-box:hover:before {
    border-color: rgba(0, 0, 0, .25) #797979;
}
/* responsive 25.09.2019 */
.messages-container-inner .message-content-inner {
    padding: 15px;
}
.message-bubble .message-avatar {
    display: none;
}
.message-bubble .message-text {
    max-width: calc(100% - 20px);
    margin-left: 0px;
}
.message-bubble.noty .message-text {
    width: 80%;
    max-width: 80%;
    margin-left: 10%;
}
.message-bubble .message-text .wall-img .wall-img-item {
    min-width: 50px;
}
.message-bubble.me .message-text {
    margin-right: 0px;
}
@media (min-width: 992px) {
  .messages-container-inner .message-content-inner {
      padding: 30px;
  }
  .message-bubble .message-avatar {
      display: block;
  }
  .message-bubble:not(.noty) .message-text {
      margin-left: 70px;
      max-width: calc(100% - 160px);
  }
  .message-bubble .message-text .wall-img .wall-img-item {
      min-width: 100px;
  }
  .message-bubble.me .message-text {
      margin-left: 0px;
      margin-right: 70px;
  }
}
@media (min-width: 1240px) {
  .message-bubble .message-text .wall-img .wall-img-item:only-child {
      width: 100%;
      min-width: 350px;
  }
  .message-bubble .message-text .wall-img .wall-img-item:first-child:nth-last-child(2),
  .message-bubble .message-text .wall-img .wall-img-item:first-child:nth-last-child(2)~a {
      min-width: 175px;
  }
  .message-bubble .message-text .wall-img .wall-img-item:first-child:nth-last-child(3),
  .message-bubble .message-text .wall-img .wall-img-item:first-child:nth-last-child(3)~a {
      min-width: 175px;
  }
  .message-bubble .message-text .wall-img .wall-img-item:first-child:nth-last-child(4),
  .message-bubble .message-text .wall-img .wall-img-item:first-child:nth-last-child(4)~a {
      min-width: 125px;
  }
  .message-bubble .message-text .wall-img .wall-img-item:first-child:nth-last-child(5),
  .message-bubble .message-text .wall-img .wall-img-item:first-child:nth-last-child(5)~a:not(:nth-last-of-type(-n+2)),
  .message-bubble .message-text .wall-img .wall-img-item:first-child:nth-last-child(6),
  .message-bubble .message-text .wall-img .wall-img-item:first-child:nth-last-child(6)~a,
  .message-bubble .message-text .wall-img .wall-img-item:first-child:nth-last-child(7)~a:nth-last-of-type(-n+3) {
      min-width: 150px;
  }
}

/* attachment */

.attachments-container {
     display: flex;
     flex-wrap: wrap;
     flex-direction: row;
     width: calc(100% + 20px);
     margin-bottom: -30px
}
 .attachment-box {
     display: flex;
     margin: 0 20px 20px 0;
     background-color: #f4f4f4;
     border-radius: 4px 0 4px 4px;
     font-weight: 600;
     padding: 15px 20px;
     padding-bottom: 45px;
     padding-right: 25px;
     line-height: 24px;
     flex-direction: column;
     color: #666;
     position: relative;
     transition: .3s;
     flex: 0 1 calc(50% - 21px);
     cursor: default;
     position: relative
}
 .single-page-section .attachment-box {
     flex: 0 1 calc(33% - 20px)
}
 .single-page-section .attachments-container {
     margin-bottom: -20px
}
 a.attachment-box {
     cursor: pointer
}
 .attachment-box:before {
     content: "";
     position: absolute;
     top: 0;
     right: 0;
     border-width: 0 20px 20px 0;
     border-style: solid;
     border-color: rgba(0, 0, 0, .15) #fff;
     transition: .3s;
     border-radius: 0 0 0 4px;
     z-index: 5;
}
 a.attachment-box:hover {
     background-color: #66676b;
     color: #fff
}
 a.attachment-box:hover:before {
     border-color: rgba(0, 0, 0, .25) #fff
}
 .attachment-box span {
     font-size: 14px;
     line-height: 20px;
     display: inline-block;
     flex: auto
}
 .attachment-box i {
     display: block;
     font-style: normal;
     font-size: 14px;
     color: #999;
     font-weight: 500;
     margin-top: 10px;
     position: absolute;
     bottom: 10px;
     transition: .3s
}
 a.attachment-box:hover i {
     color: rgba(255, 255, 255, .7)
}
 .attachment-box .remove-attachment {
     position: absolute;
     bottom: 10px;
     right: 10px;
     color: #fff;
     background-color: #dc3139;
     box-shadow: 0 3px 8px rgba(234, 65, 81, .15);
     height: 28px;
     width: 28px;
     line-height: 28px;
     border-radius: 3px;
     font-weight: 500;
     font-size: 14px;
     transition: .3s;
     opacity: 0;
     transform: translateY(3px);
     outline: none!important;
     border: none;
     z-index: 5;
}
 .attachment-box .remove-attachment:before {
     content: "\f34d";
     font-family: line-awesome!important
}
 .attachment-box:hover .remove-attachment {
     opacity: 1;
     transform: translateY(0)
}
 @media(max-width:768px) {
     .attachments-container, .attachments-container .attachment-box {
         display: block;
         width: 100%
    }
}

.attachment-box {
    flex: 0 1 50%;
    max-width: 164px;
}
.attachment-box .attachment-box-with-bg {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    z-index: 1;
    opacity: 0.1;
}
.attachment-box.attachment-box-removed {
    background-color: #ffd9d9;
}
.attachment-box.attachment-box-removed:before {
    border-color: rgba(255, 0, 0, 0.3) #fff;
}
.attachment-box span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* more */

.attachments-container .notification {
    width: calc(100% - 20px);
}
.message-form {
    position: relative;
}