/**
 * rhlab-skeeled — application overlay.
 * Only additions the theme does not already provide. Theme CSS stays leading.
 */

.skeeled-overlay[hidden] {
	display: none;
}

.skeeled-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.skeeled-overlay__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

.skeeled-overlay__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(680px, 92vw);
	height: min(90vh, 900px);
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.skeeled-overlay__close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #974c8c;
	color: #fff;
	font-family: "Work Sans", sans-serif;
	font-size: 22px;
	line-height: 40px;
	cursor: pointer;
}

.skeeled-overlay__body {
	position: relative;
	display: flex;
	flex: 1;
	min-height: 0;
}

.skeeled-overlay__iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.skeeled-overlay__loader,
.skeeled-overlay__fallback {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	text-align: center;
	color: #44414f;
	font-family: "Work Sans", sans-serif;
}

.skeeled-overlay__fallback[hidden] {
	display: none;
}

.skeeled-overlay__fallback a {
	color: #974c8c;
	font-weight: 600;
}

body.skeeled-overlay-open {
	position: fixed;
	left: 0;
	right: 0;
	width: 100%;
	overflow: hidden;
}

@media (max-width: 600px) {
	.skeeled-overlay__panel {
		width: 100vw;
		height: 100vh;
		height: 100dvh;
		border-radius: 0;
	}
}
