/**
 * Przyklejony przycisk "Wróć na górę" (assets/js/back-to-top.js).
 */
.dps-back-to-top {
	--back-to-top-size: 48px;
	--back-to-top-offset: 24px;

	position: fixed;
	right: calc(var(--back-to-top-offset) + env(safe-area-inset-right, 0px));
	bottom: calc(var(--back-to-top-offset) + env(safe-area-inset-bottom, 0px));
	z-index: 90;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--back-to-top-size);
	height: var(--back-to-top-size);
	padding: 0;
	border: 1px solid var(--wp--preset--color--white-20);
	background-color: var(--wp--preset--color--dark-blue);
	color: var(--wp--preset--color--white);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s, background-color 0.2s;
}

.dps-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.dps-back-to-top:is(:hover, :focus-visible) {
	background-color: var(--wp--preset--color--blue);
}

.dps-back-to-top svg {
	width: 22px;
	height: 22px;
}

@media (max-width: 781.9999px) {
	.dps-back-to-top {
		--back-to-top-size: 44px;
		--back-to-top-offset: 16px;
	}
}

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