.lpr-rating-summary,
.lpr-rating-form {
	--lpr-star-color: #f5a623;
	--lpr-empty-color: #d7d7d7;
	--lpr-text-color: inherit;
	--lpr-input-text-color: #333333;
}

.lpr-rating-summary {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
}

.lpr-stars {
	display: inline-flex;
	align-items: center;
	gap: .12em;
	font-size: 22px;
	line-height: 1;
}

.lpr-stars.lpr-stars-direction-ltr {
	direction: ltr;
}

.lpr-stars.lpr-stars-direction-rtl {
	direction: rtl;
}

.lpr-stars .lpr-input-options {
	direction: inherit;
}

.lpr-star {
	position: relative;
	display: inline-block;
	width: 1em;
	height: 1em;
	line-height: 1;
}

.lpr-star-empty,
.lpr-star-fill {
	position: absolute;
	inset: 0;
	display: block;
	white-space: nowrap;
	overflow: hidden;
}

.lpr-star-empty {
	color: var(--lpr-empty-color);
}

.lpr-star-fill {
	color: var(--lpr-star-color);
}

.lpr-stars-direction-rtl .lpr-star-fill {
	left: auto;
	right: 0;
}

.lpr-star-glyph,
.lpr-star-glyph svg {
	display: block;
	width: 1em;
	height: 1em;
}

.lpr-star-glyph svg {
	fill: currentColor;
}

.lpr-rating-label {
	color: var(--lpr-text-color);
	font-size: .92em;
	line-height: 1.5;
}

.lpr-rating-form {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.lpr-rating-input-label,
.comment-form-lpr-rating > label {
	display: block;
	font-weight: 600;
	margin-bottom: 5px;
}

.lpr-input-options {
	display: inline-flex;
	gap: .08em;
	direction: inherit;
}

.lpr-input-options input {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.lpr-stars-input label {
	color: #d7d7d7;
	font-size: 1em;
	line-height: 1;
	cursor: pointer;
	transition: color .12s ease, transform .12s ease;
	user-select: none;
	display: inline-flex;
}

.lpr-stars-input label.is-selected,
.lpr-stars-input label:hover {
	color: var(--lpr-input-star-color, #f5a623);
}

.lpr-stars-input label:hover {
	transform: translateY(-1px);
}

.lpr-stars-input input:focus-visible + label {
	outline: 2px solid currentColor;
	outline-offset: 3px;
	border-radius: 2px;
}

.lpr-submit-rating {
	cursor: pointer;
}

.lpr-submit-rating[disabled] {
	opacity: .65;
	cursor: wait;
}

.lpr-rating-message {
	min-height: 1.5em;
	font-size: .92em;
}

.lpr-rating-message.is-error {
	color: #b42318;
}

.lpr-rating-message.is-success {
	color: #067647;
}

.lpr-rating-notice {
	font-size: .95em;
	line-height: 1.7;
}

.comment-form-lpr-rating {
	margin: 0 0 1em;
}

@media (prefers-reduced-motion: reduce) {
	.lpr-stars-input label {
		transition: none;
	}
}

/* Global display settings */
.lpr-rating-summary .lpr-stars,
.lpr-rating-form .lpr-stars,
.comment-form-lpr-rating .lpr-stars {
	font-size: var(--lpr-star-size, 22px);
}

.lpr-rating-summary.lpr-text-position-left,
.lpr-rating-summary.lpr-text-position-right {
	flex-direction: row;
	align-items: center;
}

.lpr-rating-summary.lpr-text-position-top,
.lpr-rating-summary.lpr-text-position-bottom {
	flex-direction: column;
}

.lpr-rating-summary.lpr-text-position-disabled .lpr-rating-label {
	display: none;
}

.lpr-stars-input label {
	color: var(--lpr-empty-color, #d7d7d7);
}

.lpr-rating-summary.lpr-text-position-left,
.lpr-rating-summary.lpr-text-position-right {
	direction: ltr;
}

.lpr-rating-summary .lpr-rating-label {
	unicode-bidi: plaintext;
}

/* v1.3 input numbers and text colors */
.lpr-rating-input-label,
.comment-form-lpr-rating > label,
.lpr-star-number {
	color: var(--lpr-input-text-color, #333333);
}

.lpr-rating-form {
	color: var(--lpr-input-text-color, #333333);
}

.lpr-stars-with-numbers .lpr-input-options {
	align-items: flex-end;
}

.lpr-stars-with-numbers .lpr-stars-input label,
.lpr-stars-with-numbers label {
	flex-direction: column;
	align-items: center;
	gap: .22em;
}

.lpr-star-number {
	display: block;
	font-size: .48em;
	font-weight: 600;
	line-height: 1;
	text-align: center;
	min-width: 1em;
}

/* v1.4 compact output and configurable feedback colors */
.lpr-rating-message.is-error {
	color: var(--lpr-error-color, #B42318);
}

.lpr-rating-message.is-success {
	color: var(--lpr-success-color, #067647);
}

.lpr-compact-score {
	display: inline-flex;
	align-items: center;
	gap: .18em;
	font-size: var(--lpr-star-size, 22px);
	line-height: 1;
	direction: ltr;
}

.lpr-compact-score-number {
	color: var(--lpr-text-color, #333333);
	font-size: .88em;
	font-weight: 600;
	line-height: 1;
}

.lpr-compact-score-star {
	color: var(--lpr-star-color, #F5A623);
	display: inline-flex;
	width: 1em;
	height: 1em;
}

.lpr-compact-score-star .lpr-star-glyph,
.lpr-compact-score-star .lpr-star-glyph svg {
	width: 1em;
	height: 1em;
}

/* v1.4.1: keep the SVG at full size and clip it, instead of shrinking the glyph.
   This fixes half fills for narrow four-point/sparkle and burst star shapes. */
.lpr-star .lpr-star-fill {
	width: 100%;
	clip-path: inset(0);
}

.lpr-star-fill-0 .lpr-star-fill {
	clip-path: inset(0 100% 0 0);
}

.lpr-star-fill-50 .lpr-star-fill {
	clip-path: inset(0 50% 0 0);
}

.lpr-star-fill-100 .lpr-star-fill {
	clip-path: inset(0);
}

.lpr-stars-direction-rtl .lpr-star-fill-0 .lpr-star-fill {
	clip-path: inset(0 0 0 100%);
}

.lpr-stars-direction-rtl .lpr-star-fill-50 .lpr-star-fill {
	clip-path: inset(0 0 0 50%);
}
