.py-orders {
	position: relative;
	z-index: 3;
	background: #fff;
	color: #000;
	box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.16);
}

.py-orders__pin {
	position: sticky;
	top: var(--py-header-h, 80px);
	z-index: 1;
	display: flex;
	flex-direction: column;
	height: calc(100svh - var(--py-header-h, 80px));
	background: #fff;
	overflow: hidden;
}

.admin-bar .py-orders__pin {
	top: calc(var(--py-header-h, 80px) + 32px);
	height: calc(100svh - var(--py-header-h, 80px) - 32px);
}

.py-orders__runway {
	height: 0;
	pointer-events: none;
}

.py-orders__rail {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex: 0 0 64px;
	height: 64px;
	padding: 0 clamp(16px, 3vw, 40px);
	background: #fff;
	border-bottom: 1px solid #000;
	box-sizing: border-box;
	direction: rtl;
}

.py-orders__title {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 0;
	font-family: "Ray", "Poppins", Tahoma, sans-serif;
	font-size: 15px;
	font-weight: 800;
}

.py-orders__index,
.py-orders__slash,
.py-orders__num,
.py-orders__hint {
	font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
	font-variant-numeric: tabular-nums;
}

.py-orders__index,
.py-orders__slash {
	font-weight: 700;
}

.py-orders__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 18px;
	border: 1px solid #000;
	border-radius: 999px;
	background: #000;
	color: #fff !important;
	-webkit-text-fill-color: #fff;
	text-decoration: none;
	font-family: "Ray", Tahoma, sans-serif;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	transition: transform 0.2s ease;
}

.py-orders__cta:hover,
.py-orders__cta:focus-visible {
	transform: scale(1.04);
	background: #000 !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff;
}

.py-orders__stage {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
	background: #fff;
}

.py-orders__copy {
	position: absolute;
	top: 72px;
	left: clamp(16px, 3vw, 40px);
	z-index: 4;
	width: min(34vw, 420px);
	margin: 0;
	direction: rtl;
	text-align: right;
	pointer-events: none;
}

.py-orders__headline {
	margin: 0 0 14px;
	font-family: "Ray", Tahoma, sans-serif;
	font-size: clamp(26px, 3vw, 44px);
	font-weight: 800;
	line-height: 1.35;
}

.py-orders__lead {
	margin: 0;
	font-family: "Ray", Tahoma, sans-serif;
	font-size: 15px;
	line-height: 1.9;
	color: #111;
}

.py-orders__scene {
	position: absolute;
	inset: 0;
	direction: ltr;
	perspective: 1800px;
	perspective-origin: 34% 42%;
	overflow: hidden;
}

.py-orders__track {
	position: absolute;
	left: 43%;
	top: min(40%, calc(100% - 428px));
	width: 0;
	height: 0;
	transform-style: preserve-3d;
	will-change: transform;
}

.py-orders__card {
	position: absolute;
	left: 0;
	top: 0;
	display: block;
	width: 320px;
	height: 400px;
	color: #000;
	text-decoration: none;
	transform: translate3d(calc(var(--i) * 196px), calc(var(--i) * -142px), calc(var(--i) * -130px)) rotateY(-40deg);
	transform-style: preserve-3d;
}

.py-orders__face {
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #f3f3f3;
	border: 1px solid #000;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
	transition: transform 0.35s ease;
}

.py-orders__card:hover .py-orders__face,
.py-orders__card:focus-visible .py-orders__face {
	transform: scale(1.05);
}

.py-orders__img,
.py-orders__fallback {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.py-orders__fallback {
	display: flex;
	align-items: flex-end;
	padding: 16px;
	box-sizing: border-box;
	background: #111;
	color: #fff;
	font-family: "Ray", Tahoma, sans-serif;
	font-size: 16px;
	font-weight: 700;
}

.py-orders__num {
	position: absolute;
	top: -18px;
	left: -6px;
	z-index: 2;
	color: #000;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.py-orders__name {
	position: absolute;
	right: 10px;
	bottom: 10px;
	left: 10px;
	z-index: 2;
	padding: 8px 10px;
	background: #fff;
	color: #000;
	font-family: "Ray", Tahoma, sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
	text-align: right;
	direction: rtl;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.py-orders__card:hover .py-orders__name,
.py-orders__card:focus-visible .py-orders__name {
	opacity: 1;
}

.py-orders__hint,
.py-orders__empty {
	position: absolute;
	right: clamp(16px, 3vw, 40px);
	bottom: 18px;
	z-index: 4;
	margin: 0;
	color: #111;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: lowercase;
	pointer-events: none;
}

.py-orders__empty {
	position: static;
	padding: 28px clamp(16px, 3vw, 40px);
	font-family: "Ray", Tahoma, sans-serif;
	font-size: 15px;
	letter-spacing: 0;
	text-transform: none;
}

@media (max-width: 767px) {
	.py-orders__pin {
		position: relative;
		top: auto;
		height: auto;
		min-height: 0;
		overflow: visible;
	}

	.py-orders__rail {
		flex-basis: 48px;
		height: 48px;
		padding: 0 16px;
	}

	.py-orders__title {
		font-size: 13px;
	}

	.py-orders__cta {
		min-height: 30px;
		padding: 0 12px;
		font-size: 11px;
	}

	.py-orders__stage {
		display: flex;
		flex-direction: column;
		min-height: 0;
		overflow: visible;
	}

	.py-orders__copy {
		position: relative;
		top: auto;
		left: auto;
		width: auto;
		padding: 20px 16px 8px;
	}

	.py-orders__headline {
		font-size: 26px;
	}

	.py-orders__scene {
		position: relative;
		height: 460px;
		perspective-origin: 30% 40%;
	}

	.py-orders__track {
		left: 8%;
		top: min(48%, calc(100% - 286px));
	}

	.py-orders__card {
		width: 210px;
		height: 270px;
		transform: translate3d(calc(var(--i) * 132px), calc(var(--i) * -84px), calc(var(--i) * -96px)) rotateY(-32deg);
	}

	.py-orders__hint {
		position: relative;
		right: auto;
		bottom: auto;
		padding: 8px 16px 20px;
	}

	.py-orders__hint--desk {
		display: none;
	}

	.py-orders__hint--touch {
		display: block;
	}

	.py-orders__scene {
		touch-action: pan-y;
	}

	.py-orders {
		position: sticky;
		top: var(--py-header-h, 64px);
	}

	.py-orders__pin {
		padding-bottom: 200px;
	}
}

.py-orders__hint--touch {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.py-orders__pin {
		height: auto;
		overflow: visible;
	}

	.py-orders__stage {
		overflow: visible;
	}

	.py-orders__face {
		transition: none;
	}
}
