/* Vanpim Review Form — scoped under .vanpim-review-wrap */

.vanpim-review-wrap {
	max-width: 560px;
	margin: 2rem 0;
	font-family: inherit;
}

.vanpim-review-title {
	font-size: 1.25rem;
	margin-bottom: 1.25rem;
}

/* Feedback banner */
.vanpim-review-feedback {
	padding: .75rem 1rem;
	border-radius: 4px;
	margin-bottom: 1rem;
	font-size: .9rem;
}

.vanpim-review-feedback[hidden] {
	display: none;
}

.vanpim-review-feedback.is-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.vanpim-review-feedback.is-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Fields */
.vanpim-field {
	display: flex;
	flex-direction: column;
	margin-bottom: 1.25rem;
}

.vanpim-field label,
.vanpim-label {
	font-weight: 600;
	font-size: .9rem;
	margin-bottom: .35rem;
	color: #333;
}

.vanpim-required {
	color: #c0392b;
	margin-left: 2px;
}

.vanpim-input,
.vanpim-textarea {
	padding: .5rem .75rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1rem;
	font-family: inherit;
	transition: border-color .15s ease;
	background: #fff;
	color: #222;
}

.vanpim-input:focus,
.vanpim-textarea:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 2px rgba(0, 115, 170, .2);
}

.vanpim-input.is-invalid,
.vanpim-textarea.is-invalid {
	border-color: #c0392b;
}

.vanpim-textarea {
	resize: vertical;
	min-height: 120px;
}

/* Hint text */
.vanpim-hint {
	font-size: .78rem;
	color: #777;
	margin-top: .25rem;
}

/* Char counter */
.vanpim-char-count {
	font-size: .78rem;
	color: #777;
	text-align: right;
	margin-top: .2rem;
}

.vanpim-char-count.is-near-limit {
	color: #e67e22;
}

.vanpim-char-count.is-at-limit {
	color: #c0392b;
}

/* Field-level error */
.vanpim-field-error {
	font-size: .8rem;
	color: #c0392b;
	margin-top: .25rem;
	min-height: 1.1em;
}

/* Star rating */
.vanpim-stars {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: .15rem;
}

.vanpim-star {
	cursor: pointer;
	display: flex;
	align-items: center;
}

.vanpim-star-input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 0;
	height: 0;
}

.vanpim-star svg {
	width: 28px;
	height: 28px;
	fill: #ddd;
	stroke: #bbb;
	stroke-width: 1px;
	transition: fill .1s ease;
}

/* Highlight hovered star and all preceding siblings (flex row-reverse trick). */
.vanpim-stars:hover .vanpim-star svg,
.vanpim-star:hover ~ .vanpim-star svg {
	fill: #f4c542;
	stroke: #e6a817;
}

/* Highlight selected stars */
.vanpim-stars.has-value .vanpim-star--selected svg,
.vanpim-stars.has-value .vanpim-star--selected ~ .vanpim-star svg {
	fill: #f4c542;
	stroke: #e6a817;
}

/* Submit */
.vanpim-submit {
	display: inline-block;
	padding: .6rem 1.5rem;
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 1rem;
	cursor: pointer;
	transition: background .15s ease, opacity .15s ease;
}

.vanpim-submit:hover {
	background: #005f8d;
}

.vanpim-submit:disabled,
.vanpim-submit.is-loading {
	opacity: .6;
	cursor: not-allowed;
}

/* =========================================================================
   Review list
   ========================================================================= */

.vanpim-reviews-wrap {
	margin: 1.5rem 0;
}

.vanpim-no-reviews {
	color: #777;
	font-style: italic;
}

.vanpim-review-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.vanpim-review-item {
	border-bottom: 1px solid #eee;
	padding: 1.25rem 0;
}

.vanpim-review-item:last-child {
	border-bottom: none;
}

.vanpim-review-header {
	display: flex;
	align-items: center;
	gap: .75rem;
	margin-bottom: .5rem;
}

.vanpim-reviewer-name {
	font-weight: 600;
	font-size: .95rem;
	color: #222;
}

/* Star display (read-only) */
.vanpim-star-display {
	display: flex;
	gap: .1rem;
}

.vanpim-star-icon {
	width: 18px;
	height: 18px;
	fill: #ddd;
	stroke: #bbb;
	stroke-width: 1px;
}

.vanpim-star-icon.is-filled {
	fill: #f4c542;
	stroke: #e6a817;
}

.vanpim-review-body p {
	margin: 0;
	font-size: .93rem;
	line-height: 1.6;
	color: #444;
}

/* Honeypot — must be invisible and not displace layout */
.vanpim-hp-wrap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
	tab-index: -1;
}
