/* Star Rating Styles */
.ngontinhplus-rating {
    display: inline-block;
    font-family: inherit;
}

.rating-stars {
    display: inline-flex;
    gap: 2px;
    font-size: 24px;
    line-height: 1;
}

.star {
    position: relative;
    display: inline-block;
    color: #ddd;
    cursor: default;
}

.star-interactive {
    cursor: pointer;
}

.star-interactive:hover {
    transform: scale(1.1);
}

.star-empty {
    color: #ddd;
}

.star-filled {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    color: #f5a623;
    white-space: nowrap;
}

.rating-info {
    display: inline-block;
    margin-left: 10px;
    font-size: 14px;
    color: #666;
    vertical-align: middle;
}

.rating-average {
    font-weight: bold;
    font-size: 16px;
    color: #f5a623;
}

.rating-count {
    color: #999;
    font-size: 12px;
}

.rating-message {
    margin-top: 5px;
    font-size: 13px;
    color: #28a745;
}

/* Hover effect - highlight stars up to hovered position */
.rating-stars.interactive .star-interactive:hover~.star .star-filled,
.rating-stars.interactive .star-interactive:hover .star-filled {
    width: 100% !important;
}

/* Schema markup - hidden */
.rating-schema {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .rating-stars {
        font-size: 20px;
    }

    .rating-info {
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }
}

/* Simple Star Rating (for lists) */
.star-rating-simple {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.stars-outer {
    display: inline-block;
    position: relative;
    font-family: 'FontAwesome', sans-serif;
}

.stars-outer::before {
    content: "★★★★★";
    color: #ddd;
    letter-spacing: 2px;
}

.stars-inner {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    color: #f5a623;
}

.stars-inner::before {
    content: "★★★★★";
    letter-spacing: 2px;
}

.rating-text {
    color: #f5a623;
    font-weight: bold;
}

/* Chi tiet box - matching old design */
.chi-tiet .star-rating-simple {
    font-size: 12px;
}

.chi-tiet .stars-outer::before,
.chi-tiet .stars-inner::before {
    font-size: 12px;
    letter-spacing: 1px;
}