/* کانتینر فرم و لیست نظرات */
.npn-review-form-wrapper {
    background: #fff;
    border: 1px solid #e3e3e3;
    padding: 20px;
    border-radius: 6px;
    max-width: 800px;
    margin: 30px auto;
    font-family: Tahoma, sans-serif;
    color: #333;
}

/* فرم */
#npn-review-form label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 14px;
}

#npn-review-form select,
#npn-review-form input[type="text"],
#npn-review-form textarea,
#npn-review-form input[type="file"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    margin-top: 4px;
    transition: border-color 0.3s ease;
}

#npn-review-form select:focus,
#npn-review-form input[type="text"]:focus,
#npn-review-form textarea:focus {
    border-color: #f58220;
    outline: none;
}

/* دکمه افزودن نکات مثبت و منفی */
#add-pros,
#add-cons {
    background: transparent;
    border: none;
    color: #f58220;
    font-weight: bold;
    cursor: pointer;
    margin: 6px 0 14px 0;
    display: inline-block;
    font-size: 14px;
}

#add-pros:hover,
#add-cons:hover {
    text-decoration: underline;
}

/* دکمه ارسال نظر */
#npn-review-form button[type="submit"] {
    background-color: #f58220;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#npn-review-form button[type="submit"]:hover {
    background-color: #f58220;
}

/* پاسخ سرور (پیغام موفقیت یا خطا) */
#review-response {
    margin-top: 20px;
    font-size: 15px;
    color: #4caf50;
}

/* لیست نظرات */
.npn-review-list {
    max-width: 800px;
    margin: 0 auto 0;
    color: #222;
}

/* هر نظر */
.single-review {
    border: 1px solid #e3e3e3;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    background: #fafafa;
}

/* عنوان نظر */
.single-review > strong {
    font-size: 17px;
    color: #f58220;
}

/* امتیاز به صورت ستاره */
.single-review span {
    font-size: 16px;
    color: #ffb400;
    margin-left: 8px;
}

/* متن نظر */
.single-review p {
    margin: 12px 0;
    font-size: 14px;
    line-height: 1.5;
}

/* نکات مثبت و منفی */
.single-review ul {
    list-style: none;
    padding-left: 0;
    margin: 6px 0 12px 0;
}

.single-review ul li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 4px;
    font-size: 14px;
}

.single-review ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.single-review ul li:nth-child(n) {
    color: #333;
}

.single-review ul li:nth-child(n)::before {
    background: currentColor;
}

.single-review ul li.positive-points {
    color: #4caf50; /* رنگ سبز برای نکات مثبت */
}

.single-review ul li.positive-points::before {
    background: #4caf50;
}

.single-review ul li.negative-points {
    color: #f44336; /* رنگ قرمز برای نکات منفی */
}

.single-review ul li.negative-points::before {
    background: #f44336;
}

/* تصاویر */
.single-review img {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 6px 8px 6px 0;
    width: 70px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.single-review img:hover {
    box-shadow: 0 0 6px rgba(229, 57, 53, 0.7);
}

/* توصیه به خرید */
.single-review p strong {
    color: #555;
}

/* واکنش‌گرا */
@media screen and (max-width: 600px) {
    #npn-review-form button[type="submit"] {
        width: 100%;
        padding: 12px 0;
    }

    .single-review img {
        width: 50px;
        height: 50px;
    }
}

.unapprove-review {
    background-color: #f39c12 !important;
    border-color: #e67e22 !important;
    color: white !important;
}

.single-review {
    margin-bottom: 20px;
}

.more-button-review-comments {
    text-align: center;
}

.more-button-review-comments #npn-show-more-reviews {
    padding: 15px 20px;
    background-color: #f58220;
    color: var(--primary-btn-color-dark);
    border-radius: 5px;
    border: 1px solid red;
    transition: all .3s ease;
}

.more-button-review-comments #npn-show-more-reviews:hover {
    background-color: var(--primary-btn-color-dark);
    color: #f58220;
}

/*  */
.npn-review-images .swiper-slide img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    margin: 5px;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}
.npn-review-images .swiper-slide img:hover {
    transform: scale(1.1);
}
/* پاپ‌آپ پس‌زمینه */
#npn-review-swiper-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

/* کادر اسلایدر */
#npn-review-swiper-popup .swiper {
    width: 90%;
    max-width: 800px;
    height: auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    position: relative;
}

/* عکس‌ها داخل اسلاید */
#npn-review-swiper-popup .swiper-slide img {
    max-width: 100%;
    max-height: 80vh; /* مهم: جلوگیری از بیرون زدن از ارتفاع صفحه */
    object-fit: contain;
    display: block;
    margin: auto;
}

/* دکمه بستن */
#npn-review-swiper-popup .close-swiper-popup {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 22px;
    background: transparent;
    border: none;
    color: #444;
    cursor: pointer;
    z-index: 99999;
}

/*  */
#npn-user-images-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.npn-modal-images-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#npn-user-images-modal .npn-modal-content {
    position: relative;
    background: #fff;
    padding: 20px;
    z-index: 10;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    border-radius: 8px;
}
#npn-user-images-modal .npn-modal-images-close {
    position: absolute;
    top: 0px;
    right: 10px;
    background-color: transparent;
    color: red;
    border: none;
    font-size: 20px;
    font-weight: 700;
}

