/* =========================================================
   MONFARED PREMIUM BOND
   COMMENT STYLE
   Font: Vazir
========================================================= */


/* =========================================================
   GLOBAL COMMENTS
========================================================= */

#comments,
#comments *,
#respond,
#respond * {
    font-family: "Vazir", Tahoma, sans-serif;
    box-sizing: border-box;
}

#comments,
#respond {
    direction: rtl;
    text-align: right;
}

/* =========================================================
   COMMENT FORM
   Monfared Premium Bond
========================================================= */

#respond {
    margin-top: 45px;
    max-width: 720px;
    padding: 30px;
    background: #f8f9fc;
    border: 1px solid #e7e9f0;
    border-radius: 14px;
}


/* =========================================================
   FORM TITLE
========================================================= */

#respond .comment-reply-title {
    position: relative;
    margin: 0 0 10px;
    padding-right: 14px;

    color: #2e3192;
    font-family: "Vazir", Tahoma, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.8;
}


/* Brand line beside title */

#respond .comment-reply-title::before {
    content: "";
    position: absolute;

    right: 0;
    top: 50%;
    transform: translateY(-50%);

    width: 4px;
    height: 28px;

    background: #2E3192;
    border-radius: 4px;
}


/* =========================================================
   FORM NOTES
========================================================= */

#respond .comment-notes,
#respond .logged-in-as {
    margin: 0 0 25px;

    color:green;
    font-family: "Vazir", Tahoma, sans-serif;
    font-size: 13px;
    line-height: 2;
    font-weight: bold;
}


/* =========================================================
   FORM FIELDS
========================================================= */

#respond .comment-form-author,
#respond .comment-form-email,
#respond .comment-form-comment {
    margin: 0 0 20px;
}


/* Labels */

#respond label {
    display: block;
    margin-bottom: 8px;

    color: #374151;
    font-family: "Vazir", Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.8;
}


/* Required */

#respond .required {
    color: #EC1B23;
    font-weight: 700;
}


/* =========================================================
   INPUTS
========================================================= */

#respond input[type="text"],
#respond input[type="email"],
#respond textarea {
    display: block;

    width: 100%;

    border: 1px solid #d9dee8;
    border-radius: 8px;

    background: #ffffff;

    padding: 12px 14px;

    color: #1f2937;

    font-family: "Vazir", Tahoma, sans-serif;
    font-size: 14px;
    line-height: 1.8;

    box-shadow: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}


/* Placeholder */

#respond input::placeholder,
#respond textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}


/* Focus */

#respond input[type="text"]:focus,
#respond input[type="email"]:focus,
#respond textarea:focus {
    outline: none;

    border-color: #2E3192;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(46, 49, 146, 0.08);
}


/* Textarea */

#respond textarea {
    min-height: 145px;

    resize: vertical;
}


/* =========================================================
   PRIVACY / SAVE INFORMATION CHECKBOX
========================================================= */

#respond .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;

    gap: 8px;

    margin: 0 0 22px;
}


/* Checkbox */

#respond .comment-form-cookies-consent input[type="checkbox"] {
    flex: 0 0 auto;

    width: 17px;
    height: 17px;

    margin: 4px 0 0;

    accent-color: #2E3192;

    cursor: pointer;
}


/* Checkbox text */

#respond .comment-form-cookies-consent label {
    margin: 0;

    color: #6b7280;

    font-size: 12px;
    font-weight: 400;
    line-height: 1.9;

    cursor: pointer;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

#respond .form-submit {
    margin: 25px 0 0;
}


/* Button */

#respond input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 145px;

    border: 0;
    border-radius: 8px;

    padding: 11px 24px;

    background: #2E3192;
    color: #ffffff;

    font-family: "Vazir", Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 600;

    line-height: 1.8;

    cursor: pointer;

    box-shadow: 0 4px 12px rgba(46, 49, 146, 0.12);

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* Button Hover */

#respond input[type="submit"]:hover {
    background: #EC1B23;

    transform: translateY(-1px);

    box-shadow: 0 5px 14px rgba(236, 27, 35, 0.16);
}


/* Button Active */

#respond input[type="submit"]:active {
    transform: translateY(0);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    #respond {
        max-width: 100%;

        margin-top: 35px;
        padding: 20px;

        border-radius: 12px;
    }


    /* Title */

    #respond .comment-reply-title {
        font-size: 19px;
        line-height: 1.8;
    }


    #respond .comment-reply-title::before {
        width: 3px;
        height: 24px;
    }


    /* Notes */

    #respond .comment-notes,
    #respond .logged-in-as {
        margin-bottom: 20px;

        font-size: 12px;
    }


    /* Labels */

    #respond label {
        font-size: 13px;
    }


    /* Inputs */

    #respond input[type="text"],
    #respond input[type="email"],
    #respond textarea {
        padding: 11px 12px;

        font-size: 13px;

        border-radius: 7px;
    }


    /* Textarea */

    #respond textarea {
        min-height: 125px;
    }


    /* Checkbox */

    #respond .comment-form-cookies-consent {
        gap: 7px;
        margin-bottom: 20px;
    }


    #respond .comment-form-cookies-consent label {
        font-size: 11px;
    }


    /* Submit */

    #respond .form-submit {
        margin-top: 20px;
    }


    #respond input[type="submit"] {
        width: 100%;
        min-width: 0;

        padding: 11px 20px;

        font-size: 13px;
    }
}
```

/* =========================================================
   COMMENTS LIST
========================================================= */

#comments ol,
#comments ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#comments .comment {
    margin-bottom: 22px;
}

#comments .comment-body {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}


/* =========================================================
   NORMAL USER COMMENT
   This is the default style.
========================================================= */

#comments li.comment:not(.comment-author-monfared) > .comment-body {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-right: 4px solid #d9dee8;
}


/* User avatar */

#comments li.comment:not(.comment-author-monfared)
> .comment-body
> .comment-meta
> .comment-author
img.avatar {
    border-radius: 50%;
}


/* User name */

#comments li.comment:not(.comment-author-monfared)
> .comment-body
> .comment-meta
> .comment-author
.fn {
    color: #374151;
    font-weight: 700;
}


/* User says */

#comments li.comment:not(.comment-author-monfared)
> .comment-body
> .comment-meta
> .comment-author
.says {
    color: #9ca3af;
}


/* User date */

#comments li.comment:not(.comment-author-monfared)
> .comment-body
> .comment-meta
> .comment-metadata,
#comments li.comment:not(.comment-author-monfared)
> .comment-body
> .comment-meta
> .comment-metadata
a {
    color: #9ca3af;
    font-size: 12px;
}


/* User content */

#comments li.comment:not(.comment-author-monfared)
> .comment-body
> .comment-content,
#comments li.comment:not(.comment-author-monfared)
> .comment-body
> .comment-content
p {
    color: #374151;
    font-size: 14px;
    line-height: 2;
}


/* User reply */

#comments li.comment:not(.comment-author-monfared)
> .comment-body
> .reply
a {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

#comments li.comment:not(.comment-author-monfared)
> .comment-body
> .reply
a:hover {
    background: #e5e7eb;
    color: #111827;
}


/* =========================================================
   ADMIN COMMENT
   IMPORTANT:
   ONLY DIRECT .comment-body OF ADMIN IS TARGETED
========================================================= */

#comments li.comment-author-monfared > .comment-body {
    background: #f7f9ff;
    border: 1px solid #dfe6ff;
    border-right: 4px solid #2457d6;
}


/* Admin avatar */

#comments li.comment-author-monfared
> .comment-body
> .comment-meta
> .comment-author
img.avatar {
    border: 3px solid #2457d6;
    box-shadow: 0 0 0 3px rgba(36, 87, 214, 0.10);
    border-radius: 50%;
}


/* Admin name */

#comments li.comment-author-monfared
> .comment-body
> .comment-meta
> .comment-author
.fn {
    color: #2457d6;
    font-weight: 700;
}


/* Admin badge */

#comments li.comment-author-monfared
> .comment-body
> .comment-meta
> .comment-author
.fn::after {
    content: "مدیریت سایت";
    display: inline-block;

    margin-right: 8px;
    padding: 3px 8px;

    background: #2457d6;
    color: #ffffff;

    border-radius: 5px;

    font-family: "Vazir", Tahoma, sans-serif;
    font-size: 11px;
    font-weight: 500;

    line-height: 1.6;
    vertical-align: middle;
}


/* Admin says */

#comments li.comment-author-monfared
> .comment-body
> .comment-meta
> .comment-author
.says {
    color: #7c8db5;
}


/* Admin date */

#comments li.comment-author-monfared
> .comment-body
> .comment-meta
> .comment-metadata,
#comments li.comment-author-monfared
> .comment-body
> .comment-meta
> .comment-metadata
a {
    color: #7c8db5;
    font-size: 12px;
}


/* Admin content */

#comments li.comment-author-monfared
> .comment-body
> .comment-content,
#comments li.comment-author-monfared
> .comment-body
> .comment-content
p {
    color: #2457d6;
    font-size: 14px;
    line-height: 2;
}


/* Admin reply */

#comments li.comment-author-monfared
> .comment-body
> .reply
a {
    display: inline-block;
    padding: 5px 12px;

    background: #eaf0ff;
    color: #2457d6;

    border-radius: 6px;

    font-size: 12px;
    text-decoration: none;

    transition: all 0.2s ease;
}

#comments li.comment-author-monfared
> .comment-body
> .reply
a:hover {
    background: #2457d6;
    color: #ffffff;
}


/* =========================================================
   USER REPLY TO ADMIN
   IMPORTANT:
   DIRECT CHILD ONLY
========================================================= */

#comments li.comment-author-monfared
> ol.children
> li.comment:not(.comment-author-monfared)
> .comment-body {
    background: #fffdf7;
    border: 1px solid #eee4c9;
    border-right: 4px solid #d9a441;
}


/* User reply avatar */

#comments li.comment-author-monfared
> ol.children
> li.comment:not(.comment-author-monfared)
> .comment-body
> .comment-meta
> .comment-author
img.avatar {
    border: 3px solid #d9a441;
    box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.10);
}


/* User reply name */

#comments li.comment-author-monfared
> ol.children
> li.comment:not(.comment-author-monfared)
> .comment-body
> .comment-meta
> .comment-author
.fn {
    color: #9a741d;
    font-weight: 700;
}


/* User reply says */

#comments li.comment-author-monfared
> ol.children
> li.comment:not(.comment-author-monfared)
> .comment-body
> .comment-meta
> .comment-author
.says {
    color: #a58b55;
}


/* User reply date */

#comments li.comment-author-monfared
> ol.children
> li.comment:not(.comment-author-monfared)
> .comment-body
> .comment-meta
> .comment-metadata,
#comments li.comment-author-monfared
> ol.children
> li.comment:not(.comment-author-monfared)
> .comment-body
> .comment-meta
> .comment-metadata
a {
    color: #a58b55;
}


/* User reply content */

#comments li.comment-author-monfared
> ol.children
> li.comment:not(.comment-author-monfared)
> .comment-body
> .comment-content,
#comments li.comment-author-monfared
> ol.children
> li.comment:not(.comment-author-monfared)
> .comment-body
> .comment-content
p {
    color: #5f4a1d;
}


/* User reply button */

#comments li.comment-author-monfared
> ol.children
> li.comment:not(.comment-author-monfared)
> .comment-body
> .reply
a {
    background: #fff3d4;
    color: #9a741d;
}

#comments li.comment-author-monfared
> ol.children
> li.comment:not(.comment-author-monfared)
> .comment-body
> .reply
a:hover {
    background: #d9a441;
    color: #ffffff;
}


/* =========================================================
   NESTED COMMENTS
========================================================= */

#comments .children {
    margin-top: 18px;
    margin-right: 35px;
}


/* =========================================================
   COMMENT META
========================================================= */

#comments .comment-meta {
    margin-bottom: 14px;
}

#comments .comment-author {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

#comments .comment-author img.avatar {
    width: 42px;
    height: 42px;
    object-fit: cover;
}

#comments .comment-metadata {
    margin-top: 7px;
}

#comments .comment-metadata a {
    text-decoration: none;
}


/* =========================================================
   COMMENT CONTENT
========================================================= */

#comments .comment-content p {
    margin: 0 0 10px;
}

#comments .comment-content p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   REPLY
========================================================= */

#comments .reply {
    margin-top: 15px;
}

#comments .reply a {
    text-decoration: none;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    #comments .comment-body {
        padding: 15px;
        border-radius: 10px;
    }

    #comments .comment-author img.avatar {
        width: 38px;
        height: 38px;
    }

    #comments .comment-author {
        gap: 7px;
    }

    #comments .comment-content,
    #comments .comment-content p {
        font-size: 13px;
        line-height: 2;
    }

    #comments .children {
        margin-right: 15px;
    }

    #comments li.comment-author-monfared
    > .comment-body
    > .comment-meta
    > .comment-author
    .fn::after {
        font-size: 10px;
        padding: 2px 6px;
        margin-right: 5px;
    }

    #respond .comment-reply-title {
        font-size: 19px;
    }

    #respond input[type="text"],
    #respond input[type="email"],
    #respond textarea {
        font-size: 13px;
    }

    #respond input[type="submit"] {
        width: 100%;
    }
}
```
