.comments-section {
    text-align: left;
}

.comments-card {
    border-radius: var(--site-panel-radius, 8px);
    padding: 1rem;
}

.comments-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.comments-count {
    color: var(--site-primary);
}

.comment-compose,
.comment-reply-form,
.comment-edit-form {
    margin-bottom: 1rem;
}

.comment-input,
.comment-reply-input,
.comment-edit-input {
    display: block;
    width: 100%;
    min-height: 42px;
    resize: none;
    color: #fff;
    border: 1px solid var(--site-primary);
    border-radius: var(--site-panel-radius, 8px);
    background: rgba(0, 0, 0, .18);
    padding: .45rem .75rem;
    line-height: 1.35;
    overflow: hidden !important;
    overflow-y: hidden !important;
    scrollbar-width: none;
}

.comment-input::-webkit-scrollbar,
.comment-reply-input::-webkit-scrollbar,
.comment-edit-input::-webkit-scrollbar {
    display: none;
}

.comment-join-trigger {
    cursor: pointer;
}

.comment-input:focus,
.comment-reply-input:focus,
.comment-edit-input:focus {
    border-color: var(--site-primary-light, var(--site-primary));
    box-shadow: 0 0 10px color-mix(in srgb, var(--site-primary) 55%, transparent) !important;
    outline: none;
}

.comment-compose-actions,
.comment-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .6rem;
    margin-top: .55rem;
}

.comment-error {
    margin-right: auto;
    color: #ff6b6b;
    font-size: .9rem;
}

.comments-locked {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: .8rem;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: var(--site-panel-radius, 8px);
}

.scene-comment {
    padding: .85rem 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.scene-comment.is-reply {
    margin-left: 2rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(255, 255, 255, .12);
}

.comment-meta {
    font-weight: 600;
}

.comment-meta small {
    margin-left: .45rem;
    color: rgba(255, 255, 255, .58);
    font-weight: 400;
}

.comment-text {
    margin-top: .35rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.scene-comment.is-pending .comment-body {
    opacity: .42;
}

.comment-pending-label,
.comment-rejected-label {
    color: var(--site-primary-light, var(--site-primary));
    font-weight: 600;
    opacity: 1;
}

.comment-rejected-label {
    color: #ff6b6b;
}

.comment-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .45rem;
}

.comment-action {
    color: inherit;
    border: 0;
    background: transparent;
    padding: .1rem .2rem;
    line-height: 1;
}

.comment-action:hover,
.comment-action.is-active {
    color: var(--site-primary-light, var(--site-primary));
}

.comment-score {
    min-width: 1.8rem;
    text-align: center;
}

.comment-action-spacer {
    width: .8rem;
}

.comment-form-actions .btn {
    min-width: 82px;
}

@media screen and (max-width: 576px) {
    .scene-comment.is-reply {
        margin-left: .8rem;
        padding-left: .8rem;
    }

    .comments-locked {
        align-items: flex-start;
        flex-direction: column;
    }
}
