/**
 * Deal-page CommentBox chrome (outer light DOM).
 * Inner Ant Design UI lives in Shadow DOM — themed via renderDealComments script options.
 * Scoped to .deal-comments so article/other #comments blocks are untouched.
 */

.deal-comments {
	--deal-comments-accent: #00bcd4;
	--deal-comments-accent-soft: rgba(0, 188, 212, 0.12);
	--deal-comments-bg: #f7f8fa;
	--deal-comments-border: rgba(0, 0, 0, 0.08);
	--deal-comments-text: #252525;
	--deal-comments-muted: #6b7280;
	direction: rtl;
	text-align: right;
	margin: 0 0 1.25rem;
	max-width: 100%;
}

.deal-comments #comments {
	background: #fff;
	border: 1px solid var(--deal-comments-border);
	border-radius: 12px;
	padding: 1rem 1.1rem 1.15rem;
	box-sizing: border-box;
}

.deal-comments #comments > h3 {
	margin: 0 0 1rem;
	padding: 0.4rem 0.75rem;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.5;
	color: var(--deal-comments-accent);
	background: var(--deal-comments-bg);
	border-radius: 12px;
	border: none;
}

.deal-comments #commentbox {
	display: block;
	width: 100%;
	min-height: 4rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* Soft focus ring when CommentBox receives focus inside the host */
.deal-comments #commentbox:focus-within {
	outline: 2px solid var(--deal-comments-accent-soft);
	outline-offset: 2px;
	border-radius: 8px;
}

@media (max-width: 767px) {
	.deal-comments #comments {
		padding: 0.85rem 0.75rem 1rem;
		border-radius: 10px;
	}

	.deal-comments #comments > h3 {
		font-size: 1rem;
		padding: 0.35rem 0.65rem;
		margin-bottom: 0.85rem;
	}
}
