.wp-block-create-block-simple-star-rating-block {
    display: inline-block;
    font-size: 0;
    position: relative;

    .ssrb-star {
        width: 1em; // Adjusted to scale with font size
        height: 1em; // Adjusted to scale with font size
        margin: 0 0.1em;
        display: inline-block;
        background: lightgray;
        clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
        position: relative;

        &:last-child {
            margin: 0;
        }

        &.ssrb-full {
            background: inherit; // Star color will be inherited from inline styles
        }

        &::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            clip-path: inherit;
        }

        @for $i from 1 through 99 {
            &.ssrb-perc-#{$i}::after {
                $percent: #{$i} + '%';
                background: linear-gradient(90deg, inherit $percent, transparent $percent); // Star color will be inherited from inline styles
            }
        }
    }
}
