/* Live Funnel for WooCommerce — front-end
   Mobile-first. On wide screens the funnel stays a 9:16 phone frame on black,
   which is how these pages are always consumed. */

.lfw {
	--lfw-ivory: #faf8f4;
	--lfw-ink: #1a1613;
	--lfw-charcoal: #2c2724;
	--lfw-muted: #78706a;
	--lfw-line: #e6e0d7;
	--lfw-gold: #c1913c;
	--lfw-gold-soft: #e4c98d;
	--lfw-bag: #e9b544;
	--lfw-buy: #f0264c;
	--lfw-buy-hi: #ff3b5c;
	--lfw-ok: #12b886;
	--lfw-sat: env(safe-area-inset-top, 0px);
	--lfw-sab: env(safe-area-inset-bottom, 0px);
	--lfw-frame: min(100vw, 480px);

	position: relative;
	width: var(--lfw-frame);
	height: 100dvh;
	margin: 0 auto;
	overflow: hidden;
	background: #000;
	color: var(--lfw-ink);
	font-family: Figtree, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 15px;
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
}

body.lfw-fullscreen-page {
	margin: 0;
	background: #000;
	overscroll-behavior: none;
}

.lfw *,
.lfw *::before,
.lfw *::after { box-sizing: border-box; }

/* Resets use :where() so every component rule below still wins on specificity. */
:where(.lfw) button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:where(.lfw) :where(p, h2, h3, h4, ul, dl, dd) { margin: 0; padding: 0; }
:where(.lfw) svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lfw [hidden] { display: none !important; }

.lfw-setup-notice {
	margin: 24px auto;
	max-width: 640px;
	padding: 16px 20px;
	border-left: 4px solid #f0264c;
	background: #fff5f6;
	font-family: system-ui, sans-serif;
}

/* ── Siaran ─────────────────────────────────────────────── */

.lfw-live { position: absolute; inset: 0; }

/* Video stage.
   The YouTube player box is always 16:9. Sizing it to the stage height and
   letting the width run past the stage gives cover behaviour: a vertical
   (Shorts) source fills the 9:16 frame exactly, and a landscape source is
   cropped left and right instead of letterboxed. */

/* isolate keeps the poster's z-index inside the stage; without it the poster
   would out-rank the overlay UI and cover the whole funnel. */
.lfw-stage { position: absolute; inset: 0; overflow: hidden; isolation: isolate; background: #0d0b09; }
.lfw-stage--empty {
	background: repeating-linear-gradient(135deg, #17130f, #17130f 18px, #1e1913 18px, #1e1913 36px);
}

/* The poster sits ON TOP of the player, not behind it. An unstarted YouTube
   iframe paints solid black, so a poster underneath would never be seen — the
   visitor would just get a black rectangle whenever autoplay is refused. It
   only fades once a real frame is on screen. */
.lfw-stage-poster {
	position: absolute;
	inset: 0;
	z-index: 2;
	/* Decorative only — swipes and taps must reach the guard beneath it. */
	pointer-events: none;
	background-size: cover;
	background-position: center;
	transition: opacity .5s ease;
}
.lfw-stage-poster.is-gone { opacity: 0; }

.lfw-yt {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	height: 100%;
	aspect-ratio: 16 / 9;
	min-width: 100%;
	pointer-events: none;
}
.lfw-yt iframe,
.lfw-yt > div { display: block; width: 100%; height: 100%; border: 0; }

/* Swallows every pointer event over the player, which is what keeps the
   YouTube title card, logo and "Watch on YouTube" link out of reach. */
.lfw-yt-guard { position: absolute; inset: 0; background: transparent; }

.lfw-dots {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 7px;
}
.lfw-dots button {
	width: 6px;
	height: 6px;
	padding: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .38);
	transition: background .2s, height .2s;
}
.lfw-dots button.is-active { height: 18px; border-radius: 3px; background: #fff; }

.lfw-scrim {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 22%),
		linear-gradient(to top, rgba(0, 0, 0, .7), transparent 38%);
	pointer-events: none;
}

.lfw-top {
	position: absolute;
	top: calc(10px + var(--lfw-sat));
	left: 10px;
	right: 10px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.lfw-host {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	padding: 5px 10px 5px 5px;
	border-radius: 999px;
	background: rgba(20, 18, 16, .55);
	backdrop-filter: blur(10px);
}

.lfw-avatar {
	width: 32px;
	height: 32px;
	flex: none;
	border-radius: 50%;
	object-fit: cover;
	background: #3a332c;
}
.lfw-avatar--empty { display: block; }

.lfw-host-name {
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: #fff;
	font-weight: 700;
	font-size: 14px;
}

.lfw-follow {
	flex: none;
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--lfw-buy);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .04em;
	transition: background .15s, opacity .15s;
}
.lfw-follow.is-following { background: rgba(255, 255, 255, .22); }

.lfw-views {
	flex: none;
	display: grid;
	place-items: center;
	padding: 3px 12px;
	border-radius: 999px;
	background: rgba(20, 18, 16, .55);
	backdrop-filter: blur(10px);
	color: #fff;
	line-height: 1.1;
}
.lfw-views b { font-size: 14px; font-weight: 800; }
.lfw-views span { font-size: 9px; opacity: .7; }

.lfw-round {
	flex: none;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 9px;
	border-radius: 50%;
	background: rgba(20, 18, 16, .55);
	backdrop-filter: blur(10px);
	color: #fff;
	transition: transform .12s, background .15s;
}
.lfw-round:active { transform: scale(.92); }
.lfw-round--light { background: #efeae2; color: var(--lfw-ink); backdrop-filter: none; }
.lfw-close-live { margin-left: auto; }

.lfw-subtitle {
	position: absolute;
	top: calc(54px + var(--lfw-sat));
	left: 16px;
	margin: 0;
	color: rgba(255, 255, 255, .55);
	font-size: 12px;
	letter-spacing: .06em;
}

.lfw-heart {
	position: absolute;
	top: calc(58px + var(--lfw-sat));
	right: 10px;
}
.lfw-heart.is-liked { color: var(--lfw-buy-hi); }
.lfw-heart.is-liked svg { fill: currentColor; }

.lfw-likes {
	position: absolute;
	top: calc(100px + var(--lfw-sat));
	right: 10px;
	width: 38px;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-align: center;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}

.lfw-fullscreen {
	position: absolute;
	top: calc(108px + var(--lfw-sat));
	right: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px 10px 12px;
	border-radius: 999px 0 0 999px;
	background: rgba(20, 18, 16, .6);
	backdrop-filter: blur(10px);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
}
.lfw-fullscreen svg { width: 16px; height: 16px; flex: none; }

/* Komen */

.lfw-lower {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: calc(62px + var(--lfw-sab));
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
}

.lfw-stream {
	margin-right: 56px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 6px;
	max-height: 30dvh;
	overflow: hidden;
	pointer-events: none;
	mask-image: linear-gradient(to bottom, transparent, #000 22%);
}

.lfw-msg {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	align-self: flex-start;
	margin: 0;
	max-width: 100%;
	animation: lfw-rise .32s ease-out both;
}
.lfw-msg-av {
	width: 24px;
	height: 24px;
	flex: none;
	border-radius: 50%;
	object-fit: cover;
	background: #3a332c;
}
.lfw-msg-av--letter {
	display: grid;
	place-items: center;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
}
.lfw-msg-body {
	min-width: 0;
	padding: 5px 11px;
	border-radius: 14px;
	background: rgba(20, 18, 16, .42);
	backdrop-filter: blur(6px);
	color: #fff;
	font-size: 13px;
}
.lfw-msg b { color: var(--lfw-gold-soft); font-weight: 700; margin-right: 6px; }
.lfw-msg--mine b { color: #9ad9ff; }

/* Replies from the shop read as official, never as another customer. */
.lfw-msg--host .lfw-msg-body { background: rgba(58, 42, 12, .62); box-shadow: inset 0 0 0 1px rgba(228, 201, 141, .35); }
.lfw-msg--host b { color: #ffd888; }
.lfw-msg-tag {
	display: inline-block;
	margin-right: 6px;
	padding: 1px 6px;
	border-radius: 4px;
	background: var(--lfw-gold);
	color: #201703;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	vertical-align: 1px;
}
.lfw-msg-at { color: #9ad9ff; font-weight: 600; }

.lfw-msg--join { opacity: .78; }
.lfw-msg--join .lfw-msg-body {
	margin-left: 31px;
	background: rgba(20, 18, 16, .3);
	font-size: 12px;
	font-style: italic;
}

.lfw-msg--typing .lfw-msg-body { display: flex; align-items: center; gap: 4px; padding: 10px 13px; }
.lfw-msg--typing i {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .75);
	animation: lfw-blink 1.1s infinite ease-in-out;
}
.lfw-msg--typing i:nth-child(2) { animation-delay: .18s; }
.lfw-msg--typing i:nth-child(3) { animation-delay: .36s; }

@keyframes lfw-blink {
	0%, 60%, 100% { opacity: .3; transform: none; }
	30% { opacity: 1; transform: translateY(-2px); }
}

@keyframes lfw-rise {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: none; }
}

.lfw-pinned {
	align-self: flex-start;
	max-width: calc(100% - 56px);
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 6px 11px;
	border-radius: 14px;
	background: rgba(20, 18, 16, .5);
	backdrop-filter: blur(6px);
	color: #fff;
	font-size: 13px;
}
.lfw-pin-tag {
	flex: none;
	padding: 2px 6px;
	border-radius: 5px;
	background: rgba(255, 255, 255, .18);
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .05em;
}
.lfw-pin-text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Bar promosi */

.lfw-promo {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
	animation: lfw-pop .35s ease-out both;
}
@keyframes lfw-pop {
	from { opacity: 0; transform: translateY(14px) scale(.97); }
	to   { opacity: 1; transform: none; }
}
.lfw-promo.is-hidden { display: none; }

.lfw-promo-img {
	width: 58px;
	height: 58px;
	flex: none;
	border-radius: 10px;
	object-fit: cover;
	background: #eee;
}
.lfw-promo-body { flex: 1; min-width: 0; }

.lfw-flash {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 2px 7px;
	border-radius: 5px;
	background: var(--lfw-buy);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.lfw-flash::before { content: "\26A1"; }

.lfw-promo-title {
	margin: 4px 0 2px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-weight: 700;
	font-size: 15px;
}
.lfw-promo-price { margin: 0; display: flex; align-items: baseline; gap: 7px; }
.lfw-promo-price s { color: var(--lfw-muted); font-size: 12px; }
.lfw-promo-price b { font-size: 18px; font-weight: 800; }

.lfw-buy {
	flex: none;
	padding: 11px 22px;
	border-radius: 999px;
	background: var(--lfw-buy);
	color: #fff;
	font-weight: 800;
	transition: transform .12s, background .15s;
}
.lfw-buy:active { transform: scale(.96); }
.lfw-buy:hover { background: var(--lfw-buy-hi); }

.lfw-promo-x {
	position: absolute;
	top: 6px;
	right: 8px;
	width: 22px;
	height: 22px;
	color: var(--lfw-muted);
	font-size: 18px;
	line-height: 1;
}

/* Bar bawah */

.lfw-bottom {
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: calc(10px + var(--lfw-sab));
	display: flex;
	align-items: center;
	gap: 8px;
}

.lfw-bag {
	position: relative;
	flex: none;
	width: 42px;
	height: 42px;
	padding: 10px;
	border-radius: 50%;
	background: var(--lfw-bag);
	color: #4a3608;
	transition: transform .12s;
}
.lfw-bag:active { transform: scale(.92); }
.lfw-bag.is-nudging { animation: lfw-nudge 1.1s ease-in-out; }
@keyframes lfw-nudge {
	0%, 100% { transform: none; }
	20%, 60% { transform: rotate(-9deg) scale(1.07); }
	40%, 80% { transform: rotate(9deg) scale(1.07); }
}

.lfw-bag-count {
	position: absolute;
	top: -3px;
	left: -3px;
	min-width: 18px;
	height: 18px;
	display: grid;
	place-items: center;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--lfw-ink);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
}

.lfw-say { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.lfw-say-off { flex: 1; }
.lfw-say input {
	min-width: 0;
	height: 40px;
	padding: 0 14px;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 999px;
	background: rgba(20, 18, 16, .5);
	backdrop-filter: blur(10px);
	color: #fff;
	font-size: 14px;
}
.lfw-say input::placeholder { color: rgba(255, 255, 255, .55); }
.lfw-say input:focus { outline: 2px solid var(--lfw-gold-soft); outline-offset: 1px; }
#lfw-say-name { flex: 0 1 96px; }
#lfw-say-text { flex: 1 1 auto; }

.lfw-send {
	flex: none;
	width: 40px;
	height: 40px;
	padding: 10px;
	border-radius: 50%;
	background: var(--lfw-bag);
	color: #4a3608;
}

.lfw-mute .lfw-ico-loud { display: none; }
.lfw-mute.is-loud .lfw-ico-muted { display: none; }
.lfw-mute.is-loud .lfw-ico-loud { display: block; }

/* ── Sheet asas ─────────────────────────────────────────── */

.lfw-sheet { position: absolute; inset: 0; z-index: 20; }
.lfw-sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }

.lfw-sheet-body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	max-height: 86%;
	display: flex;
	flex-direction: column;
	border-radius: 22px 22px 0 0;
	background: var(--lfw-ivory);
	box-shadow: 0 -8px 40px rgba(0, 0, 0, .35);
	animation: lfw-slide .28s cubic-bezier(.22, 1, .36, 1) both;
}
.lfw-sheet--full .lfw-sheet-body { top: 0; max-height: none; }
@keyframes lfw-slide {
	from { transform: translateY(100%); }
	to   { transform: none; }
}
.lfw-sheet.is-closing .lfw-sheet-body { animation: lfw-slide .2s ease-in reverse both; }

/* Panel pakej */

.lfw-panel-head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 20px 16px 14px;
	border-bottom: 1px solid var(--lfw-line);
}
.lfw-panel-head h2 { margin: 0; font-family: Outfit, Figtree, sans-serif; font-size: 20px; font-weight: 800; }
.lfw-panel-sub { margin: 6px 0 0; display: flex; align-items: center; gap: 10px; }
.lfw-panel-head .lfw-round { margin-left: auto; }
.lfw-timer { color: var(--lfw-muted); font-size: 13px; font-weight: 600; }

.lfw-pkgs { margin: 0; padding: 0 16px calc(20px + var(--lfw-sab)); list-style: none; overflow-y: auto; }
.lfw-pkg {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid var(--lfw-line);
}
.lfw-pkg:last-child { border-bottom: 0; }
.lfw-pkg img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; background: #eee; }
.lfw-pkg-title { margin: 0 0 5px; font-weight: 700; font-size: 16px; line-height: 1.25; }
.lfw-pkg-tags { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12px; }
.lfw-pkg-tags .lfw-flash { background: none; color: var(--lfw-buy); padding: 0; }
.lfw-free { color: var(--lfw-ok); font-weight: 600; }
.lfw-pkg-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lfw-pkg-price { font-size: 21px; font-weight: 800; }
.lfw-pkg-was { color: var(--lfw-muted); font-size: 13px; }
.lfw-off {
	padding: 2px 6px;
	border-radius: 5px;
	background: #ffe3e8;
	color: var(--lfw-buy);
	font-size: 11px;
	font-weight: 800;
}
.lfw-pkg-foot .lfw-buy { margin-left: auto; padding: 9px 20px; }
.lfw-soldout { margin-left: auto; color: var(--lfw-muted); font-weight: 700; font-size: 13px; }

/* PDP */

.lfw-pdp-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: calc(12px + var(--lfw-sat)) 14px 12px;
	border-bottom: 1px solid var(--lfw-line);
}
.lfw-pdp-shop { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 700; }
.lfw-pdp-timer {
	flex: none;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--lfw-ink);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.lfw-tabs { display: flex; gap: 4px; padding: 0 8px; border-bottom: 1px solid var(--lfw-line); overflow-x: auto; }
.lfw-tabs button {
	flex: none;
	padding: 13px 12px;
	border-bottom: 2px solid transparent;
	color: var(--lfw-muted);
	font-weight: 600;
}
.lfw-tabs button.is-active { border-bottom-color: var(--lfw-ink); color: var(--lfw-ink); font-weight: 800; }

.lfw-pdp-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; background: #fff; }

.lfw-gallery { position: relative; background: #fff; }
.lfw-gallery-main { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.lfw-gallery-count {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(20, 18, 16, .55);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
}
.lfw-thumbs { display: flex; gap: 8px; padding: 10px 14px; overflow-x: auto; background: #fff; }
.lfw-thumbs button { flex: none; width: 58px; height: 58px; border: 2px solid transparent; border-radius: 9px; overflow: hidden; }
.lfw-thumbs button.is-active { border-color: var(--lfw-buy); }
.lfw-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.lfw-perks { display: flex; gap: 8px; padding: 12px 14px; }
.lfw-perks span {
	flex: 1;
	padding: 10px 8px;
	border-radius: 10px;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	text-align: center;
	text-transform: uppercase;
	line-height: 1.25;
}
.lfw-perks span:nth-child(1) { background: #1cae94; }
.lfw-perks span:nth-child(2) { background: var(--lfw-buy); }
.lfw-perks span:nth-child(3) { background: #f2b52c; color: #4a3608; }

.lfw-price-banner {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px;
	background: linear-gradient(100deg, #ff5722, #f0264c);
	color: #fff;
}
.lfw-price-banner .lfw-off { background: #fff; color: var(--lfw-buy); }
.lfw-price-banner b { font-size: 30px; font-weight: 800; }
.lfw-price-banner s { opacity: .75; font-size: 14px; }
.lfw-banner-right { margin-left: auto; text-align: right; font-weight: 800; line-height: 1.15; }

.lfw-pdp-info { padding: 16px 14px; background: #fff; }
.lfw-pdp-price { display: flex; align-items: baseline; gap: 10px; }
.lfw-pdp-price b { color: var(--lfw-buy); font-size: 26px; font-weight: 800; }
.lfw-pdp-price s { color: var(--lfw-muted); font-size: 15px; }
.lfw-pdp-title { margin: 10px 0; font-size: 19px; font-weight: 700; line-height: 1.3; }
.lfw-pdp-meta { display: flex; align-items: center; gap: 10px; color: var(--lfw-muted); font-size: 14px; }
.lfw-pdp-meta b { color: var(--lfw-ink); }
.lfw-ship-line {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-top: 14px;
	padding: 13px;
	border: 1px solid var(--lfw-line);
	border-radius: 12px;
	font-weight: 600;
}
.lfw-ship-line svg { width: 20px; height: 20px; flex: none; color: var(--lfw-ok); }

.lfw-pdp-body { padding: 16px 14px 24px; background: #fff; }
.lfw-pdp-body h4 { margin: 0 0 10px; font-size: 16px; }
.lfw-pdp-body p { margin: 0 0 12px; color: #494440; }
.lfw-pdp-body img { max-width: 100%; height: auto; }

.lfw-pdp-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px calc(10px + var(--lfw-sab));
	border-top: 1px solid var(--lfw-line);
	background: var(--lfw-ivory);
}
.lfw-pdp-mini { display: grid; justify-items: center; gap: 2px; width: 58px; font-size: 11px; font-weight: 600; }
.lfw-pdp-mini svg { width: 22px; height: 22px; }
.lfw-buy--wide { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px; font-size: 16px; }
.lfw-buy--wide b { font-weight: 800; }

/* Checkout */

.lfw-co-head {
	display: flex;
	align-items: center;
	padding: calc(20px + var(--lfw-sat)) 16px 14px;
	border-bottom: 1px solid var(--lfw-line);
}
.lfw-co-head h2 { margin: 0; font-family: Outfit, Figtree, sans-serif; font-size: 15px; font-weight: 700; letter-spacing: .22em; }
.lfw-co-head .lfw-round { margin-left: auto; }

.lfw-co-form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.lfw-co-scroll { flex: 1; overflow-y: auto; padding: 18px 16px 8px; -webkit-overflow-scrolling: touch; }

.lfw-order-card { padding: 14px; border: 1px solid var(--lfw-line); border-radius: 16px; background: #fff; }
.lfw-order-top { display: flex; align-items: center; margin-bottom: 12px; }
.lfw-order-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--lfw-charcoal); }
.lfw-link {
	margin-left: auto;
	color: var(--lfw-gold);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.lfw-order-row { display: flex; align-items: center; gap: 12px; }
.lfw-order-row img { width: 62px; height: 62px; flex: none; border-radius: 10px; object-fit: cover; background: #eee; }
.lfw-order-name { margin: 0 0 4px; font-weight: 800; letter-spacing: .06em; }
.lfw-order-price { margin: 0; display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; font-size: 14px; }
.lfw-order-price s { color: var(--lfw-muted); }
.lfw-order-price em { color: var(--lfw-muted); font-style: normal; }
.lfw-order-line { margin-left: auto; color: var(--lfw-gold); font-size: 21px; font-weight: 800; white-space: nowrap; }

.lfw-qty { display: flex; align-items: center; margin: 20px 0 4px; font-weight: 600; }
.lfw-stepper { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lfw-stepper button {
	width: 38px;
	height: 38px;
	border: 1px solid var(--lfw-line);
	border-radius: 50%;
	background: #fff;
	font-size: 19px;
	line-height: 1;
}
.lfw-stepper output { min-width: 22px; text-align: center; font-weight: 700; }

.lfw-field { margin-top: 18px; }
.lfw-field label { display: block; margin-bottom: 7px; font-weight: 600; }
.lfw-field label i { color: var(--lfw-gold); font-style: normal; }
.lfw-field input,
.lfw-field select,
.lfw-field textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--lfw-line);
	border-radius: 14px;
	background: #fff;
	color: var(--lfw-ink);
	font: inherit;
}
.lfw-field textarea { resize: vertical; }
.lfw-field input:focus,
.lfw-field select:focus,
.lfw-field textarea:focus { outline: 2px solid var(--lfw-gold-soft); outline-offset: 1px; border-color: var(--lfw-gold); }
.lfw-field.has-error input,
.lfw-field.has-error select { border-color: var(--lfw-buy); }
.lfw-field-msg { margin: 6px 0 0; color: var(--lfw-buy); font-size: 13px; }

.lfw-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.lfw-co-sub { margin: 26px 0 0; font-family: Outfit, Figtree, sans-serif; font-size: 20px; font-weight: 800; }

.lfw-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.lfw-pay { margin-top: 14px; display: grid; gap: 10px; }
.lfw-pay-opt {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 12px;
	padding: 14px 16px;
	border: 1px solid var(--lfw-line);
	border-radius: 14px;
	background: #fff;
	cursor: pointer;
}
.lfw-pay-opt:has(input:checked) { border-color: var(--lfw-gold); box-shadow: 0 0 0 1px var(--lfw-gold); }
.lfw-pay-opt input { grid-row: span 2; align-self: center; width: 20px; height: 20px; accent-color: var(--lfw-gold); }
.lfw-pay-main { font-weight: 700; }
.lfw-pay-main em {
	margin-left: 8px;
	padding: 2px 7px;
	border-radius: 5px;
	background: #f5ecd7;
	color: #7a5c14;
	font-size: 10px;
	font-style: normal;
	font-weight: 800;
	letter-spacing: .05em;
}
.lfw-pay-note { color: var(--lfw-muted); font-size: 13px; }

.lfw-totals { margin: 24px 0 0; padding: 16px; border: 1px solid var(--lfw-line); border-radius: 16px; background: #fff; }
.lfw-totals div { display: flex; align-items: baseline; gap: 12px; padding: 6px 0; }
.lfw-totals dt { color: var(--lfw-muted); }
.lfw-totals dd { margin: 0 0 0 auto; font-weight: 600; text-align: right; }
.lfw-totals .lfw-total { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--lfw-line); }
.lfw-totals .lfw-total dt { color: var(--lfw-ink); font-weight: 800; letter-spacing: .1em; }
.lfw-totals .lfw-total dd { color: var(--lfw-gold); font-size: 24px; font-weight: 800; }

.lfw-error {
	margin: 16px 0 0;
	padding: 12px 14px;
	border-radius: 12px;
	background: #ffe9ec;
	color: #9b1027;
	font-weight: 600;
}

.lfw-co-actions { padding: 12px 16px calc(14px + var(--lfw-sab)); border-top: 1px solid var(--lfw-line); background: var(--lfw-ivory); }
.lfw-pay-btn {
	width: 100%;
	padding: 17px;
	border-radius: 999px;
	background: var(--lfw-buy);
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: .04em;
	transition: transform .12s, opacity .15s;
}
.lfw-pay-btn:active { transform: scale(.985); }
.lfw-pay-btn[disabled] { opacity: .6; cursor: progress; }
.lfw-co-fine { margin: 10px 0 0; color: var(--lfw-muted); font-size: 12px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
	.lfw *, .lfw *::before, .lfw *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── Borang ikuti ───────────────────────────────────────── */

.lfw-follow-intro { margin: 0 0 4px; color: var(--lfw-muted); font-size: 14px; line-height: 1.6; }
.lfw-follow-consent {
	margin: 20px 0 0;
	padding: 12px 14px;
	border-radius: 12px;
	background: #f2ede4;
	color: var(--lfw-muted);
	font-size: 12px;
	line-height: 1.6;
}
#lfw-follow-sheet .lfw-sheet-body { max-height: 92%; }

/* ── Kaedah penghantaran ────────────────────────────────── */

.lfw-rates { margin-top: 14px; display: grid; gap: 10px; }
.lfw-rates-hint { color: var(--lfw-muted); font-size: 13px; }
.lfw-rates-none {
	padding: 12px 14px;
	border-radius: 12px;
	background: #ffe9ec;
	color: #9b1027;
	font-size: 13px;
	font-weight: 600;
}

.lfw-rate-single {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid var(--lfw-line);
	border-radius: 14px;
	background: #fff;
}
.lfw-rate-single span { color: var(--lfw-charcoal); }
.lfw-rate-single b { margin-left: auto; font-weight: 800; }

.lfw-rate {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid var(--lfw-line);
	border-radius: 14px;
	background: #fff;
	cursor: pointer;
}
.lfw-rate:has(input:checked) { border-color: var(--lfw-gold); box-shadow: 0 0 0 1px var(--lfw-gold); }
.lfw-rate input { width: 20px; height: 20px; flex: none; accent-color: var(--lfw-gold); }
.lfw-rate-label { min-width: 0; font-weight: 600; }
.lfw-rate b { margin-left: auto; white-space: nowrap; font-weight: 800; }

/* ── Gesaan bunyi ───────────────────────────────────────── */

.lfw-sound {
	position: absolute;
	top: 38%;
	left: 50%;
	z-index: 4;
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 12px 20px 12px 16px;
	transform: translateX(-50%);
	border-radius: 999px;
	background: rgba(20, 18, 16, .72);
	backdrop-filter: blur(10px);
	box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	animation: lfw-sound-pulse 2s ease-in-out infinite;
}
.lfw-sound svg { width: 20px; height: 20px; flex: none; }

@keyframes lfw-sound-pulse {
	0%, 100% { transform: translateX(-50%) scale(1); box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
	50% { transform: translateX(-50%) scale(1.045); box-shadow: 0 6px 30px rgba(0, 0, 0, .45); }
}

/* Gateway icons come from WooCommerce as markup, so cap them here. */
.lfw-pay-icon { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; vertical-align: middle; }
.lfw-pay-icon img { max-height: 20px; width: auto; vertical-align: middle; }

/* Shown to the shop owner only, when YouTube refuses to play a clip. */
.lfw-video-error {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 6;
	width: min(300px, 84%);
	padding: 16px 18px;
	transform: translate(-50%, -50%);
	border-radius: 14px;
	background: rgba(20, 18, 16, .88);
	backdrop-filter: blur(10px);
	color: #fff;
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
}
.lfw-video-error b { display: block; margin-bottom: 6px; color: #ff8f9f; }
.lfw-video-error span { display: block; color: rgba(255, 255, 255, .8); }
.lfw-video-error-id {
	margin-top: 8px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 11px;
	opacity: .6;
}
