/*
 * Someone replied — phosphor note in the Ritual header.
 * Square, green on black, same family as the cart count. No red dot.
 */

.rr-reply-note {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	min-height: 32px;
	max-width: 100%;
	margin: 0;
	padding: 4px 6px 4px 8px;
	border: 1px solid #00ff41;
	border-radius: 0;
	background: #050605;
	color: #e8e2d3;
	font-family: var(--rr-font-display, "DotGothic16"), "VT323", ui-monospace, monospace;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0.03em;
	line-height: 1;
	text-decoration: none;
	text-transform: none;
	white-space: nowrap;
	-webkit-text-fill-color: #e8e2d3;
}

.rr-reply-note__mark {
	color: #00ff41;
	font-family: var(--rr-font-crt, "VT323"), ui-monospace, monospace;
	font-size: 16px;
	-webkit-text-fill-color: #00ff41;
}

.rr-reply-note__short {
	display: none;
}

.rr-reply-note__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 1.5em;
	min-height: 1.35em;
	padding: 2px 5px;
	background: #00ff41;
	color: #050605;
	font-family: var(--rr-font-crt, "VT323"), ui-monospace, monospace;
	font-size: 16px;
	line-height: 1;
	-webkit-text-fill-color: #050605;
}

.rr-reply-note:hover,
.rr-reply-note:focus-visible {
	background: #00ff41;
	color: #050605;
	outline: 2px solid #00ff41;
	outline-offset: 2px;
	-webkit-text-fill-color: #050605;
}

.rr-reply-note:hover .rr-reply-note__mark,
.rr-reply-note:focus-visible .rr-reply-note__mark {
	color: #050605;
	-webkit-text-fill-color: #050605;
}

.rr-reply-note:hover .rr-reply-note__count,
.rr-reply-note:focus-visible .rr-reply-note__count {
	background: #050605;
	color: #00ff41;
	-webkit-text-fill-color: #00ff41;
}

.rr-reply-note:active {
	transform: translateY(1px);
}

.rr-reply-note--strip {
	position: sticky;
	top: 0;
	z-index: 80;
	display: flex;
	width: max-content;
	max-width: calc(100% - 16px);
	margin: 8px auto;
}

body.rr-site-skin .rr-skin-account .rr-reply-note,
.rr-head__end .rr-reply-note,
.rr-top__account .rr-reply-note {
	flex: 0 0 auto;
}

/* The post that got a reply, and the reply itself. */
article.rr-has-reply,
article.rr-replied-post {
	box-shadow: inset 3px 0 0 #00ff41;
}

article.rr-replied-post {
	background: rgba(0, 255, 65, 0.06);
}

.rr-reply-flag {
	display: inline-block;
	margin-left: 8px;
	color: #00ff41;
	font-family: var(--rr-font-display, "DotGothic16"), "VT323", ui-monospace, monospace;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	-webkit-text-fill-color: #00ff41;
}

a.rr-post.rr-has-reply {
	box-shadow: inset 3px 0 0 #00ff41;
}

#af-wrapper .rb-hub .rb-reply-to {
	align-self: flex-start;
	margin: 8px 0 0;
	padding: 8px 12px;
	border: 1px solid rgba(0, 255, 65, 0.45);
	border-radius: 0;
	background: transparent;
	color: #00ff41;
	font-family: var(--rb-pixel, "DotGothic16"), "VT323", ui-monospace, monospace;
	font-size: 13px;
	letter-spacing: 0.06em;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	-webkit-text-fill-color: #00ff41;
}

#af-wrapper .rb-hub .rb-reply-to:hover,
#af-wrapper .rb-hub .rb-reply-to:focus-visible {
	background: #00ff41;
	color: #050605;
	outline: 2px solid #00ff41;
	outline-offset: 2px;
	-webkit-text-fill-color: #050605;
}

#af-wrapper .rb-hub .rb-reply-target {
	margin: 0;
	color: #8ea093;
	font-family: var(--rb-mono, "Fragment Mono"), ui-monospace, monospace;
	font-size: 12px;
	line-height: 1.4;
}

#af-wrapper .rb-hub .rb-reply-target[hidden] {
	display: none !important;
}

#af-wrapper .rb-hub .rb-reply-target-clear {
	margin-left: 6px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #00ff41;
	font: inherit;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	-webkit-text-fill-color: #00ff41;
}

#af-wrapper .rb-hub .rb-reply-target-clear:focus-visible {
	outline: 2px solid #00ff41;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
	.rr-reply-note {
		transition: background-color 120ms linear, color 120ms linear;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rr-reply-note,
	.rr-reply-note:active,
	article.rr-has-reply,
	article.rr-replied-post {
		transition: none;
		animation: none;
		transform: none;
	}
}

@media (max-width: 720px) {
	.rr-reply-note {
		gap: 6px;
		min-height: 36px;
		padding: 4px 5px 4px 7px;
	}

	.rr-reply-note__long {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.rr-reply-note__short {
		display: inline;
	}
}
