/*messages*/
#messages .product-link {
    display: block;
    width: fit-content;
}
#header #messages {
    height: 26px;
    margin-left: 20px;
}

#header #messages #loader {
    text-align: center;
    margin-top: 20px;
}
#header #messages #loader .loader {
    display: inline-block;
    border: 4px solid #dedede;
    border-radius: 50%;
    border-top: 4px solid #676767;
    width: 40px;
    height: 40px;
    -webkit-animation: spin 1.5s linear infinite;
    animation: spin 1.5s linear infinite;
}
#header #messages .mess {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    color: #999;
}
#header #messages .message {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
    max-height: 50px;
}
#header #messages .message span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#header #messages .messages-icon {
    position: relative;
    width: 26px;
    height: 26px;
    background: url(../svg/envelope.svg) no-repeat;
    background-position: center 0;
    background-size: 26px;
    cursor: pointer;
}
#header #messages .change-img {
    background: url(../svg/envelope-fill.svg) no-repeat;
    background-position: center 0;
    background-size: 26px;
}
#header #messages .messages-icon .new_messages {
    position: absolute;
    top: -6px;
    right: -4px;
    height: 18px;
    min-width: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    font-size: 10px;
    color: #fff;
    background-color: #F36AA4;
    cursor: pointer;
}
#messages-update-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 20px;
    right: 15px;
    height: 650px;
    max-height: 70vh;
    max-width: 500px;
    width: 100%;
    background: #F6F6F6;
    box-shadow: 0px 1px 5px rgb(0 0 0 / 30%);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all .1s;
    z-index: 1001;
}
.message-blue,
.message-orange {
    max-width: 336px;
    min-width: 150px;
    width: fit-content;
    position: relative;
    padding: 8px 14px;
    text-align: left;
    font: 400 .9em 'Open Sans', sans-serif;
    border-radius: 14px 14px 0 14px;
    box-shadow: 1px 2px 3px rgb(0 0 0 / 16%);
}
.message-blue{
    background-color: #2C57B6;
    color: #fff;
    border-radius: 14px 14px 0 14px;
}
.message-orange {
    background-color: #f7f7f7;
    border-radius: 14px 14px 14px 0;
}

#messages.open #messages-update-menu {
    top: 70px;
    visibility: visible;
    opacity: 1;
}
#messages-update-menu .update-header {
    position: relative;
    background: #eaeaea;
    z-index: 2;
    padding: 8px 10px;
    align-items: center;
    justify-content: space-between;
    display: flex;
    height: 55px;
}
#messages .close-message-modal {
    width: 30px;
    height: 30px;
    cursor: pointer;
}
#messages-update-menu .update-header h4 {
    margin: 0;
    padding: 20px;
    line-height: 20px;
}
#messages-update-menu .msgs {
    padding-bottom: 10px;
    position: relative;
    height: 100%;
    overflow-y: auto;
    background: white;
}

@color-green: #97cb50;
@color-medium-gray: #7B7B7B;
@color-dark-gray: #2c2c2c;
@color-white: #ffffff;
@color-black: #000000;

.ui.message {
    box-shadow: none !important;
    color: @color-dark-gray !important;
}


.ui.positive.message {
    background-color: #97cb50;
}

.close {
    color: fadeout(@color-dark-gray, 60%);

    &:hover {
        color: fadeout(@color-dark-gray, 40%);
    }
}

.fa-check-circle {
    font-size: 14px;
    position: relative;
    bottom: 1px;
    margin-right: 4px;
    opacity: 0.75;
}


.msg-container {
    position: relative;
    height: 200px;
}

.new-message::-webkit-scrollbar {
    display: none;
}
#messages-update-menu .msgs::-webkit-scrollbar {
    width: 4px;
}
#messages-update-menu .msgs::-webkit-scrollbar-track {
    display: none;
    background: #efefef;
}
#messages-update-menu .msgs::-webkit-scrollbar-thumb {
    display: none;
    background: #777;
}
#messages-update-menu .msgs::-webkit-scrollbar-track,
#messages-update-menu:hover .msgs::-webkit-scrollbar-thumb {
    display: block;
}
#messages-update-menu .msgs::-webkit-scrollbar-thumb:hover {
    background: #555;
}

#messages-update-menu .msgs .msg .created_at {
    text-align: right;
    color: #838383;
    display: block;
    font-size: 11px;
    margin-top: 4px;
}
#messages-update-menu .msgs .msg {
    display: flex;
    padding: 10px 16px;
    transition: all .2s;
    font-size: 14px;
    line-height: 18px;
    cursor: pointer;
    border-bottom: 1px solid #efefef
}
#messages .support-chat {
    background: #8dc0ff !important;
}
#messages .msg .msg_f {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}
#messages-update-menu .msgs .msg.fixed {
    background: #d1e7f1;
}
#messages-update-menu .msgs .msg:hover {
    background-color: #f2f2f2;
}
#messages-update-menu .msgs .msg .avatar {
    position: relative;
    margin-right: 16px;
    height: 76px;
    width: 76px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 1px 1px 3px rgb(0 0 0 / 20%);
    border-radius: 50%;
    transition: all .2s;
}
#messages-update-menu .msgs .msg .avatar.svg {
    padding: 14px;
}
#messages-update-menu .msgs .msg:hover .avatar {
    background-color: #fff;
}
#messages-update-menu .msgs .msg .avatar.svg > img {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 50px;
    max-height: 40px;
    object-fit: contain;
}
#messages-update-menu .msgs .msg .avatar.not_svg > img {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 100%;
    max-height: 100%;
}
#messages-update-menu .msgs .msg .info {
    flex: 1;
}
#messages-update-menu .msgs .msg .info > div {
    margin-bottom: 2px;
}
#messages-update-menu .msgs .msg .info > div:last-child {
    margin-bottom: 0;
}
#messages-update-menu .msgs .msg .info > .note_date {
    color: #777;
    font-size: 12px;
}

#messages-update-menu .msgs .msg .info .note_edit {
    cursor: pointer;
    text-decoration: underline;
}
#messages-update-menu .msgs .msg .info .publisher_name {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}
#messages-update-menu .msgs .msg .info .newpost_link {
    color: inherit;
    text-decoration: underline;
}

#messages-update-menu .msgs .msg .nots_picture {
    height: 76px;
    margin-left: 16px;
}
#messages-update-menu .msgs .msg .nots_picture > .in {
    height: 76px;
    width: 76px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-shadow: 1px 1px 3px rgb(0 0 0 / 20%);
    overflow: hidden;
}
#messages-update-menu .msgs .msg .nots_picture .in > img {
    display: block;
    height: 100%;
}

#messages-update-menu .no_messages {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#messages-update-menu .messages_icon {
    height: 100px;
    width: 100px;
    margin-bottom: 30px;
    background: url('../png/larg_mess.png') center center no-repeat;
    background-size: contain;
    filter: grayscale(80%);
    opacity: 0.3;
}
#messages .message-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#messages .message-author-img-block {
    position:relative;
    margin-right: 20px;
}

#messages .new-message-count {
    position: absolute;
    top: -6px;
    right: -4px;
    height: 18px;
    min-width: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    font-size: 10px;
    color: #fff;
    background-color: #F36AA4;
    cursor: pointer;
}

#messages .parent-message-block {
    /*width: 100%;*/
    /*position: relative;*/
    /*height: 100px;*/
}
#messages .bldo {
    display: flex;
    flex-direction: column;
}
#messages .child-message-fixed-block {
    width: 100%;
    display: none;
    background: white;
}

#messages .msg-close {
    color: white;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    margin-right: 10px;
}
#messages .user_url {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: black;
    font-weight: 600;
}
#messages .arrow-left {
    height: 22px;
    width: 22px;

}
.message-gif {
    width: 280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

#messages .send_message img{
    transform: rotate(180deg);
    filter: invert(1);
}
#messages .send_message {
    margin: 0;
    background-color: #2c57b6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.5;
    height: 30px;
    width: 30px;
    border-radius: 50%;
}

#messages .new-message {
    background: #F7F7F7;
    resize: none;
    height: 30px;
    border-radius: 5px;
    padding: 3px 15px;
    margin-right: 15px;
    border: none;
}

#messages .product-block {
    display: flex;
    justify-content: start;
    max-width: 100%;
    margin-bottom: 13px;
    border-radius: 7px;
    margin-top: 15px;
    border: 1px solid #cbccce;
    width: fit-content;
    background: white;
    overflow: hidden;
}
#messages .del-for-sent {
    padding: 5px 10px;
}
#messages .product-main-block {
    text-decoration: none;
    color: black;
    position: relative;
}
#messages .buy-x-icon {
    display: flex;
    align-items: center;
    position: absolute;
    right: 5px;
    top: 5px;
}
#messages .product-block .img-block{
    width: 120px;
    height:120px;
    background: white;
    border-right: 1px dashed gray;
    padding: 0 5px;
    display: flex;
    align-items: center;
}
#messages .product-info-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-right: 10px;
    max-width: 165px;
    padding: 0 10px;
}
#messages .product-block-inputs input:focus {
    border: 1px solid #919191;
    padding: 5px 10px;
}
#messages .product-block-inputs{
    padding: 5px 10px;
}

#messages .product-block-inputs .mr-set {
    margin-bottom: 13px;
    margin-right: 13px;
}
#messages .buy_request_fields {
    color: #79bacf;
}
#messages .product-block-inputs .sec {
    display: flex;
    align-items: center;
}

#messages .product-main-block a {
    color: black;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
}
#messages .pr-block {
    border-bottom: 3px solid #cbccce;
    margin-bottom: 5px;
    padding: 5px 10px;
}
#messages .edit-message {
    background: url(../svg/menu_icon.svg) center center no-repeat;
    font-size: 12px;
    width: 14px;
    height: 14px;
    background-size: 14px;
    cursor: pointer;
    opacity: 0.5;
    margin-right: 10px;
    &:hover {
        opacity: 1;
    }
}

#messages .edit-message-icons {
    display: flex;
    align-items: center;
}

#messages .ok-edit-message{
    background: url(../png/ok-icon.png) center center no-repeat;
    font-size: 12px;
    width: 20px;
    height: 20px;
    background-size: 20px;
    cursor: pointer;
    display: block;
}
#messages .cancel-edit-message{
    background: url(../png/x-icon.png) center center no-repeat;
    font-size: 12px;
    width: 20px;
    height: 20px;
    background-size: 20px;
    cursor: pointer;
    display: block;
}

#messages textarea[name=edited_message] {
    resize: none;
    border: none;
    background: white;
    line-height: 15px;
    min-height: 55px;
    margin-bottom: 5px;
    min-width: 260px;
    font-size: 12px;
    background: #e9e1e1;
}

.success-message .desc{
    color: white;
    margin: 0;
    text-align: center;
}
.success-message {
    position: fixed;
    z-index: 1005;
    background: #bee2be;
    width: 200px;
    top: 100px;
    right: -300px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: white;
    font-weight: bold;
}
.error-message {
    position: fixed;
    z-index: 1005;
    background: #ed4f4f;
    width: 200px;
    top: 100px;
    right: -300px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
#messages .message-date {
    font-weight: 500;
    font-size: 10px;
    margin: 5px 0 0 0;
    opacity: .7;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#messages .text-bold{
    font-weight: bold;

}
.date-hover {
    display: none;
    position: absolute;
    line-height: 20px;
    background: #ffffff82;
    border-radius: 8px;
    padding: 5px 8px;
    color: #685353;
}
.message-blue:hover .date-hover {
    bottom: -10px;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 13;
    font-size: 10px;
    line-height: 10px;
    width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.message-orange:hover .date-hover {
    right: 0;
    z-index: 5;
    font-size: 10px;
    line-height: 10px;
    width: 60px;
    left: 0;
    margin: 0 auto;
    bottom: -10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#messages .cont-blue {
    display: flex;
    justify-content: end;
    margin-right: 15px;
    margin-top: 10px;
    align-items: center;
    &:hover > .edit-message {
        opacity: 1;
    }
}
#messages .reply-icon {
    width: 18px;
    opacity: 0.3;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
}
#messages .cont-orange img {
    vertical-align: baseline !important;
}
#messages .cont-orange {
    display: flex;
    justify-content: start;
    margin-left: 15px;
    margin-top: 10px;
    &:hover > .reply-icon {
        opacity: 1;
    }
}
#messages textarea[name=edited_message]::-webkit-scrollbar {
    display: none;
}
#messages .author-name {
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 5px;
}

#messages .curent-message {
    /*max-height: 60px;*/
    overflow: hidden;
    margin: 0;
    overflow-wrap: break-word;
    max-width: 300px;
}
#messages .message-blue  .more_mess {
    font-size: 10px;
    color: white;
    cursor: pointer;
}
#messages .message-orange .more_mess {
    font-size: 8px;
    color: black;
    cursor: pointer;
}
.new_brand_message {
    position: absolute;
    right: -8px;
    top: -11px;
    background: #8fb78f;
    border-radius: 5px;
    padding: 0px 3px;
    color: white;
}
#messages .message-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}
#messages .maximum-height {
    max-height: fit-content !important;
}
#messages .popup-actions {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: -88px;
    top: 50%;
    transform: translate(0, -50%);
    padding: 4px;
    background: white;
    border: 1px solid #ebe4e4;
    border-radius: 5px;
    cursor: pointer;
    color: black;
    opacity: 0.6;
}
#messages .popup-actions span {
    padding: 2px;
    &:hover {
        background: #efefef;
        border-radius: 4px;
    }
}
#messages .msg_read {
    color: lime;
}
#messages .cont-orange .delete-message-text {
    color: black;
    opacity: 0.6;
    margin: 0 0px 5px 0;
}
#messages .cont-blue .delete-message-text {
    color: white;
    opacity: 0.6;
    margin: 0 0 5px 0;
}
#messages .bl-or-deleted {
    position: relative;
}

#messages #popup-container {
    display: none;
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 104%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    align-items: center;
}

#messages #popup-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 10px 10px 0 10px;
    border: 1px solid #888;
    width: fit-content;
    height: 0;
    border-radius: 10px;
    text-align: center;
}

#messages .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

#messages .close:hover,
#messages .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#messages .msgs-st {
    padding: 0 !important;
    overflow: inherit !important;
}
#messages .reply_block {
    padding: 10px 18px;
    background: #F0F2F5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#messages .reply_block .reply_f {
    border-left: 4px solid #06CF9C;
    padding: 0 10px;
}
#messages .message-block-s {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: white;
    padding: 25px 15px 15px 15px;
    border-top: 1px solid #f3e1e1;
}
#messages .reply_block .reply-f-m {
    margin: 0;
    max-height: 34px;
    overflow: hidden;
    font-size: 12px;
}
#messages .no-message{
    text-align: center;
    color: #a4a4b9;
    background: lavenderblush;
}
#messages .request-types {
    list-style-type: none;
    color: #827c7c;
}
#messages .req-types-subject {
    display: flex;
    align-items: center;
}
#messages .deleted-msg {
    justify-content: end;
    margin: 0;
}
#messages .reply-mess .reply-mess-msg {
    font-size: 10px;
    margin: 0;
    max-height: 32px;
    overflow: hidden;
}
#messages .reply-mess {
    background: #f9f4f4;
    color: #a17d7d;
    padding: 3px 10px;
    margin-bottom: 6px;
    border-radius: 8px;
    border-left: 4px solid #06CF9C;
}
#messages .delete-mess-ok-button {
    background: url(../png/delete.png) center center no-repeat;;
    color: white;
    background-size: 30px;
    width: 40px;
    height: 40px;
    border:none;
}
#messages .dont-delete-mess-button {
    background: url(../svg/no.svg) center center no-repeat;;
    color: white;
    background-size: 30px;
    width: 40px;
    height: 40px;
    border:none;
}
#messages .edit-buttons {
    background: white;
    color: black;
    width: fit-content;
    border: 1px solid #bbb8b8;
    border-radius: 5px;
}
#messages .search-message-block {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
}
#messages .search-fix {
    margin-right: 15px;
    position:relative;
}
#messages .search-block {
    width: 70%;
}
#messages .search-block input {
    height: 28px;
    border: none;
    background: white;
    border-radius: 15px;
}
#messages .mess-email-block{
    align-items: center;
    position:absolute;
    right: 70px;
    display: none;
}
#messages .created_date_mess {
    margin:0 5px 0 0;
}
#messages .copy-img-block {
    font-size: 10px;
    width: 24px;
    cursor: pointer;
}
.audio-change{
    cursor: pointer;
    height: 20px;
    width: 20px;
    margin-right:6px;
}

#messages .sender-user-photo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 6px;
}

#messages .pr-ms-bl {
    display: none;
    margin-left: 15px;
    margin-top: 15px;
}
.messgae-se {
    margin-top: 10px;
    border-radius: 30px;
    border: 1px solid #efe7e7;
    width: 100%;
    text-align: center;
}
#messages .chat-img-for-sup img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
#messages .chat-img-for-sup {
    display: block;
    width: 75px;
    height: 75px;
    margin-top: 10px;
}
#messages .for-del-mess {
    flex: 1 0 auto;
    width: 30px;
    height: 30px;
    margin-right: 15px;
    cursor: pointer;
}
#messages .preview-mess-block {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#messages #image-mess-preview {
    width: 100px;
    height: 100px;
    position: relative;
}
#messages .prew-img-mess {
    right: 0;
    top: 0;
    position: absolute;
    background: white;
    height: 17px;
    width: 17px;
    cursor:pointer;
}
#messages .pr-ms-for-del {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
#messages .message-block-s {
    border-top: none !important;
}
.child-message-fixed-block {
    border-top: 1px solid #f3e1e1;
}
#messages .reply-block img {
    width: 100%;
}
#messages .reply-block {
    font-weight: bold;
    cursor: pointer;
    display: block;
    width: 24px;
    height: 24px;
}

/*dialogs*/
.brands-messages .pair_us {
    display: flex;
    align-items: center;
    gap: 30px;
    border: 1px solid;
    border-radius: 5px;
    padding: 5px 10px;
    min-width: 280px;
    justify-content: space-between;
    cursor: pointer;
}
.brands-messages .mess-head {
    padding: 5px 0;
    border-bottom: 2px solid grey;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-around;
    position: sticky;
    top: 0;
    z-index: 1002;
    background: white;
}
.brands-messages #overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Полупрозрачный черный фон */
    z-index: 1001;
}
.brands-messages .messageng-block {
    background: white;
    overflow: auto;
    border-radius: 10px;
    width: 800px;
    display: none;
    height: 800px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1002;
}
.brands-messages .messageng-block::-webkit-scrollbar {
    width: 4px;
}
.brands-messages .messageng-block::-webkit-scrollbar-track {
    display: none;
    background: #efefef;
}
.brands-messages .messageng-block::-webkit-scrollbar-thumb {
    display: none;
    background: #777;
}
.brands-messages .messageng-block::-webkit-scrollbar-track,
.brands-messages .messageng-block::-webkit-scrollbar-thumb {
    display: block;
}
.brands-messages .messageng-block::-webkit-scrollbar-thumb:hover {
    background: #555;
}
.brands-messages .dialog-icon {
    width: 50px;
    height: 50px;
}
.brands-messages .dialog-user {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}
.brands-messages #overlay .close-pop-br {
    cursor: pointer;
    position:absolute;
    right: 10px;
    top: 10px;
    background: white;
    padding: 2px;
}
.brands-messages .dialog-users {
    display: flex;
    align-items: center;
    flex-direction: column;
}

#messages .complaint p {
    margin: 0;
}
#messages .complaint a {
    color: black;
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
}
#messages .complaint {
    border: 1px solid #d7d7d7;
    border-radius: 5px;
    margin: 5px 5px;
    background: #f1f1f1;
    border-left: 3px solid;
}
#messages .complaint .product-info-block {
    max-width: fit-content;
    padding: 4px 10px;
}
#messages .complaint .product-block {
    margin: 0;
}
#messages .complaint_se p {
    color: red;
    font-size: 11px;
    margin-bottom: 6px;
}
#messages .complaint_se {
    font-size: 12px;
    border: 1px solid #d7d7d7;
    margin: 5px 5px;
    border-radius: 5px;
    background: #f1f1f1;
    border-left: 3px solid red;
    min-width: 300px;
    display: block;
    padding: 6px 6px;
}