html.has-scroll-animations .page-container main > section:not([data-scroll-anim-skip]) > :first-child,
html.has-scroll-animations .page-container main > section [data-scroll-anim] {
	opacity: 0;
	will-change: opacity, transform;
	transition: opacity 0.7s ease,
				transform 0.7s ease;
}

html.has-scroll-animations.scroll-style-fadeUp .page-container main > section:not([data-scroll-anim-skip]) > :first-child,
html.has-scroll-animations.scroll-style-fadeUp .page-container main > section [data-scroll-anim] {
	transform: translateY(32px);
}

html.has-scroll-animations.scroll-style-slideLeft .page-container main > section:not([data-scroll-anim-skip]) > :first-child,
html.has-scroll-animations.scroll-style-slideLeft .page-container main > section [data-scroll-anim] {
	transform: translateX(-48px);
}

html.has-scroll-animations.scroll-style-slideRight .page-container main > section:not([data-scroll-anim-skip]) > :first-child,
html.has-scroll-animations.scroll-style-slideRight .page-container main > section [data-scroll-anim] {
	transform: translateX(48px);
}

html.has-scroll-animations.scroll-style-zoomIn .page-container main > section:not([data-scroll-anim-skip]) > :first-child,
html.has-scroll-animations.scroll-style-zoomIn .page-container main > section [data-scroll-anim] {
	transform: scale(0.96);
}

html.has-scroll-animations .page-container main > section:not([data-scroll-anim-skip]) > :first-child.is-visible,
html.has-scroll-animations .page-container main > section [data-scroll-anim].is-visible {
	opacity: 1;
	transform: none;
	will-change: auto;
}

html.has-scroll-animations body.editor-open .page-container main > section:not([data-scroll-anim-skip]) > :first-child,
html.has-scroll-animations body.editor-open .page-container main > section [data-scroll-anim] {
	opacity: 1;
	transform: none;
	transition: none;
	will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
	html.has-scroll-animations .page-container main > section:not([data-scroll-anim-skip]) > :first-child,
	html.has-scroll-animations .page-container main > section [data-scroll-anim] {
		opacity: 1;
		transform: none;
		transition: none;
		will-change: auto;
	}
}

/* Opt-in (ssb_globals.scroll_animations.elements, html.scroll-elements): a row stays put and
   its sections appear one by one (scroll-animations.js sets --scroll-anim-index on the ones
   that come into view together). A mall's CSS can set --scroll-anim-x, --scroll-anim-y,
   --scroll-anim-scale and --scroll-anim-delay on an item to change how it comes in. */
html.has-scroll-animations.scroll-elements .page-container main > section.row-section:not([data-scroll-anim-skip]) > :first-child {
	opacity: 1;
	transform: none;
	transition: none;
}

html.has-scroll-animations.scroll-elements .page-container main > section.row-section:not([data-scroll-anim-skip]) > .ssb-row > .ssb-col > .ssb-item {
	--scroll-anim-y: 32px;
	opacity: 0;
	transform: translate(var(--scroll-anim-x, 0px), var(--scroll-anim-y, 0px)) scale(var(--scroll-anim-scale, 1));
	transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
	transition-delay: calc(var(--scroll-anim-index, 0) * 120ms + var(--scroll-anim-delay, 0ms));
	will-change: opacity, transform;
}

html.has-scroll-animations.scroll-elements.scroll-style-fadeIn .page-container main > section.row-section > .ssb-row > .ssb-col > .ssb-item { --scroll-anim-y: 0px; }
html.has-scroll-animations.scroll-elements.scroll-style-slideLeft .page-container main > section.row-section > .ssb-row > .ssb-col > .ssb-item { --scroll-anim-y: 0px; --scroll-anim-x: -48px; }
html.has-scroll-animations.scroll-elements.scroll-style-slideRight .page-container main > section.row-section > .ssb-row > .ssb-col > .ssb-item { --scroll-anim-y: 0px; --scroll-anim-x: 48px; }
html.has-scroll-animations.scroll-elements.scroll-style-zoomIn .page-container main > section.row-section > .ssb-row > .ssb-col > .ssb-item { --scroll-anim-y: 0px; --scroll-anim-scale: 0.96; }

html.has-scroll-animations.scroll-elements .page-container main > section.row-section > .ssb-row > .ssb-col > .ssb-item.is-visible {
	opacity: 1;
	transform: none;
	will-change: auto;
}

html.has-scroll-animations.scroll-elements body.editor-open .page-container main > section.row-section > .ssb-row > .ssb-col > .ssb-item {
	opacity: 1;
	transform: none;
	transition: none;
}

@media (prefers-reduced-motion: reduce) {
	html.has-scroll-animations.scroll-elements .page-container main > section.row-section > .ssb-row > .ssb-col > .ssb-item {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
