body.mkl-modal-open {
	overflow: hidden !important;
	overscroll-behavior: none;
}

html.mkl-modal-open,
html:has(body.mkl-modal-open) {
	overflow: hidden !important;
}

/* Chrome/Safari: hidden → visible/unset on <html> kills wheel scrolling. */
html:not(.mkl-modal-open):not(:has(body.mkl-modal-open)) {
	overflow-y: auto;
}

.mkl-header__brief-wrap > .modal.mkl-header__modal {
	display: none !important;
}

.modal.mkl-brief-modal-portal {
	display: none;
	position: fixed !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	z-index: 200000;
	text-align: center;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

.modal.mkl-brief-modal-portal.active {
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	box-sizing: border-box;
}

.modal.mkl-brief-modal-portal > .modal-back {
	display: none;
	position: fixed !important;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 0;
}

.modal.mkl-brief-modal-portal.active > .modal-back {
	display: block;
	background: rgba(0, 0, 0, 0.55);
	pointer-events: auto;
}

.modal.mkl-brief-modal-portal > .modal-dialog {
	position: relative;
	z-index: 1;
	display: block;
	text-align: initial;
	margin: 0 auto !important;
	max-width: 95vw;
	width: 820px;
	flex: 0 1 auto;
	max-height: calc(100vh - 48px);
}

.modal.mkl-header__modal .modal-content {
	position: relative;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
}

.mkl-brief-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 5;
	border: 0;
	background: transparent;
	color: #631080;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
}

.mkl-brief-modal__content .separatorbottom,
.mkl-brief-modal__content .padding_top,
.mkl-brief-modal__content .padding_bottom {
	display: none;
}

.mkl-brief-modal__content .mkl-section.mkl-lp-form {
	padding: 0;
}

/* Modal portal lives on body outside main .area — restore Creatium layout context */
.mkl-brief-modal__content.area .node > .wrapper1 {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	overflow: hidden;
	pointer-events: none;
}

.mkl-brief-modal__content.area .node > .wrapper1 > .wrapper2 {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

.mkl-brief-modal__content.area .cont,
.mkl-brief-modal__content.area .node {
	margin-top: 0;
	margin-bottom: 0;
	border-width: 0 !important;
	position: relative;
}

.mkl-brief-modal__content.area .container {
	margin-right: auto;
	margin-left: auto;
	padding-left: 0;
	padding-right: 0;
	position: relative;
	z-index: 7;
	width: 100%;
	max-width: 100%;
}

.mkl-brief-modal__content.area .metahtml {
	position: relative;
	z-index: 220;
}

.mkl-brief-modal__content .widget-form2 .swiper-container {
	overflow: hidden;
}

.mkl-brief-modal__content .widget-form2 .swiper-wrapper {
	display: block;
	transform: none !important;
	height: auto !important;
}

.mkl-brief-modal__content .widget-form2 .swiper-slide {
	display: none;
	width: 100% !important;
	height: auto !important;
	float: none !important;
	position: relative;
	transform: none !important;
}

.mkl-brief-modal__content .widget-form2 .swiper-slide.active {
	display: block;
}

.mkl-brief-form-message {
	margin: 0 0 12px;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 16px;
	line-height: 1.4;
}

.mkl-brief-form-message.is-error {
	background: #fde8e8;
	color: #9b1c1c;
}

.mkl-brief-form-message.is-success {
	background: #e8f8ef;
	color: #166534;
	white-space: pre-line;
}

.mkl-brief-modal__content .widget-form2.mkl-brief-form--submitted .form1-cover {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	min-height: 300px;
}

.mkl-brief-modal__content .mkl-brief-form-message--success-screen {
	grid-column: 2;
	position: relative;
	z-index: 300;
	margin: 0 8px 0 0;
	padding: 28px 20px;
	text-align: right;
	font-family: "TTNorms Regular", sans-serif;
	font-size: 28px;
	line-height: 1.35;
	color: rgb(47, 49, 146);
	background: rgba(255, 255, 255, 0.96);
	border-radius: 8px;
	white-space: pre-line;
}

.mkl-brief-modal__content .mkl-brief-form-message--success-screen.is-success {
	background: rgba(255, 255, 255, 0.96);
	color: rgb(47, 49, 146);
}

@media (max-width: 719px) {
	.mkl-brief-modal__content .widget-form2.mkl-brief-form--submitted .form1-cover {
		grid-template-columns: 1fr;
	}

	.mkl-brief-modal__content .mkl-brief-form-message--success-screen {
		grid-column: 1;
		margin: 0;
		text-align: center;
		font-size: 22px;
	}
}
