html,
body.lacvo-demo-viewer-page {
	width: 100%;
	height: 100%;
	margin: 0;
	overflow: hidden;
	background: #eef2f7;
}

body.lacvo-demo-viewer-page.admin-bar {
	height: calc(100% - 32px);
}

.lacvo-demo-viewer-page #wpadminbar {
	position: fixed;
}

.demo-viewer {
	display: flex;
	width: 100%;
	height: 100vh;
	flex-direction: column;
	background: #eef2f7;
	color: #172033;
}

.admin-bar .demo-viewer {
	height: calc(100vh - 32px);
}

.demo-viewer__toolbar {
	position: relative;
	z-index: 20;
	display: grid;
	min-height: 76px;
	grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
	align-items: center;
	gap: 20px;
	border-bottom: 1px solid #e3e8ef;
	background: rgba(255, 255, 255, .98);
	padding: 10px 28px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.demo-viewer__brand,
.demo-viewer__brand-link,
.demo-viewer__actions,
.demo-viewer__devices,
.demo-viewer__device,
.demo-viewer__back,
.demo-viewer__icon-button {
	display: flex;
	align-items: center;
}

.demo-viewer__brand {
	min-width: 0;
	gap: 18px;
}

.demo-viewer__brand-link {
	flex: 0 0 auto;
	gap: 9px;
	color: #1648db;
	font-size: 19px;
	font-weight: 700;
}


.demo-viewer__brand-link .custom-logo {
	width: auto;
	max-width: 132px;
	height: 38px;
	object-fit: contain;
}

.demo-viewer__brand-mark {
	display: grid;
	width: 36px;
	height: 36px;
	place-items: center;
	border-radius: 10px;
	background: #1d51ed;
	color: #fff;
	font-weight: 800;
}

.demo-viewer__product {
	min-width: 0;
	border-left: 1px solid #e3e8ef;
	padding-left: 18px;
	line-height: 1.25;
}

.demo-viewer__product span,
.demo-viewer__product strong {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.demo-viewer__product span {
	margin-bottom: 4px;
	color: #718096;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.demo-viewer__product strong {
	max-width: 360px;
	font-size: 14px;
	font-weight: 600;
}

.demo-viewer__devices {
	justify-content: center;
	gap: 4px;
	border: 1px solid #e3e8ef;
	border-radius: 12px;
	background: #f8fafc;
	padding: 4px;
}

.demo-viewer__device {
	min-width: 92px;
	justify-content: center;
	gap: 7px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	padding: 8px 11px;
	color: #64748b;
	font-size: 12px;
	font-weight: 600;
	transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.demo-viewer__device .icon,
.demo-viewer__icon-button .icon,
.demo-viewer__back .icon {
	width: 18px;
	height: 18px;
}

.demo-viewer__device:hover,
.demo-viewer__device:focus-visible {
	color: #1d51ed;
}

.demo-viewer__device.is-active {
	background: #fff;
	color: #1d51ed;
	box-shadow: 0 1px 4px rgba(15, 23, 42, .09);
}

.demo-viewer__actions {
	justify-content: flex-end;
	gap: 8px;
}

.demo-viewer__icon-button {
	width: 40px;
	height: 40px;
	justify-content: center;
	border: 1px solid #d8e0ea;
	border-radius: 11px;
	background: #fff;
	color: #506078;
	transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}

.demo-viewer__icon-button:hover,
.demo-viewer__icon-button:focus-visible {
	border-color: #9eb9ff;
	background: #f4f7ff;
	color: #1d51ed;
}

.demo-viewer__back {
	min-height: 40px;
	gap: 7px;
	border-radius: 11px;
	background: #1d51ed;
	padding: 0 15px;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	box-shadow: 0 5px 14px rgba(29, 81, 237, .16);
}


.demo-viewer__stage {
	position: relative;
	display: flex;
	min-height: 0;
	flex: 1 1 auto;
	align-items: stretch;
	justify-content: center;
	overflow: auto;
	padding: 16px;
}

.demo-viewer__viewport {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 480px;
	overflow: hidden;
	border: 1px solid #dce3ec;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 8px 28px rgba(15, 23, 42, .09);
	transition: width .24s ease, border-radius .24s ease, box-shadow .24s ease;
}

.demo-viewer__viewport.is-desktop {
	max-width: 100%;
}

.demo-viewer__viewport.is-tablet {
	width: min(820px, 100%);
	max-width: 820px;
}

.demo-viewer__viewport.is-mobile {
	width: min(390px, 100%);
	max-width: 390px;
}

.demo-viewer__frame {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	min-height: inherit;
	border: 0;
	background: #fff;
}

.demo-viewer__loading {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #fff;
	color: #56647a;
	font-size: 13px;
	transition: opacity .2s ease, visibility .2s ease;
}

.demo-viewer__loading.is-hidden {
	visibility: hidden;
	opacity: 0;
}

.demo-viewer__spinner {
	width: 19px;
	height: 19px;
	border: 2px solid #dbe5ff;
	border-top-color: #1d51ed;
	border-radius: 50%;
	animation: lacvo-demo-spin .7s linear infinite;
}

.demo-viewer__notice {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 30;
	display: flex;
	max-width: 430px;
	align-items: flex-start;
	gap: 9px;
	border: 1px solid #f1d59f;
	border-radius: 12px;
	background: #fffaf0;
	padding: 11px 13px;
	color: #74551c;
	font-size: 12px;
	line-height: 1.5;
	box-shadow: 0 8px 26px rgba(15, 23, 42, .12);
}

.demo-viewer__notice .icon {
	width: 17px;
	height: 17px;
	flex: 0 0 auto;
	margin-top: 1px;
}

.demo-viewer__empty {
	align-self: center;
	max-width: 520px;
	border: 1px solid #e2e8f0;
	border-radius: 18px;
	background: #fff;
	padding: 42px;
	text-align: center;
	box-shadow: 0 10px 35px rgba(15, 23, 42, .08);
}

.demo-viewer__empty-icon {
	display: grid;
	width: 52px;
	height: 52px;
	margin: 0 auto 16px;
	place-items: center;
	border-radius: 14px;
	background: #fff7e8;
	color: #c77a00;
}

.demo-viewer__empty h1 {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 700;
}

.demo-viewer__empty p {
	margin: 0 0 20px;
	color: #64748b;
}

.demo-viewer__empty a {
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	border-radius: 11px;
	background: #1d51ed;
	padding: 0 18px;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
}

@keyframes lacvo-demo-spin {
	to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
	.demo-viewer__toolbar {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 12px;
		padding-inline: 16px;
	}
	.demo-viewer__devices {
		grid-row: 2;
		grid-column: 1 / -1;
		justify-self: center;
		margin-top: -3px;
	}
	.demo-viewer__toolbar {
		min-height: 118px;
	}
	.demo-viewer__product strong {
		max-width: 260px;
	}
}

@media (max-width: 640px) {
	body.lacvo-demo-viewer-page.admin-bar,
	.admin-bar .demo-viewer {
		height: calc(100vh - 46px);
	}
	.demo-viewer__toolbar {
		min-height: 104px;
		grid-template-columns: 1fr auto;
		padding: 8px 10px;
	}
	.demo-viewer__brand {
		gap: 10px;
	}
	.demo-viewer__brand-link strong,
	.demo-viewer__product span,
	.demo-viewer__product {
		display: none;
	}
	.demo-viewer__brand-link .custom-logo {
		max-width: 105px;
		height: 32px;
	}
	.demo-viewer__actions {
		gap: 5px;
	}
	.demo-viewer__icon-button {
		width: 36px;
		height: 36px;
	}
	.demo-viewer__back {
		width: 36px;
		min-height: 36px;
		justify-content: center;
		padding: 0;
	}
	.demo-viewer__back span {
		display: none;
	}
	.demo-viewer__devices {
		width: 100%;
		gap: 2px;
	}
	.demo-viewer__device {
		min-width: 0;
		flex: 1 1 0;
		padding: 7px 9px;
	}
	.demo-viewer__device span {
		display: none;
	}
	.demo-viewer__stage {
		padding: 8px;
	}
	.demo-viewer__viewport {
		min-height: 420px;
		border-radius: 10px;
	}
	.demo-viewer__notice {
		right: 10px;
		bottom: 10px;
		left: 10px;
		max-width: none;
	}
}
