

/* Ratings widget */

.rate {
    display: inline-block;
    position: relative;
    font-size: 20pt;
    line-height: 1em;
    border: 0;
    margin: 0;
    padding: 0;
    color: rgb(200, 200, 200);
}

.rate2 {
    display: inline-block;
    position: relative;
    font-size: 40pt;
    line-height: 1em;
    border: 0;
    margin: 0;
    padding: 0;
    color: rgb(200, 200, 200);
}


/* Hide radio */

.rate>input {
    display: none;
}

.rate2>input {
    display: none;
}


/* Order correctly by floating highest to the right */

.rate>label {
    float: right;
}

.rate2>label {
    float: right;
}


/* The star of the show */

.rate>label:before {
    display: inline-block;
    font-size: 20pt;
    margin: 0;
    cursor: pointer;
    content: "\2605";
    /* full star */
}

.rate2>label:before {
    display: inline-block;
    font-size: 40pt;
    margin: 0;
    cursor: pointer;
    content: "\2605";
    /* full star */
}

/* Half star trick */

.rate .half:before {
    content: "\2605";
    /* half star no outline */
    position: absolute;
    padding-right: 0;
    width: var(--half);
    position: absolute;
    overflow: hidden;
}

.rate2 .half2:before {
    content: "\2605";
    /* half star no outline */
    position: absolute;
    padding-right: 0;
    width: var(--half);
    position: absolute;
    overflow: hidden;
}


/* Click + hover color */
.rate input:checked~label,

/* color current and previous stars on checked */

.rate label:hover,
.rate label:hover~label {
    color: green;
}


/* color previous stars on hover */


/* Hover highlights */

.rate input:checked+label:hover,
.rate input:checked~label:hover,

/* highlight current and previous stars */

.rate input:checked~label:hover~label,

/* highlight previous selected stars for new rating */

.rate label:hover~input:checked~label
/* highlight previous selected stars */

    {
    color: #73B100;
}

/* Click + hover color */

.rate2 input:checked~label,

/* color current and previous stars on checked */

.rate2 label:hover,
.rate2 label:hover~label {
    color: green;
}


/* color previous stars on hover */


/* Hover highlights */

.rate2 input:checked+label:hover,
.rate2 input:checked~label:hover,

/* highlight current and previous stars */

.rate2 input:checked~label:hover~label,

/* highlight previous selected stars for new rating */

.rate2 label:hover~input:checked~label
/* highlight previous selected stars */

    {
    color: #73B100;
}
