/* استایل‌های پاپ‌آپ امتیازدهی */
.divplus_rating_popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.divplus_rating_popup.divplus_show {
    display: flex;
}

.divplus_rating_popup_content {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    width: 800px;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
}

.divplus_rating_header {
    background-color: #f7f7f7;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.divplus_rating_header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.divplus_rating_close {
    cursor: pointer;
    font-size: 28px;
    color: #999;
    transition: color 0.3s;
}

.divplus_rating_close:hover {
    color: #333;
}

.divplus_rating_body {
    padding: 20px;
}

.divplus_rating_products_container {
    overflow: hidden;
    position: relative;
}

.divplus_rating_products_wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px;
}

.divplus_rating_products_wrapper::-webkit-scrollbar {
    height: 8px;
}

.divplus_rating_products_wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.divplus_rating_products_wrapper::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.divplus_rating_products_wrapper::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.divplus_rating_product_item {
    flex: 0 0 250px;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.divplus_rating_product_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.divplus_rating_product_image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.divplus_rating_product_title {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

.divplus_rating_stars {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
}

.divplus_rating_star {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.divplus_rating_star:hover,
.divplus_rating_star.divplus_active {
    color: #ffc107;
}

.divplus_rating_submit {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.divplus_rating_submit:hover {
    background-color: #45a049;
}

.divplus_rating_submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* استایل‌های نمایش امتیاز */
.divplus_rating_display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.divplus_rating_stars_display {
    display: flex;
    gap: 2px;
}

.divplus_star {
    font-size: 18px;
    color: #ddd;
}

.divplus_star_filled {
    color: #ffc107;
}

.divplus_star_half {
    position: relative;
    color: #ddd;
}

.divplus_star_half::before {
    content: '★';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #ffc107;
}

.divplus_star_empty {
    color: #ddd;
}

.divplus_rating_average {
    color: #666;
    font-size: 14px;
}

.divplus_rating_count {
    color: #999;
    font-size: 14px;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .divplus_rating_popup_content {
        width: 95%;
        max-height: 90vh;
    }
    
    .divplus_rating_product_item {
        flex: 0 0 200px;
    }
    
    .divplus_rating_product_image {
        height: 120px;
    }
}

/* استایل‌های نمایش امتیاز */
.divplus_rating_display {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 10px 0;
    font-size: 14px;
}

.divplus_rating_percentage {
    font-weight: bold;
    font-size: 16px;
}

.divplus_rating_label {
    color: #666;
    font-size: 14px;
}

.divplus_rating_status {
    color: #999;
    font-size: 14px;
}