/**
 * پاسخ‌یار — استایل فرم دیدگاه ووکامرس در صفحهٔ محصول (تم‌های خام).
 *
 * @package Pasokhyar
 */

/* ── فرم ثبت دیدگاه ── */
#review_form_wrapper,
#respond.comment-respond {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	padding: 26px 28px;
	margin: 28px 0;
	box-shadow: 0 4px 18px rgba(17, 24, 39, .05);
	direction: rtl;
	text-align: right;
}

#review_form_wrapper .comment-reply-title,
#respond .comment-reply-title {
	display: block;
	font-size: 1.15em;
	font-weight: 700;
	color: #111827;
	margin: 0 0 6px;
}

#review_form_wrapper .comment-notes,
#respond .comment-notes {
	font-size: .85em;
	color: #6b7280;
	margin: 0 0 18px;
	line-height: 1.9;
}

/* ستاره‌ها — بزرگ‌تر و تاچ‌پسند */
#review_form_wrapper .stars,
#respond .stars {
	margin: 4px 0 16px;
}

#review_form_wrapper .stars a,
#respond .stars a {
	font-size: 26px;
	margin-left: 2px;
	color: #d1d5db;
	transition: color .15s ease, transform .15s ease;
}

#review_form_wrapper .stars a:hover,
#respond .stars a:hover {
	transform: scale(1.15);
	color: #f59e0b;
}

#review_form_wrapper .stars a.active,
#respond .stars a.active {
	color: #f59e0b;
}

/* فیلدها */
#review_form_wrapper p,
#respond p {
	margin: 0 0 16px;
}

#review_form_wrapper label,
#respond label {
	display: block;
	font-size: .92em;
	font-weight: 600;
	color: #374151;
	margin-bottom: 6px;
}

#review_form_wrapper input[type="text"],
#review_form_wrapper input[type="email"],
#review_form_wrapper textarea,
#respond input[type="text"],
#respond input[type="email"],
#respond textarea {
	width: 100%;
	border: 1.5px solid #e5e7eb;
	border-radius: 10px;
	padding: 12px 14px;
	background: #f9fafb;
	font-size: .95em;
	color: #111827;
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
	box-shadow: none;
}

#review_form_wrapper input:focus,
#review_form_wrapper textarea:focus,
#respond input:focus,
#respond textarea:focus {
	border-color: #a78bfa;
	background: #fff;
	outline: none;
	box-shadow: 0 0 0 3px rgba(167, 139, 250, .18);
}

#review_form_wrapper textarea,
#respond textarea {
	min-height: 120px;
	resize: vertical;
	line-height: 1.9;
}

/* چک‌باکس ذخیرهٔ نام */
#review_form_wrapper .comment-form-cookies-consent,
#respond .comment-form-cookies-consent {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: .85em;
	color: #6b7280;
}

#review_form_wrapper .comment-form-cookies-consent input,
#respond .comment-form-cookies-consent input {
	width: auto;
	accent-color: #7c3aed;
	margin: 0;
}

#review_form_wrapper .comment-form-cookies-consent label,
#respond .comment-form-cookies-consent label {
	display: inline;
	font-weight: 400;
	margin: 0;
}

/* دکمهٔ ثبت */
#review_form_wrapper .submit,
#respond input[type="submit"],
#respond .form-submit input {
	display: inline-block;
	background: linear-gradient(135deg, #8b5cf6, #6d28d9);
	color: #fff !important;
	border: none;
	border-radius: 10px;
	padding: 12px 34px;
	font-size: .98em;
	font-weight: 700;
	cursor: pointer;
	transition: filter .15s ease, transform .1s ease;
	box-shadow: 0 6px 18px rgba(109, 40, 217, .28);
}

#review_form_wrapper .submit:hover,
#respond input[type="submit"]:hover,
#respond .form-submit input:hover {
	filter: brightness(1.08);
}

#review_form_wrapper .submit:active,
#respond input[type="submit"]:active {
	transform: translateY(1px);
}

/* ── فهرست دیدگاه‌های موجود ── */
.woocommerce-Reviews .commentlist {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
}

.woocommerce-Reviews .commentlist li.review,
.woocommerce-Reviews .commentlist li.comment {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 18px 20px;
	margin-bottom: 14px;
	direction: rtl;
	text-align: right;
}

.woocommerce-Reviews .commentlist .comment_container {
	position: relative;
	padding-right: 66px;
	min-height: 56px;
}

.woocommerce-Reviews .commentlist img.avatar {
	position: absolute;
	right: 0;
	top: 4px;
	border-radius: 12px;
	background: #f3f4f6;
	padding: 3px;
}

.woocommerce-Reviews .commentlist .comment-text {
	margin: 0;
	border: none;
	padding: 0;
}

.woocommerce-Reviews .commentlist .comment-text .star-rating {
	float: left;
	margin: 0 0 4px 0;
}

.woocommerce-Reviews .commentlist .comment-text .meta {
	color: #6b7280;
	font-size: .85em;
}

.woocommerce-Reviews .commentlist .comment-text .description {
	line-height: 2;
	color: #374151;
	margin-top: 6px;
}

@media screen and ( max-width: 600px ) {
	#review_form_wrapper,
	#respond.comment-respond {
		padding: 18px 16px;
	}
}
/**
 * پاسخ‌یار — استایل جعبهٔ خلاصهٔ دیدگاه‌ها در صفحهٔ محصول.
 *
 * @package Pasokhyar
 */

.pk-summary {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 18px 20px;
	margin: 0 0 24px;
	background: #fff;
	direction: rtl;
	text-align: right;
	line-height: 2;
}

.pk-summary__title {
	margin: 0 0 14px;
	font-size: 1.05em;
	font-weight: 700;
}

.pk-summary__cols {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.pk-summary__col {
	flex: 1 1 240px;
	border-radius: 8px;
	padding: 12px 14px;
	background: #f9fafb;
}

.pk-summary__col h4 {
	margin: 0 0 8px;
	font-size: 0.95em;
	font-weight: 700;
}

.pk-summary__col ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pk-summary__col li {
	position: relative;
	padding-right: 20px;
	margin-bottom: 4px;
	font-size: 0.92em;
}

.pk-summary__col li::before {
	position: absolute;
	right: 0;
	top: 0;
	font-weight: 700;
}

.pk-summary__col--pros {
	background: #f0fdf4;
}

.pk-summary__col--pros li::before {
	content: "+";
	color: #16a34a;
}

.pk-summary__col--cons {
	background: #fef2f2;
}

.pk-summary__col--cons li::before {
	content: "−";
	color: #dc2626;
}

.pk-summary__empty {
	margin: 0;
	font-size: 0.88em;
	color: #6b7280;
}

.pk-summary__verdict {
	margin: 14px 0 6px;
	font-size: 0.95em;
	font-weight: 600;
}

.pk-summary__meta {
	margin: 0;
	font-size: 0.8em;
	color: #6b7280;
}

@media screen and ( max-width: 600px ) {
	.pk-summary__cols {
		display: block;
	}

	.pk-summary__col {
		margin-bottom: 12px;
	}
}
