/* ==========================================================================
   WeStyle Stories – strip circles, full-screen viewer, "Share your look" form.
   Loaded on the front page only when published stories exist (inc/stories.php).
   Tokens only (tokens.css). The strip container reuses .whp-strip from homepage.css.
   ========================================================================== */

.wsst-strip *,
.wsst-viewer *,
.wsst-share * {
	font-family: inherit;
	box-sizing: border-box;
}

/* ---------- Strip circles ---------- */
.wsst-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: none;
	color: var(--ws-ink-soft);
	font-family: var(--ws-font-body);
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.wsst-item:hover,
.wsst-item:focus {
	background: none;
	box-shadow: none;
	color: var(--ws-rose);
}
.wsst-item:focus-visible {
	outline: 2px solid var(--ws-rose);
	outline-offset: 2px;
	border-radius: var(--ws-radius);
}
.wsst-ring {
	position: relative;
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	flex: none;
	padding: 3px;
	border-radius: 50%;
	background: conic-gradient(from 210deg, var(--ws-rose), var(--ws-gold), var(--ws-rose-deep), var(--ws-rose));
	transition: transform var(--ws-dur) var(--ws-ease);
}
.wsst-item:hover .wsst-ring {
	transform: scale(1.04);
}
.wsst-ring img,
.wsst-ring__blank {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: 50%;
	border: 2.5px solid var(--ws-bg);
	object-fit: cover;
	background: var(--ws-cream-deep);
}
.wsst-ring__blank {
	display: grid;
	place-items: center;
	font-family: var(--ws-font-display);
	font-size: 26px;
	font-weight: 700;
	color: var(--ws-rose);
}
.wsst-ring__ig {
	position: absolute;
	right: -2px;
	bottom: -2px;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--ws-ink);
	color: var(--ws-bg);
	border: 2px solid var(--ws-bg);
}
.wsst-ring__ig svg {
	width: 12px;
	height: 12px;
}
.wsst-item.is-seen .wsst-ring {
	background: var(--ws-line);
}
.wsst-item.is-seen .whp-strip__name {
	color: var(--ws-ink-soft);
}
@media (min-width: 900px) {
	.wsst-ring {
		width: 64px;
		height: 64px;
	}
}
.wsst-ring--share {
	background: var(--ws-cream);
	border: 1.5px dashed var(--ws-gold);
	color: var(--ws-rose);
}
.wsst-ring--share svg {
	width: 26px;
	height: 26px;
}

/* ---------- Viewer ---------- */
html.wsst-lock,
html.wsst-lock body {
	overflow: hidden;
}
.wsst-viewer {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--ws-ink);
	color: var(--ws-bg);
	overflow: hidden;
	font-family: var(--ws-font-body);
}
.wsst-viewer:not([open]) {
	display: none;
}
.wsst-viewer::backdrop {
	background: rgba(33, 26, 23, 0.92);
}
.wsst-bg {
	position: absolute;
	inset: -40px;
	background-size: cover;
	background-position: center;
	filter: blur(36px) saturate(1.1) brightness(0.45);
	transform: scale(1.1);
}
.wsst-frame {
	position: relative;
	width: 100%;
	height: 100%;
	margin: 0 auto;
	overflow: hidden;
	background: var(--ws-ink);
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
}
@media (min-width: 640px) {
	.wsst-frame {
		width: auto;
		height: min(92vh, 900px);
		aspect-ratio: 9 / 16;
		top: 50%;
		transform: translateY(-50%);
		border-radius: var(--ws-radius-lg);
		box-shadow: var(--ws-shadow-lg);
	}
}

/* Media stage */
.wsst-stage {
	position: absolute;
	inset: 0;
}
.wsst-stage__blur,
.wsst-stage__poster,
.wsst-stage video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}
.wsst-stage__blur {
	filter: blur(24px) brightness(0.55);
	transform: scale(1.15);
}
.wsst-stage video {
	background: transparent;
}
.wsst-viewer.is-landscape .wsst-stage video,
.wsst-viewer.is-landscape .wsst-stage__poster {
	object-fit: contain;
}
.wsst-stage__poster[hidden],
.wsst-stage video[hidden] {
	display: none;
}
.wsst-shade {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(33, 26, 23, 0.55) 0%, rgba(33, 26, 23, 0) 22%),
		linear-gradient(0deg, rgba(33, 26, 23, 0.75) 0%, rgba(33, 26, 23, 0) 38%);
}

/* Spinner */
.wsst-spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 44px;
	height: 44px;
	margin: -22px 0 0 -22px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.25);
	border-top-color: var(--ws-bg);
	animation: wsst-spin 0.8s linear infinite;
	pointer-events: none;
}
.wsst-spinner[hidden] {
	display: none;
}
@keyframes wsst-spin {
	to { transform: rotate(360deg); }
}

/* Progress */
.wsst-progress {
	position: absolute;
	top: 10px;
	left: 10px;
	right: 10px;
	z-index: 4;
	display: flex;
	gap: 4px;
}
.wsst-progress span {
	flex: 1;
	height: 3px;
	border-radius: var(--ws-radius-pill);
	background: rgba(255, 255, 255, 0.35);
	overflow: hidden;
}
.wsst-progress i {
	display: block;
	width: 0;
	height: 100%;
	background: var(--ws-bg);
}
.wsst-progress .is-done i {
	width: 100%;
}

/* Top bar */
.wsst-top {
	position: absolute;
	top: 20px;
	left: 10px;
	right: 6px;
	z-index: 4;
	display: flex;
	align-items: center;
	gap: 10px;
}
.wsst-top__avatar {
	width: 36px;
	height: 36px;
	margin: 0;
	border-radius: 50%;
	object-fit: cover;
	border: 1.5px solid var(--ws-gold-tint);
	flex: none;
}
.wsst-top__meta {
	flex: 1;
	min-width: 0;
	line-height: 1.25;
}
.wsst-top__label {
	display: block;
	font-size: var(--ws-fs-sm);
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.wsst-top__time {
	display: block;
	font-size: var(--ws-fs-xs);
	opacity: 0.8;
}
.wsst-btn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ws-bg);
	cursor: pointer;
}
.wsst-btn:hover,
.wsst-btn:focus {
	background: rgba(255, 255, 255, 0.14);
	color: var(--ws-bg);
}
.wsst-btn:focus-visible {
	outline: 2px solid var(--ws-bg);
	outline-offset: -2px;
}
.wsst-btn svg {
	width: 22px;
	height: 22px;
}

/* Tap zones */
.wsst-tap {
	position: absolute;
	top: 76px;
	bottom: 120px;
	z-index: 2;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.wsst-tap:hover,
.wsst-tap:focus {
	background: transparent;
}
.wsst-tap--prev {
	left: 0;
	width: 33.33%;
}
.wsst-tap--next {
	right: 0;
	width: 66.67%;
}
.wsst-tap:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.6);
	outline-offset: -6px;
}

/* Paused indicator */
.wsst-paused {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin: -32px 0 0 -32px;
	border-radius: 50%;
	background: rgba(33, 26, 23, 0.45);
	pointer-events: none;
	opacity: 0;
	transition: opacity var(--ws-dur) var(--ws-ease);
}
.wsst-viewer.is-paused .wsst-paused {
	opacity: 1;
}
.wsst-paused svg {
	width: 26px;
	height: 26px;
}

/* Bottom: caption + CTAs */
.wsst-bottom {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 4;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px 14px calc(16px + env(safe-area-inset-bottom));
}
.wsst-caption {
	margin: 0;
	font-family: var(--ws-font-display);
	font-size: 24px;
	font-weight: 600;
	font-style: italic;
	line-height: 1.15;
	text-shadow: 0 1px 12px rgba(33, 26, 23, 0.5);
}
.wsst-customer {
	margin: -4px 0 0;
	font-size: var(--ws-fs-xs);
	opacity: 0.85;
}
.wsst-caption:empty,
.wsst-customer:empty {
	display: none;
}
.wsst-ctas {
	display: flex;
	gap: 8px;
}
.wsst-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 18px;
	border-radius: var(--ws-radius);
	font-size: var(--ws-fs-sm);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color var(--ws-dur) var(--ws-ease), transform var(--ws-dur) var(--ws-ease);
}
.wsst-cta[hidden] {
	display: none;
}
.wsst-cta svg {
	width: 18px;
	height: 18px;
	flex: none;
}
.wsst-cta--shop {
	flex: 1;
	justify-content: space-between;
	background: var(--ws-bg);
	color: var(--ws-ink);
}
.wsst-cta--shop:hover,
.wsst-cta--shop:focus {
	background: var(--ws-cream);
	color: var(--ws-rose-deep);
}
.wsst-cta__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	text-align: left;
}
.wsst-cta__text small {
	font-weight: 500;
	color: var(--ws-ink-soft);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.wsst-cta--ig {
	background: rgba(255, 255, 255, 0.14);
	color: var(--ws-bg);
	border: 1px solid rgba(255, 255, 255, 0.35);
	backdrop-filter: blur(6px);
}
.wsst-cta--ig:hover,
.wsst-cta--ig:focus {
	background: rgba(255, 255, 255, 0.24);
	color: var(--ws-bg);
}
.wsst-cta--ig-big {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 3;
	transform: translate(-50%, -50%);
	min-height: 56px;
	padding: 0 26px;
	border-radius: var(--ws-radius-pill);
	background: var(--ws-rose);
	color: var(--ws-bg);
	font-size: var(--ws-fs-md);
	box-shadow: var(--ws-shadow-lg);
	white-space: nowrap;
}
.wsst-cta--ig-big:hover,
.wsst-cta--ig-big:focus {
	background: var(--ws-rose-deep);
	color: var(--ws-bg);
}

/* Desktop side arrows */
.wsst-nav {
	display: none;
}
@media (min-width: 640px) {
	.wsst-nav {
		position: absolute;
		top: 50%;
		z-index: 5;
		display: inline-grid;
		width: 48px;
		height: 48px;
		margin-top: -24px;
		background: rgba(255, 255, 255, 0.12);
	}
	.wsst-nav--prev {
		left: calc(50% - min(92vh, 900px) * 9 / 32 - 72px);
	}
	.wsst-nav--next {
		right: calc(50% - min(92vh, 900px) * 9 / 32 - 72px);
	}
	.wsst-nav[disabled] {
		opacity: 0.3;
		cursor: default;
	}
	.wsst-close-desk {
		position: absolute;
		top: 16px;
		right: 16px;
		z-index: 5;
	}
}
@media (max-width: 639px) {
	.wsst-close-desk {
		display: none;
	}
}

/* ---------- Share your look (dialog) ---------- */
.wsst-share {
	width: min(440px, calc(100% - 24px));
	max-height: calc(100% - 24px);
	padding: 0;
	border: 0;
	border-radius: var(--ws-radius-lg);
	background: var(--ws-bg);
	color: var(--ws-ink);
	box-shadow: var(--ws-shadow-lg);
	font-family: var(--ws-font-body);
}
.wsst-share::backdrop {
	background: rgba(33, 26, 23, 0.55);
	backdrop-filter: blur(3px);
}
.wsst-share__form {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 28px 22px 22px;
}
.wsst-share__close {
	position: absolute;
	top: 8px;
	right: 8px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ws-ink-soft);
	cursor: pointer;
}
.wsst-share__close:hover,
.wsst-share__close:focus {
	background: var(--ws-cream);
	color: var(--ws-rose);
}
.wsst-share__close svg {
	width: 20px;
	height: 20px;
}
.wsst-share__eyebrow {
	margin: 0;
	font-size: var(--ws-fs-xs);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ws-gold-text);
}
.wsst-share .wsst-share__title {
	margin: -8px 0 0;
	padding: 0;
	font-family: var(--ws-font-display);
	font-size: var(--ws-fs-xl);
	font-weight: 600;
	line-height: 1.15;
	color: var(--ws-ink);
}
.wsst-share__intro {
	margin: 0;
	font-size: var(--ws-fs-sm);
	color: var(--ws-ink-soft);
}
.wsst-f {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	font-size: var(--ws-fs-xs);
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--ws-ink-soft);
}
.wsst-f small {
	font-weight: 500;
	text-transform: none;
	color: var(--ws-muted);
}
.wsst-share input[type="text"],
.wsst-share input[type="tel"],
.wsst-share input[type="url"] {
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--ws-line);
	border-radius: var(--ws-radius);
	background: var(--ws-cream);
	color: var(--ws-ink);
	font-size: var(--ws-fs-md);
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	box-shadow: none;
}
.wsst-share input:focus {
	outline: none;
	border-color: var(--ws-rose);
	background: var(--ws-bg);
	box-shadow: 0 0 0 3px var(--ws-rose-tint);
}
.wsst-share input.is-invalid {
	border-color: var(--ws-danger);
	box-shadow: 0 0 0 3px var(--ws-danger-tint);
}
.wsst-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.wsst-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-height: 44px;
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--ws-ink-soft);
	cursor: pointer;
}
.wsst-check input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--ws-rose);
}
.wsst-check.is-invalid span {
	color: var(--ws-danger);
}
.wsst-share__msg {
	margin: 0;
	font-size: var(--ws-fs-sm);
	font-weight: 500;
}
.wsst-share__msg:empty {
	display: none;
}
.wsst-share__msg.is-error {
	color: var(--ws-danger);
}
.wsst-share__msg.is-ok {
	padding: 12px;
	border-radius: var(--ws-radius);
	background: var(--ws-success-tint);
	color: var(--ws-success);
}
.wsst-share__submit {
	min-height: 50px;
	margin: 0;
	border: 0;
	border-radius: var(--ws-radius);
	background: var(--ws-rose);
	color: var(--ws-bg);
	font-size: var(--ws-fs-md);
	font-weight: 600;
	cursor: pointer;
}
.wsst-share__submit:hover,
.wsst-share__submit:focus {
	background: var(--ws-rose-deep);
	color: var(--ws-bg);
}
.wsst-share__submit[disabled] {
	opacity: 0.6;
	cursor: progress;
}

@media (prefers-reduced-motion: reduce) {
	.wsst-spinner {
		animation-duration: 2s;
	}
	.wsst-ring,
	.wsst-cta {
		transition: none;
	}
}

/* Share-your-look: always centred (a theme reset was zeroing the dialog margin),
   fits short phone screens, and the ✕ stays visible while the form scrolls. */
.wsst-share[open] {
	position: fixed;
	inset: 0;
	margin: auto !important;
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	overscroll-behavior: contain;
}
.wsst-share__close {
	position: sticky !important;
	top: 8px;
	align-self: flex-end;
	z-index: 3;
	margin: -20px -10px -30px 0;
	background: var(--ws-bg);
	box-shadow: 0 2px 8px rgba(33, 26, 23, 0.15);
}
