
.view-comments-form-wrapper {
    background: radial-gradient(55.4% 186.63% at 38.42% 75.04%, #5B51D8 0%, #41399A 100%);
    border-radius: 32px;
    padding: 16px;
    position: relative;
    z-index: 0;
    overflow: hidden;
}

.view-comments-form-wrapper:before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    background: url("../image/comments-pattern.png");
    width: 48px;
    height: 100%;
    display: block;
    z-index: -1;
    background-repeat: no-repeat;
    background-size: cover;

}

.view-comments-form-wrapper:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    background: url("../image/comments-pattern-1.png");
    width: 50%;
    height: 100%;
    display: block;
    z-index: -1;

}

.comments-send {
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--view-secondary);
    color: #fff;
    border: none;
    border-radius: 24px;
    outline: none;
    font-weight: 500;
    font-size: 18px;
    gap: 17px;
    padding: 8px 48px 8px 8px;
    cursor: pointer;
    position: relative;
    z-index: 0;
    overflow: hidden;
    box-shadow: 0 21px 28px -12px #e1306c69;
    transition: all 300ms;
}

.comments-send:hover {
    background-color: var(--view-primary);
    box-shadow: 0 21px 28px -12px #5b51d8c7;
}

.comments-send:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    background: url("../image/pattern.png");
    width: 100%;
    height: 100%;
    display: block;
    z-index: -1;
    mix-blend-mode: overlay;
}

.view-comments-form-wrapper .text-section {
    width: 20%;
    position: relative;
    z-index: 0;
    overflow: hidden;
}


.view-comments-form-wrapper .text-section h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    margin: 0;
    padding: 0;
    line-height: 35px;
}

.view-comments-form-wrapper .text-section span {
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    margin: 0;
    padding: 0;
    line-height: 12px;
}

.view-comments-form {
    padding: 24px;
    background: #fff;
    border-radius: 24px;
    width: 80%;
}

.view-comments-form .group-wrapper {
    gap: 12px;
    width: 31%;
}

.view-comments-form .message-wrapper {
    width: 100%;
    gap: 12px;
}


.view-comments-form .full-name-input,
.view-comments-form .phone-input,
.view-comments-form .email-input {
    color: #898989;
    background: #F0F4F6;
    font-family: inherit;
    border: none;
    outline: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 8px;
    direction: ltr;
    text-align: right;
}

.view-comments-form .message-input {
    height: 120px;
    border-radius: 16px;
    padding: 10px 16px;
    color: #898989;
    background: #F0F4F6;
    font-family: inherit;
    border: none;
    outline: none;
    font-weight: 500;
    font-size: 16px;

}

.view-comments-form .full-name-input::placeholder,
.view-comments-form .phone-input::placeholder,
.view-comments-form .email-input::placeholder,
.view-comments-form .message-input::placeholder {
    font-weight: 500;
    font-size: 16px;
    font-family: inherit;
    color: #BDBCC8;
}


/* ===========================
   View Comments — LIST (RTL)
   =========================== */


.view-comments-list, .view-comments-children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.view-comments-list > li:not(:last-child) {
    margin-bottom: 16px;
}

.view-comments-children {
    margin-top: 14px;
    margin-right: 56px;
    border-right: 2px dashed rgba(91, 81, 216, .15);
    padding-right: 18px;
}

.view-comment-card {
    position: relative;
    background: #fff;
    border: 1px solid #E9E9ED;
    border-radius: 24px;
    overflow: hidden;
    padding: 16px;
    z-index: 0;
}

.view-comment-card:before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    background: url("../image/comments-pattern-2.png");
    width: 73px;
    height: 100%;
    display: block;
    z-index: -1;
    background-repeat: no-repeat;
    background-size: cover;
}

.view-comment-card:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    background: url("../image/comments-pattern-2.png");
    width: 73px;
    height: 100%;
    display: block;
    z-index: -1;
    background-repeat: no-repeat;
    background-size: cover;
}

.view-comment-header {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-direction: row-reverse;
    width: 100%;
    justify-content: space-between;
}

.view-reply-bubble {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    background: #F7F6FD;
    border: 1px solid #EFEEFB;
    color: var(--view-accent);
    border-radius: 999px;
    padding: 6px 14px 6px 6px;
    font-size: 16px;
    text-decoration: none;
}

#reply-title {
    display: none;
}

#respond {
    margin-top: 24px;
}

.view-reply-bubble .view-reply-text {
    font-weight: 500;
}

.view-reply-bubble a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}


.view-comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.view-comment-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid var(--view-primary);
    object-fit: cover;
    padding: 6px;
    background: transparent;
}

.view-comment-author-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
}

.view-comment-author-name {
    margin: 0;
    font-size: 18px;
    color: var(--view-accent);
    text-align: center;

}

.view-comment-author-role {
    color: #64627E;
    font-weight: 400;
    font-size: 14px;
    line-height: 28px;
    text-align: right;

}


.view-comment-text {
    color: #64627E;
    font-size: 14px;
    padding: 12px 0;
    font-weight: 500;
    line-height: 26px;
    margin: 0;
    border-bottom: 1px solid #E6ECFD;
    margin: 0 95px;
}

.view-comment-text p {
    padding: 0;
    margin: 0;
}

.view-comment-awaiting {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: #9ca3af;
}


.view-comment-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    color: #ADA8EB;
    margin: 0 95px;
}

.view-comment-date {
    font-weight: 500;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
}

.view-comments-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.view-comments-pagination a, .view-comments-pagination span {
    display: inline-flex;
    min-width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    color: var(--text-700);
    text-decoration: none;
    background: #fff;
}

.view-comments-pagination a:hover {
    border-color: var(--view-primary, #5b51d8);
    color: var(--view-primary, #5b51d8);
    transition: all .2s;
}

.view-comments-pagination .current {
    background: var(--view-primary, #5b51d8);
    color: #fff;
    border-color: transparent;
}

/* پیامِ خالی */

.view-comment-empty {
    color: #9ca3af;
    text-align: center;
    padding: 18px;
    border: 1px dashed #ececf6;
    border-radius: 16px;
}


.view-comment-banner.is-awaiting {
    direction: rtl;
    margin: 0 0 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #fff8e6;
    border: 1px solid #ffe2a8;
    color: #7a4d00;
    font-size: 14px;
}

ul.children {
    margin: 16px 45px 0 0;
    padding: 0;
    list-style: none;
    position: relative;
    z-index: 0;
}

ul.children:before {
    content: '';
    display: block;
    position: absolute;
    right: -25px;
    width: 16px;
    height: 16px;
    top: 55px;
    border-radius: 50%;
    background: var(--view-primary);
}

ul.children:after {
    content: '';
    display: block;
    position: absolute;
    right: -17px;
    top: 0;
    width: 1px;
    height: 55px;
    background: #EFEEFB;
}

@media screen and (max-width: 768px) {
    .view-comment-card::after, .view-comment-card::before {
        width: 13px;
    }

    .view-comment-text {
        margin: 0;
    }

    .view-comment-footer {
        margin: 0;
    }

    .view-comment-header {
        display: flex;
        align-items: start;
        gap: 16px;
        flex-direction: column;
        width: 100%;
        justify-content: start;
        flex-wrap: wrap;
    }

    .view-comment-author-name {
        margin: 0;
        font-size: 14px;
        text-align: right;
    }

    .view-comment-avatar {
        width: 50px;
        height: 50px;
    }

    .view-comments-form .group-wrapper {
        width: 100%;
    }

    .view-comments-form {
        padding: 14px;
        background: #fff;
        border-radius: 24px;
        width: 100%;
        box-sizing: border-box;
    }

    .view-comments-form-wrapper {
        flex-direction: column;
    }

    .view-comments-form-wrapper .text-section {
        width: 100%;
        position: relative;
        z-index: 0;
        overflow: hidden;
        text-align: center;
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .view-reply-bubble {
        padding: 6px 11px 6px 6px;
        font-size: 14px;
        align-self: end;
    }

    .view-reply-bubble svg{
        width: 25px;
        height: 25px;
    }
}