/**
 * Comments
 *
 * @package Sahel
 */

.avatar {
    background-image: url('../../../images/no-avatar.jpg');
    background-size: cover;
    background-position: center;
    object-position: center;
}

/* --------------------------------------------------------------
   Comments Area
-------------------------------------------------------------- */

.comments-area {
	margin-top: 48px;
}

.comments-title {
	margin: 0 0 28px;
	font-size: 24px;
	line-height: 1.6;
}


/* --------------------------------------------------------------
   Comment List
-------------------------------------------------------------- */

.comment-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-list ol {
	margin: 24px 0 0;
	padding-right: 48px;
	list-style: none;
}

.comment-list .comment {
	margin: 0 0 24px;
}

.comment-list .comment:last-child {
	margin-bottom: 0;
}


/* --------------------------------------------------------------
   Comment
-------------------------------------------------------------- */

.comment-body {
	position: relative;
	padding: 20px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
}

.comment-meta {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 16px;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.comment-author .avatar {
	display: block;
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

.comment-author .fn {
	color: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.6;
	text-decoration: none;
}

.comment-author .says {
	display: none;
}


/* --------------------------------------------------------------
   Comment Metadata
-------------------------------------------------------------- */

.comment-metadata {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 2px;
	font-size: 13px;
	line-height: 1.6;
}

.comment-metadata a {
	color: #6b7280;
	text-decoration: none;
}

.comment-metadata a:hover {
	color: var(--sahel-primary);
}


/* --------------------------------------------------------------
   Comment Content
-------------------------------------------------------------- */

.comment-content {
	color: #374151;
	font-size: 15px;
	line-height: 2;
}

.comment-content p {
	margin: 0 0 12px;
}

.comment-content p:last-child {
	margin-bottom: 0;
}

.comment-content a {
	color: var(--sahel-primary);
	text-decoration: underline;
}


/* --------------------------------------------------------------
   Reply
-------------------------------------------------------------- */

.reply {
	margin-top: 16px;
}

.comment-reply-link {
	display: inline-block;
	color: var(--sahel-primary);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.comment-reply-link:hover {
	text-decoration: underline;
}


/* --------------------------------------------------------------
   Pending Comments
-------------------------------------------------------------- */

.comment-awaiting-moderation {
	margin: 0 0 12px;
	padding: 10px 14px;
	border-right: 3px solid var(--sahel-primary);
	border-radius: 6px;
	background: #f8fafc;
	color: #6b7280;
	font-size: 13px;
	line-height: 1.8;
}


/* --------------------------------------------------------------
   Nested Comments
-------------------------------------------------------------- */

.comment-list .children {
	margin-top: 24px;
	padding-right: 48px;
	list-style: none;
}


/* --------------------------------------------------------------
   Comments Pagination
-------------------------------------------------------------- */

.comment-navigation {
	margin-top: 32px;
}

.comment-navigation .nav-links {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.comment-navigation a {
	color: var(--sahel-primary);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.comment-navigation a:hover {
	text-decoration: underline;
}


/* --------------------------------------------------------------
   No Comments
-------------------------------------------------------------- */

.no-comments {
	margin: 24px 0;
	padding: 16px 18px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #f9fafb;
	color: #6b7280;
	font-size: 14px;
	line-height: 1.8;
}


/* --------------------------------------------------------------
   Comment Form
-------------------------------------------------------------- */

.comment-respond {
	margin-top: 48px;
}

.comment-reply-title {
	margin: 0 0 24px;
	font-size: 22px;
	line-height: 1.6;
}

.comment-form {
	display: grid;
	gap: 18px;
}

.comment-form p {
	margin: 0;
}

.comment-form label {
	display: block;
	margin-bottom: 7px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.7;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 11px 14px;
	border: 1px solid #d1d5db;
	border-radius: 7px;
	background: #fff;
	color: inherit;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.8;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.comment-form textarea {
	min-height: 160px;
	resize: vertical;
}

.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(--sahel-primary);
	outline: none;
	box-shadow: 0 0 0 3px color-mix(
		in srgb,
		var(--sahel-primary) 12%,
		transparent
	);
}

.comment-form .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.comment-form .comment-form-cookies-consent input {
	margin-top: 6px;
}

.comment-form .comment-form-cookies-consent label {
	margin: 0;
	color: #6b7280;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.8;
}

.comment-form .form-submit {
	margin-top: 4px;
}

.comment-form input[type="submit"] {
	display: inline-block;
	padding: 11px 22px;
	border: 0;
	border-radius: 7px;
	background: var(--sahel-primary);
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.7;
	cursor: pointer;
	transition:
		opacity 0.2s ease,
		transform 0.2s ease;
}

.comment-form input[type="submit"]:hover {
	opacity: 0.88;
}

.comment-form input[type="submit"]:active {
	transform: translateY(1px);
}


/* --------------------------------------------------------------
   Mobile
-------------------------------------------------------------- */

@media (max-width: 767px) {

	.comments-area {
		margin-top: 36px;
	}

	.comments-title {
		font-size: 21px;
	}

	.comment-body {
		padding: 16px;
	}

	.comment-list ol,
	.comment-list .children {
		padding-right: 24px;
	}

	.comment-author .avatar {
		flex-basis: 42px;
		width: 42px;
		height: 42px;
	}

	.comment-content {
		font-size: 14px;
	}

	.comment-navigation .nav-links {
		flex-direction: column;
		align-items: flex-start;
	}

	.comment-respond {
		margin-top: 36px;
	}
}