.rating-wrapper {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}

.rating-wrapper {
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.rating {
    border: none;
    float: left;
}

.rating > input {
    display: none;
}

.rating > label:before {
    margin: 0 5px;
    font-size: 1.25em;
    font-family: FontAwesome;
    display: inline-block;
    content: "\f005";
}

.rating > .half:before {
    content: "\f089";
    position: absolute;
}

.rating > label {
    color: #ddd;
    float: right;
    margin: 0;
}

/***** CSS Magic to Highlight Stars on Hover *****/
.rating:not(.rating-readonly) > input:checked ~ label, /* show gold star when clicked */
.rating:not(.rating-readonly) > input[checked="checked"] ~ label, /* show gold star when clicked */
.rating:not(.rating-readonly):not(:checked) > label:hover, /* hover current star */
.rating:not(.rating-readonly):not([checked="checked"]) > label:hover, /* hover current star */
.rating:not(.rating-readonly):not(:checked) > label:hover ~ label, /* hover previous stars in list */
.rating:not(.rating-readonly):not([checked="checked"]) > label:hover ~ label { 
    color: #FFD700; 
} /* hover previous stars in list */


.rating:not(.rating-readonly) > input:checked + label:hover, /* hover current star when changing rating */
.rating:not(.rating-readonly) > input[checked="checked"] + label:hover, /* hover current star when changing rating */
.rating:not(.rating-readonly) > input:checked ~ label:hover,
.rating:not(.rating-readonly) > input[checked="checked"] ~ label:hover,
.rating:not(.rating-readonly) > label:hover ~ input:checked ~ label, /* lighten current selection */
.rating:not(.rating-readonly) > label[checked="checked"] ~ input:checked ~ label, /* lighten current selection */
.rating:not(.rating-readonly) > input:checked ~ label:hover ~ label,
.rating:not(.rating-readonly) > input[checked="checked"] ~ label:hover ~ label { 
    color: #FFED85; 
}

/***** CSS Highlight voted stars *****/
.rating.rating-readonly label.active,
.rating.rating-readonly label.active ~ label { 
    color: #FFD700;
}