/**
 * Star Rating — Common base CSS (loads for every style).
 *
 * Half / fractional rating ek do-layer technique se banti hai:
 *   - base layer  : poore empty stars (width define karti hai)
 *   - fill layer  : same stars absolute upar, width = --captwiki-star-fill %
 *                   overflow:hidden se exact fraction clip ho jaata hai.
 *
 * @package captain-widgets-kit
 * @since   1.3.0
 */

.captwiki-star-rating {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.captwiki-star-rating__row {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.captwiki-star-rating__stars {
	position: relative;
	display: inline-flex;
	font-size: 24px;
	line-height: 1;
}

.captwiki-star-rating__layer {
	display: inline-flex;
	flex-wrap: nowrap;
	gap: 4px;
	line-height: 1;
}

.captwiki-star-rating__layer--fill {
	position: absolute;
	top: 0;
	left: 0;
	width: var( --captwiki-star-fill, 0% );
	max-width: 100%;
	overflow: hidden;
	white-space: nowrap;
}

.captwiki-star-rating__icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
}

.captwiki-star-rating__icon svg {
	display: block;
	width: 1em;
	height: 1em;
}

.captwiki-star-rating__icon i {
	font-size: 1em;
	line-height: 1;
	font-style: normal;
}

.captwiki-star-rating__value {
	line-height: 1;
	white-space: nowrap;
}

.captwiki-star-rating__title {
	margin: 8px 0;
	line-height: 1.4;
}
