/**
 * VSTION PRO
 * Стили комментариев.
 *
 * @package VSTION_PRO
 */


/* =========================================================
   COMMENTS AREA
   ========================================================= */

.comments-area {
	max-width: 900px;
	margin: 42px auto 0;
	padding-top: 32px;
	border-top: 1px solid var(--vstion-border);
}

.comments-title {
	margin: 0 0 24px;
	font-size: 24px;
	line-height: 1.3;
	letter-spacing: -0.015em;
}


/* =========================================================
   COMMENT LIST
   ========================================================= */

.comment-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-list .comment {
	margin: 0 0 18px;
}

.comment-list .comment:last-child {
	margin-bottom: 0;
}

.comment-body {
	padding: 18px;
	border: 1px solid var(--vstion-border);
	border-radius: var(--vstion-radius-lg);
	background: var(--vstion-white);
}


/* =========================================================
   COMMENT HEADER
   ========================================================= */

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

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.comment-author .avatar {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
}

.comment-author .fn {
	font-size: 14px;
	font-weight: 700;
	font-style: normal;
	line-height: 1.4;
}

.comment-author .fn a {
	color: var(--vstion-text);
}

.comment-author .fn a:hover,
.comment-author .fn a:focus-visible {
	color: var(--vstion-accent);
}

.comment-metadata {
	margin-left: auto;
	font-size: 12px;
	line-height: 1.4;
}

.comment-metadata a {
	color: var(--vstion-muted);
}

.comment-metadata a:hover,
.comment-metadata a:focus-visible {
	color: var(--vstion-accent);
}


/* =========================================================
   COMMENT CONTENT
   ========================================================= */

.comment-content {
	color: var(--vstion-text);
	font-size: 14px;
	line-height: 1.7;
}

.comment-content p {
	margin: 0 0 12px;
}

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

.comment-content a {
	color: var(--vstion-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.comment-content a:hover,
.comment-content a:focus-visible {
	color: var(--vstion-text);
}


/* =========================================================
   COMMENT REPLY
   ========================================================= */

.reply {
	margin-top: 12px;
}

.comment-reply-link {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 0 10px;
	border: 1px solid var(--vstion-border);
	border-radius: 6px;
	background: var(--vstion-white);
	color: var(--vstion-muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
}

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


/* =========================================================
   CHILD COMMENTS
   ========================================================= */

.comment-list .children {
	margin: 16px 0 0 32px;
	padding: 0;
	list-style: none;
}

.comment-list .children .comment-body {
	background: var(--vstion-surface);
}


/* =========================================================
   COMMENT FORM
   ========================================================= */

.comment-respond {
	margin-top: 32px;
	padding: 24px;
	border: 1px solid var(--vstion-border);
	border-radius: var(--vstion-radius-lg);
	background: var(--vstion-surface);
}

.comment-reply-title {
	margin: 0 0 20px;
	font-size: 22px;
	line-height: 1.3;
}

.comment-reply-title small {
	margin-left: 8px;
	font-size: 12px;
	font-weight: 400;
}

.comment-reply-title small a {
	color: var(--vstion-muted);
}

.comment-reply-title small a:hover,
.comment-reply-title small a:focus-visible {
	color: var(--vstion-accent);
}


/* =========================================================
   COMMENT FORM FIELDS
   ========================================================= */

.comment-form {
	margin: 0;
}

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

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

.comment-form label {
	display: block;
	margin-bottom: 6px;
	color: var(--vstion-text);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	border: 1px solid var(--vstion-border);
	border-radius: var(--vstion-radius);
	background: var(--vstion-white);
	color: var(--vstion-text);
	font: inherit;
	font-size: 14px;
	outline: none;
	transition: border-color var(--vstion-transition);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
	height: 42px;
	padding: 0 12px;
}

.comment-form textarea {
	min-height: 150px;
	padding: 11px 12px;
	resize: vertical;
	line-height: 1.6;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
	border-color: var(--vstion-accent);
}

.comment-form .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.comment-form .comment-form-cookies-consent input {
	flex: 0 0 auto;
	margin-top: 3px;
}

.comment-form .comment-form-cookies-consent label {
	margin: 0;
	color: var(--vstion-muted);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
}


/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.comment-form .form-submit {
	margin-top: 20px;
}

.comment-form .submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 18px;
	border: 1px solid var(--vstion-accent);
	border-radius: var(--vstion-radius);
	background: var(--vstion-accent);
	color: #fff;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition:
		background var(--vstion-transition),
		border-color var(--vstion-transition),
		transform var(--vstion-transition);
}

.comment-form .submit:hover,
.comment-form .submit:focus-visible {
	border-color: var(--vstion-text);
	background: var(--vstion-text);
}

.comment-form .submit:active {
	transform: translateY(1px);
}


/* =========================================================
   NO COMMENTS
   ========================================================= */

.no-comments {
	margin: 0 0 24px;
	color: var(--vstion-muted);
	font-size: 14px;
	line-height: 1.6;
}


/* =========================================================
   PAGINATION COMMENTS
   ========================================================= */

.comment-navigation {
	margin-top: 24px;
}

.comment-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
}

.comment-navigation a {
	color: var(--vstion-accent);
	font-size: 13px;
	font-weight: 600;
}

.comment-navigation a:hover,
.comment-navigation a:focus-visible {
	color: var(--vstion-text);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 600px) {

	.comments-area {
		margin-top: 32px;
		padding-top: 24px;
	}

	.comments-title {
		font-size: 22px;
	}

	.comment-body {
		padding: 15px;
	}

	.comment-meta {
		align-items: flex-start;
	}

	.comment-metadata {
		margin-left: auto;
	}

	.comment-list .children {
		margin-left: 14px;
	}

	.comment-respond {
		padding: 18px;
	}

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

	.comment-form .submit {
		width: 100%;
	}

}


@media (prefers-reduced-motion: reduce) {

	.comment-form input[type="text"],
	.comment-form input[type="email"],
	.comment-form input[type="url"],
	.comment-form textarea,
	.comment-form .submit {
		transition: none;
	}

	.comment-form .submit:active {
		transform: none;
	}

}