/*
 * Waywa stories and shoppable videos: home rows, story viewer, /videos/ feed, product video.
 * Uses the theme's tokens (with fallbacks) and logical properties, so it works right to left.
 */

.wwv-stories,
.wwv-watch,
.wwv-dialog,
.wwv-feed {
	--wwv-ink: #0B1222;
	--wwv-soft: #D5DAE6;
	--wwv-navy: var(--ww-navy, #14213D);
	--wwv-coral: var(--ww-coral, #FF6B4A);
	--wwv-muted: var(--ww-muted, #5B6170);
	--wwv-sand: var(--ww-sand, #F4F1EC);
	--wwv-gutter: var(--ww-gutter, 16px);
	--wwv-display: var(--ww-font-display, 'Alexandria', system-ui, sans-serif);
}

.wwv-dialog [hidden],
.wwv-feed [hidden] {
	display: none !important;
}

/* Section heading */
.wwv-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 16px;
	margin-block-end: 14px;
}
/* Title and link on one line, the note under them (phones) or under the title with the link at the end. */
.wwv-head--grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: baseline;
	gap: 0 16px;
}
.wwv-head--grid .wwv-head__title { grid-area: 1 / 1; }
.wwv-head--grid .wwv-head__link { grid-area: 1 / 2; }
.wwv-head--grid .wwv-head__note { grid-area: 2 / 1 / 3 / 3; }
@media (min-width: 768px) {
	.wwv-head--grid .wwv-head__link { grid-area: 2 / 2; }
	.wwv-head--grid .wwv-head__note { grid-area: 2 / 1; }
}
.wwv-head__title {
	margin: 0;
	font-family: var(--wwv-display);
	font-size: clamp(19px, 2.2vw, 28px);
	font-weight: 700;
	line-height: 1.2;
}
.wwv-head__note {
	margin: 4px 0 0;
	color: var(--wwv-muted);
	font-size: 14px;
}
.wwv-head__note--aside { margin: 0; }
.wwv-head__link {
	color: var(--wwv-navy);
	font-size: 15px;
	font-weight: 600;
	text-underline-offset: 3px;
}

/* Rows that scroll sideways run to the screen edge on phones. */
.wwv-stories__list,
.wwv-watch__list {
	display: flex;
	margin: 0 calc(-1 * var(--wwv-gutter));
	padding: 4px var(--wwv-gutter) 8px;
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
}
.wwv-stories__list::-webkit-scrollbar,
.wwv-watch__list::-webkit-scrollbar { display: none; }

/* ---------- Stories row ---------- */
.wwv-stories { margin-block: clamp(20px, 3vw, 40px); }
.wwv-stories__list { gap: 12px; scroll-padding-inline: var(--wwv-gutter); }
.wwv-stories__list > li { flex: 0 0 auto; }

.wwv-bubble {
	--wwv-size: 72px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: calc(var(--wwv-size) + 8px);
	padding: 0;
	border: 0;
	background: none;
	color: var(--wwv-navy);
	font: inherit;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
	cursor: pointer;
}
.wwv-bubble__ring {
	position: relative;
	display: block;
	width: var(--wwv-size);
	height: var(--wwv-size);
	padding: 3px;
	border: 2.5px solid var(--wwv-coral);
	border-radius: 50%;
	background: #FFFFFF;
	transition: border-color 0.2s;
}
.wwv-bubble.is-seen .wwv-bubble__ring { border-color: #CFC9BE; }
.wwv-bubble__img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: var(--wwv-sand);
	object-fit: cover;
}
.wwv-bubble__live {
	position: absolute;
	left: 50%;
	bottom: -8px;
	transform: translateX(-50%);
	padding: 1px 7px;
	border: 2px solid #FFFFFF;
	border-radius: 999px;
	background: var(--wwv-coral);
	color: var(--wwv-navy);
	font-size: 10px;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
}
.wwv-bubble__label {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.wwv-bubble:hover .wwv-bubble__label { color: var(--ww-coral-text, #C2410C); }
.wwv-bubble:focus-visible { outline: none; }
.wwv-bubble:focus-visible .wwv-bubble__ring {
	outline: 3px solid var(--wwv-navy);
	outline-offset: 3px;
}

/* ---------- "Watch & shop" row ---------- */
.wwv-watch { margin-block: clamp(24px, 3.5vw, 48px); }
.wwv-watch__list { gap: 10px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--wwv-gutter); }

.wwv-card {
	position: relative;
	flex: 0 0 148px;
	aspect-ratio: 9 / 16;
	overflow: hidden;
	border-radius: 14px;
	background: var(--wwv-sand);
	color: #FFFFFF;
	isolation: isolate;
	scroll-snap-align: start;
}
.wwv-card__poster,
.wwv-card__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.wwv-card__video { opacity: 0; transition: opacity 0.3s; }
.wwv-card.is-playing .wwv-card__video { opacity: 1; }
.wwv-card__views {
	position: absolute;
	inset-block-start: 8px;
	inset-inline-start: 8px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(11, 18, 34, 0.72);
	font-size: 11px;
	font-weight: 600;
	pointer-events: none;
}
.wwv-card__play {
	position: absolute;
	top: 37%;
	left: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: rgba(11, 18, 34, 0.55);
	pointer-events: none;
	transition: opacity 0.2s;
}
.wwv-card.is-playing .wwv-card__play { opacity: 0; }
.wwv-card__link {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	border-radius: inherit;
	color: #FFFFFF;
	text-decoration: none;
}
.wwv-card__link:hover,
.wwv-card__link:focus { color: #FFFFFF; }
.wwv-card__link:focus-visible {
	outline: 3px solid var(--wwv-coral);
	outline-offset: -3px;
}
.wwv-card__caption {
	display: block;
	padding: 10px;
	background: rgba(11, 18, 34, 0.8);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
}
.wwv-card__link.has-product .wwv-card__caption { padding-block-end: 44px; }
.wwv-card__shop {
	position: absolute;
	inset-inline-start: 10px;
	bottom: 10px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: calc(100% - 20px);
	padding-block: 3px;
	padding-inline: 3px 10px;
	border-radius: 999px;
	background: #FFFFFF;
	color: var(--wwv-navy);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}
.wwv-card__shop:hover { color: var(--ww-coral-text, #C2410C); }
.wwv-card__shop:focus-visible { outline: 3px solid var(--wwv-coral); outline-offset: 2px; }
.wwv-card__shop img {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	object-fit: cover;
}
.wwv-card__shop > span:last-child { overflow: hidden; text-overflow: ellipsis; }

@media (min-width: 768px) {
	.wwv-stories__list { gap: 18px; }
	.wwv-bubble { --wwv-size: 104px; font-size: 13px; }
	.wwv-bubble__ring { padding: 4px; border-width: 3px; }
	.wwv-bubble__live { font-size: 11px; padding-inline: 8px; }

	.wwv-watch__list {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 16px;
		margin: 0;
		padding: 0;
		overflow: visible;
	}
	.wwv-card { border-radius: 18px; }
	.wwv-card__views { inset-block-start: 10px; inset-inline-start: 10px; font-size: 12px; }
	.wwv-card__play { width: 48px; height: 48px; }
	.wwv-card__caption { padding: 12px; font-size: 13px; }
	.wwv-card__link.has-product .wwv-card__caption { padding-block-end: 48px; }
	.wwv-card__shop { inset-inline-start: 12px; bottom: 12px; font-size: 12px; }
	.wwv-card__shop img { width: 24px; height: 24px; }
}
@media (min-width: 1024px) {
	.wwv-watch__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
	.wwv-head__note--aside { display: none; }
}

/* ---------- Dialogs: story viewer and product video ---------- */
html.wwv-locked,
html.wwv-locked body { overflow: hidden; }

.wwv-dialog {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #FFFFFF;
	font-size: 14px;
	line-height: 1.4;
}
.wwv-dialog[hidden] { display: none; }
.wwv-dialog__backdrop {
	position: absolute;
	inset: 0;
	background: var(--wwv-ink);
}
.wwv-dialog__panel {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: var(--wwv-ink);
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
}
.wwv-dialog__panel input { user-select: text; -webkit-user-select: text; }
.wwv-dialog__media { position: absolute; inset: 0; }
.wwv-dialog__media > img,
.wwv-dialog__media > video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.wwv-dialog__media > .is-contain { object-fit: contain; object-position: center 40%; }
.wwv-dialog__shade {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(to bottom, rgba(11, 18, 34, 0.62), rgba(11, 18, 34, 0) 140px),
		linear-gradient(to top, rgba(11, 18, 34, 0.92) 0, rgba(11, 18, 34, 0.6) 34%, rgba(11, 18, 34, 0) 56%);
}
.wwv-dialog__head {
	position: absolute;
	inset-inline: 12px 4px;
	top: calc(22px + env(safe-area-inset-top));
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 2px;
}
.wwv-dialog__avatar {
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	margin-inline-end: 8px;
	border-radius: 50%;
}
.wwv-dialog__who {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	margin: 0;
	line-height: 1.3;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.wwv-dialog__title {
	overflow: hidden;
	font-size: 14px;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.wwv-dialog__meta { color: var(--wwv-soft); font-size: 12px; }

.wwv-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #FFFFFF;
	font: inherit;
	text-decoration: none;
	cursor: pointer;
}
.wwv-icon:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.12); }
.wwv-icon:focus-visible,
.wwv-dialog a:focus-visible,
.wwv-dialog button:focus-visible,
.wwv-feed a:focus-visible,
.wwv-feed button:focus-visible {
	outline: 2px solid #FFFFFF;
	outline-offset: 2px;
}
.wwv-icon .wwv-svg { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)); }

/* Two-state icon buttons: mute shows "muted" while pressed, pause shows "play" while pressed. */
[data-wwv-mute] .wwv-svg--sound,
[data-wwv-mute][aria-pressed="false"] .wwv-svg--muted,
[data-wwv-pause] .wwv-svg--play,
[data-wwv-pause][aria-pressed="true"] .wwv-svg--pause { display: none; }
[data-wwv-mute][aria-pressed="false"] .wwv-svg--sound,
[data-wwv-pause][aria-pressed="true"] .wwv-svg--play { display: inline; }

.wwv-paused {
	position: absolute;
	top: 45%;
	left: 50%;
	z-index: 2;
	display: none;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: rgba(11, 18, 34, 0.6);
	pointer-events: none;
}
.is-paused > .wwv-paused,
.is-paused .wwv-dialog__panel > .wwv-paused { display: flex; }

/* Story viewer */
.wwv-viewer__bars {
	position: absolute;
	inset-inline: 12px;
	top: calc(12px + env(safe-area-inset-top));
	z-index: 3;
	display: flex;
	gap: 4px;
}
.wwv-viewer__bar {
	flex: 1;
	height: 3px;
	overflow: hidden;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.35);
}
.wwv-viewer__fill {
	display: block;
	height: 100%;
	background: #FFFFFF;
	transform: scaleX(0);
	transform-origin: left center;
}
[dir="rtl"] .wwv-viewer__fill,
[dir="rtl"] .wwv-slide__progress > span,
[dir="rtl"] .wwv-lightbox__fill { transform-origin: right center; }

.wwv-viewer__nav {
	position: absolute;
	top: 76px;
	bottom: 230px;
	z-index: 2;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.wwv-viewer__nav--prev { inset-inline-start: 0; width: 34%; }
.wwv-viewer__nav--next { inset-inline-end: 0; width: 66%; }
.wwv-dialog .wwv-viewer__nav:focus-visible { outline-offset: -8px; border-radius: 18px; }

.wwv-viewer__body {
	position: absolute;
	inset-inline: 16px;
	bottom: calc(84px + env(safe-area-inset-bottom));
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.wwv-viewer__caption {
	margin: 0;
	font-family: var(--wwv-display);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.wwv-viewer__foot {
	position: absolute;
	inset-inline: 12px;
	bottom: calc(18px + env(safe-area-inset-bottom));
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
}
.wwv-viewer__ask { flex: 1; min-width: 0; margin: 0; }
.wwv-viewer__ask input {
	box-sizing: border-box;
	width: 100%;
	height: 46px;
	padding-inline: 16px;
	border: 1.5px solid rgba(255, 255, 255, 0.5);
	border-radius: 999px;
	background: rgba(11, 18, 34, 0.25);
	color: #FFFFFF;
	font: inherit;
	font-size: 14px;
}
.wwv-viewer__ask input::placeholder { color: rgba(255, 255, 255, 0.78); }
.wwv-viewer__ask input:focus { outline: 2px solid #FFFFFF; outline-offset: 1px; border-color: #FFFFFF; }
.wwv-viewer__like {
	width: auto;
	min-width: 44px;
	gap: 6px;
	padding-inline: 10px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
}
.wwv-viewer__likes:empty { display: none; }
[data-wwv-like][aria-pressed="true"] .wwv-svg--heart path,
[data-wwv-act="like"][aria-pressed="true"] .wwv-svg--heart path {
	fill: var(--wwv-coral);
	stroke: var(--wwv-coral);
}

/* Product card (viewer and feed) */
.wwv-product {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	border-radius: 18px;
	background: #FFFFFF;
	color: var(--wwv-navy);
	text-decoration: none;
}
.wwv-product:hover { color: var(--wwv-navy); }
.wwv-dialog .wwv-product:focus-visible,
.wwv-feed .wwv-product:focus-visible { outline: 3px solid var(--wwv-coral); outline-offset: 2px; }
.wwv-product__img {
	flex: 0 0 auto;
	width: 60px;
	height: 60px;
	border-radius: 12px;
	background: var(--wwv-sand);
	object-fit: cover;
}
.wwv-product__text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.wwv-product__name {
	overflow: hidden;
	font-size: 13px;
	font-weight: 500;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.wwv-product__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 6px;
}
.wwv-product__now {
	font-family: var(--wwv-display);
	font-size: 16px;
	font-weight: 700;
	white-space: nowrap;
}
.wwv-product__was { color: #6B7080; font-size: 12px; white-space: nowrap; }
.wwv-product__was:empty { display: none; }
.wwv-product__sold { color: #9A3412; font-size: 11px; font-weight: 600; white-space: nowrap; }
.wwv-product__shop {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	height: 44px;
	padding-inline: 16px;
	border-radius: 12px;
	background: var(--wwv-coral);
	color: var(--wwv-navy);
	font-size: 14px;
	font-weight: 700;
}
.wwv-product:hover .wwv-product__shop { background: #FF8466; }

.wwv-toast {
	position: absolute;
	left: 50%;
	bottom: calc(120px + env(safe-area-inset-bottom));
	z-index: 10;
	max-width: calc(100% - 32px);
	padding: 10px 18px;
	transform: translateX(-50%);
	border-radius: 999px;
	background: #FFFFFF;
	box-shadow: 0 8px 24px rgba(11, 18, 34, 0.3);
	color: var(--wwv-navy);
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	pointer-events: none;
}

@media (min-width: 768px) {
	.wwv-dialog__backdrop { background: rgba(11, 18, 34, 0.92); }
	.wwv-dialog__panel {
		width: auto;
		height: min(820px, calc(100vh - 48px));
		height: min(820px, calc(100dvh - 48px));
		max-width: calc(100vw - 48px);
		aspect-ratio: 9 / 16;
		border-radius: 24px;
		box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
	}
}

/* Product video */
:where(.ww-gallery__thumb--video) {
	aspect-ratio: 1 / 1;
	border: 0;
	border-radius: 14px;
}
.ww-gallery__thumb--video {
	position: relative;
	padding: 0;
	overflow: hidden;
	background: var(--ww-navy, #14213D);
	cursor: pointer;
}
.ww-gallery__thumb--video > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.72;
}
.wwv-thumb {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
}
.wwv-thumb__play {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(20, 33, 61, 0.8);
}
.wwv-thumb__time {
	padding: 1px 6px;
	border-radius: 6px;
	background: rgba(20, 33, 61, 0.8);
	font-variant-numeric: tabular-nums;
}
.ww-gallery__thumb--video:focus-visible { outline: 3px solid var(--ww-navy, #14213D); outline-offset: 2px; }

.wwv-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding-inline: 14px;
	border: 0;
	border-radius: 999px;
	background: var(--ww-navy, #14213D);
	color: #FFFFFF;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
/* Over the main product photo (theme: .ww-gallery__main), the pill sits in the bottom corner like the design. */
.ww-gallery__main > .wwv-pill {
	position: absolute;
	inset-inline-end: 12px;
	inset-block-end: 12px;
	z-index: 2;
	box-shadow: 0 4px 14px rgba(11, 18, 34, 0.25);
}
.wwv-pill:hover { background: #1F2F55; }
.wwv-pill:focus-visible { outline: 3px solid var(--ww-coral, #FF6B4A); outline-offset: 2px; }

.wwv-lightbox .wwv-dialog__media > video { object-fit: contain; }
.wwv-lightbox__tap {
	position: absolute;
	inset-inline: 0;
	top: 76px;
	bottom: 90px;
	z-index: 2;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}
.wwv-lightbox__bar {
	position: absolute;
	inset-inline: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom));
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border-radius: 14px;
	background: rgba(20, 33, 61, 0.84);
	font-size: 13px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}
.wwv-lightbox__track {
	flex: 1;
	height: 4px;
	overflow: hidden;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.3);
}
.wwv-lightbox__fill {
	display: block;
	height: 100%;
	background: var(--wwv-coral);
	transform: scaleX(0);
	transform-origin: left center;
}

/* ---------- /videos/ feed ---------- */
.wwv-page { padding-block: 24px 40px; }

.wwv-feed {
	position: relative;
	width: min(100%, 440px);
	height: var(--wwv-feed-h, min(860px, calc(100vh - 48px)));
	margin-inline: auto;
	border-radius: 24px;
	background: var(--wwv-ink);
	color: #FFFFFF;
	font-size: 14px;
	line-height: 1.45;
}
.wwv-feed__bar {
	position: absolute;
	inset-inline: 0;
	top: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 2px;
	padding: calc(10px + env(safe-area-inset-top)) 8px 0;
	pointer-events: none;
}
.wwv-feed__bar > * { pointer-events: auto; }
.wwv-feed__bar .wwv-svg { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35)); }
[dir="rtl"] .wwv-feed__back .wwv-svg { transform: scaleX(-1); }
.wwv-feed__tabs {
	flex: 1;
	display: flex;
	justify-content: center;
	gap: 20px;
	pointer-events: none;
}
.wwv-feed__tab {
	padding: 10px 0 6px;
	border: 0;
	border-block-end: 2px solid transparent;
	background: transparent;
	color: var(--wwv-soft);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
	cursor: pointer;
	pointer-events: auto;
}
.wwv-feed__tab[aria-selected="true"] { color: #FFFFFF; border-block-end-color: #FFFFFF; }

.wwv-feed__scroller {
	position: absolute;
	inset: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	border-radius: inherit;
	scroll-snap-type: y mandatory;
	scrollbar-width: none;
}
.wwv-feed__scroller::-webkit-scrollbar { display: none; }
.wwv-feed__scroller:focus { outline: none; }
.wwv-feed__none {
	margin: 0;
	padding: 140px 32px;
	color: var(--wwv-soft);
	text-align: center;
}

.wwv-slide {
	position: relative;
	height: 100%;
	overflow: hidden;
	background: var(--wwv-ink);
	scroll-snap-align: start;
	scroll-snap-stop: always;
}
.wwv-slide__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.wwv-slide__shade {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(to bottom, rgba(11, 18, 34, 0.55), rgba(11, 18, 34, 0) 120px),
		linear-gradient(to top, rgba(11, 18, 34, 0.9) 0, rgba(11, 18, 34, 0.55) 30%, rgba(11, 18, 34, 0) 52%);
}
.wwv-slide__tap {
	position: absolute;
	inset: 0;
	z-index: 1;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.wwv-feed .wwv-slide__tap:focus-visible { outline-offset: -6px; border-radius: 20px; }
.wwv-sound-chip {
	position: absolute;
	inset-inline-start: 12px;
	top: calc(64px + env(safe-area-inset-top));
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 0;
	border-radius: 999px;
	background: rgba(11, 18, 34, 0.62);
	color: #FFFFFF;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.wwv-feed.has-sound .wwv-sound-chip { display: none; }

.wwv-slide__bottom {
	position: absolute;
	inset-inline: 12px 6px;
	bottom: calc(40px + env(safe-area-inset-bottom));
	z-index: 3;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 14px 6px;
	pointer-events: none;
}
.wwv-slide__bottom > * { pointer-events: auto; }
.wwv-slide__text {
	grid-row: 1;
	grid-column: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-inline-start: 2px;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
	pointer-events: none;
}
.wwv-slide__text p { margin: 0; }
.wwv-slide__author { font-size: 15px; font-weight: 700; }
.wwv-slide__author span { color: var(--wwv-soft); font-weight: 500; }
.wwv-slide__caption {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 14px;
}
.wwv-slide__sound {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--wwv-soft);
	font-size: 13px;
}
.wwv-product--feed { grid-column: 1 / -1; gap: 10px; padding: 8px; border-radius: 16px; }
.wwv-product--feed .wwv-product__img { width: 52px; height: 52px; border-radius: 10px; }
.wwv-product--feed .wwv-product__now { font-size: 15px; }
.wwv-product--feed .wwv-product__was { font-size: 11px; }

.wwv-rail {
	grid-row: 1;
	grid-column: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}
.wwv-rail__follow {
	position: relative;
	margin-block-end: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	cursor: pointer;
}
.wwv-rail__follow img {
	display: block;
	width: 48px;
	height: 48px;
	border: 2px solid #FFFFFF;
	border-radius: 50%;
}
.wwv-rail__plus {
	position: absolute;
	left: 50%;
	bottom: -9px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	transform: translateX(-50%);
	border-radius: 50%;
	background: var(--wwv-coral);
	color: var(--wwv-navy);
}
.wwv-rail__plus .wwv-svg--check,
.wwv-rail__follow[aria-pressed="true"] .wwv-svg--plus { display: none; }
.wwv-rail__follow[aria-pressed="true"] .wwv-svg--check { display: block; }
.wwv-rail__follow[aria-pressed="true"] .wwv-rail__plus { background: #FFFFFF; }
.wwv-rail__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	width: 56px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #FFFFFF;
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
	cursor: pointer;
}
.wwv-rail__item:hover,
.wwv-rail__item:focus { color: #FFFFFF; }
.wwv-rail__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 42px;
}
.wwv-rail__icon .wwv-svg { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35)); }
[data-wwv-act="save"][aria-pressed="true"] .wwv-svg--bookmark path { fill: #FFC24A; }

.wwv-slide__progress {
	position: absolute;
	inset-inline: 0;
	bottom: calc(28px + env(safe-area-inset-bottom));
	z-index: 3;
	height: 3px;
	background: rgba(255, 255, 255, 0.25);
	pointer-events: none;
}
.wwv-slide__progress > span {
	display: block;
	height: 100%;
	background: #FFFFFF;
	transform: scaleX(0);
	transform-origin: left center;
}
.wwv-feed__hint {
	position: absolute;
	inset-inline: 0;
	bottom: calc(6px + env(safe-area-inset-bottom));
	z-index: 4;
	margin: 0;
	color: var(--wwv-soft);
	font-size: 11px;
	font-weight: 600;
	text-align: center;
	pointer-events: none;
	transition: opacity 0.3s;
}
.wwv-feed.has-scrolled .wwv-feed__hint { opacity: 0; }

.wwv-feed__following {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 80px 32px 40px;
	border-radius: inherit;
	background: linear-gradient(180deg, #1B2A4D 0%, var(--wwv-ink) 70%);
	text-align: center;
}
.wwv-feed__following-avatar { width: 72px; height: 72px; border: 2px solid rgba(255, 255, 255, 0.85); border-radius: 50%; }
.wwv-feed__following-title {
	margin: 8px 0 0;
	font-family: var(--wwv-display);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
}
.wwv-feed__following-text { margin: 0 0 10px; color: var(--wwv-soft); }
.wwv-follow-button {
	min-width: 160px;
	height: 48px;
	padding-inline: 28px;
	border: 2px solid var(--wwv-coral);
	border-radius: 12px;
	background: var(--wwv-coral);
	color: var(--wwv-navy);
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}
.wwv-follow-button[aria-pressed="true"] { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, 0.6); }

.wwv-feed__steps { display: none; }

@media (min-width: 768px) {
	.wwv-feed__steps {
		position: absolute;
		inset-inline-start: calc(100% + 20px);
		top: 50%;
		display: flex;
		flex-direction: column;
		gap: 12px;
		transform: translateY(-50%);
	}
	.wwv-feed__step {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 48px;
		height: 48px;
		padding: 0;
		border: 1px solid var(--ww-line, #E6E2DA);
		border-radius: 50%;
		background: #FFFFFF;
		color: var(--wwv-navy);
		cursor: pointer;
	}
	.wwv-feed__step:hover { background: var(--wwv-sand); }
	.wwv-feed__step:disabled { opacity: 0.4; cursor: default; }
	.wwv-feed .wwv-feed__step:focus-visible { outline: 3px solid var(--wwv-navy); outline-offset: 2px; }
	.wwv-feed__hint { display: none; }
}

/* Phones: the feed fills the screen like an app; the site header stays one tap away (back button). */
@media (max-width: 767px) {
	body.waywa-videos-page { overflow: hidden; }
	.wwv-page { padding: 0; }
	.wwv-feed {
		position: fixed;
		inset: 0;
		z-index: 9990;
		width: auto;
		height: auto;
		border-radius: 0;
	}
	body.admin-bar .wwv-feed { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
	.wwv-bubble__ring,
	.wwv-card__video,
	.wwv-card__play,
	.wwv-feed__hint { transition: none; }
	.wwv-feed__scroller { scroll-behavior: auto; }
}
