.krea3-flash-modal-open {
	overflow: hidden;
}

.krea3-flash-modal[hidden] {
	display: none;
}

.krea3-flash-modal,
.krea3-flash-modal * {
	box-sizing: border-box;
}

.krea3-flash-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 180ms ease;
}

.krea3-flash-modal.is-visible {
	opacity: 1;
	pointer-events: auto;
}

.krea3-flash-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.68);
	backdrop-filter: blur(1px);
}

.krea3-flash-modal__panel {
	position: relative;
	width: min(560px, 100%);
	max-height: min(78vh, 680px);
	overflow: auto;
	padding: 38px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 0;
	background: #fff;
	color: #222;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
	outline: none;
	transform: translateY(12px) scale(0.98);
	transition: transform 180ms ease;
}

@media screen and (min-width: 768px) {
	.krea3-flash-modal__panel {
		width: min(1120px, calc(100vw - 96px));
		max-height: min(88vh, 900px);
		padding: 44px;
	}

	.krea3-flash-modal__content {
		padding-right: 0;
	}
}

.krea3-flash-modal.is-visible .krea3-flash-modal__panel {
	transform: translateY(0) scale(1);
}

.krea3-flash-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #222;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.krea3-flash-modal__close:hover,
.krea3-flash-modal__close:focus {
	background: #222;
	color: #fff;
}

.krea3-flash-modal__content {
	padding-right: 18px;
	font-size: 1.05rem;
	line-height: 1.65;
}

.krea3-flash-modal__content > :first-child {
	margin-top: 0;
}

.krea3-flash-modal__content > :last-child {
	margin-bottom: 0;
}

.krea3-flash-modal__content p,
.krea3-flash-modal__content ul,
.krea3-flash-modal__content ol {
	text-align: left;
}

.krea3-flash-modal__content img {
	max-width: 100%;
	height: auto;
}

.krea3-flash-modal__content .aligncenter {
	display: block;
	margin-right: auto;
	margin-left: auto;
}

.krea3-flash-modal__actions {
	display: flex;
	justify-content: center;
	margin-top: 28px;
	text-align: center;
}

.krea3-flash-modal__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 24px;
	border: 0;
	border-radius: 0;
	background: #222;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.krea3-flash-modal__button:hover,
.krea3-flash-modal__button:focus {
	background: #000;
	color: #fff;
}

@media screen and (max-width: 560px) {
	.krea3-flash-modal {
		padding: 16px;
	}

	.krea3-flash-modal__panel {
		padding: 28px 22px 22px;
		border-radius: 0;
	}

	.krea3-flash-modal__content {
		padding-right: 0;
	}

	.krea3-flash-modal__actions {
		text-align: stretch;
	}

	.krea3-flash-modal__button {
		width: 100%;
	}
}
