/**
 * دیدگاه‌های وردپرس با زبانِ بصری افزونه: کارت سفید، آواتار گرد، تاریخ و
 * دکمه‌های نرم، و فرم پاسخ مرتب.
 *
 * مارک‌آپ دست پوسته است؛ اینجا فقط استایل داده می‌شود، پس همه‌ی انتخابگرها
 * زیر .comments-area می‌آیند تا جای دیگری از سایت را به‌هم نریزند.
 */

.comments-area {
	--mah24-c-wine: #4e1229;
	--mah24-c-wine2: #6d1c35;
	--mah24-c-ink: #24202a;
	--mah24-c-soft: #8b8b93;
	--mah24-c-line: #ececef;
	--mah24-c-panel: #f7f5f6;
	--mah24-c-radius: 18px;

	box-sizing: border-box;
	margin: 32px 0 0;
	padding: clamp(16px, 3vw, 24px);
	border: 1px solid var(--mah24-c-line);
	border-radius: 22px;
	background: var(--mah24-c-panel);
	color: var(--mah24-c-ink);
	font-size: 14px;
	line-height: 2;
	text-align: start;
}

.comments-area *,
.comments-area *::before,
.comments-area *::after {
	box-sizing: border-box;
}

/* عنوان‌های مخصوص صفحه‌خوان، اگر پوسته پنهانشان نکرده باشد. */
.comments-area .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	border: 0;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ------------------------------------------------------------ عنوان بخش */

.comments-area .title-comments,
.comments-area .comments-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	padding: 0;
	border: 0;
	color: var(--mah24-c-ink);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.8;
}

.comments-area .title-comments::before,
.comments-area .comments-title::before {
	content: '';
	flex: 0 0 auto;
	width: 6px;
	height: 20px;
	border-radius: 4px;
	background: var(--mah24-c-wine);
}

/* --------------------------------------------------------- فهرست دیدگاه‌ها */

.comments-area ol.comment-list,
.comments-area ul.comment-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.comments-area ol.comment-list li,
.comments-area ul.comment-list li {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* هر دیدگاه یک کارت سفید. */
.comments-area .comment-body {
	position: relative;
	margin: 0;
	padding: 16px 18px;
	border: 1px solid var(--mah24-c-line);
	border-radius: var(--mah24-c-radius);
	background: #fff;
	box-shadow: 0 8px 26px -24px rgba(36, 32, 42, 0.7);
}

.comments-area .comment-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 10px;
	padding: 0;
	border: 0;
	background: none;
}

.comments-area .comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	color: var(--mah24-c-ink);
	font-size: 14px;
}

.comments-area .comment-author img.avatar {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	margin: 0;
	border: 1px solid var(--mah24-c-line);
	border-radius: 50%;
	background: #fff;
	object-fit: cover;
}

.comments-area .comment-author .fn,
.comments-area .comment-author .fn a {
	color: var(--mah24-c-ink);
	font-size: 14px;
	font-style: normal;
	font-weight: 800;
	text-decoration: none;
}

.comments-area .comment-author .fn a:hover {
	color: var(--mah24-c-wine);
}

/* «گفت:» چیزی به خواندن اضافه نمی‌کند. */
.comments-area .comment-author .says {
	display: none;
}

.comments-area .comment-metadata {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	color: var(--mah24-c-soft);
	font-size: 12px;
}

.comments-area .comment-metadata a {
	color: var(--mah24-c-soft);
	text-decoration: none;
}

.comments-area .comment-metadata a:hover {
	color: var(--mah24-c-wine);
}

.comments-area .comment-metadata .edit-link a {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border: 1px solid var(--mah24-c-line);
	border-radius: 999px;
	background: #fbfafb;
	color: var(--mah24-c-soft);
	font-size: 11.5px;
	font-weight: 700;
}

.comments-area .comment-metadata .edit-link a:hover {
	border-color: var(--mah24-c-wine);
	color: var(--mah24-c-wine);
}

/* نشانِ «در انتظار بررسی». */
.comments-area .comment-awaiting-moderation {
	display: inline-block;
	margin: 0 0 8px;
	padding: 4px 12px;
	border-radius: 999px;
	background: #fdf3e6;
	color: #a5651b;
	font-size: 12px;
	font-weight: 700;
}

/* ------------------------------------------------------------ متن دیدگاه */

.comments-area .comment-content {
	color: #46414d;
	font-size: 13.5px;
	line-height: 2.15;
	text-align: justify;
	overflow-wrap: anywhere;
}

.comments-area .comment-content p {
	margin: 0 0 10px;
}

.comments-area .comment-content p:last-child {
	margin-bottom: 0;
}

.comments-area .comment-content img.emoji {
	display: inline-block;
	width: 1.15em;
	height: 1.15em;
	margin: 0 2px;
	vertical-align: -0.2em;
}

.comments-area .comment-content a {
	color: var(--mah24-c-wine);
}

/* دکمه‌ی پاسخ. */
.comments-area .reply {
	margin-top: 12px;
}

.comments-area .reply a.comment-reply-link {
	display: inline-flex;
	align-items: center;
	padding: 7px 18px;
	border: 1px solid var(--mah24-c-wine);
	border-radius: 999px;
	background: #fff;
	color: var(--mah24-c-wine);
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

.comments-area .reply a.comment-reply-link:hover,
.comments-area .reply a.comment-reply-link:focus-visible {
	background: var(--mah24-c-wine);
	box-shadow: 0 6px 16px rgba(78, 18, 41, 0.18);
	color: #fff;
}

/* پاسخ‌های تودرتو: کمی تورفته، با خط راهنما. */
.comments-area .comment-list .children {
	margin: 12px 0 0;
	padding: 0;
	padding-inline-start: clamp(12px, 3vw, 26px);
	border-inline-start: 2px solid var(--mah24-c-line);
	list-style: none;
}

.comments-area .comment-list .children > li {
	margin-top: 12px;
}

.comments-area .comment.bypostauthor > .comment-body {
	border-color: #e8d3dc;
	background: #fffdfe;
}

.comments-area .pingback .comment-body,
.comments-area .trackback .comment-body {
	padding: 12px 16px;
	color: var(--mah24-c-soft);
	font-size: 12.5px;
}

/* ------------------------------------------------------------ صفحه‌بندی */

.comments-area .comment-navigation {
	margin: 16px 0;
}

.comments-area .comment-navigation .nav-links {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}

.comments-area .comment-navigation .nav-links a {
	display: inline-flex;
	align-items: center;
	padding: 9px 18px;
	border: 1px solid var(--mah24-c-line);
	border-radius: 999px;
	background: #fff;
	color: var(--mah24-c-ink);
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: none;
	transition: border-color 0.18s, color 0.18s;
}

.comments-area .comment-navigation .nav-links a:hover {
	border-color: var(--mah24-c-wine);
	color: var(--mah24-c-wine);
}

.comments-area .comment-navigation .nav-next {
	margin-inline-start: auto;
}

/* ------------------------------------------------------------ فرم دیدگاه */

.comments-area .comment-respond {
	margin-top: 18px;
	padding: clamp(16px, 3vw, 22px);
	border: 1px solid var(--mah24-c-line);
	border-radius: var(--mah24-c-radius);
	background: #fff;
}

.comments-area .comment-reply-title {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 14px;
	padding: 0;
	border: 0;
	color: var(--mah24-c-ink);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.8;
}

.comments-area .comment-reply-title small a {
	color: var(--mah24-c-soft);
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none;
}

.comments-area .comment-reply-title small a:hover {
	color: var(--mah24-c-wine);
}

.comments-area .logged-in-as,
.comments-area .comment-notes {
	margin: 0 0 14px;
	color: var(--mah24-c-soft);
	font-size: 12.5px;
	line-height: 2;
}

.comments-area .logged-in-as a,
.comments-area .comment-notes a {
	color: var(--mah24-c-wine);
	text-decoration: none;
}

.comments-area .required-field-message,
.comments-area .required {
	color: #c0392b;
	font-size: 12px;
}

.comments-area .comment-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
}

.comments-area .comment-form p {
	margin: 0;
}

/* نام، ایمیل و سایت کنار هم می‌نشینند. */
.comments-area .comment-form-author,
.comments-area .comment-form-email,
.comments-area .comment-form-url {
	display: inline-block;
	width: 100%;
}

.comments-area .comment-form label {
	display: block;
	margin-bottom: 6px;
	color: var(--mah24-c-ink);
	font-size: 12.5px;
	font-weight: 700;
}

.comments-area .comment-form input[type="text"],
.comments-area .comment-form input[type="email"],
.comments-area .comment-form input[type="url"],
.comments-area .comment-form textarea {
	width: 100%;
	max-width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--mah24-c-line);
	border-radius: 14px;
	background: #fbfafb;
	color: var(--mah24-c-ink);
	font-family: inherit;
	font-size: 13.5px;
	line-height: 2;
	transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.comments-area .comment-form textarea {
	min-height: 130px;
	resize: vertical;
}

.comments-area .comment-form input[type="text"]:focus,
.comments-area .comment-form input[type="email"]:focus,
.comments-area .comment-form input[type="url"]:focus,
.comments-area .comment-form textarea:focus {
	border-color: var(--mah24-c-wine);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(78, 18, 41, 0.08);
	outline: none;
}

.comments-area .comment-form-cookies-consent {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--mah24-c-soft);
	font-size: 12.5px;
}

.comments-area .comment-form-cookies-consent label {
	margin: 0;
	font-weight: 600;
}

.comments-area .form-submit {
	margin: 0;
}

.comments-area .comment-form input[type="submit"],
.comments-area .comment-form .submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 180px;
	padding: 13px 28px;
	border: 0;
	border-radius: 14px;
	background: var(--mah24-c-wine);
	color: #fff;
	cursor: pointer;
	font-family: inherit;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.8;
	transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
}

.comments-area .comment-form input[type="submit"]:hover,
.comments-area .comment-form .submit:hover {
	background: var(--mah24-c-wine2);
	box-shadow: 0 10px 24px -12px rgba(78, 18, 41, 0.6);
	transform: translateY(-1px);
}

.comments-area .no-comments,
.comments-area .comment-form-comment .required {
	color: var(--mah24-c-soft);
}

/* --------------------------------------------- «برای ثبت دیدگاه وارد شوید» */

/*
 * جای فرم را می‌گیرد، پس باید خودش یک کارت کامل باشد نه یک خط متن: پیام
 * کوتاه، و دکمه‌ای که آشکارا همان دکمه‌ی ثبت دیدگاه است تا معلوم باشد قدم
 * بعدی چیست.
 */
.comments-area .mah24-login-note {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 18px;
	margin: 0;
	padding: 18px 20px;
	border: 1px solid var(--mah24-c-line);
	border-radius: var(--mah24-c-radius);
	background: #fff;
}

.comments-area .mah24-login-note__text {
	flex: 1 1 220px;
	color: var(--mah24-c-ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.9;
}

.comments-area .mah24-login-note__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 0 0 auto;
	min-width: 180px;
	padding: 12px 24px;
	border-radius: 14px;
	background: var(--mah24-c-wine);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.8;
	text-decoration: none;
	transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
}

.comments-area .mah24-login-note__btn:hover,
.comments-area .mah24-login-note__btn:focus-visible {
	background: var(--mah24-c-wine2);
	box-shadow: 0 10px 24px -12px rgba(78, 18, 41, 0.6);
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}

.comments-area .mah24-login-note__icon {
	flex: 0 0 auto;
}

/* ------------------------------------------------------------- واکنش‌گرا */

@media screen and (min-width: 700px) {
	/* در عرض کافی، نام و ایمیل کنار هم. */
	.comments-area .comment-form-author,
	.comments-area .comment-form-email {
		width: calc(50% - 6px);
	}

	.comments-area .comment-form-author {
		margin-inline-end: 12px;
	}
}

@media screen and (max-width: 600px) {
	.comments-area {
		padding: 14px;
		border-radius: 18px;
	}

	.comments-area .comment-body {
		padding: 14px;
	}

	.comments-area .comment-meta {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.comments-area .comment-author img.avatar {
		width: 36px;
		height: 36px;
	}

	.comments-area .comment-navigation .nav-links a,
	.comments-area .comment-form input[type="submit"],
	.comments-area .mah24-login-note__btn {
		width: 100%;
		justify-content: center;
	}

	.comments-area .mah24-login-note {
		padding: 16px;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.comments-area .reply a.comment-reply-link,
	.comments-area .comment-form input[type="submit"],
	.comments-area .comment-navigation .nav-links a,
	.comments-area .mah24-login-note__btn {
		transition: none;
	}

	.comments-area .comment-form input[type="submit"]:hover,
	.comments-area .mah24-login-note__btn:hover {
		transform: none;
	}
}
