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

html,
body {
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #111;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
		Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	-webkit-font-smoothing: antialiased;
}

.demo-container {
	position: relative;
	width: 100%;
	height: 100%;
}

.demo-container iframe {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

.demo-loader {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #111;
	z-index: 50;
	transition: opacity 0.3s ease;
}

.demo-loader.is-hidden {
	opacity: 0;
	pointer-events: none;
}

.demo-loader__status {
	font-size: 22px;
	font-weight: 500;
	color: #fff;
	text-align: center;
	letter-spacing: -0.01em;
	margin-bottom: 24px;
}

.demo-loader__track {
	width: 260px;
	height: 4px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 2px;
	overflow: hidden;
}

.demo-loader__bar {
	width: 0%;
	height: 100%;
	background: #f77a5f;
	border-radius: 2px;
	transition: width 0.3s ease;
}

.demo-loader__substatus {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.4);
	margin-top: 14px;
	min-height: 18px;
}

.demo-error {
	position: absolute;
	inset: 0;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	background: #111;
	z-index: 60;
	padding: 24px;
	text-align: center;
}

.demo-error.is-visible {
	display: flex;
}

.demo-error__message {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.65);
	max-width: 420px;
}

.demo-error__retry {
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 6px;
	cursor: pointer;
}

.demo-error__retry:hover {
	background: rgba(255, 255, 255, 0.18);
}
