/* Elastic Avatar & Comment Tools */

/* "In reply to" note on comment replies */
.comment-reply-to {
	font-size: 0.85em;
	opacity: 0.75;
	margin-bottom: 0.25em;
}
/* Reply icon: white arrow on a blue square, drawn as SVG so it looks the same in every
   font and on every device (the ↪ character turned into a different emoji or plain glyph
   depending on the font). Change the blue with --elastct-reply-icon-bg. */
.comment-reply-to a::before {
	content: "";
	display: inline-block;
	width: 1.15em;
	height: 1.15em;
	margin-right: 0.35em;
	vertical-align: -0.2em;
	border-radius: 0.25em;
	background: var(--elastct-reply-icon-bg, #2563eb) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 5v5a4 4 0 0 0 4 4h8'/%3E%3Cpath d='M14 10l4 4-4 4'/%3E%3C/svg%3E") center / 72% no-repeat;
}

/* Moderation buttons. All plugin buttons and the edit timer use --elastct-button-font and
   --elastct-button-weight: the comment form submit button's font family and weight, set by
   assets/comment-ui.js. */
.comment-mod-actions {
	position: relative; /* comment-ui.js shifts the row onto a whole pixel with top */
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5em;
	margin-top: 0.75em;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.comment-mod-actions button {
	/* Own box with a tight line height, text centered inside it. Reset the browser's own
	   button look, so the buttons look the same as the links they replaced. */
	margin: 0;
	border: 0;
	cursor: pointer;
	font-size: inherit;
	text-transform: inherit;
	letter-spacing: inherit;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	font-family: var(--elastct-button-font, inherit);
	font-weight: var(--elastct-button-weight, 700);
	/* 24px is a whole number of screen pixels at 100%, 125%, 150%, 175% and 200% display
	   scaling, so the button edges never land between pixels. With comment-ui.js moving
	   each row onto a whole screen pixel, every button renders its label at the same spot. */
	box-sizing: border-box;
	height: 24px;
	padding: 0 0.85em;
	border-radius: 4px;
	color: #fff;
	text-decoration: none;
	/* The text is all capitals: trim the box to cap height and baseline so the
	   capitals sit exactly in the middle (supported by current Chrome, Edge, Safari). */
	text-box: trim-both cap alphabetic;
}
/* Browsers without text-box: the box still reserves room below the baseline for
   letters like g and p, so nudge the capitals down to look centered. */
@supports not (text-box: trim-both cap alphabetic) {
	.comment-mod-actions button {
		padding: 2px 0.85em 0;
	}
}
.comment-mod-unapprove { background-color: #2271b1; }
.comment-mod-spam { background-color: #b26200; }
.comment-mod-delete { background-color: #b32d2e; }
.comment-mod-actions button:hover,
.comment-mod-actions button:focus-visible { filter: brightness(1.15); }

/* Commenter edit window */
.elastct-edit-bar {
	display: flex;
	align-items: center;
	gap: 0.75em;
	margin-top: 0.75em;
	font-size: 0.85em;
}
.elastct-edit-bar button,
.elastct-editor button {
	padding: 0.3em 0.9em;
	border: 1px solid currentColor;
	border-radius: 4px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-family: var(--elastct-button-font, inherit);
	font-weight: var(--elastct-button-weight, inherit);
	cursor: pointer;
}
.elastct-editor .elastct-save {
	background-color: #01175e;
	border-color: #01175e;
	color: #fff;
}
.elastct-timer {
	font-family: var(--elastct-button-font, inherit);
	font-weight: var(--elastct-button-weight, inherit);
	opacity: 0.7;
}
.elastct-editor textarea {
	width: 100%;
	min-height: 8em;
	margin: 0.5em 0;
	font: inherit;
}
.elastct-editor .elastct-actions {
	display: flex;
	gap: 0.5em;
}
.elastct-message {
	margin-top: 0.5em;
	font-size: 0.85em;
}
.comment-edited {
	font-size: 0.8em;
	font-style: italic;
	opacity: 0.6;
	margin-top: 0.25em;
}

/* Note under the comment form's email field (commenter privacy). */
.elastct-email-note {
	margin: 0.35em 0 0.75em;
	font-size: 0.85em;
	opacity: 0.75;
}
