/*
Theme Name: Neve Child
Theme URI: https://odriver.zone/
Description: Child theme for Neve with compact native WordPress comments.
Author: Odriver.zone
Template: neve
Version: 1.0.8
Text Domain: neve-child
*/

/* Compact comment list */
#comments.comments-area {
	margin-top: 28px;
}

#comments .nv-comments-wrap,
#comments .nv-comments-title-wrap {
	margin-top: 0;
}

#comments .nv-comments-title-wrap {
	margin-bottom: 10px;
}

#comments .comments-title {
	font-size: 1.35rem;
	line-height: 1.25;
	margin: 0;
}

#comments .nv-comments-list,
#comments .nv-comments-list ol {
	margin: 0;
	padding-left: 0;
}

#comments .nv-comments-list {
	list-style-position: inside;
}

#comments .nv-comments-list li.comment {
	margin: 0;
	padding: 0;
}

#comments .nv-comments-list li.children {
	list-style: none;
	margin: 6px 0 0 20px;
	padding: 0;
}

#comments .nv-comments-list li.children > ol {
	border-left: 2px solid #edf0f2;
	margin: 0;
	padding-left: 12px;
}

#comments .nv-comment-article {
	border-bottom: 0 !important;
	display: block;
	margin: 0;
	padding: 10px 0;
	position: relative;
}

#comments .nv-comment-article::after {
	background: #eef1f4;
	bottom: 0;
	content: "";
	height: 1px;
	left: 0;
	position: absolute;
	right: 0;
	transform: scaleY(0.45);
	transform-origin: bottom;
}

#comments .nv-comment-avatar {
	display: none;
}

#comments .comment-content,
#comments .nv-comment-content {
	margin: 0;
	padding: 0;
}

#comments .nv-comment-header {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	line-height: 1.3;
	margin: 0 0 4px;
}

#comments .comment-author {
	font-size: 0.95rem;
	font-weight: 600;
	margin: 0;
}

#comments .comment-author .fn,
#comments .comment-author .author {
	font-size: inherit;
}

#comments .comment-author a,
#comments .entry-date,
#comments .nv-reply-link,
#comments .comment-reply-link {
	font-size: 0.78rem;
	line-height: 1.35;
}

#comments .edit-reply {
	margin-left: auto;
}

#comments .nv-comment-content {
	font-size: 0.95rem;
	line-height: 1.55;
}

#comments .nv-comment-content p {
	margin: 0 0 0.35em;
}

#comments .nv-comment-content p:last-child {
	margin-bottom: 0;
}

/* Compact comment form */
#respond {
	margin-top: 22px;
}

#reply-title {
	font-size: 1.25rem;
	line-height: 1.3;
	margin: 0 0 10px;
}

#reply-title small {
	font-size: 0.8rem;
}

#commentform {
	align-items: end;
	display: grid;
	gap: 8px 14px;
	grid-template-columns: minmax(0, 1fr) minmax(180px, 200px) auto;
	margin-top: 0;
}

#commentform p {
	margin: 0;
}

#commentform .comment-notes,
#commentform .comment-form-email,
#commentform .comment-form-url,
#commentform .comment-form-cookies-consent,
#commentform .akismet_comment_form_privacy_notice {
	display: none !important;
}

#commentform .comment-form-comment {
	grid-column: 1 / -1;
}

#commentform .comment-form-author {
	grid-column: 2;
	justify-self: end;
	max-width: 200px;
	width: 100%;
}

#commentform .form-submit {
	grid-column: 3;
	justify-self: end;
	margin-top: 2px;
}

#commentform label {
	display: block;
	font-size: 0.82rem;
	font-weight: 500;
	line-height: 1.25;
	margin: 0 0 4px;
}

#commentform textarea#comment,
#commentform input#author {
	border-radius: 6px;
	font-size: 0.95rem;
	line-height: 1.45;
	padding: 8px 10px;
	width: 100%;
}

#commentform textarea#comment {
	min-height: 92px;
	resize: vertical;
}

#commentform input#author {
	min-height: 34px;
}

#commentform input[type="submit"],
#commentform button[type="submit"] {
	font-size: 0.9rem;
	line-height: 1.3;
	min-height: 34px;
	padding: 7px 14px;
}

@media (max-width: 600px) {
	#comments.comments-area {
		margin-top: 22px;
	}

	#comments .comments-title {
		font-size: 1.2rem;
	}

	#comments .nv-comments-list li.children {
		margin-left: 12px;
	}

	#comments .nv-comment-article {
		padding: 8px 0;
	}

	#commentform {
		grid-template-columns: 1fr;
	}

	#commentform .comment-form-comment,
	#commentform .comment-form-author,
	#commentform .form-submit {
		grid-column: 1;
		max-width: none;
		width: 100%;
	}

	#commentform .comment-form-comment {
		grid-row: 1;
	}

	#commentform .comment-form-author {
		grid-row: 2;
	}

	#commentform .form-submit {
		grid-row: 3;
		justify-self: stretch;
	}

	#commentform input#submit,
	#commentform input[type="submit"],
	#commentform button[type="submit"] {
		width: 100%;
	}
}
