/*
 *  Pure CSS star rating that works without reversing order
 *  of inputs
 *  -------------------------------------------------------
 *  NOTE: For the styling to work, there needs to be a radio
 *        input selected by default. There also needs to be a
 *        radio input before the first star, regardless of
 *        whether you offer a 'no rating' or 0 stars option
 *
 *  This codepen uses FontAwesome icons
 */
.full-stars {
    text-align: left;
    position: relative;
}
.full-stars .rating-group {
    display: inline-flex;
    position: relative;
}
.full-stars .rating__icon {
    pointer-events: none;
    color: #ccc;
}
.full-stars .rating__input {
    position: absolute;
    top: 4px;
    opacity: 0;
    z-index: 1;
}
.full-stars .rating__label {
    cursor: pointer;
    padding: 0 2px;
    font-size: 13px;
    margin: 0;
}
.full-stars .rating__icon--star {
    color: #ff9500;
}
.full-stars .rating__input[checked] ~ .rating__label .rating__icon--star {
    color: #ddd;
}
.full-stars .rating__input:first-of-type{
    left: 0px;
}
.full-stars .rating__input:nth-of-type(2){
    left: 20px;
}
.full-stars .rating__input:nth-of-type(3){
    left: 40px;
}
.full-stars .rating__input:nth-of-type(4){
    left: 60px;
}
.full-stars .rating__input:nth-of-type(5){
    left: 80px;
}
.full-stars .rating-group:hover .rating__label .rating__icon--star {
    color: #ff9500;
}
.full-stars .rating__input:hover ~ .rating__label .rating__icon--star {
    color: #ddd;
}

.half-stars {
   text-align: left;
}
.half-stars .rating-group {
    display: inline-flex;
}
.half-stars .rating__icon {
    pointer-events: none;
}
.half-stars .rating__input {
    position: absolute !important;
    left: -9999px !important;
}
.half-stars .rating__label {
    cursor: pointer;
    /* if you change the left/right padding, update the margin-right property of .rating__label--half as well. */
    padding: 0 2px;
    font-size: 13rem;
}
.half-stars .rating__label--half {
    padding-right: 0;
    margin-right: -0.6em;
    z-index: 2;
}
.half-stars .rating__icon--star {
    color: orange;
}
.half-stars .rating__icon--none {
    color: #eee;
}
.half-stars .rating__input--none:checked + .rating__label .rating__icon--none {
    color: red;
}
.half-stars .rating__input:checked ~ .rating__label .rating__icon--star {
    color: #ddd;
}
.half-stars .rating-group:hover .rating__label .rating__icon--star,
.half-stars .rating-group:hover .rating__label--half .rating__icon--star {
    color: orange;
}
.half-stars .rating__input:hover ~ .rating__label .rating__icon--star,
.half-stars .rating__input:hover ~ .rating__label--half .rating__icon--star {
    color: #ddd;
}
.half-stars .rating-group:hover
.rating__input--none:not(:hover)
+ .rating__label
.rating__icon--none {
    color: #eee;
}
.half-stars .rating__input--none:hover + .rating__label .rating__icon--none {
    color: red;
}

.full-stars-two {
    /* use display:inline-flex to prevent whitespace issues. alternatively, you can put all the children of .rating-group on a single line */
    /* make hover effect work properly in IE */
    /* hide radio inputs */
    /* hide 'none' input from screenreaders */
    /* set icon padding and size */
    /* set default star color */
    /* if any input is checked, make its following siblings grey */
    /* make all stars orange on rating group hover */
    /* make hovered input's following siblings grey on hover */
}
.full-stars-two .rating-group {
    display: inline-flex;
}
.full-stars-two .rating__icon {
    pointer-events: none;
}
.full-stars-two .rating__input {
    position: absolute !important;
    left: -9999px !important;
}
.full-stars-two .rating__input--none {
    display: none;
}
.full-stars-two .rating__label {
    cursor: pointer;
    padding: 0 2px;
    font-size: 13px;
}
.full-stars-two .rating__icon--star {
    color: orange;
}
.full-stars-two .rating__input:checked ~ .rating__label .rating__icon--star {
    color: #ddd;
}
.full-stars-two .rating-group:hover .rating__label .rating__icon--star {
    color: orange;
}
.full-stars-two .rating__input:hover ~ .rating__label .rating__icon--star {
    color: #ddd;
}