/* =========================================================
   Post Review Rating — Clean RTL Style (half-star support)
   ========================================================= */

.prr-widget {
	direction: ltr;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 0;
	margin: 1rem 0;
	font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
	background: transparent;
	box-sizing: border-box;
}

.prr-label {
	font-size: 14px;
	font-weight: bold;
	color: #222;
	white-space: nowrap;
}

.prr-stars {
	display: flex;
	flex-direction: row;
	gap: 4px;
}

/* Each star is a positioned container holding two layers */
.prr-star {
	background: transparent;
	border: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
	width: 26px;
	height: 26px;
	position: relative;
	transition: transform 0.1s ease;
	line-height: 1;
	flex-shrink: 0;
}

.prr-star svg {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
}

/* Back layer: always grey */
.prr-star__bg {
	fill: #ccc;
}

/* Front layer: gold, clipped by inline style width */
.prr-star__fg {
	fill: #f5a623;
	clip-path: inset(0 var(--prr-clip, 100%) 0 0);
}

/* Interactive hover state (non-voted) */
.prr-star--preview .prr-star__fg {
	--prr-clip: 0% !important;
}

.prr-star--preview .prr-star__bg {
	fill: #ccc;
}

.prr-star--preview {
	transform: scale(1.15);
}

.prr-star[disabled] {
	cursor: default;
}

/* Message */
.prr-message {
	font-size: 12px;
	color: #555;
	margin-top: 4px;
	text-align: right;
	direction: rtl;
	display: none;
}

.prr-message.prr-visible {
	display: block;
}