//
// Rating
//

.rating {
    display: flex;
    align-items: center;
}

.rating-input {
    position: absolute !important;
    left: -9999px !important;

    &[disabled] {
        display: none;
    }
}

.rating-label {
    padding: 0;
    margin: 0;

    & > i,
    & > .svg-icon {
        line-height: 1;
        color: get($rating, color, default);
    }
}

label.rating-label {
    cursor: pointer;
}

div.rating-label.checked,
label.rating-label {
    & > i,
    & > .svg-icon {
        color: get($rating, color, active);
    }
}

.rating-input:checked ~ .rating-label {
    & > i,
    & > .svg-icon {
        color: get($rating, color, default);
    }
}

.rating:hover label.rating-label {
    & > i,
    & > .svg-icon {
        color: get($rating, color, active);
    }
}

label.rating-label:hover ~ .rating-label {
    & > i,
    & > .svg-icon {
        color: get($rating, color, default);
    }
    color: get($rating, color, default);
}
