* { box-sizing: border-box; }
html, body { height: 100%; }
body.lf-demo-body {
	margin: 0;
	font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
	background: #17181c;
	color: #f2f2f4;
	display: flex;
	flex-direction: column;
	height: 100vh;
	height: 100dvh;
	overflow: hidden;
}

.lf-demo-bar {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 8px 14px;
	background: #1f2026;
	border-bottom: 1px solid #33343d;
	z-index: 5;
}
.lf-demo-bar__brand { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.lf-demo-bar__logo { font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.lf-demo-bar__product {
	color: #b9bbc4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.lf-demo-bar__devices { display: flex; gap: 4px; }
.lf-demo-device {
	background: transparent;
	color: #cfd0d8;
	border: 1px solid #3a3b45;
	border-radius: 999px;
	padding: 5px 14px;
	font: inherit;
	font-size: 13px;
	cursor: pointer;
}
.lf-demo-device:hover { border-color: #6b6d7a; }
.lf-demo-device.is-active { background: #f2f2f4; color: #17181c; border-color: #f2f2f4; }
.lf-demo-bar__actions { display: flex; align-items: center; gap: 10px; }
.lf-demo-bar__opentab {
	color: #cfd0d8;
	text-decoration: none;
	font-size: 13px;
	white-space: nowrap;
}
.lf-demo-bar__opentab:hover { color: #fff; text-decoration: underline; }
.lf-demo-bar__buy {
	background: #c8862a;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	padding: 7px 18px;
	border-radius: 999px;
	white-space: nowrap;
}
.lf-demo-bar__buy:hover { background: #db9a38; }
.lf-demo-bar__close {
	color: #cfd0d8;
	text-decoration: none;
	font-size: 26px;
	line-height: 1;
	padding: 0 4px;
}
.lf-demo-bar__close:hover { color: #fff; }

.lf-demo-stage {
	position: relative;
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
	overflow: hidden;
}
.lf-demo-framewrap {
	height: 100%;
	width: 100%;
	flex: 0 0 auto;
	transform-origin: 50% 0;
	background: #fff;
}
.lf-demo-framewrap[data-device="tablet"] { width: 768px; max-width: 100%; }
.lf-demo-framewrap[data-device="phone"] { width: 390px; max-width: 100%; }
.lf-demo-framewrap iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.lf-demo-hoverbuy {
	position: absolute;
	right: 18px;
	bottom: calc(18px + env(safe-area-inset-bottom, 0px));
	z-index: 6;
	background: #c8862a;
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	padding: 10px 22px;
	border-radius: 999px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
	opacity: 0.45;
	transition: opacity 0.2s ease, transform 0.2s ease;
}
.lf-demo-hoverbuy:hover, .lf-demo-hoverbuy:focus {
	opacity: 1;
	transform: translateY(-2px);
}

.lf-demo-note {
	position: absolute;
	left: 14px;
	bottom: 10px;
	margin: 0;
	color: #8e9099;
	font-size: 12px;
	z-index: 4;
	pointer-events: none;
}

@media (max-width: 720px) {
	.lf-demo-bar__brand { display: none; }
	.lf-demo-bar__opentab { display: none; }
	.lf-demo-device { padding: 5px 10px; }
	.lf-demo-bar__buy { padding: 7px 12px; }
}
