/* La Lune Demo Bar */
:root {
	--lldb-bar-h: 60px;
	--lldb-bg: #1c1b19;
	--lldb-fg: #f6f3ee;
	--lldb-muted: #b9b3a9;
	--lldb-accent: #f6f3ee;
	--lldb-accent-fg: #1c1b19;
	--lldb-stage: #e9e5de;
	--lldb-radius: 999px;
	--lldb-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html,
body.lldb {
	margin: 0;
	height: 100%;
	overflow: hidden;
	background: var(--lldb-stage);
	font-family: var(--lldb-font);
	-webkit-font-smoothing: antialiased;
}

.lldb-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Bar ----------------------------------------------------------------- */
.lldb-bar {
	position: fixed;
	inset: 0 0 auto 0;
	height: var(--lldb-bar-h);
	z-index: 10;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	padding: 0 20px;
	background: var(--lldb-bg);
	color: var(--lldb-fg);
}

.lldb-left {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.lldb-back {
	color: var(--lldb-muted);
	text-decoration: none;
	font-size: 20px;
	line-height: 1;
	padding: 6px 4px;
}
.lldb-back:hover,
.lldb-back:focus-visible { color: var(--lldb-fg); }

.lldb-title {
	display: flex;
	align-items: baseline;
	gap: 10px;
	min-width: 0;
}

.lldb-name {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lldb-price {
	font-size: 14px;
	color: var(--lldb-muted);
	white-space: nowrap;
}
.lldb-price del,
.lldb-price s { opacity: .6; margin-right: 4px; }

/* Device toggle */
.lldb-devices {
	display: flex;
	gap: 4px;
	padding: 4px;
	border-radius: var(--lldb-radius);
	background: rgba(255, 255, 255, .08);
}

.lldb-device {
	display: grid;
	place-items: center;
	width: 38px;
	height: 32px;
	border: 0;
	border-radius: var(--lldb-radius);
	background: transparent;
	color: var(--lldb-muted);
	cursor: pointer;
	transition: background .15s, color .15s;
}
.lldb-device svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.lldb-device:hover { color: var(--lldb-fg); }
.lldb-device.is-active {
	background: var(--lldb-fg);
	color: var(--lldb-bg);
}
.lldb-device:focus-visible,
.lldb-btn:focus-visible,
.lldb-back:focus-visible {
	outline: 2px solid var(--lldb-fg);
	outline-offset: 2px;
}

/* Buttons */
.lldb-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

.lldb-btn {
	display: inline-flex;
	align-items: center;
	height: 38px;
	padding: 0 18px;
	border-radius: var(--lldb-radius);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity .15s, background .15s;
}
.lldb-btn--ghost {
	color: var(--lldb-fg);
	border: 1px solid rgba(255, 255, 255, .35);
}
.lldb-btn--ghost:hover { background: rgba(255, 255, 255, .08); }
.lldb-btn--solid {
	background: var(--lldb-accent);
	color: var(--lldb-accent-fg);
}
.lldb-btn--solid:hover { opacity: .88; }

/* Stage ---------------------------------------------------------------- */
.lldb-stage {
	position: fixed;
	inset: var(--lldb-bar-h) 0 0 0;
	display: flex;
	justify-content: center;
	overflow: hidden;
}

.lldb-frame-wrap {
	width: 100%;
	height: 100%;
	transition: width .35s ease, margin .35s ease, border-radius .35s ease, box-shadow .35s ease;
	background: #fff;
}

/* Tablet and phone use real device sizes (iPad Air 820x1180, iPhone 390x844).
   Height matters as much as width: Showit sizes "window height" sections
   from the viewport height, so a frame taller than a real phone stretches
   them and the design looks different from an actual phone. */
.lldb-stage[data-device="tablet"],
.lldb-stage[data-device="phone"] { align-items: center; }

.lldb-stage[data-device="tablet"] .lldb-frame-wrap,
.lldb-stage[data-device="phone"] .lldb-frame-wrap {
	max-width: calc(100% - 40px);
	max-height: calc(100% - 40px);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
}
.lldb-stage[data-device="tablet"] .lldb-frame-wrap { width: 820px; height: 1180px; }
.lldb-stage[data-device="phone"] .lldb-frame-wrap { width: 390px; height: 844px; }

.lldb-frame {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Browsers with classic (non-overlay) scrollbars, mostly Windows: widen the
   frame by the scrollbar width and clip it, so the demo's visible width is
   exactly the device width, like on a real phone. Set by demo-bar.js. */
.lldb-stage[data-device="tablet"] .lldb-frame,
.lldb-stage[data-device="phone"] .lldb-frame {
	width: calc(100% + var(--lldb-sbw, 0px));
}

/* EDD sale price markup: hide the screen-reader label, soften the old price. */
.lldb-price .old-price-title,
.lldb-price .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lldb-price .old-price { opacity: .6; margin-right: 2px; }

/* Small screens: the visitor is already on a phone/tablet ------------- */
@media (max-width: 900px) {
	.lldb-bar { grid-template-columns: 1fr auto; padding: 0 12px; gap: 10px; }
	.lldb-devices { display: none; }
	.lldb-btn--ghost { display: none; }
}
@media (max-width: 480px) {
	:root { --lldb-bar-h: 56px; }
	.lldb-price { display: none; }
	.lldb-btn { height: 36px; padding: 0 14px; font-size: 12px; }
}
