:root {
    --mmbct-primary: #26336E;
    --mmbct-primary-dark: #1B2555;
    --mmbct-text: #1C2230;
    --mmbct-muted: #737A8C;
    --mmbct-bg: #F5F6FB;
    --mmbct-border: #E7EAF1;
    --mmbct-white: #FFFFFF;
    --mmbct-success: #18794E;
    --mmbct-success-bg: #EDF8F2;
    --mmbct-danger: #B42318;
    --mmbct-danger-bg: #FFF2F0;
}

/* تیترهای داخل محتوای نوشته */
.single-post .elementor-widget-theme-post-content h1,
.single-post .elementor-widget-theme-post-content h2,
.single-post .elementor-widget-theme-post-content h3,
.single-post .elementor-widget-theme-post-content h4,
.single-post .elementor-widget-theme-post-content h5,
.single-post .entry-content h1,
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4,
.single-post .entry-content h5 {
    font-family: IRANYekanX, inherit !important;
    font-size: 18px !important;
    line-height: 2 !important;
    font-weight: 800 !important;
    color: var(--mmbct-text);
    margin-top: 30px;
    margin-bottom: 12px;
}

/* حذف قطعی فیلدهای ناخواسته در فرم استاندارد وردپرس/المنتور */
.comment-form-email,
.comment-form-url,
.comment-form-cookies-consent,
#wp-comment-cookies-consent,
label[for="wp-comment-cookies-consent"] {
    display: none !important;
}

.mmbct-comments-wrap,
.elementor-widget-post-comments,
.elementor-widget-theme-post-comments,
.comments-area {
    direction: rtl;
    font-family: IRANYekanX, inherit;
    color: var(--mmbct-text);
}

.mmbct-comments-wrap {
    width: 100%;
}

.mmbct-comments-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.mmbct-kicker {
    display: block;
    color: var(--mmbct-primary);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
}

.mmbct-comments-title {
    font-size: 20px;
    line-height: 1.8;
    font-weight: 800;
}

.mmbct-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid var(--mmbct-border);
    border-radius: 10px;
    background: var(--mmbct-bg);
    color: var(--mmbct-muted);
    font-size: 12px;
    white-space: nowrap;
}

.mmbct-comment-list,
.mmbct-comment-list .children {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mmbct-comment-list > li + li {
    margin-top: 14px;
}

.mmbct-comment-list .children {
    margin: 12px 34px 0 0;
}

.mmbct-comment-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: var(--mmbct-white);
    border: 1px solid var(--mmbct-border);
    border-radius: 16px;
}

.mmbct-comment-avatar {
    flex: 0 0 52px;
}

.mmbct-comment-avatar img {
    display: block;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
}

.mmbct-comment-main {
    min-width: 0;
    flex: 1;
}

.mmbct-comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
}

.mmbct-comment-author {
    font-size: 13px;
    font-weight: 800;
    color: var(--mmbct-text);
}

.mmbct-comment-meta time {
    font-size: 11px;
    color: var(--mmbct-muted);
}

.mmbct-comment-text,
.mmbct-comment-text p {
    margin: 0;
    color: #50586B;
    font-size: 13px;
    line-height: 2;
}

.mmbct-comment-actions {
    margin-top: 10px;
}

.mmbct-comment-actions a,
.comment-reply-link {
    color: var(--mmbct-primary);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.mmbct-empty {
    padding: 18px 20px;
    margin-bottom: 18px;
    color: var(--mmbct-muted);
    background: var(--mmbct-bg);
    border: 1px solid var(--mmbct-border);
    border-radius: 14px;
    font-size: 13px;
    line-height: 2;
}

.mmbct-form-card,
.comment-respond,
.elementor-widget-post-comments .comment-respond,
.elementor-widget-theme-post-comments .comment-respond {
    margin-top: 22px;
    padding: 24px;
    background: #FAFBFD;
    border: 1px solid var(--mmbct-border);
    border-radius: 18px;
}

.comment-reply-title,
#reply-title {
    margin: 0 0 18px !important;
    color: var(--mmbct-text);
    font-family: IRANYekanX, inherit !important;
    font-size: 18px !important;
    line-height: 1.9 !important;
    font-weight: 800 !important;
}

#cancel-comment-reply-link {
    display: inline-block;
    margin-right: 8px;
    color: var(--mmbct-primary);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.comment-form p {
    margin: 0;
}

.comment-form label {
    display: block;
    margin-bottom: 7px;
    color: var(--mmbct-text);
    font-size: 12px;
    font-weight: 700;
}

.comment-form .required {
    color: #C1392B;
}

.comment-form input[type="text"],
.comment-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    color: var(--mmbct-text);
    background: var(--mmbct-white);
    border: 1px solid var(--mmbct-border);
    border-radius: 11px;
    outline: none;
    box-shadow: none;
    font-family: IRANYekanX, inherit;
    font-size: 13px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.comment-form textarea {
    min-height: 145px;
    resize: vertical;
    line-height: 2;
}

.comment-form input[type="text"]:focus,
.comment-form textarea:focus {
    border-color: var(--mmbct-primary);
    box-shadow: 0 0 0 3px rgba(38, 51, 110, .08);
}

.comment-form .form-submit {
    margin-top: 2px;
}

.comment-form input[type="submit"],
.comment-form button[type="submit"] {
    min-height: 46px;
    padding: 10px 22px;
    border: 0;
    border-radius: 11px;
    color: var(--mmbct-white);
    background: var(--mmbct-primary);
    font-family: IRANYekanX, inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease, opacity .2s ease;
}

.comment-form input[type="submit"]:hover,
.comment-form button[type="submit"]:hover {
    background: var(--mmbct-primary-dark);
    transform: translateY(-1px);
}

.comment-form input[type="submit"]:disabled,
.comment-form button[type="submit"]:disabled {
    cursor: wait;
    opacity: .65;
    transform: none;
}

.mmbct-form-status {
    display: none;
    margin-top: 2px;
    padding: 11px 13px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.9;
}

.mmbct-form-status.is-visible {
    display: block;
}

.mmbct-form-status.is-success {
    color: var(--mmbct-success);
    background: var(--mmbct-success-bg);
    border: 1px solid rgba(24, 121, 78, .16);
}

.mmbct-form-status.is-error {
    color: var(--mmbct-danger);
    background: var(--mmbct-danger-bg);
    border: 1px solid rgba(180, 35, 24, .14);
}

.logged-in-as,
.comment-notes,
.form-allowed-tags {
    color: var(--mmbct-muted);
    font-size: 11px;
    line-height: 1.9;
}

@media (max-width: 767px) {
    .single-post .elementor-widget-theme-post-content h1,
    .single-post .elementor-widget-theme-post-content h2,
    .single-post .elementor-widget-theme-post-content h3,
    .single-post .elementor-widget-theme-post-content h4,
    .single-post .elementor-widget-theme-post-content h5,
    .single-post .entry-content h1,
    .single-post .entry-content h2,
    .single-post .entry-content h3,
    .single-post .entry-content h4,
    .single-post .entry-content h5 {
        font-size: 18px !important;
        line-height: 1.95 !important;
    }

    .mmbct-comments-head {
        align-items: flex-start;
    }

    .mmbct-comments-title {
        font-size: 18px;
    }

    .mmbct-comment-card {
        padding: 14px;
        gap: 10px;
        border-radius: 14px;
    }

    .mmbct-comment-avatar,
    .mmbct-comment-avatar img {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 11px;
    }

    .mmbct-comment-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .mmbct-comment-list .children {
        margin-right: 14px;
    }

    .mmbct-form-card,
    .comment-respond,
    .elementor-widget-post-comments .comment-respond,
    .elementor-widget-theme-post-comments .comment-respond {
        padding: 17px;
        border-radius: 15px;
    }

    .comment-form input[type="submit"],
    .comment-form button[type="submit"] {
        width: 100%;
    }
}
