/****** Style Star Rating Widget *****/

.rating fieldset,
.rating label {
    margin: 0;
    padding: 0;
}

.rating {
    border: none;
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    margin-top: 0.3rem;
}

.rating>input {
    display: none;
}

.rating>label:before {
    margin: 5px;
    font-size: 1.25em;
    font-family: 'Font Awesome';
    display: inline-block;
    content: "\f005";
    font-weight: 600;
}

.rating>label:before {
    margin: 0;
    font-size: 1.25em;
    content: "\f45c";
}

.rating>.half:before {
    content: "\f089";
    position: absolute;
}

.rating>label {
    color: #ddd;
    float: right;
}


/***** CSS Magic to Highlight Stars on Hover *****/

.rating>input:checked~label,

/* show gold star when clicked */

.rating:not(:checked)>label:hover,

/* hover current star */

.rating:not(:checked)>label:hover~label {
    color: #FFD700;
}


/* hover previous stars in list */

.rating>input:checked+label:hover,

/* hover current star when changing rating */

.rating>input:checked~label:hover,
.rating>label:hover~input:checked~label,

/* lighten current selection */

.rating>input:checked~label:hover~label {
    color: #FFED85;
}