.star-rating, [class*="rating__stars"] { position: var(--starRatingPosition, relative); overflow: hidden; height: 1em; width: 7em; font-family: 'woo'; font-size: 0.9em; line-height: 1; letter-spacing: 0.4em; color: var(--starRatingInitialColor); &:before { position: absolute; content: '\53\53\53\53\53'; top: 0; left: 0; right: initial; color: var(--starRatingInactiveColor); } span { position: absolute; overflow: hidden; top: 0; left: 0; padding-top: 1.5em; &:before { position: absolute; content: '\53\53\53\53\53'; top: 0; left: 0; } } } // single product rating .woocommerce-product-rating { display: flex; align-items: center; .star-rating { margin-right: 10px; } .woocommerce-review-link { font-size: 12px; --linkInitialColor: var(--color); } } // comment form rating .comment-form-rating { display: flex; align-items: center; label { --fontSize: 11px; --fontWeight: 500; text-transform: uppercase; } .stars { color: var(--starRatingInitialColor, #fda256); font-size: 0.9em; margin: 0 0 0 10px !important; span { display: flex; } a { position: relative; display: inline-block; width: 1em; height: 1em; text-indent: -999em; text-decoration: none; color: currentColor; &:not(:last-child) { margin-right: 7px; } &:before { position: absolute; display: block; top: 0; left: 0; width: 1em; height: 1em; font-family: 'woo'; content: '\73'; line-height: 1; text-indent: 0; } &:hover { ~ a:before { content: '\73'; } } } &:hover { a:before { content: '\53'; } } &.selected { a { &.active { &:before { content: '\53'; } ~ a:before { content: '\73'; } } &:not(.active):before { content: '\53'; } } } } }