.comments-rating {
    border: none;
    padding: 0;
    margin-left: 0;
    right: 0;
    bottom: 10px;
    order: 5;
    margin-top: 10px;
}

.rate-label {
    color: #9d9d9d;
    display: inline-block;
    position: relative;
    top: -6px;
}

.comments-rating label {
    display: inline-block;
}

.rating-container {
    /* remove inline-block whitespace */
    font-size: 0;
    /* flip the order so we can use the + and ~ combinators */
    unicode-bidi: bidi-override;
    direction: rtl;
}

.rating-container * {
    font-size: 1.4rem;
}

.rating-container > input {
    display: none;
}

.rating-container > input + label {
    /* only enough room for the star */
    font-family: 'Font Awesome 5 Pro';
    display: inline-block;
    overflow: hidden;
    text-indent: 9999px;
    width: 1em;
    white-space: nowrap;
    cursor: pointer;
    margin: 0;
}

.rating-container > input + label:before {
    display: inline-block !important;
    text-indent: -9999px;
    content: "\f005";
    color: #888;
    font-size: 20px;
    font-weight: 300;
}

.comment-respond .comment-form .rating-container label {
    display: inline-block !important;
}

.rating-container > input:checked ~ label:before,
.rating-container > input + label:hover ~ label:before,
.rating-container > input + label:hover:before {
    content: "\f005";
    color: #f5af1c;
    text-shadow: 0 0 2px #f5af1c;
    font-weight: 700;
    font-size: 21px;
}

.rating-container > .star-cb-clear + label {
    text-indent: -9999px;
    width: .5em;
    margin-left: -.5em;
}

.rating-container > .star-cb-clear + label:before {
    width: .5em;
}

.rating-container:hover > input + label:before {
    content: "\f005";
    color: #888;
    text-shadow: none;
}

.rating-container:hover > input + label:hover ~ label:before,
.rating-container:hover > input + label:hover:before {
    content: "\f005";
    color: #f5af1c;
    text-shadow: 0 0 1px #f5af1c;
    font-weight: 700;
}

.comment-respond .rating-container > .star-cb-clear + label,
.comment-respond .rating-container > input + label:before {
    text-indent: 9999px;
}

.comment-respond .rating-container > input + label {
    text-indent: -9999px;
}

.average-rating-wrap {
    text-align: center;

}

.average-rating-wrap p {
    line-height: 1;
}

.average-rating {
    margin-bottom: 5px;
}

.average-rating .full-stars {
    position: relative;
}

.average-rating .full-stars span {
    color: #e9e9e9;
    display: inline-block;
}

.average-rating .active-stars {
    position: absolute;
    overflow: hidden;
    top: 0;
    left: 0;
}

.average-rating .active-stars span {
    color: #f5af1c;
}

.stars span::before {
    color: #f5af1c;
}

@media (max-width: 497px) {
    .comments-rating {
        margin-top: 20px;
    }
}

.hidden { display: none; }

/*.average-rating span {
    position: relative;
}*/

/*.average-rating span::after {
    color: #e9e9e9;
    content: "\f005";
    font-family: 'Font Awesome 5 Pro';
    position: absolute;
    font-weight: 600;
    z-index: -1;
    top:0;
    left: 0;
}*/