/* ── Rating Badge Block ─────────────────────────────────────────── */

.rb-block {
    display: flex;
}

.rb-card {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.10);
}

.rb-rating-value {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    color: #1e293b;
}

.rb-rating-right {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rb-stars {
    display: flex;
    gap: 3px;
}

.rb-stars i {
    font-size: 18px;
    color: #f59e0b;
}

.rb-stars i.rb-star-empty,
.rb-stars i.rb-star-half {
    color: #cbd5e1;
}

.rb-count {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
}

/* ── Stars Position Modifiers ────────────────────────────────────── */

/* Right (default) — no change needed, base styles handle this */

/* Left — reverse the row so stars+count come before the number */
.rb-card.rb-stars-left {
    flex-direction: row-reverse;
}

/* Top — column layout, stars group floats above the number */
.rb-card.rb-stars-top {
    flex-direction: column;
    align-items: flex-start;
}
.rb-card.rb-stars-top .rb-rating-right {
    order: -1;
}

/* Bottom — column layout, stars group sits below the number */
.rb-card.rb-stars-bottom {
    flex-direction: column;
    align-items: flex-start;
}
