/* Star ratings: read-only stars and the CSS-only star input (no JavaScript, works with any Bootstrap 5 theme). */
.cem-stars {
    display: inline-flex;
    gap: .1em;
    color: var(--bs-warning, #ffc107);
    white-space: nowrap;
}
.cem-stars .is-empty {
    opacity: .35;
}
.cem-stars-lg {
    font-size: 1.5rem;
}
.cem-stars-sm {
    font-size: .85rem;
}
.cem-star-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: .1rem;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 1.6rem;
    line-height: 1;
}
.cem-star-input input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.cem-star-input label {
    margin: 0;
    padding: 0 .05em;
    cursor: pointer;
    color: var(--bs-secondary-color, #6c757d);
    opacity: .45;
    transition: transform .1s, opacity .1s;
}
.cem-star-input input:checked ~ label,
.cem-star-input:hover label:hover,
.cem-star-input:hover label:hover ~ label {
    color: var(--bs-warning, #ffc107);
    opacity: 1;
}
.cem-star-input:hover input:checked ~ label {
    color: var(--bs-secondary-color, #6c757d);
    opacity: .45;
}
.cem-star-input:hover label:hover,
.cem-star-input:hover label:hover ~ label {
    color: var(--bs-warning, #ffc107);
    opacity: 1;
}
.cem-star-input label:hover {
    transform: scale(1.15);
}
.cem-star-input input:focus-visible + label {
    outline: 2px solid var(--bs-primary, #0d6efd);
    outline-offset: 2px;
    border-radius: .2em;
}
.cem-star-input .cem-star-clear {
    font-size: .7rem;
    align-self: center;
    margin-left: .4rem;
    opacity: .6;
}
.cem-star-input .cem-star-clear:hover {
    transform: none;
}
.cem-star-input-sm {
    font-size: 1.15rem;
}
.cem-rating-bar {
    height: .5rem;
}
.cem-rating-average {
    font-size: 2.5rem;
    line-height: 1;
    font-weight: 600;
}
.cem-rating-item + .cem-rating-item {
    border-top: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, .1));
}
.cem-rating-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
}
.cem-rating-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .1rem .5rem;
    border-radius: 1rem;
    background: var(--bs-tertiary-bg, #f8f9fa);
    border: 1px solid var(--bs-border-color, #dee2e6);
    font-size: .8rem;
}

/* icon picked for a category name (LabelIcon, icon_picker) */
.cem-ratings .cem-label-icon,
.cem-rating-summary .cem-label-icon {
    display: inline-flex;
    vertical-align: -.15em;
    margin-right: .3em;
}
