.static-rating {
    display: inline-block;
  }
  .static-rating .star {
    color: #E0E6ED;
  }
  .static-rating .voted {
    color: #ffcc00;
  }
  
  .static-rating-sm .star {
    font-size: 0.75rem;
  }
  
  .rating {
    display: flex;
    justify-content: center;
    flex-direction: row-reverse;
  }
  .rating .star {
    font-family: "Font Awesome 5 Solid";
    font-weight: normal;
    font-style: normal;
    float: left;
    padding: 0 1px;
    cursor: pointer;
  }
  .rating .star:before {
    content: "\f005";
    display: block;
    font-size: 14px;
    color: #E0E6ED;
    transition: all 0.2s linear;
  }
  .rating:hover .star:before {
    color: #E0E6ED;
  }
  .rating:hover .over:before {
    color: #ffcc00;
  }
  .rating .voted:before {
    color: #ffcc00;
  }
  
  .rating-lg .star:before {
    font-size: 18px;
  }
  
  .rating-xl .star:before {
    font-size: 24px;
  }
  

  /**  Custom */


/* .rating {
    float: left;
    margin-left: auto;
    margin-right: auto;
} */

.rating:not(:checked) > input,
.ranking:not(:checked) > input {
    position:absolute;
    clip: rect(0, 0, 0, 0);
    /* top: -9999px;
     */
}

.rating:not(:checked) > label,
.ranking:not(:checked) > label {
    float: right;
    width: 1em;
    /* width: 1.2em; */
    /* padding:0 .1em; */
   /* overflow: hidden; */
    white-space: nowrap;
    cursor: pointer;
    font-size: 200%;
    font-weight: bold;
    /* line-height:1.2; */
    color:#ddd;
}

.rating.rating-xs,
.ranking.rating-xs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.rating.rating-xs:not(:checked) > label,
.ranking.rating-xs:not(:checked) > label {
    font-size: 150%;
}

/* .rating:not(:checked) > label:before {
    content: '★ ';
} */

.rating > input.checked ~ label:hover,
.ranking > input.checked + label:hover {
    color: var(--warning);
}

.rating > input:checked ~ label,
.ranking > input:checked + label {
    color: var(--primary);
}

.rating:not(:checked) > input:not(:disabled) ~ label:hover,
.ranking:not(:checked) > input:not(:disabled) ~ label:hover,
.rating:not(:checked) >  input:not(:disabled) ~ label:hover ~ label {
    color: var(--primary);
}

/* .rating > input:checked + label:hover,
.rating > input:checked + label:hover ~ label,
.rating > input:checked ~ label:hover,
.rating > input:checked ~ label:hover ~ label,
.rating > label:hover ~ input:checked ~ label {
    color: var(--primary);
} */

.rating > label:active,
.ranking > label:active {
    position: relative;
    top: 2px;
    left: 2px;
}