.wp-block-nmlc-back-to-top-button {
	margin: 0;
}

.nmlc-back-to-top {
	align-items: center;
	background: #1e1e1e;
	border: 0;
	border-radius: 999px;
	bottom: 24px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	color: #fff;
	cursor: pointer;
	display: flex;
	font-size: 28px;
	font-weight: 600;
	height: 52px;
	justify-content: center;
	line-height: 1;
	opacity: 0;
	padding: 0;
	pointer-events: none;
	position: fixed;
	right: 24px;
	transform: translateY(12px);
	transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease;
	visibility: hidden;
	width: 52px;
	z-index: 9999;
}

/* Prevent themes from injecting a second icon into the button. */
.nmlc-back-to-top::before,
.nmlc-back-to-top::after {
	content: none !important;
	display: none !important;
}

/* Replace the saved arrow character visually with one centered chevron. */
.nmlc-back-to-top > span {
	display: block;
	font-size: 0;
	height: 18px;
	line-height: 0;
	position: relative;
	width: 18px;
}

.nmlc-back-to-top > span::before {
	border-left: 3px solid currentColor;
	border-top: 3px solid currentColor;
	box-sizing: border-box;
	content: "";
	display: block;
	height: 11px;
	left: 3px;
	position: absolute;
	top: 5px;
	transform: rotate(45deg);
	width: 11px;
}

.nmlc-back-to-top.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
	visibility: visible;
}

.nmlc-back-to-top:hover {
	background: #3a3a3a;
}

.nmlc-back-to-top:focus-visible {
	outline: 3px solid #2271b1;
	outline-offset: 3px;
}

@media (max-width: 600px) {
	.nmlc-back-to-top {
		bottom: 16px;
		right: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nmlc-back-to-top {
		transition: none;
	}
}
