

.romatex-product-rating-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.romatex-product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.romatex-product-rating--align-start {
    justify-content: flex-start;
}

.romatex-product-rating--align-center {
    justify-content: center;
}

.romatex-product-rating--align-end {
    justify-content: flex-end;
}

.romatex-product-rating--align-space-between {
    justify-content: space-between;
}

.romatex-rating-stars-wrap {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    direction: ltr; 
}

.romatex-rating-star {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
}

.romatex-star-svg {
    display: block;
    width: 18px;
    height: 18px;
}

.romatex-star-svg--empty {
    fill: #e5e7eb; 
}

.romatex-star-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    pointer-events: none;
}

.romatex-star-svg--filled {
    fill: #ff9800; 
}

.romatex-rating-score {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.romatex-rating-count {
    font-size: 15px;
    color: #6b7280;
    line-height: 1;
}

.romatex-rating-link {
    font-size: 15px;
    font-weight: 700;
    color: #ff9800;
    text-decoration: underline;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.romatex-rating-link:hover {
    opacity: 0.8;
}

@media (max-width: 767px) {
    .romatex-product-rating {
        flex-wrap: wrap;
    }
}
