.comments-template {
    background: #fff;
    color: #111827;
    font-family: IRANSans, Tahoma, Arial, sans-serif;
    margin: 28px 0;
}

.comments-template ._sep {
    background: #f1f2f4;
    height: 8px;
    margin-bottom: 22px;
    width: 100%;
}

.comments-template #respond {
    margin: 0;
}

.comments-template .comment-reply-title {
    color: #1f2937;
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.8;
    margin: 0 0 14px;
}

.comments-template .comment-reply-title small {
    font-size: 12px;
    font-weight: 400;
    margin-right: 10px;
}

.comments-template .comment-form {
    display: grid;
    gap: 12px;
}

.comments-template .comment-form-frame {
    align-items: flex-start;
    display: grid;
    gap: 12px;
    grid-template-columns: 42px minmax(0, 1fr);
}

.comments-template .comment-form-avatar {
    align-items: center;
    background: #f5f6f8;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    height: 42px;
    justify-content: center;
    margin-top: 1px;
    width: 42px;
}

.comments-template .comment-form-avatar span {
    background: #9ca3af;
    display: block;
    height: 20px;
    width: 20px;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12c2.761 0 5-2.239 5-5s-2.239-5-5-5-5 2.239-5 5 2.239 5 5 5Zm0 2c-4.418 0-8 2.239-8 5v1c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2v-1c0-2.761-3.582-5-8-5Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12c2.761 0 5-2.239 5-5s-2.239-5-5-5-5 2.239-5 5 2.239 5 5 5Zm0 2c-4.418 0-8 2.239-8 5v1c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2v-1c0-2.761-3.582-5-8-5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.comments-template .comment-fields {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.comments-template .input-textbox,
.comments-template .cptch_block,
.comments-template .comment-form-comment {
    margin: 0;
}

.comments-template .input-textbox input,
.comments-template .comment-form-comment textarea,
.comments-template .cptch_input {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: none;
    color: #111827;
    font-size: 13px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.comments-template .input-textbox input {
    height: 42px;
    padding: 0 12px;
    width: 100%;
}

.comments-template .comment-form-comment textarea {
    min-height: 132px;
    padding: 12px;
    resize: vertical;
    width: 100%;
}

.comments-template .input-textbox input:focus,
.comments-template .comment-form-comment textarea:focus,
.comments-template .cptch_input:focus {
    border-color: #ef4056;
    box-shadow: 0 0 0 3px rgba(239, 64, 86, .12);
}

.comments-template .cptch_block {
    align-items: center;
    background: #fafafa;
    border: 1px solid #eef0f2;
    border-radius: 6px;
    display: flex;
    gap: 10px;
    grid-column: 1 / -1;
    min-height: 44px;
    padding: 8px 10px;
}

.comments-template .cptch_title {
    color: #4b5563;
    font-size: 12px;
    white-space: nowrap;
}

.comments-template .cptch_wrap,
.comments-template .cptch_label {
    align-items: center;
    display: inline-flex;
    gap: 4px;
}

.comments-template .cptch_span {
    color: #111827;
    font-size: 13px;
}

.comments-template .cptch_input {
    height: 32px;
    margin: 0;
    padding: 0 8px;
    text-align: center;
    width: 54px;
}

.comments-template .comment-submit-btn {
    background: #ef4056;
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    min-height: 42px;
    min-width: 128px;
    padding: 0 18px;
    transition: background-color .15s ease;
}

.comments-template .comment-submit-btn:hover {
    background: #d9364b;
}

.comments-template .form-submit {
    margin: 0;
}

.comments-template .liosa-comment-hp {
    left: -9999px;
    position: absolute;
    top: auto;
}

.comments-template .liosa-comment-pending {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    color: #047857;
    font-size: 13px;
    margin-bottom: 14px;
    padding: 10px 12px;
}

.comments-template .commentlist {
    margin: 24px 0 0;
    padding: 0;
}

.comments-template .commentlist li {
    list-style: none;
}

.comments-template .comment-body {
    border-top: 1px solid #eef0f2;
    padding: 16px 0;
}

.comments-template .comment-author,
.comments-template .comment-meta {
    font-size: 13px;
}

@media (max-width: 640px) {
    .comments-template .comment-form-frame {
        grid-template-columns: 1fr;
    }

    .comments-template .comment-form-avatar {
        display: none;
    }

    .comments-template .comment-fields {
        grid-template-columns: 1fr;
    }

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