/* ===== Rating Display Styles ===== */

.product__rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.product__rating-stars {
    display: inline-flex;
}

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

.rating__star {
    width: 13px;
    height: 12px;
}

.rating__star .rating__fill {
    fill: #ddd;
}

.rating__star .rating__stroke {
    stroke: #ddd;
}

.rating__star--active .rating__fill {
    fill: #ffc107;
}

.rating__star--active .rating__stroke {
    stroke: #ffc107;
}

.rating__star--half .rating__fill {
    fill: url(#half-star-gradient);
}

.rating__star--half .rating__stroke {
    stroke: #ffc107;
}

.product__rating-legend {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.product__rating-legend_total-vote {
    color: #333;
    font-weight: 500;
}

.product__rating-legend a {
    color: #0066cc;
    text-decoration: none;
    cursor: pointer;
}

.product__rating-legend a:hover {
    text-decoration: underline;
}

/* ===== Reviews Summary Styles ===== */

.reviews-view__summary__rank-number {
    font-size: 48px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.reviews-view__summary__rank-star {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}

.rating__star--active {
    fill: #ffc107;
}

form#reviews-view-form .col-12.col-lg-9.col-xl-8 {
    -ms-flex: 0 0 66.666667%;
    flex: 100%;
    max-width: 100%;
}

/* ===== Review Message Styles ===== */

#review-message {
    padding: 12px 20px;
    border-radius: 4px;
    display: none;
}

#review-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#review-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== Responsive Styles ===== */

@media (max-width: 768px) {
    .product__rating {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .product__rating-legend {
        flex-wrap: wrap;
    }
}