.home-recent-comments {
	margin: 0 0 16px 0;
}

.home-recent-comments .commentlist {
	list-style: none;
	padding: 0;
	margin: 0;
	max-height: 480px;
	overflow-y: scroll;
}
ul . commentlist {
	list-style-type: none;
}

.home-comment-post-title {
	font-size: 18px;
	margin: 10px 0 4px 8px;
}

.home-comment-post-title:first-of-type {
	margin-top: 0;
}

.home-recent-comments .commentlist li {
	padding: 8px;
	margin-bottom: 10px;
	background: #f9f9f9;
	border: 1px solid #eee;
	border-left: 4px solid transparent;
	border-radius: 0;
	transition: box-shadow 0.2s;
}

.home-recent-comments .commentlist li:hover {
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.home-recent-comments .commentlist .children,
.home-recent-comments .commentlist .children > li {
	background: transparent;
}

.comment-title {
	font-size: 20px;
	padding: 5px;
}

.comments-loader {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
	color: #999;
	font-size: 16px;
	gap: 10px;
}

.comments-loader::before {
	content: '';
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2px solid #ddd;
	border-top-color: #007cba;
	border-radius: 50%;
	animation: comments-spin 0.8s linear infinite;
}

@keyframes comments-spin {
	to { transform: rotate(360deg); }
}

.comments-body #respond,
.comment-actions {
	display: none;
}

.comments-ready .comments-loader {
	display: none;
}

.comments-ready .comments-body #respond {
	display: block;
}

.comments-ready .comment-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	margin-left: 8px;
	font-size: 13px;
	flex-wrap: wrap;
}

#comments {
	border: 0px solid #f0f0f1;
	border-radius: 8px;
}

.comments-toggle {
	cursor: pointer;
	user-select: none;
	padding: 10px 12px;
	background: #f0f0f1;
	border-radius: 8px 8px 0 0;
	font-weight: 700;
	font-size: 15px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.comments-toggle:hover {
	background: #e5e5e5;
}
.comments-toggle.is-collapsed {
	border-radius: 8px;
}
.comments-toggle-icon {
	font-size: 10px;
}

.comments-toggle-label {
	font-size: 22px;
	font-weight: 400;
	color: #000;
}

.comments-visibility-toggle {
	padding: 8px 12px;
	background: #fff8e1;
	border-bottom: 1px solid #eee;
	font-size: 13px;
}
.comments-visibility-toggle label {
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	user-select: none;
}

.comments-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 12px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	font-size: 15px;
	flex-wrap: wrap;
}

.comments-cta-text {
	font-weight: 600;
}

.comments-cta-or {
	font-size: 13px;
	opacity: 0.8;
	padding: 0 8px;
}

.comments-cta-btn {
	display: inline-block;
	padding: 8px 20px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
	transition: transform 0.2s, box-shadow 0.2s;
	cursor: pointer;
	background: #fff;
	color: #667eea;
	animation: ctaPulse 2s infinite;
}

.comments-cta-btn:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 16px rgba(0,0,0,0.2);
	color: #667eea;
}

.comments-cta-btn-secondary {
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255,255,255,0.6);
	animation: none;
}

.comments-cta-btn-secondary:hover {
	background: rgba(255,255,255,0.15);
	border-color: #fff;
	color: #fff;
}

.comments-cta-note {
	font-size: 12px;
	color: #555;
	text-align: center;
	padding: 4px 12px 10px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: rgba(255,255,255,0.85);
	font-style: italic;
}

@keyframes ctaPulse {
	0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.5); }
	70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
	100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.comments-body {
	overflow: hidden;
}

#comments-list .commentlist .children {
	margin-left: 40px;
	padding-left: 0;
	list-style: none;
}

#respond {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 12px;
	margin-top: 20px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
	position: relative;
}

.cancel-reply {
	padding: 0 8px;
	font-size:13px;
	color: #fff;
	border-radius: 4px;
	background-color:#e74c3c;
	text-decoration:none;
	position: absolute;
	right: 12px;
	top: 12px;
}

.respond-title {
	font-size: 18px;
	font-weight: 700;
	color: #333;
	margin: 0 0 16px 0;
	padding: 0 0 8px 0;
	border-bottom: 2px solid #7cbc0a;
}

#comment-notes {
	font-size: 13px;
	color: #777;
	margin: 0 0 16px 0;
}

.form-fields-row {
	display: flex;
	flex-direction: column;
}

@media (min-width: 768px) {
	.form-fields-row {
		flex-direction: row;
		gap: 16px;
	}
	.form-fields-row .form-field {
		flex: 1;
	}
}

.form-field {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.form-field .form-label {
	flex-shrink: 0;
	margin-bottom: 0;
	display: flex;
	align-items: center;
	gap: 4px;
}

.form-field .form-input {
	flex: 1;
}

.form-field .form-input input {
	margin-bottom: 0;
}

.author-choice {
	padding: 10px 12px;
	background: linear-gradient(135deg, #f0f9ff 0%, #e6f7ff 100%);
	border: 1px solid #b3e0f7;
	border-radius: 8px;
}

.author-choice-label {
	font-size: 13px;
	font-weight: 700;
	color: #0088cc;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
	padding-bottom: 6px;
	border-bottom: 2px solid #b3e0f7;
}

.author-choice-options {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
}

.author-choice-option {
	display: flex;
	align-items: center;
	gap: 4px;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.4;
	padding: 4px 10px 4px 6px;
	border-radius: 6px;
	transition: background 0.15s;
}

.author-choice-option:hover {
	background: rgba(0,136,204,0.08);
}

.author-choice-option input[type="radio"] {
	margin: 0;
	accent-color: #0088cc;
}

.author-choice-custom {
	width: 100%;
	margin-top: 4px;
}

.author-choice-custom input {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 12px;
	border: 2px solid #b3e0f7;
	border-radius: 6px;
	font-size: 14px;
	transition: border-color 0.2s;
}

.author-choice-custom input:focus {
	border-color: #0088cc;
	outline: none;
	box-shadow: 0 0 0 3px rgba(0,136,204,0.1);
}

.form-label label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #444;
	margin-bottom: 4px;
}

.form-label .required {
	color: #e74c3c;
}

.form-input input,
#comment {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	font-size: 14px;
	font-family: sans-serif;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fafafa;
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
	outline: none;
	margin-bottom: 12px;
}

.form-input input:focus,
#comment:focus {
	border-color: #7cbc0a;
	box-shadow: 0 0 0 3px rgba(124, 188, 10, 0.15);
	background: #fff;
}

#comment {
	resize: vertical;
	max-height: 120px;
	line-height: 1.5;
}

.form-submit {
	margin-top: 4px;
}

.form-textarea {
	position: relative;
}

.comment-counter {
	position: absolute;
	top: -14px;
	right: 8px;
	font-size: 12px;
	color: #999;
	pointer-events: none;
	line-height: 1;
}

.comment-counter-num {
	font-weight: 700;
	color: #555;
}

#submit {
	background: #007cba;
	color: #fff;
	border: none;
	padding: 12px 28px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
	transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
	box-shadow: 0 2px 6px rgba(0, 124, 186, 0.3);
}

#submit:hover {
	background: #006ba1;
	box-shadow: 0 4px 12px rgba(0, 124, 186, 0.4);
	transform: translateY(-1px);
}

#submit:active {
	transform: translateY(0);
	box-shadow: 0 1px 3px rgba(0, 124, 186, 0.3);
}

#login {
	font-size: 13px;
	color: #555;
	margin: 0 0 12px 0;
}

#login .loggedin a {
	color: #7cbc0a;
	text-decoration: none;
	font-weight: 600;
}

#login .logout a {
	color: #e74c3c;
	text-decoration: none;
	font-size: 12px;
}

#login-req {
	font-size: 14px;
	color: #666;
	padding: 12px;
	background: #fff9e6;
	border: 1px solid #f0dca0;
	border-radius: 6px;
}

#login-req a {
	color: #7cbc0a;
	font-weight: 600;
	text-decoration: none;
}

#comments-list {
	margin-top: 12px;
}

#comments-list h3 {
	font-size: 16px;
	font-weight: 700;
	color: #333;
	border-bottom: 2px solid #7cbc0a;
	padding-bottom: 6px;
	margin-bottom: 16px;
}

#comments-list ol {
	list-style: none;
	padding: 0;
	margin: 0;
}

#comments-list ol li {
	padding: 0 12px 12px 12px;
	margin-bottom: 12px;
	background: #f9f9f9;
	border: 1px solid #eee;
	border-left: 4px solid transparent;
	border-radius: 0;
	transition: box-shadow 0.2s;
}

#comments-list ol li:hover {
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

#comments-list .commentlist > li:has(ol.children) {
	padding-bottom: 0;
	border-bottom: none;
}

#comments-list .commentlist .children,
#comments-list .commentlist .children > li {
	background: transparent;
}

.comment-author {
	font-weight: 600;
	color: #333;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 8px 0 8px 8px;
	line-height: 20px;
}

.comment-author a {
	color: #7cbc0a;
	text-decoration: none;
}

.comment-author a:hover {
	text-decoration: underline;
}

.comment-author .fn.n {
	max-width: 160px;
	display: inline-block;
	white-space: nowrap;
	overflow: hidden;
	vertical-align: middle;
}

@media (min-width: 1024px) {
	#comments-list .comment-author .fn.n {
		max-width: none;
		overflow: visible;
	}
}

.comment-author .fn.n.has-marquee .fn-n-inner {
	display: inline-block;
	white-space: nowrap;
	animation: fnMarquee 6s linear infinite alternate;
}

@keyframes fnMarquee {
	0% { transform: translateX(0); }
	100% { transform: translateX(var(--tx)); }
}

.comment-meta {
	font-size: 14px;
	color: #007cba;
	font-weight: normal;
}

.comment-meta a {
	color: #999;
	text-decoration: none;
}

.comment-meta a:hover {
	color: #7cbc0a;
}

.user-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	background: #7cbc0a;
	padding: 1px 6px;
	border-radius: 4px;
	line-height: 1.4;
	vertical-align: middle;
	white-space: nowrap;
}

.user-badge-anon {
	background: #999;
}

@media (max-width: 768px) {
	.comments-body { padding: 0 8px;}
	.comments-visibility-toggle,
	.comments-toggle {
		margin: 0 8px;
	}
	.comment-author.vcard .comment-meta {
		margin-left: 0;
		line-height: 16px;
	}
	.comments-cta {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		gap: 8px;
		padding: 12px 8px;
		text-align: center;
	}
	.comments-cta-text {
		width: 100%;
	}
	.comments-cta-btn {
		padding: 4px 12px;
	}
}

.comment-parent-ref {
	font-size: 12px;
	color: #888;
	padding: 6px 10px;
	background: #f7f7f7;
	border-left: 3px solid #ccc;
	margin-bottom: 8px;
	margin-top: 12px;
	border-radius: 0 4px 4px 0;
}
.comment-parent-ref a {
	color: #666;
	text-decoration: none;
}
.comment-parent-ref a:hover {
	color: #7cbc0a;
}

.comment-text {
	font-size: 20px;
	line-height: 1.6;
	color: #444;
	background: #fff8e1;
	padding: 8px 12px;
	border-radius: 6px;
	white-space: pre-wrap;
}

.comment-text a {
	text-decoration: none;
}

.comment-text a:hover {
	color: #007cba;
}

.unapproved {
	display: inline-block;
	font-size: 12px;
	color: #e67e22;
	background: #fef5e7;
	padding: 2px 8px;
	border-radius: 4px;
	margin-bottom: 6px;
}

.nopassword {
	font-size: 14px;
	color: #666;
	padding: 12px;
	background: #f0f0f1;
	border-radius: 6px;
}
