.revel-comments {
	--revel-comment-accent: #e95b30;
	--revel-comment-border: #e8ebef;
	--revel-comment-muted: #687385;
	--revel-comment-surface: #fff;
	--revel-comment-soft: #f7f8fa;
	box-sizing: border-box;
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
	padding: 32px 16px;
	color: #202a35;
	font-size: 16px;
}

.revel-comments *,
.revel-comments *::before,
.revel-comments *::after {
	box-sizing: border-box;
}

.revel-comments__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
}

.revel-comments__title,
.revel-comment-form .comment-reply-title {
	margin: 0;
	color: #202a35;
	font-size: clamp(1.35rem, 5vw, 1.75rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.revel-comments__count {
	flex: 0 0 auto;
	padding: 6px 10px;
	border-radius: 999px;
	background: var(--revel-comment-soft);
	color: var(--revel-comment-muted);
	font-size: 0.8125rem;
	font-weight: 700;
}

.revel-comments__empty {
	margin: 0 0 18px;
	color: var(--revel-comment-muted);
	line-height: 1.6;
}

.revel-comments__list,
.revel-comments__list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.revel-comments__list > .comment,
.revel-comments__list > .pingback,
.revel-comments__list .children > .comment,
.revel-comments__list .children > .pingback {
	margin: 0 0 12px;
}

.revel-comments .revel-comment {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 12px;
	padding: 16px;
	border: 1px solid var(--revel-comment-border);
	border-radius: 14px;
	background: var(--revel-comment-surface);
	box-shadow: 0 1px 2px rgb(31 41 51 / 4%), 0 6px 18px rgb(31 41 51 / 5%);
}

.revel-comment__avatar {
	width: 44px;
	height: 44px;
}

.revel-comments .revel-comment__avatar .avatar {
	position: static;
	display: block;
	width: 44px;
	height: 44px;
	margin: 0;
	border-radius: 50%;
	object-fit: cover;
}

.revel-comment__body {
	min-width: 0;
}

.revel-comment__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 9px;
	margin: 1px 0 8px;
}

.revel-comment__author {
	color: #202a35;
	font-size: 0.9375rem;
	font-style: normal;
	font-weight: 700;
	line-height: 1.4;
}

.revel-comments .revel-comment__author a {
	color: inherit;
	text-decoration: none;
}

.revel-comments .revel-comment__author a:hover {
	color: var(--revel-comment-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.revel-comment__date {
	color: var(--revel-comment-muted);
	font-size: 0.8125rem;
	line-height: 1.4;
}

.revel-comment__moderation {
	margin: 0 0 8px;
	color: #8a5a00;
	font-size: 0.8125rem;
	font-weight: 600;
}

.revel-comment__content {
	min-width: 0;
	color: #374151;
	font-size: 0.9375rem;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

.revel-comment__content > :first-child {
	margin-top: 0;
}

.revel-comment__content > :last-child {
	margin-bottom: 0;
}

.revel-comment__content img,
.revel-comment__content video,
.revel-comment__content iframe {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}

.revel-comment__content .comment-image-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 120px), 120px));
	gap: 8px;
	margin-top: 12px;
}

.revel-comment__content .comment-image-gallery a {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 10px;
}

.revel-comment__content .comment-image-gallery img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.revel-comment__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
}

.revel-comments .revel-comment__reply {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 8px 13px;
	border: 1px solid var(--revel-comment-border);
	border-radius: 999px;
	background: #fff;
	color: #374151;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}

.revel-comments .revel-comment__reply:hover,
.revel-comments .revel-comment__reply:focus-visible {
	border-color: var(--revel-comment-accent);
	background: #fff8f5;
	color: #a63c1c;
}

.revel-comment__edit {
	font-size: 0.8125rem;
}

.revel-comment__edit a {
	color: var(--revel-comment-muted);
	text-underline-offset: 3px;
}

.revel-comments .children {
	position: relative;
	margin: 12px 0 0 12px;
	padding-left: 12px;
	border-left: 2px solid #eef0f2;
}

.revel-comments ol.comment-list .children::before {
	content: none;
}

.revel-comments .children .revel-comment {
	background: #fcfcfd;
	box-shadow: 0 3px 12px rgb(31 41 51 / 4%);
}

.revel-comments__navigation {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 14px 0;
	font-size: 0.875rem;
}

.revel-comments__navigation a {
	color: #374151;
	text-underline-offset: 3px;
}

.revel-comment-form {
	margin-top: 24px;
	padding: 16px;
	border: 1px solid var(--revel-comment-border);
	border-radius: 14px;
	background: var(--revel-comment-surface);
	box-shadow: 0 1px 2px rgb(31 41 51 / 3%), 0 6px 18px rgb(31 41 51 / 4%);
}

.revel-comment-form .comment-reply-title {
	margin-bottom: 16px;
	font-size: clamp(1.2rem, 5vw, 1.45rem);
}

.revel-comment-form .comment-reply-title small {
	margin-left: 8px;
	font-size: 0.75rem;
	font-weight: 500;
}

.revel-comment-form .comment-form {
	margin: 0;
}

.revel-comment-form .comment-form p {
	margin: 0 0 14px;
}

.revel-comment-form .comment-form label {
	display: inline-block;
	margin-bottom: 6px;
	color: #374151;
	font-size: 0.875rem;
	font-weight: 600;
}

.revel-comment-form .comment-form input[type="text"],
.revel-comment-form .comment-form input[type="email"],
.revel-comment-form .comment-form input[type="url"],
.revel-comment-form .comment-form textarea {
	display: block;
	width: 100%;
	min-height: 46px;
	padding: 11px 12px;
	border: 1px solid #d9dee5;
	border-radius: 10px;
	background: #fff;
	color: #202a35;
	font: inherit;
	font-size: 16px;
	line-height: 1.45;
}

.revel-comment-form .comment-form textarea {
	min-height: 140px;
	resize: vertical;
}

.revel-comment-form .comment-form input:focus,
.revel-comment-form .comment-form textarea:focus {
	border-color: var(--revel-comment-accent);
	outline: 0;
	box-shadow: 0 0 0 3px rgb(233 91 48 / 14%);
}

.revel-comment-form .comment-notes,
.revel-comment-form .logged-in-as,
.revel-comment-form .comment-form-cookies-consent {
	color: var(--revel-comment-muted);
	font-size: 0.8125rem;
	line-height: 1.55;
}

.revel-comment-form .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.revel-comment-form .comment-form-cookies-consent input {
	flex: 0 0 auto;
	margin-top: 4px;
}

.revel-comment-form .form-submit {
	margin-bottom: 0;
}

.revel-comment-form .submit,
.revel-comment-form input[type="submit"],
.revel-comment-form button[type="submit"] {
	display: inline-flex;
	width: 100%;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	border: 0;
	border-radius: 10px;
	background: var(--revel-comment-accent);
	color: #fff;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 150ms ease, transform 150ms ease;
}

.revel-comment-form .submit:hover,
.revel-comment-form input[type="submit"]:hover,
.revel-comment-form button[type="submit"]:hover {
	background: #cc4821;
}

.revel-comment-form .submit:active,
.revel-comment-form input[type="submit"]:active,
.revel-comment-form button[type="submit"]:active {
	transform: translateY(1px);
}

.revel-comments a:focus-visible,
.revel-comment-form button:focus-visible,
.revel-comment-form input[type="submit"]:focus-visible {
	outline: 3px solid rgb(233 91 48 / 35%);
	outline-offset: 3px;
}

html[dir="rtl"] .revel-comments .children {
	margin-right: 12px;
	margin-left: 0;
	padding-right: 12px;
	padding-left: 0;
	border-right: 2px solid #eef0f2;
	border-left: 0;
}

@media (min-width: 600px) {
	.revel-comment-form .comment-form-author,
	.revel-comment-form .comment-form-email {
		display: inline-block;
		width: calc(50% - 8px);
		vertical-align: top;
	}

	.revel-comment-form .comment-form-author {
		margin-right: 12px !important;
	}
}

@media (min-width: 768px) {
	.revel-comments {
		padding: 48px 24px;
	}

	.revel-comments .revel-comment {
		grid-template-columns: 48px minmax(0, 1fr);
		gap: 14px;
		padding: 20px;
	}

	.revel-comments .revel-comment__avatar,
	.revel-comments .revel-comment__avatar .avatar {
		width: 48px;
		height: 48px;
	}

	.revel-comment__content {
		font-size: 1rem;
	}

	.revel-comments .children {
		margin-left: 32px;
		padding-left: 16px;
	}

	.revel-comment-form {
		padding: 24px;
	}

	.revel-comment-form .submit,
	.revel-comment-form input[type="submit"],
	.revel-comment-form button[type="submit"] {
		width: auto;
		min-width: 160px;
	}

	html[dir="rtl"] .revel-comments .children {
		margin-right: 32px;
		margin-left: 0;
		padding-right: 16px;
		padding-left: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.revel-comments *,
	.revel-comments *::before,
	.revel-comments *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
