.storyro-rating-input {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.storyro-rating-input.is-invalid {
    color: var(--bs-danger);
}

.storyro-rating-picker {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
}

.storyro-rating-star {
    position: relative;
    display: inline-flex;
    width: 1.75rem;
    height: 1.75rem;
    color: var(--bs-secondary-color);
    font-size: 1.65rem;
    line-height: 1;
}

.storyro-rating-star-empty,
.storyro-rating-star-fill {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    pointer-events: none;
}

.storyro-rating-star-fill {
    width: 0;
    color: var(--bs-warning);
}

.storyro-rating-hit-area {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: 50%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.storyro-rating-hit-area:first-of-type {
    left: 0;
}

.storyro-rating-hit-area:last-of-type {
    right: 0;
}

.storyro-rating-hit-area:focus-visible {
    border-radius: 0.25rem;
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.storyro-rating-description {
    min-width: 8rem;
}

.storyro-rating-display-stars {
    color: var(--bs-warning);
    white-space: nowrap;
}

.storyro-rating-display-stars .bi {
    margin-right: 0.05rem;
}

@media (max-width: 575.98px) {
    .storyro-rating-input {
        row-gap: 0.75rem;
    }

    .storyro-rating-description {
        flex-basis: 100%;
    }

    .storyro-rating-star {
        width: 2rem;
        height: 2rem;
        font-size: 1.9rem;
    }
}
