.star-rating { position: var(--starRatingPosition, relative); overflow: hidden; height: 1em; width: 5.7em; font-family: 'woo'; font-size: 0.8em; line-height: 1; letter-spacing: 0.1em; color: var(--starRatingColor, #fda256); &:before { position: absolute; content: '\53\53\53\53\53'; top: 0; left: 0; opacity: 0.3; } 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; } } // comment form rating .comment-form-rating { display: flex; align-items: center; label { font-size: 11px; font-weight: 500; text-transform: uppercase; } .stars { color: var(--starRatingColor, #fda256); font-size: 0.8em; 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: 2px; } &: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'; } } } } }