/* Stelle Recensione – stile pubblico */

.sr-box {
	--sr-fill: #f5a623;
	--sr-empty: rgba(128, 128, 128, 0.35);
	--sr-size: 28px;

	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35em 0.85em;
	margin: 1.25em 0;
	padding: 0.75em 1em;
	border-left: 4px solid var(--sr-fill);
	border-radius: 4px;
	background: rgba(128, 128, 128, 0.08);
	box-sizing: border-box;
}

.sr-label {
	font-size: 0.8em;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.75;
}

/* Due strati di stelle sovrapposti: quello pieno viene tagliato in larghezza. */
.sr-stars {
	position: relative;
	display: inline-block;
	font-family: "Segoe UI Symbol", "Apple Symbols", "DejaVu Sans", Arial, sans-serif;
	font-size: var(--sr-size);
	line-height: 1;
	white-space: nowrap;
}

.sr-stars-empty {
	color: var(--sr-empty);
}

.sr-stars-full {
	position: absolute;
	top: 0;
	left: 0;
	width: calc(var(--sr-rating, 0) / 5 * 100%);
	overflow: hidden;
	white-space: nowrap;
	color: var(--sr-fill);
}

.sr-value {
	font-size: calc(var(--sr-size) * 0.7);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.sr-max {
	margin-left: 0.1em;
	font-size: 0.7em;
	font-weight: 400;
	opacity: 0.6;
}

.sr-verdict {
	flex-basis: 100%;
	font-style: italic;
	opacity: 0.9;
}

/* Versione compatta per le liste. */
.sr-compact {
	--sr-size: 18px;

	display: inline-flex;
	margin: 0 0 0.5em;
	padding: 0;
	border: 0;
	background: none;
}

.sr-compact .sr-value {
	font-size: 0.9em;
}
