.comments-title-wrap {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	padding: .5em .3em .3em;
	border-top: solid 1px #000;
	border-bottom: solid 1px #000;
}
.comments-title {
	flex: 1;
	font-size: 1em;
	line-height: 1em;
	padding: .05em 0 0 0;
	margin: 0;
}

/* Offset for a sticky admin bar / header when scrolling to anchors */
.comment,
.comment-form-wrap            { position: relative; overflow: hidden; height:auto; }
.collapsed .comment-form-wrap { height:0!important; padding:0!important; visibility:hidden; }

.comment-toggle{
	padding: 0 1em;
	background: var(--color-blue-dark);
	color: var(--color-background);
	border: 1px solid var(--color-blue-dark);
	font-size:1rem;
	cursor:pointer;
	margin: calc(var(--base-height)) 0;
	transition: .3s;
}

.comment-toggle:hover,
.comment-toggle[aria-expanded="true"]{
	background: var(--color-background);
	color: var(--color-text);
	border-color: var(--color-text);
}


/* Slide‑in/out containers need overflow hidden */
.comment-form-wrap            { position: relative; overflow: hidden; }

.char-counter {
	position: absolute;
	right: 0.5em;
	bottom: 0.3em;
	font-size: 0.75rem;
	color: #666;
	pointer-events: none;
}

.new-comment-highlight {
	background: rgba(128, 128, 128, .1);
}
.new-comment-highlight .comment-body{
	padding: 1em;
}

.comment-notice {
	display: inline-block;
	padding: 0.05em 0.6em;
	font-size: 0.75rem;
	border-radius: 2px;
	vertical-align: middle;
}

.comment-notice.moderation { background: #ffc; color: #7a6400; }
.comment-notice.spam       { background: #ffe3e3; color: #b40000; }

.comment-feedback {
	margin: 0.5em 0 1em;
	padding: 0.75em 1em;
	border-radius: 4px;
	font-size: 0.9rem;
	line-height: 1.4;
}

/* Colour variants */
.comment-feedback.error   { background: #ffe3e3; color: #b40000; border: 1px solid #f5c2c2; }
.comment-feedback.success { background: #e7f7e7; color: #226600; border: 1px solid #c5e1c5; }
.comment-feedback.info    { background: #e8f4ff; color: #004b91; border: 1px solid #c4ddf5; }
.comment-feedback.warning { background: #fff7e0; color: #7a6400; border: 1px solid #f4e5b5; }

/* Fade‑out animation */
.comment-feedback.fade-out {
	opacity: 0;
	transition: opacity 0.4s ease;
}

.comment-form-overlay {
	position: absolute;
	inset: 0;
	background: rgba(128, 128, 128, .1);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

/* Simple rotating spinner */
.spinner {
	width: 32px;
	height: 32px;
	border: 4px solid #bbb;
	border-top-color: rgb(1, 62, 131) !important;
	border-top-color: var(--color-blue-dark);
	border-radius: 50%;
	animation: spin .8s linear infinite;
}
.cl-sending {
	font-weight: bold;
	transform: uppercase;
	margin-top: 1em;
	font-size: .9em;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* Prevent nested <ul class="children"> lists from inheriting padding
   that might collide with the highlight padding */
.comment > ul.children {
	margin: 0 0 0 2em;       /* default WP indent (can adjust) */
	padding: 0;
}

ul.children > .comment:first-child {
	margin: 1em 0 0 0;
}

.comment-reply-link {
	display: inline-block;
	border: none;
	margin-top: 0;
	font-size: .9em !important;
	transition: .3s;
	background: rgba(128,128,128,0);
	color: var(--color-text);
}

.comment-reply-link:hover {
	color: var(--color-background);
	background: var(--color-blue-dark);
}

.comment-meta {
	margin-bottom: .5em !important;
}

.comment-metadata {
	line-height: calc(1.15*var(--base-height)) !important;
	font-size: .8em !important;
}

.comment-body {
	margin-bottom: 0 !important;
}

.comment {
	padding: calc(0.5*var(--base-height)) 0 !important;
	transition: background-color 0.6s ease, padding 0.6s ease;
	margin-bottom: 0 !important;
	font-size: 1rem;
	line-height: 1.25rem;
}

.comment-list>.comment:first-child {
	padding-top: 0 !important;
}

.comment:first-child {
	border-top: none;
}
