

.back-to-top {
	position: fixed;
	right: 12px;
	bottom: 12px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--accent);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.24);
	transform: translateY(0);
	transition: background 150ms var(--ease), transform 200ms var(--ease);
	z-index: var(--z-cookie);
}

.back-to-top[hidden] {
	display: none;
}

.back-to-top:hover {
	background: var(--forest);
}

.back-to-top--raised {
	transform: translateY(-178px);
}

.back-to-top__icon {
	width: 9px;
	height: 9px;
	border-left: 2px solid var(--paper);
	border-top: 2px solid var(--paper);
	transform: rotate(45deg) translate(1px, 1px);
}

@media (min-width: 768px) {
	.back-to-top {
		right: 20px;
		bottom: 20px;
	}

	.back-to-top--raised {
		transform: translateY(0);
	}
}

@media (min-width: 1280px) {
	.back-to-top {
		right: 24px;
		bottom: 24px;
		width: 52px;
		height: 52px;
	}

	.back-to-top__icon {
		width: 10px;
		height: 10px;
	}
}

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