.yump-comment-thread,
.public-profile-blog-comments {
    display: grid;
    gap: 0.7rem;
    margin-top: 0.9rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(var(--terracotta-rgb), 0.18);
}

.yump-comment-thread {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.public-profile-blog-comments-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: rgba(255, 247, 242, 0.64);
    font-family: 'Merriweather', serif;
    font-size: 0.74rem;
}

.public-profile-blog-comments-head .future-module-label {
    margin: 0;
}

.public-profile-blog-comment-list {
    --profile-comment-avatar-size: 30px;
    --profile-comment-gap: 0.65rem;
    --profile-comment-reply-indent: clamp(1rem, 4vw, 2.25rem);
    display: grid;
    gap: 0.75rem;
}

.public-profile-blog-comment {
    display: flex;
    gap: var(--profile-comment-gap);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(var(--terracotta-rgb), 0.15);
}

.public-profile-blog-comment:has(+ .public-profile-blog-comment.is-reply) {
    border-bottom: 0;
}

.public-profile-blog-comment.is-reply {
    position: relative;
    margin-left: var(--profile-comment-reply-indent);
    padding-left: 0.65rem;
    border-left: 1px solid rgba(var(--terracotta-rgb), 0.18);
}

.public-profile-blog-comment.is-reply::before {
    content: "";
    position: absolute;
    top: -0.375rem;
    left: max(0px, calc(var(--profile-comment-avatar-size) + var(--profile-comment-gap) - var(--profile-comment-reply-indent)));
    right: 0;
    border-top: 1px solid rgba(var(--terracotta-rgb), 0.15);
    pointer-events: none;
}

.public-profile-blog-comment:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.public-profile-blog-comment-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(var(--terracotta-rgb), 0.18);
    color: var(--yump-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
    flex: 0 0 30px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid rgba(var(--terracotta-rgb), 0.25);
}

.public-profile-blog-comment-body {
    flex: 1;
    min-width: 0;
}

.public-profile-blog-comment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.2rem;
    min-height: 30px;
}

.public-profile-blog-comment-head :is(a, strong) {
    color: var(--yump-gold);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
}

.public-profile-blog-comment-head time {
    color: rgba(255, 247, 242, 0.52);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-align: right;
    text-transform: uppercase;
    white-space: nowrap;
}

.public-profile-blog-comment p {
    margin: 0 0 0.35rem;
    color: var(--auth-copy, rgba(255, 249, 246, 0.82));
    font-family: 'Merriweather', serif;
    font-size: 0.82rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: normal;
}

.comment-image-row,
.public-profile-blog-comment-images {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.45rem 0;
}

.comment-thumb-btn,
.public-profile-blog-comment-images a {
    appearance: none;
    width: 58px;
    height: 58px;
    padding: 0;
    background: transparent;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(var(--terracotta-rgb), 0.22);
}

.comment-thumb-img,
.public-profile-blog-comment-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.public-profile-blog-comment-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    color: rgba(255, 247, 242, 0.52);
    font-size: 0.76rem;
}

.public-profile-blog-comment-action {
    border: 0;
    background: transparent;
    color: rgba(255, 247, 242, 0.56);
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0;
    font: inherit;
    line-height: 1;
}

.public-profile-blog-comment-action:hover,
.public-profile-blog-comment-action:focus-visible,
.public-profile-blog-comment-action.is-active {
    color: var(--yump-gold);
}

.public-profile-blog-comment-action:disabled {
    cursor: default;
    opacity: 0.62;
}

.public-profile-blog-reply-slot {
    margin-top: 0.6rem;
}

.public-profile-blog-reply-slot .public-profile-blog-comment-form {
    max-width: 520px;
}

.public-profile-blog-comment-actions span,
.public-profile-blog-comment-actions button {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
}

.public-profile-blog-comment-form,
.public-profile-feedback-form {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 0;
    align-items: end;
    border: 1px solid rgba(var(--terracotta-rgb), 0.28);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.public-profile-feedback-form.has-no-attach {
    grid-template-columns: minmax(0, 1fr) 38px;
}

.public-profile-blog-comment-attach,
.public-profile-feedback-attach,
.public-profile-blog-comment-submit {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--yump-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: end;
}

.public-profile-blog-comment-attach:hover,
.public-profile-blog-comment-attach:focus-visible,
.public-profile-blog-comment-attach.is-active,
.public-profile-feedback-attach:hover,
.public-profile-feedback-attach:focus-visible,
.public-profile-feedback-attach.is-active,
.public-profile-blog-comment-submit:hover,
.public-profile-blog-comment-submit:focus-visible {
    background: rgba(var(--terracotta-rgb), 0.16);
    color: #fff7f2;
}

.public-profile-blog-comment-submit:disabled {
    opacity: 0.48;
    pointer-events: none;
}

.public-profile-blog-comment-file,
.public-profile-feedback-file {
    display: none !important;
}

.public-profile-blog-comment-form,
.public-profile-feedback-form {
    --profile-comment-input-min-height: 36px;
    --profile-comment-input-border: 0;
    --profile-comment-input-background: transparent;
    --profile-comment-input-color: #fff7f2;
    --profile-comment-input-padding: 0.48rem 0.85rem 0.28rem;
    --profile-comment-input-font-family: 'Merriweather', serif;
    --profile-comment-input-font-size: 0.82rem;
    --profile-comment-input-font-weight: 400;
    --profile-comment-input-line-height: 1.35;
    --profile-comment-input-placeholder: rgba(255, 239, 231, 0.5);
    --profile-comment-input-focus: rgba(var(--yump-gold-rgb), 0.22);
}

.public-profile-blog-comment-form :is(input[type="text"], textarea),
.public-profile-feedback-form :is(input[type="text"], textarea) {
    width: 100%;
    min-height: var(--profile-comment-input-min-height);
    max-height: 9.6rem;
    border: var(--profile-comment-input-border);
    border-radius: 0;
    background: var(--profile-comment-input-background);
    color: var(--profile-comment-input-color);
    padding: var(--profile-comment-input-padding);
    font-family: var(--profile-comment-input-font-family);
    font-size: var(--profile-comment-input-font-size);
    font-weight: var(--profile-comment-input-font-weight);
    line-height: var(--profile-comment-input-line-height);
    overflow-y: auto;
    resize: none;
    scrollbar-width: thin;
    align-self: stretch;
    outline: none;
    box-shadow: none;
    caret-color: rgba(var(--yump-gold-rgb), 0.92);
}

.public-profile-blog-comment-form :is(input[type="text"], textarea)::placeholder,
.public-profile-feedback-form :is(input[type="text"], textarea)::placeholder {
    color: var(--profile-comment-input-placeholder);
}

.public-profile-blog-comment-form :is(input[type="text"], textarea):focus,
.public-profile-feedback-form :is(input[type="text"], textarea):focus {
    outline: none;
    box-shadow: inset 0 0 0 1px var(--profile-comment-input-focus);
}

.public-profile-comment-counter {
    display: none;
    width: 100%;
    text-align: right;
    padding: 0.24rem 0.08rem 0;
    color: rgba(255, 247, 242, 0.52);
    font-family: 'Merriweather', serif;
    font-size: 0.66rem;
    line-height: 1;
}

.public-profile-comment-counter.is-over-limit {
    color: #ffb199;
}

.public-profile-comment-counter.is-visible,
.public-profile-blog-comment-form:focus-within + .public-profile-comment-counter,
.public-profile-blog-comment-form.is-comment-focused + .public-profile-comment-counter,
.public-profile-feedback-form:focus-within + .public-profile-comment-counter,
.public-profile-feedback-form.is-comment-focused + .public-profile-comment-counter {
    display: block;
}

.public-profile-blog-comment,
.public-profile-feedback-item,
.public-profile-blog-comment-body {
    min-width: 0;
}

.public-profile-blog-comment p,
.public-profile-feedback-item span {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.public-profile-blog-comment-selected {
    color: rgba(255, 247, 242, 0.58);
    font-size: 0.72rem;
    padding-left: 0.65rem;
}

.yump-comment-empty-composer {
    padding-top: 0.1rem;
}

.yump-comment-main-form {
    margin-top: 0.2rem;
}

@media (max-width: 575.98px) {
    .public-profile-blog-comment-form {
        max-width: min(100%, calc(100vw - 4rem));
    }

    .public-profile-feedback-form {
        max-width: min(100%, calc(100vw - 4rem));
    }
}

.comment-image-modal-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.comment-images-dialog {
    max-width: min(1200px, calc(100vw - 1rem));
}

.comment-image-modal-author {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.comment-image-nav {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    padding: 0;
    flex: 0 0 auto;
}

.comment-image-modal-img {
    max-width: calc(100% - 110px);
    max-height: 82vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(var(--terracotta-rgb), 0.2);
}

@media (max-width: 575.98px) {
    .public-profile-blog-comment-list {
        --profile-comment-reply-indent: 0.9rem;
    }

    .public-profile-blog-comment.is-reply {
        margin-left: var(--profile-comment-reply-indent);
    }
}
