:root {
	--k5-comment-red: #b9151c;
	--k5-comment-red-dark: #941016;
	--k5-comment-bg: #f4f4f4;
	--k5-comment-border: #d9d9d9;
	--k5-comment-text: #1f1b19;
	--k5-comment-muted: #746b66;
}

body.single-post #comments {
	width: 100%;
	margin-top: 34px;
}

body.single-post #comments .comment-respond {
	width: 100%;
	margin: 0;
	padding: 24px 25px 25px;
	border: 0;
	border-radius: 0;
	background: var(--k5-comment-bg);
	box-shadow: none;
}

body.single-post #comments .comment-reply-title {
	margin: 0 0 14px;
	padding: 0;
	border: 0;
	color: var(--k5-comment-text);
	font-size: 21px;
	font-weight: 700;
	line-height: 1.35;
	text-transform: none;
}

body.single-post #comments .comment-reply-title small {
	margin-left: 8px;
	font-size: 13px;
}

body.single-post #comments .comment-reply-title small a {
	color: var(--k5-comment-red);
}

body.single-post #comments .comment-form {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 30px;
	margin: 0;
}

body.single-post #comments .comment-form > p {
	margin: 0 0 20px;
}

body.single-post #comments .comment-notes,
body.single-post #comments .logged-in-as,
body.single-post #comments .must-log-in,
body.single-post #comments .comment-form-comment,
body.single-post #comments .comment-form-cookies-consent,
body.single-post #comments .form-submit {
	grid-column: 1 / -1;
}

body.single-post #comments .comment-notes,
body.single-post #comments .logged-in-as,
body.single-post #comments .must-log-in {
	color: var(--k5-comment-muted);
	font-size: 15px;
	line-height: 1.55;
}

body.single-post #comments .comment-form label {
	display: block;
	margin: 0 0 7px;
	color: var(--k5-comment-text);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
}

body.single-post #comments .comment-form .required {
	color: var(--k5-comment-red);
}

body.single-post #comments .comment-form input[type='text'],
body.single-post #comments .comment-form input[type='email'],
body.single-post #comments .comment-form input[type='tel'],
body.single-post #comments .comment-form textarea {
	width: 100%;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--k5-comment-border);
	border-radius: 0;
	outline: 0;
	background: #fff;
	box-shadow: none;
	color: #222;
	font-size: 15px;
	line-height: 1.5;
	transition: border-color .2s ease, box-shadow .2s ease;
}

body.single-post #comments .comment-form input[type='text'],
body.single-post #comments .comment-form input[type='email'],
body.single-post #comments .comment-form input[type='tel'] {
	height: 42px;
}

body.single-post #comments .comment-form textarea {
	min-height: 120px;
	resize: vertical;
}

body.single-post #comments .comment-form input:focus,
body.single-post #comments .comment-form textarea:focus {
	border-color: var(--k5-comment-red);
	box-shadow: 0 0 0 2px rgba(185, 21, 28, .08);
}

body.single-post #comments .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 4px;
}

body.single-post #comments .comment-form-cookies-consent input {
	width: 14px;
	height: 14px;
	margin: 3px 0 0;
	flex: 0 0 auto;
}

body.single-post #comments .comment-form-cookies-consent label {
	margin: 0;
	font-weight: 500;
	line-height: 1.55;
}

body.single-post #comments .form-submit {
	margin-bottom: 0 !important;
}

body.single-post #comments .k5-comment-submit,
body.single-post #comments input[type='submit'] {
	min-height: 40px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: 999px;
	background: var(--k5-comment-red);
	box-shadow: none;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 40px;
	text-transform: uppercase;
}

body.single-post #comments .k5-comment-submit:hover,
body.single-post #comments input[type='submit']:hover {
	background: var(--k5-comment-red-dark);
	color: #fff;
}

/* Danh sách bình luận đồng bộ với biểu mẫu. */
body.single-post #comments .comments-title {
	margin: 0 0 20px;
	color: var(--k5-comment-text);
	font-size: 22px;
	text-transform: none;
}

body.single-post #comments .comment-list {
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

body.single-post #comments .comment-list .comment-body {
	margin-bottom: 14px;
	padding: 18px;
	border: 1px solid #ece5df;
	border-radius: 10px;
	background: #fff;
}

@media (max-width: 849px) {
	body.single-post #comments .comment-form {
		gap: 0 18px;
	}
}

@media (max-width: 549px) {
	body.single-post #comments .comment-respond {
		padding: 20px 16px;
	}

	body.single-post #comments .comment-form {
		grid-template-columns: minmax(0, 1fr);
	}

	body.single-post #comments .comment-form > p {
		grid-column: 1;
		margin-bottom: 16px;
	}

	body.single-post #comments .comment-reply-title {
		font-size: 19px;
	}

	body.single-post #comments .k5-comment-submit,
	body.single-post #comments input[type='submit'] {
		width: 100%;
	}
}
