/* ==========================================================================
   PWP Print Studio – Back to top button
   Design source: Figma icon-park-outline:to-top (40x40 white pill, top-right)
   ========================================================================== */

.pwpps-back-to-top {
	box-sizing: border-box;
	position: fixed;
	right: 32px;
	bottom: 68px;
	z-index: 999;

	display: inline-flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	padding: 2px 5px;
	gap: 10px;

	width: 40px;
	height: 40px;

	background: #FFFFFF;
	border: 1px solid #E6E6E6;
	border-radius: 999px;

	color: #141414;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;

	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 200ms ease, visibility 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.pwpps-back-to-top[hidden] {
	display: none;
}

.pwpps-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.pwpps-back-to-top:hover {
	box-shadow: 0 4px 12px rgba(20, 20, 20, 0.12);
}

.pwpps-back-to-top:focus-visible {
	outline: 2px solid #141414;
	outline-offset: 2px;
}

.pwpps-back-to-top__icon {
	flex: none;
	width: 22px;
	height: 22px;
	color: #141414;
	display: block;
}

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
	.pwpps-back-to-top {
		right: 16px;
		bottom: 24px;
		width: 36px;
		height: 36px;
	}

	.pwpps-back-to-top__icon {
		width: 20px;
		height: 20px;
	}
}
