/* ==========================================================================
   Term Comments Pro — front-end styles
   Design tokens are exposed as CSS variables on .tcp-comments-wrap so each
   site can retint the module to match its own brand with a single override,
   e.g.:
     .tcp-comments-wrap { --tcp-accent: #0F6E5C; }
   ========================================================================== */

.tcp-comments-wrap {
	--tcp-ink: #1c2124;
	--tcp-ink-soft: #62707a;
	--tcp-ink-faint: #94a0a8;
	--tcp-surface: #ffffff;
	--tcp-surface-reply: #f4f7f7;
	--tcp-border: #e1e6e8;
	--tcp-accent:#ef4056;       /* دیدگاه اصلی */
	--tcp-accent-soft: #e4f0ee;
	--tcp-reply-line: #c8a34d;   /* پاسخ‌ها — رنگ متمایز از دیدگاه اصلی */
	--tcp-radius: 10px;
	--tcp-danger-bg: #fdf3e3;
	--tcp-danger-border: #eed9ad;
	--tcp-danger-text: #8a6416;

	margin: 48px 0;
	padding: 32px clamp(18px, 4vw, 36px);
	background: var(--tcp-surface);
	border: 1px solid var(--tcp-border);
	border-radius: 14px;
	direction: rtl;
	text-align: right;
	color: var(--tcp-ink);
	font-size: 15px;
	line-height: 1.75;
}

.tcp-comments-wrap * {
	box-sizing: border-box;
}

.tcp-comments-title {
	margin: 0 0 28px;
	padding-inline-start: 14px;
	border-inline-start: 3px solid var(--tcp-accent);
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.tcp-comments-title .tcp-count {
	font-weight: 400;
	color: var(--tcp-ink-faint);
	font-size: 15px;
}

/* --------------------------------------------------------------------
   لیست دیدگاه‌ها
   -------------------------------------------------------------------- */

.tcp-comment-list,
.tcp-comment-list ol.children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tcp-comment-list > li + li {
	margin-top: 18px;
}

.tcp-comment-list ol.children {
	margin-top: 16px;
	padding-inline-start: 28px;
	border-inline-start: 2px dashed var(--tcp-border);
}

.tcp-comment-list ol.children > li + li {
	margin-top: 14px;
}

.tcp-comment-body {
	display: flex;
	gap: 14px;
}

/* دیدگاه اصلی: کارت مستقل با لبه‌ی رنگی و پس‌زمینه‌ی سفید */
.tcp-comment--top {
	padding: 18px 20px;
	background: var(--tcp-surface);
	border: 1px solid var(--tcp-border);
	border-inline-end: 4px solid var(--tcp-accent);
	border-radius: var(--tcp-radius);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tcp-comment--top:hover {
	box-shadow: 0 4px 14px rgba(20, 101, 90, 0.08);
}

/* پاسخ: بدون کارت مستقل، با پس‌زمینه‌ی ملایم و نشانه‌ی رنگی متفاوت برای تمایز از دیدگاه اصلی */
.tcp-comment--reply {
	padding: 12px 16px;
	background: var(--tcp-surface-reply);
	border-radius: 8px;
	position: relative;
}

.tcp-comment--reply::before {
	content: "";
	position: absolute;
	inset-inline-start: -18px;
	top: 22px;
	width: 16px;
	height: 2px;
	background: var(--tcp-reply-line);
}

.tcp-comment--reply .tcp-comment-avatar img {
	border-color: var(--tcp-reply-line);
}

.tcp-comment-replyto {
	font-size: 12.5px;
	color: var(--tcp-ink-faint);
	margin-bottom: 4px;
}

.tcp-comment-replyto span {
	color: var(--tcp-reply-line);
	font-weight: 600;
}

.tcp-comment-avatar {
	flex: none;
}

.tcp-comment-avatar img {
	display: block;
	border-radius: 50%;
	border: 2px solid var(--tcp-accent-soft);
}

.tcp-comment--top .tcp-comment-avatar img {
	border-color: var(--tcp-accent);
}

.tcp-comment-content {
	flex: 1;
	min-width: 0;
}

.tcp-comment-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	align-items: baseline;
	margin-bottom: 6px;
}

.tcp-comment-author {
	font-weight: 700;
	color: var(--tcp-ink);
}

.tcp-comment--reply .tcp-comment-author {
	font-weight: 600;
	font-size: 14px;
}

.tcp-comment-date {
	color: var(--tcp-ink-faint);
	font-size: 12.5px;
}

.tcp-comment-pending {
	display: inline-block;
	margin: 0 0 10px;
	padding: 5px 10px;
	background: var(--tcp-danger-bg);
	border: 1px solid var(--tcp-danger-border);
	color: var(--tcp-danger-text);
	border-radius: 6px;
	font-size: 12.5px;
}

.tcp-comment-text p {
	margin: 0 0 10px;
	color: var(--tcp-ink);
}

.tcp-comment-text p:last-child {
	margin-bottom: 0;
}

.tcp-comment--reply .tcp-comment-text {
	font-size: 14px;
}

.tcp-comment-actions {
	margin-top: 8px;
}

.tcp-comment-actions .comment-reply-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	font-weight: 600;
	color: var(--tcp-ink-soft);
	text-decoration: none;
	padding: 4px 2px;
	border-bottom: 1px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.tcp-comment-actions .comment-reply-link:hover,
.tcp-comment-actions .comment-reply-link:focus-visible {
	color: var(--tcp-accent);
	border-color: currentColor;
}

.tcp-reply-icon {
	transform: scaleX(-1); /* هم‌راستا با فلش فارسی/راست‌به‌چپ */
}

.tcp-no-comments {
	padding: 18px;
	margin: 0 0 24px;
	background: var(--tcp-surface-reply);
	border: 1px dashed var(--tcp-border);
	border-radius: var(--tcp-radius);
	color: var(--tcp-ink-soft);
	text-align: center;
}

/* --------------------------------------------------------------------
   فرم ثبت دیدگاه
   -------------------------------------------------------------------- */

.tcp-comment-form {
	margin-top: 32px;
	padding-top: 28px;
	border-top: 1px solid var(--tcp-border);
}

.tcp-comment-form .comment-reply-title {
	margin: 0 0 18px;
	font-size: 16px;
	font-weight: 700;
}

.tcp-comment-form .comment-reply-title small {
	margin-inline-start: 8px;
	font-weight: 400;
	font-size: 12.5px;
}

.tcp-comment-form .comment-reply-title small a {
	color: var(--tcp-ink-soft);
}

.tcp-comment-form .comment-form p {
	margin: 0 0 16px;
}

.tcp-comment-form .comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--tcp-ink-soft);
}

.tcp-comment-form .comment-form input[type="text"],
.tcp-comment-form .comment-form input[type="email"],
.tcp-comment-form .comment-form input[type="url"],
.tcp-comment-form .comment-form textarea {
	width: 100%;
	max-width: 460px;
	padding: 11px 14px;
	background: var(--tcp-surface);
	border: 1px solid var(--tcp-border);
	border-radius: 8px;
	font-family: inherit;
	font-size: 14px;
	color: var(--tcp-ink);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tcp-comment-form .comment-form textarea {
	max-width: 100%;
	min-height: 120px;
	resize: vertical;
}

.tcp-comment-form .comment-form input:focus-visible,
.tcp-comment-form .comment-form textarea:focus-visible {
	outline: none;
	border-color: var(--tcp-accent);
	box-shadow: 0 0 0 3px var(--tcp-accent-soft);
}

.tcp-comment-form .comment-notes,
.tcp-comment-form .logged-in-as {
	color: var(--tcp-ink-faint);
	font-size: 13px;
	margin-bottom: 16px;
}

.tcp-comment-form .form-submit {
	margin: 4px 0 0;
}

.tcp-comment-form .form-submit input[type="submit"] {
	appearance: none;
	cursor: pointer;
	padding: 11px 26px;
	background: var(--tcp-accent);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	transition: background-color 0.15s ease, transform 0.1s ease;
}

.tcp-comment-form .form-submit input[type="submit"]:hover {
	background: #0f4f46;
}

.tcp-comment-form .form-submit input[type="submit"]:active {
	transform: translateY(1px);
}

.tcp-comment-form .form-submit input[type="submit"]:focus-visible {
	outline: 3px solid var(--tcp-accent-soft);
	outline-offset: 2px;
}

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

@media (max-width: 600px) {
	.tcp-comments-wrap {
		padding: 22px 16px;
		border-radius: 10px;
	}

	.tcp-comment-list ol.children {
		padding-inline-start: 16px;
	}

	.tcp-comment-body {
		gap: 10px;
	}

	.tcp-comment--top {
		padding: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tcp-comments-wrap * {
		transition: none !important;
	}
}
.tcp-comment-body {
  display: flex;
  gap: 14px;
  padding: 15px;
  background: #f6f7fa;
  border-right: 4px solid #ef4056;
  border-radius: 5px;
  color: #363636;
  margin: 20px 0px;
}
.tcp-comment::before,
.tcp-comment-meta::before {
    content: none !important;
    display: none !important;
}