﻿.rating-rate {
    float: left;
    height: 46px;
    padding: 0 10px;
}

    .rating-rate:not(:checked) > input {
        display: none;
    }

    .rating-rate:not(:checked) > label {
        float: right;
        width: 1em;
        overflow: hidden;
        white-space: nowrap;
        cursor: pointer;
        font-size: 30px;
        color: #ccc;
    }

        .rating-rate:not(:checked) > label:before {
            content: '★';
        }

    .rating-rate > input:checked ~ label {
        color: #ffc700;
    }

    .rating-rate:not(:checked) > label:hover,
    .rating-rate:not(:checked) > label:hover ~ label {
        color: #deb217;
    }

    .rating-rate > input:checked + label:hover,
    .rating-rate > input:checked + label:hover ~ label,
    .rating-rate > input:checked ~ label:hover,
    .rating-rate > input:checked ~ label:hover ~ label,
    .rating-rate > label:hover ~ input:checked ~ label {
        color: #c59b08;
    }

/* Modified from: https://github.com/mukulkant/Star-rating-using-pure-css */
