/**
 * Comments
 */


.comments-area {
	margin-top: 50px;

	&.show-avatars {
		.avatar {
			border-radius: 50%;
			position: absolute;
			top: 3px;
		}

		.fn {
			display: inline-block;
			padding-left: 85px;
		}

		.comment-metadata {
			padding: 4px 0 9px 85px;
		}
	}

}

.comment-respond {
	margin-top: 50px;
}

#cancel-comment-reply-link {
	color: var(--knd-color-base);
	text-decoration: underline;

	&:hover {
		text-decoration: none;
	}
}

.comment-content {
	word-wrap: break-word;

	> * {
		margin-top: 25px;
		margin-bottom: 25px;

		&:first-child {
			margin-top: 0;
		}

		&:last-child {
			margin-bottom: 0;
		}
	}

	&:before,
	&:after {
		content: "";
		display: table;
		table-layout: fixed;
	}

	&:after {
		clear: both;
	}
}

.comment-reply-link {
	font-family: var(--knd-font-family-base);
	display: inline-block;
	font-style: normal;
	font-weight: 700;
	padding: 8px 10px;
	font-size: 12px;
	color: #fff;
	background: var(--knd-color-main);
	border: 2px solid var(--knd-color-main);
	border-radius: var(--knd-button-border-radius);
	text-transform: uppercase;
	line-height: 1;
	transition: color 0.3s, background 0.3s, border-color 0.3s, opacity 0.3s;
	white-space: nowrap;

	&:hover {
		background: var(--knd-color-main-active);
		border-color: var(--knd-color-main-active);
	}
}

.comments-title,
.comment-reply-title {
	font-size: 26px;
	margin-bottom: 20px !important;
}

.comment-reply-title {
	display: flex;
	justify-content: space-between;

	small a {
		font-style: normal;
		font-weight: normal;
		letter-spacing: normal;
	}
}

.comment-list {
	padding-left: 0;
	list-style: none;

	> li {
		margin-top: 25px;
		margin-bottom: 25px;
	}

	.children {
		list-style: none;
		padding-left: 0;

		> li {
			margin-top: 25px;
			margin-bottom: 25px;
		}
	}

	@media ( min-width: 576px ) {
		.depth-2,
		.depth-3 {
			padding-left: 50px;
		}
	}
}

.comment-meta {
	.comment-author .fn {
		font-weight: normal;
		hyphens: auto;
		word-wrap: break-word;
		word-break: break-word;

		a {
			color: var(--knd-color-main);
		}
	}

	.comment-metadata {
		color: var(--global--color-primary);
		font-size: var(--global--font-size-xs);
		padding: 8px 0 9px 0;

		.edit-link {
			margin-left: 15px;
		}

		a {
			color: var(--knd-color-base);
			text-decoration: underline;

			&:hover {
				text-decoration: none;
			}
		}
	}

	@media ( min-width: 576px ) {
		margin-right: inherit;

		.comment-author {
			max-width: inherit;
		}
	}
}

.bypostauthor {
	display: block;
}

.says {
	display: none;
}

.comment-body {
	position: relative;
	margin-bottom: 50px;

	> * {
		margin-top: 30px;
		margin-bottom: 30px;
	}

	.reply {
		margin: 0;
	}
}

.pingback .comment-body,
.trackback .comment-body {
	margin-top: 50px;
	margin-bottom: 50px;
}

.comment-author {
	padding-top: 3px;

	.url {
		color: currentColor;
	}
}

.comment-form {
	display: flex;
	flex-wrap: wrap;

	> * {
		flex-basis: 100%;
	}

	a {
		color: var(--knd-color-main);

		&:hover {
			color: var(--knd-color-main-active);
		}
	}

	.required {
		color: #F00F00;
	}

	.comment-form-url,
	.comment-form-comment {
		width: 100%;
	}

	.comment-form-author,
	.comment-form-email {
		flex-basis: 0;
		flex-grow: 1;

		@media (max-width: 575px) {
			flex-basis: 100%;
		}
	}

	.comment-form-cookies-consent > label,
	.comment-notes {
		font-size: 16px;
		font-weight: normal;
	}

	> p {
		margin-bottom: 20px;

		&:first-of-type {
			margin-top: 0;
		}

		&:last-of-type {
			margin-bottom: 0;
		}

		&.comment-form-cookies-consent {
			display: flex;

			[type="checkbox"] {
				margin: 5px 10px 0 0;
			}
		}

		label {
			display: block;
			width: 100%;
			margin-bottom: 8px;
		}

		@media (min-width: 575px) {
			&.comment-form-author {
				margin-right: 30px;
			}

			&.comment-notes,
			&.logged-in-as {
				display: block;
			}
		}
	}

	input[type=email],
	input[type=text],
	input[type=url],
	textarea {
		border-radius: 5px;
		border: 1px solid #8599A4;
		padding: 12px;
		font-weight: bold;
		font-family: inherit;
		width: 100%;
	}
}
