/* EP Reviews — Frontend Styles */

/* Review list */
.ep-reviews {
	margin: 32px 0;
}
.ep-reviews-summary {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e5e7eb;
}
.ep-reviews-average-number {
	font-size: 28px;
	font-weight: 700;
	color: #111827;
}
.ep-reviews-count {
	font-size: 14px;
	color: #6b7280;
}
.ep-reviews-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.ep-review-card {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 20px;
}
.ep-review-rating {
	margin-bottom: 8px;
}
.ep-stars {
	display: inline-flex;
	gap: 1px;
}
.ep-star {
	font-size: 16px;
	color: #d1d5db;
}
.ep-star--filled {
	color: #f59e0b;
}
.ep-review-title {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 6px;
	color: #111827;
}
.ep-review-body {
	font-size: 14px;
	line-height: 1.6;
	color: #374151;
	margin-bottom: 12px;
}
.ep-review-author {
	font-size: 13px;
	color: #6b7280;
}
.ep-review-author strong {
	color: #374151;
}
.ep-review-verified {
	display: inline-block;
	padding: 1px 8px;
	background: #dcfce7;
	color: #166534;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 500;
	margin-left: 6px;
}
.ep-review-date {
	margin-left: 8px;
	color: #9ca3af;
}

/* Submission form */
.ep-review-form-wrapper {
	margin: 32px 0;
	max-width: 600px;
}
.ep-review-form-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 16px;
}
.ep-review-field {
	margin-bottom: 16px;
}
.ep-review-field label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 4px;
	color: #374151;
}
.ep-review-field input[type="text"],
.ep-review-field input[type="email"],
.ep-review-field textarea {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	box-sizing: border-box;
}
.ep-review-field textarea {
	resize: vertical;
}
.ep-review-field input:focus,
.ep-review-field textarea:focus {
	outline: none;
	border-color: #6366f1;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.ep-review-hint {
	font-size: 12px;
	color: #9ca3af;
	margin-top: 2px;
	display: block;
}
.ep-required {
	color: #ef4444;
}
.ep-review-submit {
	display: inline-block;
	padding: 10px 24px;
	background: #4f46e5;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	font-family: inherit;
}
.ep-review-submit:hover {
	background: #4338ca;
}
.ep-review-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.ep-review-response {
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 14px;
	display: none;
}
.ep-review-response:not(:empty) {
	display: block;
}
.ep-review-response--success { background: #dcfce7; color: #166534; }
.ep-review-response--error { background: #fee2e2; color: #991b1b; }
.ep-review-response--info { background: #dbeafe; color: #1e40af; }

/* Star rating input */
.ep-star-input {
	border: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: 2px;
}
.ep-star-input input {
	display: none;
}
.ep-star-input label {
	font-size: 28px;
	color: #d1d5db;
	cursor: pointer;
	transition: color 0.1s;
	display: inline-block !important;
	margin: 0 !important;
	font-weight: normal !important;
}
.ep-star-input label:hover,
.ep-star-input label:hover ~ label {
	color: #f59e0b;
}
.ep-star-input input:checked ~ label {
	color: #f59e0b;
}

.ep-hp {
	position: absolute;
	left: -9999px;
}
