/**
 * دیدگاه‌های هانل — مستقل و قوی‌تر از استایل سراسری ووکامرس
 */

.hanel-comments {
	--hanel-cmt-ink: #151923;
	--hanel-cmt-gold: #c5a059;
	--hanel-cmt-gold-hi: #e8c979;
	--hanel-cmt-muted: #6a7080;
	--hanel-cmt-soft: #8b90a0;
	--hanel-cmt-line: rgba(21, 25, 35, 0.08);
	--hanel-cmt-tint: #faf8f5;

	box-sizing: border-box;
	margin-top: 2.4rem;
	padding: 1.4rem 1.25rem 1.5rem;
	border: 1px solid var(--hanel-cmt-line);
	border-radius: 1.45rem;
	background:
		radial-gradient(80% 70% at 100% 0%, rgba(232, 201, 121, 0.16), transparent 48%),
		var(--hanel-cmt-tint);
	color: var(--hanel-cmt-ink);
}

.hanel-comments *,
.hanel-comments *::before,
.hanel-comments *::after {
	box-sizing: border-box;
}

.hanel-comments__kicker,
.hanel-comments .hanel-page__kicker {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--hanel-cmt-gold);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.16em;
}

.hanel-comments__head h2,
.hanel-comments__title,
.hanel-comments #reply-title,
.hanel-comments .comment-reply-title {
	margin: 0 0 0.95rem;
	color: var(--hanel-cmt-ink);
	font-family: inherit;
	font-size: 1.28rem;
	font-weight: 850;
	line-height: 1.4;
}

.hanel-comments .comment-reply-title small {
	display: inline-block;
	margin-inline-start: 0.45rem;
	font-size: 0.78rem;
	font-weight: 700;
}

.hanel-comments .comment-reply-title small a {
	color: var(--hanel-cmt-gold);
	text-decoration: none;
}

.hanel-comments__list,
.hanel-comments .hanel-page__comment-list,
.hanel-comments .comment-list {
	margin: 0 0 1.35rem;
	padding: 0;
	list-style: none;
}

.hanel-comments__item,
.hanel-comments .comment {
	margin: 0;
	padding: 0;
	list-style: none;
	background: none;
	border: 0;
}

.hanel-comments__item + .hanel-comments__item,
.hanel-comments .comment + .comment {
	margin-top: 0.75rem;
}

.hanel-comments .children {
	margin: 0.75rem 0 0;
	padding: 0;
	padding-inline-start: 1.1rem;
	list-style: none;
	border-inline-start: 2px solid rgba(197, 160, 89, 0.28);
}

.hanel-comments__card,
.hanel-comments .comment-body {
	padding: 1rem 1.05rem 1.05rem;
	border: 1px solid var(--hanel-cmt-line);
	border-radius: 1.15rem;
	background: #fff;
}

.hanel-comments__card-head,
.hanel-comments .comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.7rem 0.85rem;
	margin-bottom: 0.75rem;
}

.hanel-comments__avatar,
.hanel-comments .comment-author .avatar {
	display: block;
	width: 3.1rem;
	height: 3.1rem;
	overflow: hidden;
	border-radius: 50%;
	box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.4);
}

.hanel-comments__avatar img,
.hanel-comments .avatar {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.hanel-comments__who {
	flex: 1 1 8rem;
	min-width: 0;
}

.hanel-comments__author,
.hanel-comments .comment-author .fn {
	display: block;
	color: var(--hanel-cmt-ink);
	font-size: 0.92rem;
	font-weight: 800;
	font-style: normal;
}

.hanel-comments__author a,
.hanel-comments .fn a {
	color: inherit;
	text-decoration: none;
}

.hanel-comments .comment-author .says {
	display: none;
}

.hanel-comments__date,
.hanel-comments .comment-metadata {
	display: block;
	margin-top: 0.15rem;
	color: var(--hanel-cmt-soft);
	font-size: 0.74rem;
	font-weight: 600;
}

.hanel-comments .comment-metadata a {
	color: inherit;
	text-decoration: none;
}

.hanel-comments__reply,
.hanel-comments .reply {
	margin-inline-start: auto;
}

.hanel-comments__reply a,
.hanel-comments .comment-reply-link {
	display: inline-flex;
	align-items: center;
	min-height: 1.85rem;
	padding: 0.15rem 0.7rem;
	border-radius: 999px;
	background: rgba(197, 160, 89, 0.12);
	color: #9a7540;
	font-size: 0.74rem;
	font-weight: 750;
	text-decoration: none;
}

.hanel-comments__text,
.hanel-comments .comment-content {
	color: #3d4456;
	font-size: 0.95rem;
	line-height: 1.9;
}

.hanel-comments__text p,
.hanel-comments .comment-content p {
	margin: 0 0 0.6rem;
}

.hanel-comments__text p:last-child,
.hanel-comments .comment-content p:last-child {
	margin-bottom: 0;
}

.hanel-comments__awaiting {
	margin: 0 0 0.55rem;
	color: #9a7540;
	font-size: 0.8rem;
	font-weight: 700;
}

.hanel-comments__respond,
.hanel-comments #respond.comment-respond,
.hanel-comments #respond {
	margin-top: 0.35rem;
	padding: 1.15rem 1.1rem 1.2rem;
	border: 1px solid var(--hanel-cmt-line);
	border-radius: 1.2rem;
	background: #fff;
}

.hanel-comments__logged {
	display: grid;
	grid-template-columns: 2.8rem minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.7rem;
	margin: 0 0 1rem;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--hanel-cmt-line);
	border-radius: 1rem;
	background: var(--hanel-cmt-tint);
}

.hanel-comments__logged-avatar {
	width: 2.8rem;
	height: 2.8rem;
	border-radius: 50%;
	object-fit: cover;
}

.hanel-comments__logged p,
.hanel-comments .logged-in-as {
	margin: 0;
	color: var(--hanel-cmt-muted);
	font-size: 0.82rem;
	line-height: 1.6;
}

.hanel-comments__logged-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 0.8rem;
	font-size: 0.75rem;
	font-weight: 750;
}

.hanel-comments__logged-links a,
.hanel-comments .logged-in-as a {
	color: var(--hanel-cmt-gold);
	text-decoration: none;
}

.hanel-comments__note,
.hanel-comments .comment-notes {
	margin: 0 0 0.9rem;
	color: var(--hanel-cmt-muted);
	font-size: 0.82rem;
	line-height: 1.7;
}

.hanel-comments__form,
.hanel-comments #commentform,
.hanel-comments form.comment-form {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	margin: 0;
}

.hanel-comments__field,
.hanel-comments .comment-form-comment,
.hanel-comments .comment-form-author,
.hanel-comments .comment-form-email,
.hanel-comments .comment-form-url,
.hanel-comments .comment-form-cookies-consent {
	margin: 0;
}

.hanel-comments label {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--hanel-cmt-soft);
	font-size: 0.74rem;
	font-weight: 750;
}

.hanel-comments .required {
	color: #b03e3e;
}

.hanel-comments input[type="text"],
.hanel-comments input[type="email"],
.hanel-comments input[type="url"],
.hanel-comments textarea,
.hanel-comments #author,
.hanel-comments #email,
.hanel-comments #url,
.hanel-comments #comment {
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: 2.85rem;
	margin: 0;
	padding: 0.75rem 0.95rem;
	border: 1px solid var(--hanel-cmt-line);
	border-radius: 0.95rem;
	background: var(--hanel-cmt-tint);
	color: var(--hanel-cmt-ink);
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.6;
	appearance: none;
	-webkit-appearance: none;
}

.hanel-comments #comment,
.hanel-comments textarea {
	min-height: 9rem;
	resize: vertical;
}

.hanel-comments input:focus,
.hanel-comments textarea:focus,
.hanel-comments #comment:focus {
	border-color: rgba(197, 160, 89, 0.6);
	background: #fff;
	outline: none;
	box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.14);
}

.hanel-comments .form-submit {
	margin: 0.15rem 0 0;
}

.hanel-comments #respond input#submit,
.hanel-comments #commentform input#submit,
.hanel-comments #submit,
.hanel-comments .hanel-comments__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 10rem;
	min-height: 2.9rem;
	padding: 0.7rem 1.35rem;
	border: 0;
	border-radius: 999px;
	background: var(--hanel-cmt-ink);
	color: #fff;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 800;
	line-height: 1.3;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.hanel-comments #respond input#submit:hover,
.hanel-comments #submit:hover,
.hanel-comments .hanel-comments__submit:hover {
	background: #0e1218;
	color: var(--hanel-cmt-gold-hi);
	transform: translateY(-1px);
}

.hanel-comments__closed {
	margin: 0;
	color: var(--hanel-cmt-muted);
	font-size: 0.88rem;
}

.hanel-comments .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	color: var(--hanel-cmt-muted);
	font-size: 0.78rem;
}

.hanel-comments .comment-form-cookies-consent input {
	width: auto;
	min-height: 0;
	margin-top: 0.2rem;
}

.hanel-comments .comment-form-cookies-consent label {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--hanel-cmt-muted);
}

@media (max-width: 980px) {
	.hanel-comments {
		margin-top: 1.8rem;
		padding: 1.2rem 1.05rem 1.25rem;
	}

	.hanel-comments__respond,
	.hanel-comments #respond {
		padding: 1rem 0.95rem 1.05rem;
	}

	.hanel-comments__card-head {
		gap: 0.6rem;
	}
}

@media (max-width: 640px) {
	.hanel-comments {
		padding: 1.05rem 0.85rem 1.15rem;
		border-radius: 1.15rem;
	}

	.hanel-comments__logged {
		grid-template-columns: 2.8rem minmax(0, 1fr);
	}

	.hanel-comments__logged-links {
		grid-column: 1 / -1;
	}

	.hanel-comments__respond,
	.hanel-comments #respond {
		padding: 0.9rem 0.8rem 0.95rem;
	}

	.hanel-comments #respond input#submit,
	.hanel-comments #submit {
		width: 100%;
	}

	.hanel-comments .children {
		padding-inline-start: 0.55rem;
	}

	.hanel-comments__card,
	.hanel-comments .comment-body {
		padding: 0.85rem 0.85rem 0.9rem;
	}

	.hanel-comments__avatar,
	.hanel-comments .comment-author .avatar {
		width: 2.6rem;
		height: 2.6rem;
	}

	.hanel-comments__reply {
		margin-inline-start: 0;
		width: 100%;
	}

	.hanel-comments__reply a,
	.hanel-comments .comment-reply-link {
		min-height: 2.2rem;
	}
}

@media (max-width: 420px) {
	.hanel-comments {
		padding: 0.9rem 0.75rem 1rem;
	}

	.hanel-comments__title,
	.hanel-comments #reply-title,
	.hanel-comments .comment-reply-title {
		font-size: 1.12rem;
	}

	.hanel-comments #comment,
	.hanel-comments textarea {
		min-height: 7.5rem;
	}
}
