.gc-ml-popup-wrap[hidden] {
	display: none;
}

.gc-ml-popup-wrap {
	align-items: center;
	box-sizing: border-box;
	display: flex;
	inset: 0;
	justify-content: center;
	opacity: 0;
	padding: 20px;
	position: fixed;
	transform: scale(.98);
	transition: opacity .18s ease, transform .18s ease;
	z-index: 999999;
}

.gc-ml-popup-wrap.is-visible {
	opacity: 1;
	transform: scale(1);
}

.gc-ml-popup__overlay {
	background: rgba(15, 23, 42, .58);
	inset: 0;
	position: absolute;
}

.gc-ml-popup {
	background: var(--gc-ml-bg);
	border-radius: var(--gc-ml-radius);
	box-shadow: 0 24px 80px rgba(15, 23, 42, .28);
	box-sizing: border-box;
	color: var(--gc-ml-text);
	display: grid;
	grid-template-columns: minmax(220px, .85fr) minmax(280px, 1fr);
	max-height: min(92vh, 760px);
	max-width: var(--gc-ml-max-width);
	overflow: hidden;
	position: relative;
	width: min(100%, var(--gc-ml-max-width));
}

.gc-ml-popup--image_top {
	grid-template-columns: 1fr;
	grid-template-rows: auto auto;
}

.gc-ml-popup.no-image {
	display: block;
	max-width: min(100%, 560px);
}

.gc-ml-popup__close {
	align-items: center;
	background: rgba(255, 255, 255, .9);
	border: 0;
	border-radius: 999px;
	color: #111827;
	cursor: pointer;
	display: flex;
	font-size: 26px;
	height: 36px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	position: absolute;
	right: 14px;
	top: 14px;
	width: 36px;
	z-index: 2;
}

.gc-ml-popup__media {
	background: #f3f4f6;
	min-height: 100%;
}

.gc-ml-popup__media img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.gc-ml-popup--image_top .gc-ml-popup__media {
	aspect-ratio: 16 / 5;
	max-height: 320px;
	min-height: 0;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.gc-ml-popup--image_top .gc-ml-popup__media img {
	height: 100%;
	object-fit: cover;
	object-position: center;
	width: 100%;
}

.gc-ml-popup--image_top .gc-ml-popup__content {
	background: var(--gc-ml-bg);
	position: relative;
	z-index: 1;
}

.gc-ml-popup__content {
	box-sizing: border-box;
	padding: clamp(28px, 5vw, 48px);
}

.gc-ml-popup h2 {
	color: inherit;
	font-size: clamp(26px, 4vw, 40px);
	letter-spacing: 0;
	line-height: 1.08;
	margin: 0 0 14px;
}

.gc-ml-popup__description,
.gc-ml-popup__thanks p {
	font-size: 16px;
	line-height: 1.55;
	margin: 0 0 22px;
	opacity: .82;
}

.gc-ml-popup__description strong,
.gc-ml-popup__description b {
	font-weight: 800;
	opacity: 1;
}

.gc-ml-popup__form {
	display: grid;
	gap: 12px;
}

.gc-ml-popup__form input[type="text"],
.gc-ml-popup__form input[type="email"] {
	background: #fff;
	border: 1px solid rgba(17, 24, 39, .18);
	border-radius: var(--gc-ml-input-radius);
	box-sizing: border-box;
	color: #111827;
	font-size: 16px;
	min-height: 48px;
	padding: 12px 14px;
	width: 100%;
}

.gc-ml-popup__form input:focus {
	border-color: var(--gc-ml-button-bg);
	box-shadow: 0 0 0 3px rgba(17, 24, 39, .12);
	outline: 0;
}

.gc-ml-popup__form button[type="submit"] {
	background: var(--gc-ml-button-bg);
	border: 0;
	border-radius: var(--gc-ml-button-radius);
	color: var(--gc-ml-button-text);
	cursor: pointer;
	font-size: 16px;
	font-weight: 700;
	min-height: 50px;
	padding: 12px 18px;
	width: 100%;
}

.gc-ml-popup__form button[type="submit"]:disabled {
	cursor: wait;
	opacity: .7;
}

.gc-ml-popup__privacy {
	align-items: flex-start;
	display: flex;
	font-size: 13px;
	gap: 9px;
	line-height: 1.4;
}

.gc-ml-popup__privacy input {
	margin-top: 2px;
}

.gc-ml-popup__privacy a {
	color: inherit;
	font-weight: 700;
	text-decoration: underline;
}

.gc-ml-popup__message {
	font-size: 14px;
	margin: 0;
	min-height: 20px;
}

.gc-ml-popup__message.is-error {
	color: #b42318;
}

.gc-ml-popup__hp {
	left: -10000px;
	position: absolute;
	top: auto;
}

@media (max-width: 720px) {
	.gc-ml-popup-wrap {
		align-items: flex-end;
		padding: 12px;
	}

	.gc-ml-popup,
	.gc-ml-popup--image_left {
		grid-template-columns: 1fr;
		max-height: 92vh;
		overflow-y: auto;
	}

	.gc-ml-popup__media {
		aspect-ratio: 16 / 9;
		min-height: 0;
	}

	.gc-ml-popup--image_top .gc-ml-popup__media {
		aspect-ratio: 16 / 7;
		max-height: 220px;
	}

	.gc-ml-popup__content {
		padding: 26px 20px 22px;
	}
}
