.cm-whatsapp-channel-modal[hidden] {
	display: none !important;
}

.cm-whatsapp-channel-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px;
	font-family: "Noto Sans", "Montserrat", Arial, sans-serif;
}

.cm-whatsapp-channel-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(4, 12, 24, 0.72);
	backdrop-filter: blur(4px);
}

.cm-whatsapp-channel-modal__dialog {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
	width: min(920px, 100%);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 24px;
	background: #fbf8f2;
	box-shadow: 0 34px 110px rgba(4, 12, 24, 0.44);
	color: #121d32;
}

.cm-whatsapp-channel-modal__close {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(18, 29, 50, 0.1);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.82);
	color: #253044;
	cursor: pointer;
	font-size: 25px;
	line-height: 1;
	box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cm-whatsapp-channel-modal__close:hover,
.cm-whatsapp-channel-modal__close:focus {
	border-color: rgba(215, 30, 21, 0.4);
	background: #ffffff;
	color: #d71e15;
	transform: translateY(-1px);
}

.cm-whatsapp-channel-modal__visual {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 470px;
	padding: 34px;
	background:
		radial-gradient(circle at 22% 22%, rgba(255, 255, 255, 0.18), transparent 28%),
		linear-gradient(145deg, #d71e15 0%, #801722 42%, #09213d 100%);
	color: #fff;
}

.cm-whatsapp-channel-modal__visual::before {
	content: "";
	position: absolute;
	top: 34px;
	left: 34px;
	width: 76px;
	height: 3px;
	background: rgba(255, 255, 255, 0.78);
}

.cm-whatsapp-channel-modal__visual::after {
	content: "";
	position: absolute;
	right: -70px;
	bottom: -70px;
	width: 190px;
	height: 190px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 50%;
}

.cm-whatsapp-channel-modal__seal {
	position: absolute;
	top: 94px;
	left: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 104px;
	height: 104px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
}

.cm-whatsapp-channel-modal__seal svg {
	width: 58px;
	height: 58px;
	fill: #fff;
}

.cm-whatsapp-channel-modal__card {
	position: relative;
	z-index: 1;
	padding: 26px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.1);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(8px);
}

.cm-whatsapp-channel-modal__card span,
.cm-whatsapp-channel-modal__badge {
	display: inline-flex;
	width: fit-content;
	align-items: center;
	color: #d71e15;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.15em;
	line-height: 1;
	text-transform: uppercase;
}

.cm-whatsapp-channel-modal__card span {
	color: rgba(255, 255, 255, 0.76);
}

.cm-whatsapp-channel-modal__card strong {
	display: block;
	margin-top: 12px;
	font-family: "Noto Serif Condensed", Georgia, serif;
	font-size: 3rem;
	font-weight: 700;
	letter-spacing: -0.045em;
	line-height: 0.9;
}

.cm-whatsapp-channel-modal__card p {
	margin: 14px 0 0;
	color: rgba(255, 255, 255, 0.76);
	font-size: 1rem;
	line-height: 1.55;
}

.cm-whatsapp-channel-modal__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(42px, 5.6vw, 72px);
	padding-right: clamp(48px, 6vw, 78px);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)),
		#fbf8f2;
}

.cm-whatsapp-channel-modal__badge {
	gap: 8px;
}

.cm-whatsapp-channel-modal__badge::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #22c55e;
}

.cm-whatsapp-channel-modal__content h2 {
	margin: 18px 0 0;
	color: #101827;
	font-family: "Noto Serif Condensed", Georgia, serif;
	font-size: clamp(3.25rem, 5.5vw, 5.6rem);
	font-weight: 700;
	letter-spacing: -0.06em;
	line-height: 0.88;
}

.cm-whatsapp-channel-modal__content p {
	margin: 22px 0 0;
	max-width: 450px;
	color: #526074;
	font-size: 1.06rem;
	line-height: 1.72;
}

.cm-whatsapp-channel-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-top: 34px;
}

.cm-whatsapp-channel-modal__primary,
.cm-whatsapp-channel-modal__secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 24px;
	border-radius: 14px;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.11em;
	text-decoration: none !important;
	text-transform: uppercase;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cm-whatsapp-channel-modal__primary {
	border: 1px solid #d71e15;
	background: #d71e15;
	color: #fff;
	box-shadow: 0 14px 26px rgba(215, 30, 21, 0.24);
}

.cm-whatsapp-channel-modal__primary:hover,
.cm-whatsapp-channel-modal__primary:focus {
	border-color: #b8160f;
	background: #b8160f;
	color: #fff;
	transform: translateY(-1px);
}

.cm-whatsapp-channel-modal__secondary {
	border: 1px solid rgba(18, 29, 50, 0.14);
	background: rgba(255, 255, 255, 0.42);
	color: #526074;
	cursor: pointer;
}

.cm-whatsapp-channel-modal__secondary:hover,
.cm-whatsapp-channel-modal__secondary:focus {
	border-color: rgba(18, 29, 50, 0.32);
	color: #121d32;
}

body.cm-whatsapp-channel-modal-open {
	overflow: hidden;
}

@media (max-width: 680px) {
	.cm-whatsapp-channel-modal {
		align-items: center;
		padding: 14px;
	}

	.cm-whatsapp-channel-modal__dialog {
		grid-template-columns: 1fr;
		max-height: calc(100vh - 28px);
		overflow-y: auto;
		border-radius: 20px;
	}

	.cm-whatsapp-channel-modal__visual {
		min-height: 176px;
		padding: 22px;
	}

	.cm-whatsapp-channel-modal__visual::before {
		top: 20px;
		left: 22px;
		width: 48px;
	}

	.cm-whatsapp-channel-modal__seal {
		top: 54px;
		left: 22px;
		width: 66px;
		height: 66px;
	}

	.cm-whatsapp-channel-modal__seal svg {
		width: 36px;
		height: 36px;
	}

	.cm-whatsapp-channel-modal__card {
		margin-left: 82px;
		padding: 16px 18px;
		border-radius: 14px;
	}

	.cm-whatsapp-channel-modal__card strong {
		font-size: 2rem;
	}

	.cm-whatsapp-channel-modal__card p {
		display: none;
	}

	.cm-whatsapp-channel-modal__content {
		padding: 30px 22px 24px;
	}

	.cm-whatsapp-channel-modal__content h2 {
		font-size: clamp(2.7rem, 12vw, 3.65rem);
		line-height: 0.9;
	}

	.cm-whatsapp-channel-modal__content p {
		margin-top: 16px;
		font-size: 0.98rem;
		line-height: 1.58;
	}

	.cm-whatsapp-channel-modal__actions {
		margin-top: 24px;
	}

	.cm-whatsapp-channel-modal__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.cm-whatsapp-channel-modal__primary,
	.cm-whatsapp-channel-modal__secondary {
		width: 100%;
	}
}
