/**
 * Product Rating — common widget CSS.
 *
 * Stars use a two-layer technique: a full set of empty stars with a clipped
 * overlay of filled stars whose width encodes the exact rating percentage.
 *
 * @package captain-widgets-kit
 * @since   1.4.0
 */

.captwiki-prating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	line-height: 1.2;
}

.captwiki-prating__stars {
	position: relative;
	display: inline-block;
	font-size: 18px;
	line-height: 1;
	font-family: Arial, Helvetica, sans-serif;
}

.captwiki-prating__stars-empty,
.captwiki-prating__stars-filled {
	display: block;
	white-space: nowrap;
	letter-spacing: 2px;
}

.captwiki-prating__stars-empty {
	color: #d1d5db;
}

.captwiki-prating__stars-filled {
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	overflow: hidden;
	color: #f59e0b;
}

.captwiki-prating__score {
	font-weight: 700;
	color: #111827;
}

.captwiki-prating__count {
	font-size: 0.9em;
	color: #6b7280;
}

.captwiki-prating__count a {
	color: inherit;
	text-decoration: none;
}

.captwiki-prating__count a:hover {
	text-decoration: underline;
}

.captwiki-prating__empty-text {
	font-size: 0.9em;
	color: #6b7280;
}

/* Editor notice. */
.captwiki-prating--notice {
	display: block;
	padding: 14px 16px;
	border: 1px dashed #c3c4c7;
	border-radius: 6px;
	background: #f6f7f7;
	color: #50575e;
	text-align: center;
	font-size: 13px;
}

.captwiki-prating--notice p {
	margin: 0;
}
