.xh-private-comment-toggle {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    vertical-align: middle;
}

.xh-private-comment-toggle.active {
    color: var(--focus-color, #ff5473) !important;
    background: rgba(255, 84, 115, .1) !important;
}

.xh-private-comment-toggle.active i {
    color: currentColor;
}

.comment-content:has(.xinghui-private-comment),
.xh-private-comment-content {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.comment-content:has(.xinghui-private-comment) > p,
.xh-private-comment-content > p {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

.xinghui-private-comment {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 12px 14px;
    border: 1px dashed rgba(96, 91, 255, .75);
    border-radius: 10px;
    background: transparent;
    color: var(--main-color, #555);
    line-height: 1.75;
    box-sizing: border-box;
}

.xinghui-private-comment-badge {
    display: inline-flex;
    align-items: center;
    margin: -1px 0 12px -1px;
    padding: 3px 9px;
    border: 1px dashed rgba(96, 91, 255, .75);
    border-top: 0;
    border-left: 0;
    border-radius: 9px 0 9px 0;
    font-size: 12px;
    line-height: 20px;
    font-weight: 500;
    color: #605bff;
    background: var(--main-bg-color, #fff);
}

.xinghui-private-comment-visible {
    border-color: rgba(96, 91, 255, .75);
}

.xinghui-private-comment-visible .xinghui-private-comment-badge {
    border-color: rgba(96, 91, 255, .75);
    color: #605bff;
}

.xinghui-private-comment-hidden {
    border-color: rgba(140, 150, 170, .5);
    color: var(--muted-color, #777);
    min-height: 92px;
    padding: 0 18px;
}

.xinghui-private-comment-hidden .xinghui-private-comment-badge {
    border-color: rgba(140, 150, 170, .5);
    color: var(--muted-color, #777);
}

.xinghui-private-comment-hidden-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 90px;
    color: #625bff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.xinghui-private-comment-hidden-text i {
    font-size: 18px;
    line-height: 1;
}

.xinghui-private-comment-body {
    min-width: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.8;
    overflow: hidden;
}

.xinghui-private-comment-body > :last-child {
    margin-bottom: 0;
}

.xinghui-private-comment .xh-comment-post-card {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.xinghui-private-comment .xh-comment-post-card-link {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.xinghui-private-comment .xh-comment-post-card-main {
    flex: 1 1 auto !important;
    max-width: none !important;
}

.xinghui-private-comment .xh-comment-post-card-thumb {
    width: 110px !important;
    height: 62px !important;
    flex: 0 0 110px !important;
}

html.dark-theme .xinghui-private-comment-visible,
body.dark-theme .xinghui-private-comment-visible,
body.dark .xinghui-private-comment-visible {
    background: transparent;
}

html.dark-theme .xinghui-private-comment-hidden,
body.dark-theme .xinghui-private-comment-hidden,
body.dark .xinghui-private-comment-hidden {
    background: transparent;
}

html.dark-theme .xinghui-private-comment-badge,
body.dark-theme .xinghui-private-comment-badge,
body.dark .xinghui-private-comment-badge {
    background: var(--main-bg-color, #1f1f1f);
}

html.dark-theme .xinghui-private-comment-hidden-text,
body.dark-theme .xinghui-private-comment-hidden-text,
body.dark .xinghui-private-comment-hidden-text {
    color: #8f8aff;
}

@media (max-width: 768px) {
    .comment-content:has(.xinghui-private-comment),
    .xh-private-comment-content {
        width: 100% !important;
        max-width: 100% !important;
    }

    .xinghui-private-comment .xh-comment-post-card-link {
        gap: 10px;
    }

    .xinghui-private-comment .xh-comment-post-card-thumb {
        width: 34% !important;
        height: auto !important;
        aspect-ratio: 110 / 62;
        flex-basis: 34% !important;
    }

    .xinghui-private-comment-hidden-text {
        min-height: 74px;
        font-size: 14px;
    }
}
