/* Sticky Product Slider for Elementor */

.spse {
	/* Stops the browser from re-anchoring the page while the stage moves. */
	overflow-anchor: none;
	--spse-top: 0px;
	--spse-stage: 100vh;
	--spse-step: 100vh;
	--spse-count: 1;
	--spse-p: 0;
	position: relative;
}

/* Tall scroll rail: this is what the visitor scrolls through. */
.spse__scroll {
	position: relative;
	height: calc(var(--spse-count) * var(--spse-step));
	overflow-anchor: none;
}

/* The pinned viewport. */
.spse__sticky {
	position: -webkit-sticky;
	position: sticky;
	top: var(--spse-top);
	height: var(--spse-stage);
	display: flex;
	align-items: center;
}

.spse.spse--clip .spse__sticky {
	overflow: hidden;
}

/* ------------------------------------------------------------------
 * Fixed pinning. Used when a parent clips overflow but creates no
 * containing block. The browser holds the stage in place on its own, so
 * there is no per-frame correction and no bounce.
 * ---------------------------------------------------------------- */
.spse.spse--pin-fixed .spse__sticky {
	position: relative;
	top: auto;
}

.spse.spse--pin-fixed .spse__sticky.is-pinned {
	position: fixed;
	top: var(--spse-top);
	left: var(--spse-fx, 0px);
	width: var(--spse-fw, 100%);
	margin: 0;
	z-index: 1;
}

.spse.spse--pin-fixed .spse__sticky.is-after {
	position: absolute;
	top: auto;
	bottom: 0;
	left: 0;
	width: 100%;
}

/* ------------------------------------------------------------------
 * Compatibility pinning. Used when a parent container clips overflow or
 * creates a containing block, which stops position: sticky from working.
 * The stage stays in flow and is translated instead.
 * ---------------------------------------------------------------- */
.spse.spse--pin-transform .spse__sticky {
	position: relative;
	top: auto;
	transform: translate3d(0, var(--spse-pin, 0px), 0);
	will-change: transform;
}

.spse.spse--pin-transform.spse--stacked .spse__sticky {
	transform: none;
	will-change: auto;
}

/* Sticky would fail for the same reason here, so the frame scrolls normally. */
.spse.spse--pin-transform.spse--stacked .spse__col--device {
	position: relative;
	top: auto;
}

.spse__inner {
	display: flex;
	align-items: center;
	width: 100%;
	gap: 60px;
}

.spse--media-left .spse__inner {
	flex-direction: row-reverse;
}

.spse__col {
	min-width: 0;
}

.spse__col--content {
	display: flex;
	flex-direction: column;
	flex: 0 0 55%;
	max-width: 55%;
}

.spse__col--device {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

/* ------------------------------------------------------------------
 * Sliding mechanics: one shared progress value drives every track,
 * so text and screenshot always move together.
 * ---------------------------------------------------------------- */
.spse__window {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: 340px;
}

.spse__track {
	position: relative;
	width: 100%;
	height: 100%;
	transform: translate3d(0, calc(var(--spse-p) * -100%), 0);
	will-change: transform;
}

.spse__slide {
	position: absolute;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
	padding: 30px;
}

.spse__slide-in {
	width: 100%;
}

.spse__title {
	margin: 0 0 20px;
	color: #131a56;
}

.spse__text {
	color: #1f2430;
}

.spse__text p {
	margin: 0 0 1em;
}

.spse__text p:last-child {
	margin-bottom: 0;
}

.spse__btn {
	display: inline-block;
	margin-top: 24px;
	padding: 12px 24px;
	border-radius: 4px;
	background-color: #131a56;
	color: #fff;
	text-decoration: none;
	line-height: 1.2;
}

.spse__btn:hover,
.spse__btn:focus {
	opacity: 0.88;
	color: #fff;
}

/* ------------------------------------------------------------------
 * Device frame + masked screen window
 * ---------------------------------------------------------------- */
.spse__device {
	--spse-dx: 0px;
	--spse-dy: 0px;
	--spse-scale: 1;
	position: relative;
	width: 320px;
	max-width: 100%;
	flex: 0 0 auto;
	transform: translate3d(var(--spse-dx), var(--spse-dy), 0) scale(var(--spse-scale));
	transform-origin: center center;
}

.spse__frame {
	position: relative;
	z-index: 2;
	display: block;
	width: 100%;
	height: auto;
	pointer-events: none;
}

.spse__frame--empty {
	aspect-ratio: 9 / 16;
	border: 10px solid #23262f;
	border-radius: 22px;
	box-sizing: border-box;
}

.spse__screen {
	position: absolute;
	z-index: 1;
	top: 28%;
	left: 4%;
	width: 92%;
	height: 54%;
	overflow: hidden;
	border-radius: 4px;
}

.spse--guide .spse__screen {
	outline: 2px dashed #e5322d;
	outline-offset: 0;
}

.spse__slide--shot {
	padding: 0;
}

.spse__shot {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

/* ------------------------------------------------------------------
 * Navigation
 * ---------------------------------------------------------------- */
.spse__dots {
	display: flex;
	gap: 10px;
	margin-top: 26px;
	padding: 0 30px;
}

.spse__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: #c7cbd9;
	cursor: pointer;
	transition: transform 0.25s ease, background-color 0.25s ease;
}

.spse__dot.is-active {
	background-color: #131a56;
	transform: scale(1.35);
}

.spse__dot:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.spse__progress {
	position: relative;
	height: 3px;
	margin: 24px 30px 0;
	border-radius: 3px;
	background-color: rgba(19, 26, 86, 0.15);
	overflow: hidden;
}

.spse__progress span {
	position: absolute;
	inset: 0 auto 0 0;
	width: 100%;
	border-radius: 3px;
	background-color: #131a56;
	transform: scaleX(var(--spse-fill, 0));
	transform-origin: left center;
}

/* ------------------------------------------------------------------
 * Stacked mode (small screens, reduced motion, or no JS support)
 * ---------------------------------------------------------------- */
.spse.spse--stacked .spse__scroll {
	height: auto;
}

.spse.spse--stacked .spse__sticky {
	position: static;
	transform: none;
	height: auto;
	overflow: visible;
	display: block;
}

.spse.spse--stacked .spse__inner {
	flex-direction: column;
	align-items: stretch;
	gap: 24px;
}

.spse.spse--stacked .spse__col--content,
.spse.spse--stacked .spse__col--device {
	flex: 0 0 auto;
	max-width: 100%;
	width: 100%;
}

/* Frame stays pinned at the top of the screen while the text scrolls under it. */
.spse.spse--stacked .spse__col--device {
	position: -webkit-sticky;
	position: sticky;
	top: var(--spse-top);
	order: -1;
	z-index: 3;
	padding: 12px 0;
}

.spse.spse--stacked .spse__col--device .spse__track {
	transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.spse.spse--stacked .spse__col--content .spse__window {
	height: auto !important;
	overflow: visible;
}

.spse.spse--stacked .spse__col--content .spse__track {
	transform: none;
	height: auto;
}

.spse.spse--stacked .spse__col--content .spse__slide {
	position: relative;
	top: auto !important;
	height: auto;
}

.spse.spse--stacked .spse__progress {
	display: none;
}

.spse.spse--stacked .spse__dots {
	justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
	.spse__track {
		transition: none !important;
	}
}
