/* Local Hero Reviews. Defaults use :where() (zero specificity) so any theme can override the tokens. */
:where(.lhr-form-wrap, .lhr-grid) {
	--lhr-accent: #D1541A;
	--lhr-accent-dark: #A8410F;
	--lhr-text: #1B3325;
	--lhr-muted: #667066;
	--lhr-border: #CFD6C6;
	--lhr-bg: #FFFFFF;
	--lhr-tint: #F1EFE4;
	--lhr-off: #CFD6C6;
	--lhr-radius: 6px;
	--lhr-radius-lg: 12px;
}

.lhr-form-wrap { max-width: 640px; color: var(--lhr-text); }
.lhr-form { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.lhr-field { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.lhr-label { font-weight: 600; font-size: 1rem; padding: 0; }
.lhr-row { display: grid; gap: 20px; }
@media (min-width: 600px) { .lhr-row { grid-template-columns: 1fr 1fr; } }

.lhr-input {
	width: 100%; font: inherit; font-size: 1rem; color: var(--lhr-text);
	padding: 12px 14px; background: var(--lhr-bg);
	border: 1.5px solid var(--lhr-border); border-radius: var(--lhr-radius);
}
.lhr-input:focus { outline: 3px solid var(--lhr-accent); outline-offset: 1px; border-color: var(--lhr-accent); }
textarea.lhr-input { resize: vertical; min-height: 150px; line-height: 1.5; }

/* Star picker: DOM order is 5..1, row-reverse shows 1..5 left to right */
.lhr-rate__group { position: relative; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.lhr-rate__group input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.lhr-rate__group label { font-size: 2.5rem; line-height: 1; color: var(--lhr-off); cursor: pointer; padding: 2px; border-radius: var(--lhr-radius); transition: color .1s ease, transform .1s ease; }
.lhr-rate__group input:checked ~ label,
.lhr-rate__group label:hover,
.lhr-rate__group label:hover ~ label { color: var(--lhr-accent); }
.lhr-rate__group label:active { transform: scale(.9); }
.lhr-rate__group input:focus-visible + label { outline: 3px solid var(--lhr-accent); outline-offset: 2px; }

.lhr-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lhr-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lhr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; }
.lhr-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 52px; padding: 0 28px; border: 0; border-radius: var(--lhr-radius);
	background: var(--lhr-accent); color: #fff; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
}
.lhr-btn:hover { background: var(--lhr-accent-dark); }
.lhr-btn[disabled] { opacity: .6; cursor: default; }
.lhr-note { font-size: .875rem; color: var(--lhr-muted); }
@media (max-width: 599px) { .lhr-btn { width: 100%; } }

.lhr-notice { padding: 18px 20px; border-radius: var(--lhr-radius-lg); margin-bottom: 20px; }
.lhr-notice p { margin: 0; }
.lhr-notice p + p { margin-top: 6px; }
.lhr-notice--ok { background: var(--lhr-tint); border: 1.5px solid var(--lhr-accent); }
.lhr-notice--err { background: #FDECEA; border: 1.5px solid #B42318; }

/* [lh_reviews] */
.lhr-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .lhr-grid { grid-template-columns: repeat(var(--lhr-cols, 3), minmax(0, 1fr)); gap: 24px; } }
.lhr-card { margin: 0; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--lhr-radius-lg); border: 1.5px solid var(--lhr-border); background: var(--lhr-tint); }
.lhr-card__stars { margin: 0; color: var(--lhr-accent); letter-spacing: 2px; }
.lhr-card__text p { margin: 0 0 .6em; }
.lhr-card__by { font-size: .875rem; font-weight: 500; color: var(--lhr-muted); }
.lhr-stars-display__off { color: var(--lhr-off); }
