.comments-container {
	display: flex;
	flex-direction: column;
	position: fixed;
	background-color: #0d0d0d;
	z-index: 9999;
	top: 0;
	bottom: 0;
	height: 100dvh;
	width: 500px;
	max-width: 100%;
	right: 0;
	padding-top: var(--header-height, 30px);
	color: white;
	color-scheme: dark;
	transform: translateX(550px);
}

.comments-container.open {
	transform: translateX(0);
}

.comments-container input,
.comments-container textarea,
input#mc-input {
	color: white;
	padding: 0.5em;
}

.comments-container input#submit {
	background: #333;
	border: none;
	border-radius: 4px;
	padding: 0.7rem 1.5rem;
	margin-left: auto;
	display: block;
	color: white;
}

.comments-container input#submit:hover,
.comments-container input#submit:focus {
	background-color: #444;
	outline: none;
}

.comments-container a:hover,
.comments-container a:focus {
	outline: none;
	color: #efefef;
}

div#comments {
	padding: 1rem;
	overflow: auto;
	overscroll-behavior: contain;
	position: relative;
}

div#comments p {
	max-width: 100%;
}

div#comments::before {
	content: "";
	top: 0;
	left: 0;
	position: absolute;
	width: 100%;
	height: 10px;
	background: linear-gradient(0deg, transparent, #0000007d);
}

.comments-title {
	display: none;
}

.comment-form-comment label {
	display: none;
}

textarea#comment,
input#mc-input {
	background: #000;
	border: 2px solid #222;
	border-radius: 5px;
}

textarea#comment {
	width: 100% !important;
	min-height: 4rem;
}

textarea#comment:focus-visible,
input#mc-input:focus-visible {
	border: 2px solid #333;
	outline: none;
}

form#commentform {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin-block: 1.5rem;
	border-bottom: 2px solid #222;
	padding-bottom: 1.5rem;
}

p.math-captcha-form {
	font-size: 0.9rem;
	margin-bottom: 0.4rem;
	order: 1;
}

p.comment-form-comment {
	grid-column: span 2;
}

p.form-submit {
	order: 2;
}

a#cancel-comment-reply-link {
	font-weight: 400;
	text-decoration: none;
	color: #9b9b9b;
}

a#cancel-comment-reply-link:hover,
a#cancel-comment-reply-link:focus {
	color: #efefef;
}

.comment-meta {
	color: #8f8f8f;
	font-size: 0.9rem;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
}

.comment-meta a {
	color: inherit;
	text-decoration: none;
}

.comment-avatar {
	display: none;
}

ol.comment-list li {
	border-left: 2px solid #333;
	padding-left: 0.5rem;
	padding-bottom: 1rem;
	margin-bottom: 1rem;
}

.comment-wrapper {
	margin-bottom: 1rem;
}

button.comment-collapser {
    display: none;
}

.collapsed-comment-text {
	display: none;
}

a.comment-reply-link {
	background: #1a1a1a;
	color: #9b9b9b;
	text-decoration: none;
	padding: 0.2rem 0.5rem;
	font-size: 0.8rem;
	border-radius: 6px;
	margin-left: auto;
	width: fit-content;
	display: flex;
	gap: 1ch;
	align-items: center;
}

.comments-toggle:has(.must-log-in) a.comment-reply-link {
	display: none;
}

a.comment-reply-link:hover,
a.comment-reply-link:focus {
	background: #202020;
	color: #9b9b9b;
}

a.comment-reply-link::before {
	content: "";
	width: 16px;
	height: 16px;
	display: block;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' focusable='false' aria-hidden='true' viewBox='0 0 24 24' stroke='%239b9b9b' fill='none'%3E%3Cpath d='M10 9V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z'%3E%3C/path%3E%3C/svg%3E");
}

h3#reply-title {
	display: flex;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
}

.must-log-in {
	padding: 0 1rem 3rem;
	text-align: center;
	margin-bottom: 2rem;
	border-bottom: 2px solid #222;
}

.must-log-in a {
	text-decoration: none;
	background-color: #333;
	padding: 0.5rem 1rem;
	color: #fbfbfb;
	border-radius: 5px;
}

.must-log-in p {
	font-weight: 700;
	font-size: 1.3rem;
	text-wrap-style: balance;
}

.must-log-in a:hover,
.must-log-in a:focus {
	background-color: #444;
}

em.comment-awaiting-moderation {
	color: #78d789;
}

.comment-metadata a:first-child {
	pointer-events: none;
}

a.capsule-comments-close-btn {
	text-decoration: none;
	color: white;
	line-height: 1.1;
	position: absolute;
	top: 0;
	left: 1rem;
	display: flex;
	align-items: center;
	gap: 1ch;
}

a.capsule-comments-close-btn span {
	font-size: 1.7rem;
}