.comments-wrapper{
    max-width: 1024px;
    margin: 0 auto;
    position: fixed;
    bottom: -101%;
    left: 50%;
    height: 100%;
    width: 100%;
    z-index: 25;
    transition: bottom 0.75s ease;
    touch-action: none;
    transform: translateX(-50%);
    padding: 0px 0px 0px 0px;
    overscroll-behavior: contain;
}

.comments{
    background-color: white;    
    padding: 14px;
    padding-right: 4px;
    box-sizing: border-box;
    border: 1px solid #d9d9d9;
    margin: 0px 355px 0px 124px;
    height: 100%;
    padding-bottom: 25px;
    border-radius: 10px;
}

.comments-showed{
    bottom: 0;
    transition: bottom 0.75s ease;
}

.comments .top{
    text-align: center;
    font-size: 14px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    font-weight: bold;
    cursor: n-resize;
}

.comments .top div{
    border-top: 2px solid #808080;
    width: 35px;
    margin: 0 auto;
    height: 8px;
}


.comments .bottom{
    display: flex;
    flex-direction: column;
    gap: 20px;

    overflow-y: scroll;
    height: calc(100% - 32px);
    padding-right: 10px;
    padding-bottom: 20px;
    box-sizing: border-box;
    scrollbar-width: thin;
    overscroll-behavior: contain;
}


.comments .input{
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.comments .input textarea{
    flex: 1 1 auto;
    border-radius: 10px;
    border: 1px solid #eeeeee;

    width: 100%;
    box-sizing: border-box;
}

.comments .input textarea::placeholder{
    color: #d9d9d9;
}


.comments .input .comment-input-left{
    flex: 1 0 auto;
}

.comments .input .comment-input-bottom{
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 12px;
    color: #d9d9d9;
    justify-content: space-between;
}

.comments .input .comment-input-bottom label{
    display: flex;
    gap: 3px;
    align-items: center;
}

.comments .input .comment-input-bottom .comment-image-name{
    display: none;
}

.comments .input.image-is-add .comment-input-bottom .comment-image-name{
    display: flex;
    gap: 5px;
}

.comment-remove-image{
    position: relative;
    cursor: pointer;
    font-weight: bold;
    color: black;
}

.comments .input .comment-input-bottom .comment-add-image-btn{
    cursor: pointer;
}

.comments .input.image-is-add .comment-input-bottom .comment-add-image-btn{
    display: none;
}


.comments .input button{
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    background-image: url(/static/css/pic/run.svg);
    background-color: transparent;
    background-size: contain;
    background-repeat: no-repeat;
    border-radius: 0;
    margin-bottom: 28px;
}


.comments .threads, .comments .thread, .comments .threads, .comments .comms{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comments .comment{
    display: flex;
    flex-direction: row;
    gap: 10px;
    font-size: 14px;
}

.comments .comment .text.deleted{
    color: #ababab;
}

.comments .comment, .comments .input{
    margin-left: 35px;
    /*width: 100%;*/
}

.comments .input{
    width: 100%;
}

.comments .input.temp{
    width: auto;
}

.comments .comment:first-child, .comments .input:first-child{
    margin-left: 0px;
}

.comments .comment:first-child .left img{
    width: 35px;
    height: 35px;
}



.comments .sub-comments{
    margin-left: 35px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comments .comment > .left img{
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
}

.comments .comment > .right{
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1 1 auto;
}

.comments .comment > .right .user-name a{
    color: black;
    text-decoration: none;
    font-size: 13px;
}

.comments .comment > .right .user-name a:hover, .comments .comment > .right .user-name span:hover{
    text-decoration: underline;
}

.comments .comment > .right .user-name .from{
    font-weight: bold;
}

.comments .comment > .right .user-name .to{
    color: #a6a6a6;
    cursor: pointer;
}

.comments .comment{
    transition: all 1s 1s;
    outline: 10px solid transparent;
    border-radius: 1px;
}

.comments .comment.highlight{
    background-color: #e7f2f8;
    outline: 10px solid #e7f2f8;
    transition: all 0s;
}

.comments .comment > .right .text{
    white-space: pre-line;
}

.comments .comment > .right .stat{
    color: #a6a6a6;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comments .comment > .right .stat .like .likes-count{
    /*background-image: url(/static/css/img/like.svg);*/
    cursor: pointer;
    position: relative;
    font-size: 12px;
}

.comments .comment > .right .stat .like .likes-count::before{
    content: '';
    background-size: contain;
    background-repeat: no-repeat;
    display: block;
    position: absolute;
    left: -14px;
    top: -5px;
    height: 14px;
    width: 14px;
    background-image: url(/static/css/img/like.svg);
    opacity: 0.4;
}

.comments .comment > .right .stat .like .likes-count.liked::before{
    background-image: url(/static/css/img/like-red.svg);
    left: -17px;
    top: 2px;
    opacity: 1;
}

.comments .comment > .right .actions{
    color: #a6a6a6;
    font-size: 11px;
    display: flex;
    gap: 4px;
    align-items: center;
}

.comments .comment > .right .actions span.response,
.comments .comment > .right .actions span.edit,
.comments .comment > .right .actions span.remove,
.comments .comment > .right .actions span.sure-y,
.comments .comment > .right .actions span.sure-n{
    cursor: pointer;
}

.comments .comment > .right .actions span.sure{
    display: none;
}

.comments .comment > .right .actions span.response:hover,
.comments .comment > .right .actions span.edit:hover,
.comments .comment > .right .actions span.remove:hover,
.comments .comment > .right .actions span.sure-y:hover,
.comments .comment > .right .actions span.sure-n:hover{
    text-decoration: underline;
}

.comments .comment > .right .actions span.response{
    font-size: 13px;
    font-weight: bold;
}

.comments .comment > .right .actions > .left{
    flex: 1 0 auto;
}


.comments .more-comments{
    color: #419fd9;
    font-size: 13px;
    font-weight: bold;
    margin-left: 45px;
}

.comments .thread .more-comments{
    margin-left: 70px;
}

.comments .more-comments:hover{
    cursor: pointer;
    text-decoration: underline;
}


@media screen and (max-width: 867px){
    .comments-wrapper{
        left: 0;
        transform: none;
        max-width: none;
        
    }

    .comments{
        left: 0;
        width: 100%;
        margin: 0;
        border-radius: 0;
    }
}