.cleo-bg[hidden] { display: none !important; }

.cleo-bg {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.cleo-bg__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .6);
}

.cleo-bg__dialog {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: #fff;
	border-radius: 8px;
	padding: 32px 28px 24px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
	animation: cleo-bg-in .2s ease-out;
}

.cleo-bg__close {
	position: absolute;
	top: 8px;
	right: 12px;
	border: 0;
	background: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #333;
}

.cleo-bg__title  { margin: 0 0 4px; }
.cleo-bg__intro  { margin: 0 0 16px; }

html.cleo-bg-open { overflow: hidden; }

@keyframes cleo-bg-in {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: none; }
}
