.addcomment {
    float: right;
    color: var(--orange);
}

.addcomment:hover {
    text-decoration: none;
    color: var(--yellow);
}


.comment .author {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    margin-bottom: 0;
}

.comment .author a {
    color: var(--black);
    font-weight: 500;
    margin-right: 5px;
}

.comment .author_avatar {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: inline-block;
    margin-right: 10px;
    border: 1px solid var(--bgblack);
}

.comment .user_rating {
    cursor: default;
    font-size: 12px;
    line-height: 25px;
    color: #ffffff;
    width: 25px;
    display: inline-block;
    text-align: center;
    box-shadow: 0 0 0 1px #3a454b;
    border-radius: 7px;
    font-weight: 500;
}

.comment p.comment_text {
    font-size: 15px;
    white-space: break-spaces;
}

.comment p.comment_text.banned-comment {
    color: var(--gray);
    font-style: italic;
    font-size: 12px;
}

.comment-actions__left {
    display: flex;
    margin-right: auto;
}

#commentform .inputwrap.checkbox {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--gray);
}

#commentform .inputwrap.labeled {
    height: 180px;
    border: none;
}

#commentform .inputwrap.labeled textarea {
    width: 100%;
    height: 150px;
    border: none;
    resize: none;
    padding: 15px 20px;
    border-radius: 10px;
    background: var(--bgblack);
    color: white;
    font-size: 14px;
}

#commentform .inputwrap.labeled{
    margin-bottom: 20px;
    margin-top: 0;
}

#commentform .inputwrap.labeled label {
    top: 10px;
    font-size: 12px;
}

.nocomments {
    background-color: var(--bgblack);
    background-image: url(images/Chat_auth.svg);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    background-position: calc(100% - 13px) center;
    background-repeat: no-repeat;
    padding-right: 100px;
    background-size: 80px;
}

.nocomments-p {
    font-size: 14px;
    margin-bottom: 20px;
}

.nocomments h3 {
    color: white;
    font-size: 16px;
}

.nocomments p {
    font-size: 14px;
    font-weight: 300;
    margin-top: 10px;
}

.answer_to {
    font-size: 12px;
    color: var(--lightgray);
    margin-bottom: 0;
    margin-top: 10px;
}

.comment {
    background: var(--bgblack);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
}

.comment.highlighted {
    animation: 1s pulsing infinite;
    z-index: 3;
    position: relative;
}

.comment .author {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
}

.comment.active > .comment_text {
    color: var(--yellow);
}

.comment .author a {
    color: white;
    font-weight: 500;
    margin-right: 5px;
}

.comment .author_avatar {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: inline-block;
    margin-right: 10px;
    border: 1px solid var(--bgblack);
}


.comment .user_rating.green {
    color: #00ff94;
}

.comment .user_rating.red {
    color: #ff2f00;
}

.comment p.comment_text {
    font-size: 15px;
    margin: 20px 0;
    transition: all 0.3s ease;
    word-break: break-word;
    white-space: break-spaces;
}

.comment_date {
    cursor: default;
    font-size: 12px;
    line-height: 25px;
    font-weight: 500;
    color: var(--bglightgray);
    margin-left: auto;
}

.comment .comment {
    border-top: 2px solid var(--bggray);
    border-radius: 0;
    padding: 15px;
    margin: 0;
}


.comment .comment:last-child {
    margin-bottom: -15px;
    border-radius: 0 0 10px 10px;
}

.comment_action {
    display: inline-block;
    background-image: url(/local/components/gtx/comments/templates/.default/reply.svg);
    background-size: 11px;
    background-repeat: no-repeat;
    background-position: center;
    width: 25px;
    height: 25px;
    margin-right: 5px;
    margin-left: 0;
    border-radius: 7px;
    cursor: pointer;
    box-shadow: 0 0 0 1px #3a454b;
    transition: all 0.2s ease;
}

.comment_action:hover {
    filter: grayscale(0);
    opacity: 1;
}


.comment__copy-link {
    background-image: url(images/link.svg);
    cursor: pointer;
}

.comment .edit_link {
    background-image: url(/local/templates/pikuco/images/edit_yellow.svg);
}

.comment .delete_link {
    background-image: url(/local/templates/pikuco/images/delete-yellow.svg);
}

.comment .comment__abuse {
    background-image: url(images/warning.svg);
    margin-right: 0;
}

.comments-list__close-comment-edit {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url(/local/components/gtx/comments/templates/statistics/images/close.svg);
    background-size: contain;
    margin-right: 10px;
    cursor: pointer;
    float: left;
    margin-top: 4px;
}

.editCommentForm textarea {
    width: 100%;
    height: 150px;
    resize: none;
    background: var(--bgblack);
    border: none;
    border-radius: 10px;
    color: white;
    padding: 10px 15px;
}

.replies_wrap {
    width: calc(100% + 30px);
    margin: 0 -15px;
    padding-top: 15px;
    display: none;
}

.reply_show {
    text-align: center;
    font-size: 12px;
    color: var(--yellow);
    cursor: pointer;
    flex: 1;
    line-height: 23px;
    box-shadow: 0 0 0 1px #3a454b;
    border-radius: 7px;
    max-width: 115px;
}

.reply_show span:nth-child(2){
    display: none;
}

.reply_show.active span:nth-child(1){
    display: none;
}

.reply_show.active span:nth-child(2){
    display: block;
}

.comments_wrapper {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}

.comments_wrapper > .comment:not(.order-1):not(.order-2):not(.order-3):not(.order-0) {
    order: 4;
}

#commentform {
    margin-bottom: 25px;
    position: relative;
}

.comments-list .emoji-catalog {
    max-height: unset;
    bottom: auto;
    top: auto;
    position: relative;
    right: 0;
    width: 100%;
    box-shadow: 0 0 10px rgb(0 0 0 / 20%);
    background: var(--bgblack);
    margin-top: -20px;
    margin-bottom: 25px;
}

.comment_text .emoji-symbol {
    font-size: 18px;
}

.comments__user-picker {
    box-shadow: 0 0 10px rgb(0 0 0 / 20%);
    background: var(--bgblack);
    display: flex;
    padding: 0 5px;
    border-radius: 6px;
    margin-top: -20px;
    margin-bottom: 25px;
}

.comments__user-picker-input {
    width: calc(100% - 40px);
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
    padding: 0 10px;
}

.comments__user-picker-button {
    width: 40px;
    height: 40px;
    border: none;
    padding: 10px;
    cursor: pointer;
    background: #0000 url(/local/templates/pikuco/images/icons/personal/unblockuser-g.svg) no-repeat center;
    font-size: 0;
    margin-top: auto;
    margin-bottom: 5px;
    background-size: 23px;
}

.comments__switch-order {
    display: inline-block;
    width: 22px;
    height: 22px;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    float: right;
}
html[lang=ru] .comments__switch-order {
    background-image: url(/local/templates/pikuco/images/icons/filter/sort-cba-y.svg);
}
html[lang=ru] .comments__switch-order.ASC {
    background-image: url(/local/templates/pikuco/images/icons/filter/sort-abc-y.svg);
}
html[lang=en] .comments__switch-order {
    background-image: url(/local/templates/pikuco/images/icons/filter/sort-za-y.svg);
}

html[lang=en] .comments__switch-order.ASC {
    background-image: url(/local/templates/pikuco/images/icons/filter/sort-az-y.svg);
}

#commentform .reply {
    font-size: 13px;
    font-weight: 500;
    color: gray;
    padding: 0 20px;
    margin-bottom: 10px;
    position: relative;
    word-break: break-word;
}

#commentform .close_reply {
    display: inline-block;
    background-image: url(images/close.svg);
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
    width: 20px;
    height: 20px;
    position: absolute;
    left: -4px;
    top: 0;
    cursor: pointer;
}

.comment_leader {
    border-top: 1px solid var(--bggray);
    border-bottom: 1px solid var(--bggray);
    text-align: center;
    margin-top: 15px;
    padding: 5px 0;
    color: var(--yellow);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.test-statistics__column-right .comment_leader,.diagram-link{
    cursor: pointer;
}

#comments-diagram_wrapper{
    background: #263238;
    width: calc(100dvw - 60px);
    height: auto;
    max-width: 600px;
    max-height: 600px;
    padding: 20px;
    border-radius: 10px;
}

#comments-diagram_wrapper canvas{
    max-width: 100%;
    max-height: 100%;
}

.comment_actions {
    display: flex;
}

.comment-rating {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 5px;
}

.comment-rating .comment_action {
    margin-right: 0;
}

.comment-rating .rating-minus,
.comment-rating .rating-plus {
    display: inline-block;
    background-size: 15px;
    background-repeat: no-repeat;
    background-position: center;
    width: 25px;
    height: 25px;
    border-radius: 7px;
    cursor: pointer;
    box-shadow: 0 0 0 1px #3a454b;
    transition: all 0.2s ease;
}

.comment-rating .rating-minus:hover,
.comment-rating .rating-plus:hover {
    filter: grayscale(0);
    opacity: 1;
}

.comment-rating .rating-minus {
    background-image: url(/local/templates/pikuco/images/icons/dislike.svg);
    margin-left: 5px;
}

.comment-rating .rating-plus {
    background-image: url(/local/templates/pikuco/images/icons/like.svg);
}

.comment-rating .rating-minus.deactive,
.comment-rating .rating-plus.deactive {
    filter: grayscale(1);
    opacity: 0.5;
}

.comment-rating .rating-minus.active.clicked {
    animation: red-breathe 300ms ease;
}

.comment-rating .rating-plus.active.clicked {
    animation: green-breathe 300ms ease;
}

.comments__switch-sort {
    margin-right: 5px;
    color: var(--yellow);
    cursor: pointer;
}

@keyframes red-breathe {
    0% {
        background-size: 10px;
        box-shadow: 0 0 0 1px #ff423e;
    }
    70% {
        background-size: 0px;
        box-shadow: 0 0 0 5px #ff423e;
    }
    100% {
        background-size: 10px;
        box-shadow: 0 0 0 1px #ff423e;
    }
}

@keyframes green-breathe {
    0% {
        background-size: 10px;
        box-shadow: 0 0 0 1px #00ff94;
    }
    70% {
        background-size: 0px;
        box-shadow: 0 0 0 5px #00ff94;
    }
    100% {
        background-size: 10px;
        box-shadow: 0 0 0 5px #00ff94;
    }
}

.banCommentForm__row {
    width: calc(100% + 10px);
    margin: 0 -5px;
    display: flex;
    flex-wrap: wrap;
}

.banCommentForm__typeTitle {
    margin-top: 30px;
    font-size: 14px;
    font-weight: bold;
}

.banCommentForm__row input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.banCommentForm__row label {
    flex: 1;
    padding-top: 55px;
    border: 2px solid var(--bgblack);
    background-color: var(--bgblack);
    border-radius: 10px;
    margin: 0 5px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    padding-bottom: 10px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-size: 34px;
    background-repeat: no-repeat;
    background-position: center 10px;
}

.banCommentForm__row input:checked + label {
    border-color: var(--yellow);
}

.banCommentForm__offense {
    background-image: url(images/offense.svg);
}

input:checked + .banCommentForm__offense {
    background-image: url(images/offense-a.svg);
}

.banCommentForm__holywar {
    background-image: url(images/holywar.svg);
}

input:checked + .banCommentForm__holywar {
    background-image: url(images/holywar-a.svg);
}

.banCommentForm__ads {
    background-image: url(images/megaphone.svg);
}

input:checked + .banCommentForm__ads {
    background-image: url(images/megaphone-a.svg);
}

.banCommentForm__nonsense {
    background-image: url(/local/templates/pikuco/images/icons/nonsense.svg);
}

input:checked + .banCommentForm__nonsense {
    background-image: url(/local/templates/pikuco/images/icons/nonsense-a.svg);
}

.banCommentForm__success {
    text-align: center;
    color: var(--yellow);
}

.comments__new-comment-wrap {
    width: 100%;
    min-height: 50px;
    margin-top: auto;
    border-top: 1px solid var(--bggray);
    border-left: 1px solid var(--bggray);
    background: var(--bgblack);
    display: flex;
    flex-wrap: wrap;
    border-radius: 10px;
    padding-right: 5px;
}

.comments__new-comment-wrap textarea {
    border: 0;
    padding: 14px 15px;
    width: 100%;
    background: #0000;
    color: #fff;
    resize: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    word-break: break-word;
    overflow-y: hidden;
    height: 50px;
}

.comments__new-comment-wrap .call-user-button, .comments__new-comment-wrap .emoji-button, .comments__new-comment-wrap button {
    width: 40px;
    height: 40px;
    border: none;
    padding: 10px;
    cursor: pointer;
    background: #0000 url(/local/templates/pikuco/images/icons/messenger/send-message.svg) no-repeat center;
    font-size: 0;
    margin-top: auto;
    margin-bottom: 5px;
}

.comments__new-comment-wrap .emoji-button {
    background: #0000 url(/local/templates/pikuco/images/icons/messenger/emojies.svg) no-repeat center;
}

.comments__new-comment-wrap .call-user-button {
    background: #0000 url(/local/templates/pikuco/images/icons/auth/login-g.svg) no-repeat center;
    margin-left: auto;
}

.comments__show-all {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px 10px;
    background: var(--bgblack);
    font-weight: 500;
    border-radius: 8px;
    color: var(--yellow);
    text-transform: uppercase;
    font-size: 12px;
    margin-top: 0;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    order: 10000000000;
}

.comments__show-all:hover {
    background-color: var(--yellow);
    color: var(--black);
}

@media screen and (max-width: 550px) {
    .banCommentForm__row label {
        width: calc(50% - 10px);
        flex: auto;
        margin-bottom: 10px;
    }
}