/* Compact threaded comments. Scoped to the existing .comments container. */
.comments.panel.inverted {
    box-sizing: border-box;
    width: 100%;
    margin-top: 12px;
    padding: 0 12px 10px !important;
    overflow: hidden;
    background: #4b4b4b;
    border-radius: 10px;
}

.comments .comments-toolbar {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 40px;
    margin: 0 -12px 9px;
    padding: 0 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-sizing: border-box;
}

.comments .comments-login-notice {
    min-width: 0;
    color: #b6b6b6;
    font-size: 13px;
    line-height: 1.3;
    text-align: left;
}

.comments .comments-sort-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 28px;
    margin-left: auto;
    padding: 0 24px 0 9px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
}

.comments .comments-sort-trigger::after {
    content: "";
    position: absolute;
    right: 9px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -5px;
    border-right: 1px solid #bdbdbd;
    border-bottom: 1px solid #bdbdbd;
    transform: rotate(45deg);
}

.comments .comments-toolbar > .cfilter {
    top: 34px;
    right: 10px;
}

.comments .comments-thread-list {
    position: relative;
    padding: 0 0 1px;
    text-align: left;
}

.comments .comment {
    position: relative;
    box-sizing: border-box;
    width: calc(100% - (var(--comment-level, 0) * 16px));
    margin: 0 0 8px calc(var(--comment-level, 0) * 16px);
    padding: 0;
    color: #fff;
    font-size: 13px;
    text-align: left;
}


.comments .comment-layout {
    width: 100%;
    border: 0;
    border-spacing: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.comments .comment-layout td {
    padding: 0;
    vertical-align: top;
}

.comments .comment-layout .comment-avatar {
    width: 32px;
}

.comments .comment-avatar .avatar {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px;
    margin: 0 !important;
    box-sizing: border-box;
}

.comments .comment-avatar img.avatar {
    display: block;
    object-fit: cover;
}

.comments .comment-layout .comment-main {
    min-width: 0;
    padding-left: 8px;
}

.comments .comment div.content {
    display: inline-block;
    width: auto;
    min-width: 0;
    max-width: min(100%, 560px);
    min-height: 0;
    margin: 0;
    padding: 7px 10px;
    box-sizing: border-box;
    border-radius: 10px;
    background: #303030;
    color: #fff;
    line-height: 1.3;
    vertical-align: top;
}

.comments .comment div.content > .uname {
    display: inline-block;
    height: auto;
    margin: 0 !important;
    padding-right: 22px;
    vertical-align: top;
    color: #fff;
    font-size: 12px !important;
    font-weight: 700;
    line-height: 1.25;
}

.comments .comment div.content > .righttop {
    top: 3px;
    right: 6px;
    color: #aaa;
    font-size: 12px;
    letter-spacing: 1px;
    text-decoration: none;
}

.comments .comment p {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.3;
}

.comments .comment .emoji-stickers-only {
    justify-content: flex-start;
    width: auto;
    margin: 2px 0 0;
    gap: 5px;
}

.comments .comment .emoji-stickers-only .emoji-sticker--large {
    flex-basis: 144px;
    width: 144px;
    height: 144px;
}

.comments .comment-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 7px;
    min-height: 16px;
    margin: 3px 0 0 10px;
    color: #999;
    font-size: 11px;
    line-height: 1.25;
}

.comments .comment span.date {
    margin: 0;
    color: #929292;
    font-size: inherit;
}

.comments .comment-meta-separator {
    color: #777;
    user-select: none;
}

.comments .comment-meta a.whiteFlatButton {
    float: none;
    margin: 0;
    padding: 2px 0;
    color: #ddd;
    font-size: inherit;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.comments .comment-meta a.whiteFlatButton:hover,
.comments .comment-meta a.whiteFlatButton.orng {
    color: #eb8d64;
}

.comments .comment.highlight div.content {
    box-shadow: 0 0 0 1px #e27140;
}

.comments .comments-load-all {
    display: table;
    margin: 8px auto 2px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 6px;
    font-size: 12px;
}

@media (max-width: 600px) {
    .comments.panel.inverted {
        padding-right: 8px !important;
        padding-left: 8px !important;
        border-radius: 8px;
    }

    .comments .comments-toolbar {
        min-height: 38px;
        margin-right: -8px;
        margin-left: -8px;
        padding-right: 8px;
        padding-left: 8px;
    }

    .comments .comments-login-notice {
        padding-right: 8px;
        font-size: 12px;
    }

    .comments .comments-sort-trigger {
        min-height: 27px;
        max-width: 48%;
        overflow: hidden;
        font-size: 11px;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .comments .comment {
        width: calc(100% - (var(--comment-level, 0) * 10px));
        margin-bottom: 7px;
        margin-left: calc(var(--comment-level, 0) * 10px);
    }


    .comments .comment-layout .comment-avatar {
        width: 30px;
    }

    .comments .comment-avatar .avatar {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px;
    }

    .comments .comment-layout .comment-main {
        padding-left: 7px;
    }

    .comments .comment div.content {
        max-width: 100%;
        padding: 6px 8px;
        border-radius: 9px;
    }

    .comments .comment .emoji-stickers-only .emoji-sticker--large {
        flex-basis: min(124px, 38vw);
        width: min(124px, 38vw);
        height: min(124px, 38vw);
    }

    .comments .comment-meta {
        gap: 0 6px;
        margin-left: 7px;
        font-size: 10.5px;
    }
}
