.custom-review-form {
        max-width: 860px;
        margin: 0 auto 40px;
        direction: rtl;
        font-family: inherit;
        background: #fff;
        border-radius: 16px;
        padding: 28px 24px 22px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.06);
        border: 1px solid #f0f0f0;
    }
    .custom-review-form * { box-sizing: border-box; }
    .crf-title { text-align: center; font-size: 20px; font-weight: 600; color: #1a1a1a; margin: 0 0 26px; }
    .crf-top { display: flex; gap: 20px; margin-bottom: 18px; }
    .crf-comment-box { flex: 1.4; position: relative; }
    .crf-comment-box textarea {
        width: 100%; min-height: 160px; padding: 16px 16px 32px;
        border: 1px solid #e5e5e5; border-radius: 12px; font-size: 14px;
        line-height: 1.7; resize: vertical; outline: none; background: #fff;
    }
    .crf-comment-box textarea:focus { border-color: #333; }
    .crf-counter { position: absolute; bottom: 10px; left: 14px; font-size: 12px; color: #999; }
    .crf-rating-box { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding-top: 4px; }
    .crf-rating-label { font-size: 14px; font-weight: 500; color: #222; margin-bottom: 12px; }
    .crf-rating-label .required { color: #e74c3c; }
    .crf-stars { display: flex; gap: 8px; margin-bottom: 8px; direction: ltr; }
    .crf-stars span {
        font-size: 28px; color: transparent; -webkit-text-stroke: 1.5px #d4af37;
        cursor: pointer; transition: all 0.15s; user-select: none; line-height: 1;
    }
    .crf-stars span:hover, .crf-stars span.active {
        color: #d4af37; -webkit-text-stroke: 1.5px #d4af37; transform: scale(1.1);
    }
    .crf-rating-hint { font-size: 12.5px; color: #888; }
    .crf-fields { display: flex; gap: 14px; margin-bottom: 20px; }
    .crf-field { flex: 1; position: relative; }
    .crf-field input {
        width: 100%; height: 48px; padding: 0 44px 0 14px;
        border: 1px solid #e5e5e5; border-radius: 10px !important; font-size: 14px; outline: none; background: #fff;
    }
    .crf-field input:focus { border-color: #333; }
    .crf-field .icon {
        position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
        width: 18px; height: 18px; opacity: 0.45; pointer-events: none;
    }
    .crf-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
    .crf-submit {
        background: #111 !important; color: #fff !important; border: none; border-radius: 10px !important;
        padding: 13px 28px !important; font-size: 14.5px; font-weight: 500; cursor: pointer;
        display: inline-flex; align-items: center; gap: 8px;
    }
    .crf-submit:hover { background: #333 !important; color: #fff !important; }
    .crf-submit svg { width: 16px; height: 16px; fill: currentColor; }
    .crf-note { font-size: 12.5px; color: #777; display: flex; align-items: center; gap: 6px; }
    .crf-note svg { width: 15px; height: 15px; opacity: 0.7; }
    .crf-success-msg {
        background: #e8f5e9; color: #2e7d32; padding: 14px 18px; border-radius: 10px;
        margin-bottom: 20px; text-align: center; font-size: 14px; display: none;
    }
    .crf-success-msg.show { display: block; }
    .crf-captcha { margin: 18px 0 10px; }

    /* لیست نظرات */
    .crf-reviews-list {
        max-width: 860px;
        margin: 0 auto 50px;
        direction: rtl;
    }
    .crf-reviews-title {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 20px;
        color: #1a1a1a;
    }
    .crf-review-item {
        background: #fff;
        border: 1px solid #f0f0f0;
        border-radius: 12px;
        padding: 18px 20px;
        margin-bottom: 14px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    }
    .crf-review-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .crf-review-author {
        font-weight: 600;
        font-size: 15px;
        color: #222;
    }
    .crf-review-date {
        font-size: 12.5px;
        color: #999;
    }
    .crf-review-stars {
        color: #d4af37;
        font-size: 16px;
        letter-spacing: 1px;
        margin-bottom: 8px;
        direction: ltr;
        display: inline-block;
    }
    .crf-review-content {
        font-size: 14px;
        line-height: 1.7;
        color: #444;
    }
    .crf-no-reviews {
        text-align: center;
        color: #888;
        font-size: 14px;
        padding: 30px 0;
    }

    @media (max-width: 700px) {
        .crf-top, .crf-fields { flex-direction: column; }
        .crf-rating-box { align-items: center; text-align: center; }
        .crf-bottom { flex-direction: column; align-items: stretch; }
        .crf-submit { justify-content: center; }
        .crf-note { justify-content: center; }
    }

    /* مخفی کردن فرم پیش‌فرض ووکامرس */
    .woocommerce-Reviews-title,
    #review_form_wrapper,
    #reviews .comment-respond,
    .comment-form-rating,
    p.stars {
        display: none !important;
    }
    /* پاسخ‌ها */
.crf-replies {
    margin-top: 14px;
    padding-right: 18px;
    border-right: 3px solid #f0f0f0;
}
.crf-reply-item {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
}
.crf-reply-item:last-child {
    margin-bottom: 0;
}

/* صفحه‌بندی */
.crf-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
    flex-wrap: wrap;
}
.crf-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.2s;
}
.crf-page-link:hover,
.crf-page-link.active {
    background: #111;
    color: #fff;
    border-color: #111;
}
.crf-pending {
    border: 1px dashed #f0ad4e;
    background: #fffdf5;
}
.crf-pending-note {
    margin-top: 12px;
    font-size: 13px;
    color: #e67e22;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}
.crf-pending-note::before {
    content: "⏳";
}
