/* =============================================================================
   Pearloc Watch & Shop Pro v5 — front end
   Dark luxury. Self-contained: no framework, no webfont, no external asset.
   ========================================================================== */

.pws-rail-wrap,
.pws-viewer,
.pws-float {
	--pws-accent: #e37978;
	--pws-ring: #e37978;
	--pws-ink: #0b0b0c;
	--pws-ink-2: #141416;
	--pws-line: rgba(255, 255, 255, .14);
	--pws-paper: #ffffff;
	--pws-muted: #8a8a8f;
	--pws-radius: 14px;
	--pws-shadow: 0 18px 46px rgba(0, 0, 0, .34);
	-webkit-tap-highlight-color: transparent;
}

/* -----------------------------------------------------------------------------
   Rails — shared chrome
   -------------------------------------------------------------------------- */

.pws-rail-wrap {
	margin: 18px 0;
	position: relative;
}

.pws-rail-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 12px;
	padding: 0 2px;
}

.pws-rail-heading {
	margin: 0 0 12px;
	font-size: clamp(15px, 2.4vw, 19px);
	font-weight: 600;
	letter-spacing: .09em;
	text-transform: uppercase;
	line-height: 1.25;
}

.pws-rail-head .pws-rail-heading {
	margin: 0;
}

.pws-rail-arrows {
	display: none;
	gap: 6px;
	flex: 0 0 auto;
}

@media (min-width: 900px) {
	.pws-rail-arrows {
		display: flex;
	}
}

.pws-arrow {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid currentColor;
	background: transparent;
	color: inherit;
	opacity: .55;
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	transition: opacity .18s ease, transform .18s ease;
}

.pws-arrow:hover {
	opacity: 1;
}

.pws-arrow:active {
	transform: scale(.94);
}

/* -----------------------------------------------------------------------------
   Stories rail
   -------------------------------------------------------------------------- */

.pws-stories {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 6px 2px 10px;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.pws-stories::-webkit-scrollbar {
	display: none;
}

.pws-story {
	scroll-snap-align: start;
	flex: 0 0 auto;
	width: 78px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
	text-align: center;
}

.pws-ring {
	display: block;
	width: 74px;
	height: 74px;
	margin: 0 auto 8px;
	border-radius: 50%;
	padding: 2px;
	background: conic-gradient(from 210deg, var(--pws-ring), #f6c8a0, var(--pws-ring));
	transition: transform .22s ease, filter .22s ease;
}

.pws-story:active .pws-ring {
	transform: scale(.94);
}

.pws-ring-in {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	overflow: hidden;
	background: #1b1b1e;
	border: 2px solid var(--pws-paper);
	box-sizing: border-box;
}

.pws-ring-in img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pws-story-label {
	display: block;
	font-size: 11.5px;
	letter-spacing: .04em;
	line-height: 1.3;
	opacity: .8;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* -----------------------------------------------------------------------------
   Reels row + grid
   -------------------------------------------------------------------------- */

.pws-reels {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 2px 2px 12px;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.pws-reels::-webkit-scrollbar {
	display: none;
}

.pws-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

@media (min-width: 700px) {
	.pws-grid {
		grid-template-columns: repeat(var(--pws-cols, 4), minmax(0, 1fr));
	}
}

.pws-card {
	flex: 0 0 auto;
	width: 46vw;
	max-width: 208px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	scroll-snap-align: start;
	display: block;
}

.pws-grid .pws-card {
	width: 100%;
	max-width: none;
}

.pws-inline .pws-card {
	width: 190px;
}

.pws-card-media {
	position: relative;
	display: block;
	width: 100%;
	border-radius: var(--pws-radius);
	overflow: hidden;
	/*
	 * A soft neutral, not near-black. This only shows in the moments before
	 * a poster or frame paints, and a light placeholder reads as "loading"
	 * where a black box reads as "broken".
	 */
	background: linear-gradient(160deg, #f1eeec, #e2dcd8);
	box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
	transition: transform .26s ease, box-shadow .26s ease;
}

.pws-ratio-9-16 .pws-card-media {
	aspect-ratio: 9 / 16;
}

.pws-ratio-3-4 .pws-card-media {
	aspect-ratio: 3 / 4;
}

.pws-ratio-1-1 .pws-card-media {
	aspect-ratio: 1 / 1;
}

/* Fallback for browsers without aspect-ratio */
@supports not (aspect-ratio: 9 / 16) {
	.pws-ratio-9-16 .pws-card-media {
		padding-top: 177.78%;
	}
	.pws-ratio-3-4 .pws-card-media {
		padding-top: 133.33%;
	}
	.pws-ratio-1-1 .pws-card-media {
		padding-top: 100%;
	}
}

.pws-card:hover .pws-card-media {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(0, 0, 0, .26);
}

.pws-card:active .pws-card-media {
	transform: scale(.985);
}

/*
 * The poster sits underneath the video and is never removed. A horizontal
 * rail scrolls a card in faster than an HLS manifest + first segment can be
 * fetched and decoded, so without this the shopper sees the dark gradient
 * for a beat. The still is already in the page, so it paints immediately.
 */
.pws-card-poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border: 0;
}

.pws-card-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border: 0;
}

/*
 * The video is hidden behind the poster until it genuinely has a frame, but
 * that is done with inline styles in pws.js, not a class here: UCSS and
 * friends strip selectors they cannot find in the served HTML, and a
 * stripped "revealed" rule would leave every preview invisible.
 */

.pws-card-play {
	position: absolute;
	left: 10px;
	bottom: 10px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(12, 12, 14, .55);
	color: #fff;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transition: opacity .2s ease;
	pointer-events: none;
}

.pws-card.is-playing .pws-card-play {
	opacity: 0;
}

.pws-card-body {
	display: block;
	padding: 9px 2px 0;
}

.pws-card-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 13px;
	line-height: 1.35;
	letter-spacing: .01em;
}

.pws-card-price {
	display: block;
	margin-top: 3px;
	font-size: 13px;
	font-weight: 600;
	opacity: .92;
}

.pws-card-price del {
	opacity: .5;
	font-weight: 400;
	margin-right: 6px;
}

.pws-card-price ins {
	text-decoration: none;
}

/* -----------------------------------------------------------------------------
   PDP floating player
   -------------------------------------------------------------------------- */

.pws-float {
	position: fixed;
	right: 14px;
	bottom: var(--pws-float-b-m, 84px);
	width: var(--pws-float-w-m, 220px);
	border-radius: 16px;
	overflow: hidden;
	background: #000;
	z-index: 99990;
	box-shadow: var(--pws-shadow);
	transition: opacity .22s ease, transform .22s ease;
	touch-action: none;
	cursor: pointer;
	line-height: 0;
}

.pws-float.pws-left {
	left: 14px;
	right: auto;
}

@media (min-width: 781px) {
	.pws-float {
		right: 18px;
		bottom: var(--pws-float-b-d, 24px);
		width: var(--pws-float-w-d, 300px);
	}
	.pws-float.pws-left {
		left: 18px;
		right: auto;
	}
}

.pws-float video {
	width: 100%;
	height: auto;
	display: block;
}

.pws-float-x {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .9);
	color: #111;
	line-height: 1;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pws-float-tag {
	position: absolute;
	left: 8px;
	bottom: 8px;
	z-index: 3;
	font-size: 10.5px;
	letter-spacing: .12em;
	text-transform: uppercase;
	font-weight: 700;
	color: #fff;
	background: rgba(12, 12, 14, .58);
	padding: 5px 9px;
	border-radius: 999px;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	pointer-events: none;
	line-height: 1;
}

.pws-float.is-hidden {
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px);
}

/* v4 vestige, kept so old theme CSS does not suddenly reveal anything */
.single-product .pws-player {
	display: none !important;
}

/* -----------------------------------------------------------------------------
   Viewer
   -------------------------------------------------------------------------- */

html.pws-locked,
body.pws-locked {
	overflow: hidden !important;
	overscroll-behavior: none;
}

.pws-viewer {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(6, 6, 8, .94);
	color: #fff;
	opacity: 0;
	transition: opacity .2s ease;
	overscroll-behavior: contain;
}

@supports (backdrop-filter: blur(4px)) {
	.pws-viewer {
		background: rgba(6, 6, 8, .82);
		backdrop-filter: blur(16px) saturate(120%);
		-webkit-backdrop-filter: blur(16px) saturate(120%);
	}
}

.pws-viewer.is-open {
	display: flex;
}

.pws-viewer.is-visible {
	opacity: 1;
}

.pws-stage {
	position: relative;
	width: 100%;
	height: 100%;
	max-width: none;
	overflow: hidden;
	background: #000;
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
}

@media (min-width: 900px) {
	.pws-stage {
		width: min(430px, 30vw);
		height: min(92vh, 860px);
		border-radius: 22px;
		box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
	}
}

.pws-track {
	position: absolute;
	inset: 0;
	will-change: transform;
}

.pws-slot {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
	overflow: hidden;
}

.pws-slot video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	background: #000;
}

.pws-slot::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(to bottom, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 22%),
		linear-gradient(to top, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, 0) 42%);
}

/* Progress segments */
.pws-progress {
	position: absolute;
	top: 10px;
	left: 10px;
	right: 10px;
	display: flex;
	gap: 4px;
	z-index: 6;
	pointer-events: none;
}

.pws-seg {
	flex: 1 1 0;
	height: 2.5px;
	border-radius: 3px;
	background: rgba(255, 255, 255, .3);
	overflow: hidden;
}

.pws-seg > i {
	display: block;
	height: 100%;
	width: 0;
	background: #fff;
	border-radius: 3px;
}

.pws-seg.is-done > i {
	width: 100%;
}

/* Top chrome */
.pws-top {
	position: absolute;
	top: 22px;
	left: 10px;
	right: 10px;
	display: flex;
	align-items: center;
	gap: 8px;
	z-index: 7;
}

.pws-top-spacer {
	flex: 1 1 auto;
}

.pws-btn-ghost {
	width: 38px;
	height: 38px;
	flex: 0 0 auto;
	border: 0;
	border-radius: 50%;
	background: rgba(14, 14, 16, .52);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition: background .18s ease, transform .18s ease;
}

.pws-btn-ghost:hover {
	background: rgba(30, 30, 34, .72);
}

.pws-btn-ghost:active {
	transform: scale(.92);
}

/*
 * Icon hardening.
 *
 * These icons are injected by JavaScript after the page has rendered, which
 * puts them out of reach of "remove unused CSS" passes, and themes commonly
 * ship broad rules like `svg { display: none }` for icon-font fallbacks or
 * `button svg { width: 100% }`. Every property that decides whether the icon
 * is visible is therefore forced here, and repeated inline on each element so
 * that even a stripped stylesheet leaves them drawn.
 */
.pws-viewer svg,
.pws-float svg,
.pws-card svg {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	max-width: none !important;
	max-height: none !important;
	vertical-align: middle;
	pointer-events: none;
}

.pws-btn-ghost svg {
	width: 18px !important;
	height: 18px !important;
	min-width: 18px;
	min-height: 18px;
	fill: none !important;
	stroke: #fff !important;
	flex: 0 0 auto;
}

.pws-btn-ghost {
	font-size: 0;
	line-height: 0;
}

.pws-soundcue svg {
	fill: none !important;
	stroke: #fff !important;
}

.pws-toast-tick svg {
	width: 12px !important;
	height: 12px !important;
	fill: none !important;
	stroke: #fff !important;
}

/* Desktop side navigation */
.pws-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 8;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition: background .18s ease;
}

.pws-nav:hover {
	background: rgba(255, 255, 255, .2);
}

@media (min-width: 900px) {
	.pws-viewer.has-many .pws-nav {
		display: flex;
	}
	.pws-nav.is-prev {
		left: calc(50% - min(430px, 30vw) / 2 - 62px);
	}
	.pws-nav.is-next {
		left: auto;
		right: calc(50% - min(430px, 30vw) / 2 - 62px);
	}
}

/* Caption */
.pws-caption {
	position: absolute;
	left: 14px;
	right: 64px;
	bottom: 188px;
	z-index: 5;
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: .01em;
	text-shadow: 0 1px 12px rgba(0, 0, 0, .6);
	pointer-events: none;
	transition: opacity .2s ease;
}

/* Product dock */
.pws-dock {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 6;
	padding: 0 12px calc(14px + env(safe-area-inset-bottom, 0px));
	transition: transform .24s ease, opacity .24s ease;
	/* The stage sets touch-action:none; the dock needs its own gestures back. */
	touch-action: pan-x;
}

.pws-chips {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 0 0 10px;
	scrollbar-width: none;
	touch-action: pan-x;
}

.pws-chips::-webkit-scrollbar {
	display: none;
}

.pws-chip {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 5px 11px 5px 5px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 999px;
	background: rgba(16, 16, 18, .6);
	color: #fff;
	font-size: 12px;
	letter-spacing: .02em;
	cursor: pointer;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	max-width: 62vw;
	transition: background .18s ease, border-color .18s ease;
}

.pws-chip img {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
}

.pws-chip span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pws-chip.is-active {
	background: rgba(255, 255, 255, .95);
	color: #101012;
	border-color: transparent;
}

.pws-pcard {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 10px;
	border-radius: 16px;
	background: rgba(255, 255, 255, .96);
	color: #101012;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}

.pws-pcard-img {
	width: 56px;
	height: 68px;
	flex: 0 0 auto;
	border-radius: 11px;
	object-fit: cover;
	background: #eee;
}

.pws-pcard-info {
	flex: 1 1 auto;
	min-width: 0;
}

.pws-pcard-name {
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .01em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pws-pcard-price {
	font-size: 13.5px;
	margin-top: 3px;
	opacity: .85;
}

.pws-pcard-price del {
	opacity: .5;
	margin-right: 6px;
}

.pws-pcard-price ins {
	text-decoration: none;
	font-weight: 700;
}

.pws-buy {
	flex: 0 0 auto;
	border: 0;
	border-radius: 12px;
	background: #101012;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	padding: 13px 15px;
	cursor: pointer;
	transition: transform .18s ease, opacity .18s ease;
	white-space: nowrap;
}

.pws-buy:active {
	transform: scale(.96);
}

.pws-buy[disabled] {
	opacity: .45;
	cursor: not-allowed;
}

/* Hint */
.pws-hint {
	position: absolute;
	left: 50%;
	bottom: 158px;
	transform: translateX(-50%);
	z-index: 5;
	background: rgba(12, 12, 14, .62);
	color: #fff;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s ease;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	white-space: nowrap;
}

.pws-hint.is-on {
	opacity: 1;
}

.pws-hint i {
	font-style: normal;
	display: inline-block;
	margin-left: 5px;
	animation: pws-bob 1.3s ease-in-out infinite;
}

@keyframes pws-bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-5px); }
}

/* Reels: one slim bar for the current clip, not a row of story segments */
.pws-progress.is-single {
	top: 0;
	left: 0;
	right: 0;
	gap: 0;
}

.pws-progress.is-single .pws-seg {
	height: 2.5px;
	border-radius: 0;
	background: rgba(255, 255, 255, .18);
}

.pws-progress.is-single .pws-seg > i {
	border-radius: 0;
	background: var(--pws-accent);
	transition: width .12s linear;
}

/* Swipe-up affordance (reels) */
.pws-swipe {
	position: absolute;
	left: 50%;
	bottom: 252px;
	transform: translateX(-50%);
	z-index: 6;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 10px 18px 12px;
	border-radius: 18px;
	background: rgba(10, 10, 12, .46);
	backdrop-filter: blur(7px);
	-webkit-backdrop-filter: blur(7px);
	opacity: 0;
	pointer-events: none;
	transition: opacity .38s ease, transform .38s ease;
}

.pws-swipe.is-on {
	opacity: 1;
	animation: pws-swipe-rise 2.1s ease-in-out infinite;
}

@keyframes pws-swipe-rise {
	0%, 100% { transform: translate(-50%, 0); }
	50%      { transform: translate(-50%, -7px); }
}

.pws-swipe-chev {
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 24px;
	justify-content: flex-start;
}

.pws-swipe-chev i {
	display: block;
	width: 13px;
	height: 13px;
	margin-bottom: -7px;
	border-left: 2.5px solid #fff;
	border-top: 2.5px solid #fff;
	transform: rotate(45deg);
	border-radius: 2px;
	opacity: .25;
	animation: pws-chev 1.5s ease-in-out infinite;
}

.pws-swipe-chev i:nth-child(1) { animation-delay: .30s; }
.pws-swipe-chev i:nth-child(2) { animation-delay: .15s; }
.pws-swipe-chev i:nth-child(3) { animation-delay: 0s; }

@keyframes pws-chev {
	0%   { opacity: .22; }
	35%  { opacity: 1; }
	70%  { opacity: .22; }
	100% { opacity: .22; }
}

.pws-swipe-txt {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: #fff;
	white-space: nowrap;
	margin-top: 2px;
}

/* The caption would collide with the affordance; it returns when it hides. */
.pws-viewer.is-nudging .pws-caption {
	opacity: 0;
}

/* Tap-for-sound prompt */
.pws-soundcue {
	position: absolute;
	left: 50%;
	top: 74px;
	transform: translate(-50%, -6px);
	z-index: 7;
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 8px 14px 8px 11px;
	border: 0;
	border-radius: 999px;
	background: rgba(14, 14, 16, .62);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .07em;
	text-transform: uppercase;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s ease, transform .3s ease;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	white-space: nowrap;
}

.pws-soundcue.is-on {
	opacity: 1;
	transform: translate(-50%, 0);
	pointer-events: auto;
}

.pws-soundcue svg {
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
}

/* Unplayable video */
.pws-fail {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	background: #0b0b0c;
	text-align: center;
	padding: 24px;
}

.pws-fail.is-on {
	display: flex;
}

.pws-fail img {
	max-width: 62%;
	max-height: 50%;
	object-fit: contain;
	border-radius: 12px;
	opacity: .5;
}

.pws-fail span {
	font-size: 13px;
	letter-spacing: .04em;
	opacity: .75;
}

/* Paused state */
/*
 * Tapping pauses, and that is all it does. Every control stays exactly where
 * it was: hiding the chrome on a tap takes the add-to-bag button away at the
 * moment the shopper is most likely to want it.
 */
.pws-viewer.is-held .pws-playbadge {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.pws-playbadge {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 5;
	width: 66px;
	height: 66px;
	border-radius: 50%;
	background: rgba(12, 12, 14, .5);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transform: translate(-50%, -50%) scale(.82);
	transition: opacity .2s ease, transform .2s ease;
	pointer-events: none;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.pws-dock,
.pws-caption,
.pws-progress,
.pws-top {
	transition: opacity .22s ease, transform .22s ease;
}

/* Buffering spinner */
.pws-spin {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 32px;
	height: 32px;
	margin: -16px 0 0 -16px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .25);
	border-top-color: #fff;
	animation: pws-spin .8s linear infinite;
	z-index: 5;
	display: none;
	pointer-events: none;
}

.pws-viewer.is-buffering .pws-spin {
	display: block;
}

@keyframes pws-spin {
	to { transform: rotate(360deg); }
}

/* -----------------------------------------------------------------------------
   Buy sheet
   -------------------------------------------------------------------------- */

.pws-sheet {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 12;
	background: #fff;
	color: #101012;
	border-radius: 20px 20px 0 0;
	padding: 8px 16px calc(18px + env(safe-area-inset-bottom, 0px));
	transform: translateY(101%);
	transition: transform .3s cubic-bezier(.22, .8, .3, 1);
	max-height: 82%;
	overflow-y: auto;
	overscroll-behavior: contain;
	box-shadow: 0 -12px 40px rgba(0, 0, 0, .35);
	touch-action: pan-y;
}

.pws-sheet.is-open {
	transform: translateY(0);
}

.pws-sheet-grab {
	width: 38px;
	height: 4px;
	border-radius: 4px;
	background: #d8d8dc;
	margin: 4px auto 14px;
}

.pws-sheet-head {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 16px;
}

.pws-sheet-head img {
	width: 66px;
	height: 82px;
	border-radius: 11px;
	object-fit: cover;
	flex: 0 0 auto;
	background: #eee;
}

.pws-sheet-name {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.32;
	letter-spacing: .01em;
}

.pws-sheet-price {
	margin-top: 5px;
	font-size: 14.5px;
}

.pws-sheet-price del {
	opacity: .5;
	margin-right: 6px;
}

.pws-sheet-price ins {
	text-decoration: none;
	font-weight: 700;
}

.pws-attr {
	margin-bottom: 15px;
}

.pws-attr-name {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	opacity: .55;
	margin-bottom: 8px;
}

.pws-opts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pws-opt {
	min-width: 46px;
	padding: 10px 14px;
	border: 1px solid #d5d5da;
	border-radius: 10px;
	background: #fff;
	color: #101012;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	cursor: pointer;
	transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.pws-opt:hover {
	border-color: #9a9aa2;
}

.pws-opt.is-on {
	background: #101012;
	border-color: #101012;
	color: #fff;
}

.pws-opt.is-off {
	opacity: .35;
	cursor: not-allowed;
	text-decoration: line-through;
}

/* Measurements for the chosen size */
.pws-measure {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: 12px;
	background: #f0f8f3;
	border: 1px solid #cfe8da;
	transition: background .2s ease, border-color .2s ease;
}

.pws-measure-hint {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.35;
	color: #1f7a4d;
	letter-spacing: .01em;
}

.pws-measure.is-shown {
	background: #eaf6ef;
	border-color: #b9ddc8;
	animation: pws-measure-in .28s ease;
}

@keyframes pws-measure-in {
	from { opacity: .4; transform: translateY(-3px); }
	to   { opacity: 1; transform: translateY(0); }
}

.pws-measure-top {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 8px;
}

.pws-measure-top strong {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #1f7a4d;
}

.pws-measure-top em {
	font-style: normal;
	font-size: 11px;
	letter-spacing: .06em;
	color: #5d9b79;
}

.pws-measure-grid {
	display: flex;
	gap: 22px;
	flex-wrap: wrap;
}

.pws-measure-cell {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.pws-measure-k {
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #5d9b79;
}

.pws-measure-v {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.1;
	color: #1f7a4d;
	font-variant-numeric: tabular-nums;
}

.pws-sheet-cta {
	display: block;
	width: 100%;
	border: 0;
	border-radius: 13px;
	background: #101012;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .14em;
	padding: 16px;
	cursor: pointer;
	transition: opacity .18s ease, transform .18s ease;
}

.pws-sheet-cta:active {
	transform: scale(.985);
}

.pws-sheet-cta[disabled] {
	opacity: .4;
	cursor: not-allowed;
}

.pws-sheet-cta.is-done {
	background: #1f7a4d;
}

.pws-sheet-alt {
	display: block;
	text-align: center;
	margin-top: 12px;
	font-size: 12.5px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #101012;
	opacity: .6;
	text-decoration: underline;
	background: none;
	border: 0;
	width: 100%;
	cursor: pointer;
}

.pws-sheet-err {
	margin: 10px 0 0;
	font-size: 12.5px;
	color: #b32d2e;
	line-height: 1.4;
	display: none;
}

.pws-sheet-err.is-on {
	display: block;
}

.pws-scrim {
	position: absolute;
	inset: 0;
	z-index: 11;
	background: rgba(0, 0, 0, .45);
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s ease;
}

.pws-scrim.is-on {
	opacity: 1;
	pointer-events: auto;
}

/* -----------------------------------------------------------------------------
   Toast + bag pill
   -------------------------------------------------------------------------- */

.pws-toast {
	position: absolute;
	left: 50%;
	bottom: 22px;
	transform: translate(-50%, 16px);
	z-index: 14;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 14px;
	border-radius: 13px;
	background: rgba(20, 20, 23, .95);
	color: #fff;
	font-size: 13px;
	letter-spacing: .02em;
	box-shadow: 0 12px 34px rgba(0, 0, 0, .45);
	opacity: 0;
	pointer-events: none;
	transition: opacity .22s ease, transform .22s ease;
	max-width: calc(100% - 28px);
}

.pws-toast.is-on {
	opacity: 1;
	transform: translate(-50%, 0);
	pointer-events: auto;
}

.pws-toast-tick {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: #1f7a4d;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pws-toast-tick svg {
	width: 12px;
	height: 12px;
}

.pws-toast-txt {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pws-toast a {
	color: #fff;
	text-decoration: underline;
	font-weight: 600;
	white-space: nowrap;
	flex: 0 0 auto;
}

.pws-bag {
	position: relative;
}

.pws-bag-count {
	position: absolute;
	top: -3px;
	right: -3px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--pws-accent);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 17px;
	text-align: center;
	display: none;
}

.pws-bag.has-items .pws-bag-count {
	display: block;
}

/* -----------------------------------------------------------------------------
   Accessibility and motion
   -------------------------------------------------------------------------- */

.pws-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.pws-story:focus-visible,
.pws-card:focus-visible,
.pws-chip:focus-visible,
.pws-opt:focus-visible,
.pws-buy:focus-visible,
.pws-btn-ghost:focus-visible,
.pws-nav:focus-visible,
.pws-sheet-cta:focus-visible {
	outline: 2px solid var(--pws-accent);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.pws-track,
	.pws-sheet,
	.pws-toast,
	.pws-card-media,
	.pws-ring {
		transition-duration: .01ms !important;
	}
	.pws-hint i,
	.pws-spin,
	.pws-measure.is-shown {
		animation: none !important;
	}
	/* Keep the swipe chevrons visible but still for reduced motion. */
	.pws-swipe-chev i {
		animation: none !important;
		opacity: .85;
	}
	.pws-swipe.is-on {
		animation: none !important;
	}
}
