.comments-section {
	padding: 80px 0;
}

.comment-wrapper {
	margin-top: 60px;
}

.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

#comments {
	margin-top: 93px;

	.comments-title {
		font-size: 22px;
		margin-bottom: 26px;
		font-weight: 600;
	}
}

.comments-area {
	.comment-inner {
		margin-bottom: 50px;
	}

	.reply-title {
		font-size: 24px;
		font-weight: 600;
		color: $color__heading;
		margin-bottom: 30px;
	}

	.no-comments {
		margin: 0;
		line-height: 11px;
	}
}

.page {
	.comment-list-wrapper {
		margin-top: 40px;
	}

	.comment-respond .comment-reply-title,
	.comment-respond .comment-notes, .comment-respond .logged-in-as {
		text-align: left;
	}

	.comment-list {
		margin-bottom: 0;
	}

	.comment-respond {
		margin-top: 60px;
	}

	.comment-list .comment .comment-body .comment_info .meta-wrapper {
		color: #bbb;
	}
}

.comments-section {
	.comment-list-wrapper {
		padding-top: 0;
		border: 0;
	}
}

.comment-list {
	padding: 0;
	list-style: none;
	overflow: auto;
	margin-bottom: 0;

	> li {
		margin-bottom: 40px;
		.comment-body {
			border-bottom: 1px solid $border__color;
			padding-bottom: 30px;
		}


	}

	.comment-body {
		margin-bottom: 30px;
	}

	.comment {
		.comment-body {
			overflow: auto;
			display: flex;
			flex-wrap: wrap;
			position: relative;
			margin-bottom: 39px;

			.comment-avatar {
				margin-right: 25px;
				border-radius: 50%;
				height: 60px;
				width: 60px;

				img {
					border-radius: 50%;
				}
			}

			.comment_content {
				margin-top: 7px;
			}

			.comment_info {
				position: relative;
				overflow: auto;
				flex: 2;

				.comment_author_says {
					margin-top: 0;
					margin-bottom: 0;
					font-size: 16px;
					font-weight: 500;
					line-height: 1.2;
					color: $color__heading;
					font-family: $font__heading;
				}

				.meta-wrapper {
					font-size: 14px;
					color: #71717c;
					display: block;
					font-weight: 400;
				}

				.comment-reply-wrapper {
					position: absolute;
					right: 0;
					top: 0;
				}

				p {

					img {
						margin: 15px 0 5px;
					}
				}
			}

			.comment-reply-link {
				font-size: 16px;
				font-weight: 500;
				color: $color__heading;

				&:hover {
					color: $color__theme;
				}
			}
		}


		.children {
			margin: 0;
			padding-left: 70px;
			list-style: none;

			.comment-avatar {
				height: 60px;
				width: 60px;
			}
		}
	}
}

#comments .comment-list .comment-respond {
	margin: 20px 0 40px;
	max-width: 100%;

	#cancel-comment-reply-link {
		font-size: 15px;
		color: $color__theme;
		margin-left: 10px;
		font-weight: 600;
	}
}

.children {
	.comment-respond {
		margin-left: 80px !important;
	}
}

.comment-respond {
	.comment-reply-title {
		font-size: 22px;
		font-weight: 600;
		margin-bottom: 10px;
		line-height: 20px;
	}

	.comment-notes,
	.logged-in-as {
		margin-bottom: 30px;

		#review_form & {
			text-align: left;
		}
	}

}

.comment-form {

	.comment-form-author,
	.comment-form-email {
		width: 50%;
		display: inline-block;
		margin-bottom: 0;
	}

	.comment-form-author {
		padding-right: 15px;
	}

	.comment-form-email {
		padding-left: 15px;
		float: right;
	}

	textarea {
		height: 150px;
		margin-bottom: 20px;
	}

	#submit {
		margin-bottom: 0;
		background-color: $color__theme;
		color: #fff;
		border: 2px solid $color__theme;
		padding: 11px 20px;
		width: 100%;
		max-width: 200px;
		font-size: 15px;
		font-weight: 500;
		text-align: center;
		border-radius: 6px;

		&:hover {
			color: $color__theme;
			border-color: $color__theme;
			background: transparent;
		}
	}

	.comment-form-cookies-consent {
		margin-bottom: 20px !important;
		font-size: 18px;
		color: #797986;
		position: relative;

		&:after {
			content: '';
			display: block;
			clear: both;
		}

		#wp-comment-cookies-consent {
			width: auto;
			height: auto;
		}


		label {
			cursor: pointer;
			display: inline;
			line-height: 1.25em;
			vertical-align: top;
			clear: both;
			padding-left: 1px;
			font-size: 16px;

			&:not(:empty) {
				padding-left: 0.75em;
			}

			&:before,
			&:after {
				content: "";
				position: absolute;
				left: 0;
				top: 3px;
			}

			&:before {
				width: 16px;
				height: 16px;
				border: 2px solid rgba(5, 20, 65, 0.2);
				cursor: pointer;
				transition: background .3s;
			}

		}


		input[type="checkbox"] {
			outline: 0;
			visibility: hidden;
			width: 1.25em;
			margin: 0;
			display: block;
			float: left;
			font-size: inherit;
		}

		input[type="checkbox"]:checked + label:before {
			background: $color__theme;
			border: none;
		}

		input[type="checkbox"]:checked + label:after {
			transform: translate(0.17em, 0.25em) rotate(-45deg);
			width: 0.60em;
			height: 0.25em;
			border: 0.125em solid #fff;
			border-top-style: none;
			border-right-style: none;
		}

	}

}

#review_form {

	input[type="text"],
	textarea {
		border: 2px solid rgba(5, 20, 65, 0.2);

		&::placeholder {
			color: #75757d;
		}

		&:focus {
			border-color: rgba($color__theme, 0.5);
		}

	}


}

@media (max-width: 991px) {
	.comment-list {
		.comment {
			.children {
				padding-left: 50px;
			}
		}
	}
}

@media (max-width: 576px) {

	.comment-list {
		.comment {
			.comment-body {
				.comment-avatar {
					width: 55px;
					height: 55px;
				}
			}

			.children {
				padding-left: 20px;

				.comment {
					.comment-body {
						.comment-avatar {
							width: 40px;
							height: 40px;
						}
					}
				}
			}
		}
	}
}
