.back-to-top {
	--back-to-top-cta-offset: 0px;
	align-items: center;
	appearance: none;
	background: rgba(255, 255, 255, 0.94);
	border: 2px solid var(--color-header-scrolled, #e52521);
	border-radius: 50%;
	bottom: calc(1.75rem + env(safe-area-inset-bottom) + var(--back-to-top-cta-offset));
	box-shadow: none;
	color: var(--color-header-scrolled, #e52521);
	cursor: pointer;
	display: inline-flex;
	height: 3.25rem;
	justify-content: center;
	opacity: 0;
	padding: 0;
	pointer-events: none;
	position: fixed;
	right: 1.75rem;
	transform: translateY(10px);
	transition:
		opacity 300ms ease,
		transform 220ms ease,
		background-color 220ms ease,
		border-color 220ms ease,
		box-shadow 220ms ease,
		color 220ms ease,
		visibility 0s linear 300ms;
	visibility: hidden;
	width: 3.25rem;
	z-index: 90;
}

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

.back-to-top:hover {
	background: var(--color-header-scrolled, #e52521);
	border-color: var(--color-header-scrolled, #e52521);
	box-shadow: 0 8px 20px rgba(229, 37, 33, 0.2);
	color: var(--color-paper, #ffffff);
	transform: translateY(-2px);
}

.back-to-top:active {
	transform: translateY(-1px) scale(0.95);
}

.back-to-top:focus-visible {
	outline: 3px solid var(--color-header-scrolled, #e52521);
	outline-offset: 3px;
}

.back-to-top__icon {
	display: block;
	height: 1.25rem;
	transition: transform 220ms ease;
	width: 1.25rem;
}

.back-to-top__icon path {
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.25;
}

.back-to-top:hover .back-to-top__icon {
	transform: translateY(-2px);
}

.menu-is-open .back-to-top {
	opacity: 0;
	pointer-events: none;
}

@media (max-width: 48rem) {
	.back-to-top {
		bottom: calc(1rem + env(safe-area-inset-bottom) + var(--back-to-top-cta-offset));
		height: 2.875rem;
		right: 1rem;
		width: 2.875rem;
	}

	.back-to-top__icon {
		height: 1.125rem;
		width: 1.125rem;
	}
}

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