@charset "utf-8";

:root {
    --color-magenta: #CB2C30;
    --color-green: #168D2E;
    --color-blue: #00a1ff;
    --color-orange: #ff8100;
}


.comment {
    padding: 12px 14px;
    border-bottom: 1px solid #EEEEEE;
    position: relative;
}

.comment.selected {
    background: rgba(203, 44, 48, 0.05);
}

.comment.editable .comment-body,
.comment.editable .comment-info {
    display: none;
}

.comment-froala {
    display: none;
}
.comment.editable .comment-froala {
    display: block;
}

.comment-header {
    display: grid;
    grid-template-columns: 30px auto 30px;
    grid-template-rows: auto;
    grid-column-gap: 8px;
    grid-row-gap: 8px;
    margin-bottom: 10px;
}

@media (min-width: 576px) {
    .comment-header {
        grid-template-columns: 44px auto 44px;
        grid-column-gap: 10px;
        grid-row-gap: 10px;
        margin-bottom: 10px;
    }
}


.comment-header__avatar img {
    margin-bottom: 0;
}

.comment-header__username {
    line-height: 1;
    font-size: 13px;
    position: relative;
    word-break: break-word;
}
@media (min-width: 576px) {
    .comment-header__username {
        line-height: 1.2;
        font-size: 16px;
    }
}

.comment-header__username-link {
    line-height: 1.2;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
}

@media (min-width: 576px) {
    .comment-header__username-link {
        line-height: 1.4;
    } 
}

.comment-header__parent-link {
    display: inline-block;
    line-height: 1.2;
    color: #999999;
    text-decoration: none;
    cursor: pointer;
    word-break: break-word;
}

.comment-header__parent-link-icon {
    transform: rotate(180deg);
    background-repeat: no-repeat;
    background-position: center;
    width: 13px;
    height: 19px;
    display: inline-block;
    vertical-align: text-top;
    background-image: url("data:image/svg+xml,%3Csvg class='svg-icon' style='width: 1em; height: 1em;vertical-align: middle;fill: %23999999;overflow: hidden;' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M356.6592 154.99264q17.32608 0 30.0032 12.4928t12.67712 30.16704-12.67712 30.33088l-198.67648 198.67648 409.33376 0q78.00832 0 149.17632 30.33088t122.49088 81.83808 81.83808 122.49088 30.49472 149.34016l0 42.65984q0 17.67424-12.4928 30.16704t-30.16704 12.4928q-17.32608 0-30.0032-12.67712t-12.67712-30.0032l0-42.65984q0-60.66176-23.67488-115.99872t-63.67232-95.3344-95.3344-63.67232-115.99872-23.67488l-409.33376 0 198.67648 199.00416q12.67712 12.67712 12.67712 30.0032 0 17.67424-12.4928 30.33088t-30.16704 12.67712-30.33088-12.67712l-271.33952-271.6672q-12.32896-12.32896-12.32896-30.33088 0-17.67424 12.32896-30.0032l271.33952-271.6672q12.67712-12.67712 30.33088-12.67712z' /%3E%3C/svg%3E");
}

@media (min-width: 576px) {
    .comment-header__parent-link-icon {
        width: 15px;
        height: 23px;
    }
}

.comment-header__tooltip {
    display: none;
    position: absolute;
    background: #FFFFFF;
    color: #000000;
    border: 1px solid #CCCCCC;
    border-radius: 5px;
    z-index: 1;
    bottom: calc(100% + 9px);
    padding: 14px;
    max-width: 100%;
    box-shadow: 0px 3px 7px #00000047;
}

.comment-header__tooltip .comment-header__username {
    white-space: nowrap;
}

@media (min-width: 992px) {
    .comment-header__tooltip {
        display: block;
    }
}

.comment-header__tooltip::after {
    display: block;
    position: absolute;
    content: '';
    width: 20px;
    height: 20px;
    bottom: -11px;
    left: 20%;
    transform: rotate(45deg);
}

.comment-header__tooltip::after {
    background: #FFFFFF;
    border-bottom: 1px solid #CCCCCC;
    border-right: 1px solid #CCCCCC;
    z-index: -1;
    box-shadow: 3px 3px 4px -1px #00000047;
}

.comment-header__link {
    font-size: 14px;
    color: #999999 !important;
    text-decoration: none;
    cursor: pointer;
    text-decoration: none !important;
}
@media (min-width: 576px) {
    .comment-header__link {
        font-size: 16px;
    }
}

.comment-header__menu {
    -webkit-tap-highlight-color: transparent;
    margin-top: -10px;
    padding-top: 10px;
    position: relative;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: right top 10px;
    background-image: url("data:image/svg+xml,%3Csvg width='25' height='5' viewBox='0 0 25 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='22.5' cy='2.5' r='2.5' transform='rotate(-180 22.5 2.5)' fill='black'/%3E%3Ccircle cx='12.5' cy='2.5' r='2.5' transform='rotate(-180 12.5 2.5)' fill='black'/%3E%3Ccircle cx='2.5' cy='2.5' r='2.5' transform='rotate(-180 2.5 2.5)' fill='black'/%3E%3C/svg%3E");
}

.comment-header__menu:empty {
    background: none !important;
}

.comment-header__menu .comment-menu {
    display: none;
    position: absolute;
    background: #FFFFFF;
    border: 1px solid #999999;
    border-radius: 8px;
    padding: 12px 0;
    right: 40px;
    font-size: 15px;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
}

.comment-header__menu.active .comment-menu {
    display: block;
    z-index: 1;
}

.comment-menu__item {
    padding: 10px;
    white-space: nowrap;
}

.comment-menu__item:hover {
    background: #EFEFEF;
}


.comment-body {
    margin-bottom: 10px;
    word-break: break-word;
    padding: 2px 5px;
}
/* Перекрываем .posts p */
.comment-body p{
    margin-bottom: 0;
}
.expert-comment .comment-body {
    background: rgba(153, 153, 153, 0.1);
    border-radius: 16px;
}
.comment-body img {
    cursor: pointer;
    max-width: 200px;
}

.comment-body__quoted-name {
    color: var(--color-magenta);
    font-weight: 700;
    cursor: pointer;
}

.comment-info {
    display: grid;
    grid-template-columns: 70px auto max-content;
    grid-template-rows: auto;
    grid-column-gap: 8px;
    grid-row-gap: 8px;
}

@media (min-width: 576px) {
    .comment-info {
        grid-template-columns: 150px auto max-content;
        grid-column-gap: 10px;
        grid-row-gap: 10px;
    }
}

.comment-info__time {
    font-size: 13px;
    color: #999999;
}

.comment-info__time-part {
    display: none;
}
@media (min-width: 576px) {
    .comment-info__time {
        font-size: 16px;
    }
    .comment-info__time-part {
        display: inline;
    }
}

.comment-info__rating {
    display: flex;
    gap: 10px;
    position: relative;
}

.comment-info__rating .comment-rating {
    position: relative;
    float: right;
    right: 0;
}

.comment-info__answer-area {
    font-size: 13px;
    color: var(--color-magenta);
}

@media (min-width: 576px) {
    .comment-info__answer-area {
        font-size: 14px;
    }
}

.children-comments-open,
.children-comments-close {
    font-weight: 700;
    font-size: 16px;
    color: var(--color-magenta);
    cursor: pointer;
    margin-top: 16px;
    margin-bottom: 10px;
    text-decoration: underline;
}

.children-comments-close,
.children-comments-area {
    padding-left: 20px;
}
.children-comments-area {
    display: none;
}


@media (min-width: 576px) {
    .children-comments-close,
    .children-comments-area {
        padding-left: 40px;
    }
}

@media (min-width: 1200px) {
    .children-comments-close,
    .children-comments-area {
        padding-left: 60px;
    }
}

.children-comments-close {
    display: none;
}
.root-comment-area.expand .children-comments-open {
    display: none;
}
.root-comment-area.expand .children-comments-close {
    display: block;
}
.root-comment-area.expand .children-comments-area {
    display: block;
}

.comment-info__answer {
    cursor: pointer;
}

/* helpers */
.clamp-4 {  
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  text-overflow: ellipsis;
}