.mg-announcement-bar {
	background: var(--mg-announcement-bg, #1f7a53);
	color: var(--mg-announcement-color, #ffffff);
	font-size: var(--mg-announcement-font-size, 14px);
	line-height: 1.4;
	position: relative;
	width: 100%;
	z-index: 9998;
}

.mg-announcement-bar__inner {
	margin: 0 auto;
	max-width: 1440px;
	padding: 10px 16px;
	text-align: center;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.mg-promo-no-scroll {
	overflow: hidden;
}

.mg-promo-popup {
	inset: 0;
	position: fixed;
	z-index: 99999;
}

.mg-promo-popup[hidden] {
	display: none;
}

.mg-promo-popup__backdrop {
	background: rgba(15, 25, 17, 0.48);
	inset: 0;
	position: absolute;
}

.mg-promo-popup__dialog {
	--mg-popup-bg-image: linear-gradient(135deg, #e8f6e2, #f7fbf3);
	align-items: center;
	background-image:
		linear-gradient(90deg, rgba(245, 249, 242, 0.96) 0%, rgba(241, 247, 239, 0.9) 44%, rgba(255, 255, 255, 0.2) 70%, rgba(255, 255, 255, 0.08) 100%),
		var(--mg-popup-bg-image);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	border: 1px solid rgba(255, 255, 255, 0.72);
	border-radius: 32px;
	box-shadow: 0 28px 90px rgba(18, 41, 27, 0.3);
	color: #163826;
	display: flex;
	inset: 50% auto auto 50%;
	max-height: min(88vh, 760px);
	max-width: min(92vw, 980px);
	min-height: 460px;
	opacity: 0;
	overflow: hidden;
	padding: 52px 56px;
	position: absolute;
	transform: translate(-50%, -46%) scale(0.96);
	transition: opacity 0.35s ease, transform 0.35s ease;
	width: 100%;
}

.mg-promo-popup.is-visible .mg-promo-popup__dialog {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.mg-promo-popup__dialog::before {
	background:
		linear-gradient(90deg, rgba(250, 252, 248, 0.92) 0%, rgba(244, 249, 241, 0.82) 42%, rgba(255, 255, 255, 0.2) 68%, rgba(255, 255, 255, 0.06) 100%);
	content: "";
	inset: 0;
	position: absolute;
}

.mg-promo-popup__dialog::after {
	background: linear-gradient(135deg, rgba(34, 130, 79, 0.08), rgba(255, 255, 255, 0));
	border-radius: 28px;
	content: "";
	inset: 18px;
	position: absolute;
}

.mg-promo-popup__content {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	max-width: 540px;
	padding: 0;
	position: relative;
	text-align: left;
	width: 100%;
	z-index: 1;
}

.mg-promo-popup__close {
	align-items: center;
	background: #22a765;
	border: 0;
	border-radius: 999px;
	box-shadow: 0 10px 24px rgba(34, 167, 101, 0.24);
	color: #ffffff;
	cursor: pointer;
	display: inline-flex;
	font-size: 26px;
	height: 48px;
	justify-content: center;
	line-height: 1;
	position: absolute;
	right: 24px;
	top: 24px;
	width: 48px;
	z-index: 2;
}

.mg-promo-popup__title {
	color: var(--mg-popup-heading-color, #214d38);
	font-size: clamp(2.4rem, 4.3vw, 4.6rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 0.95;
	margin: 0 0 24px;
	max-width: 10ch;
}

.mg-promo-popup__description {
	background: rgba(255, 255, 255, 0.76);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(217, 177, 236, 0.9);
	box-shadow: 0 14px 34px rgba(25, 52, 37, 0.08);
	color: var(--mg-popup-description-color, #233428);
	font-size: clamp(1rem, 1.6vw, 1.28rem);
	line-height: 1.6;
	margin: 0 0 32px;
	max-width: 30ch;
	padding: 18px 20px;
}

.mg-promo-popup__coupon-wrap {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.mg-promo-popup__coupon {
	background: rgba(255, 255, 255, 0.98);
	border: 1px dashed rgba(25, 91, 56, 0.45);
	border-radius: 20px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
	color: #153724;
	font-size: clamp(1.05rem, 1.8vw, 1.4rem);
	font-weight: 700;
	letter-spacing: 0.18em;
	min-width: 180px;
	padding: 18px 22px;
	text-align: center;
	text-transform: uppercase;
}

.mg-promo-popup__copy {
	background: linear-gradient(135deg, #23a866, #16784b);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 14px 30px rgba(35, 168, 102, 0.24);
	color: #ffffff;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 700;
	padding: 18px 28px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.mg-promo-popup__copy:hover,
.mg-promo-popup__copy:focus {
	box-shadow: 0 18px 34px rgba(35, 168, 102, 0.32);
	outline: none;
	transform: translateY(-1px);
}

@media (max-width: 900px) {
	.mg-promo-popup__dialog {
		background-image:
			linear-gradient(180deg, rgba(250, 252, 248, 0.96) 0%, rgba(245, 250, 242, 0.88) 56%, rgba(255, 255, 255, 0.18) 100%),
			var(--mg-popup-bg-image);
		min-height: 0;
		padding: 42px 28px 30px;
	}

	.mg-promo-popup__title,
	.mg-promo-popup__description {
		max-width: none;
	}
}

@media (max-width: 640px) {
	.mg-announcement-bar__inner {
		padding: 9px 14px;
	}

	.mg-promo-popup__dialog {
		border-radius: 26px;
		max-width: calc(100vw - 24px);
		padding: 74px 18px 24px;
	}

	.mg-promo-popup__close {
		right: 14px;
		top: 14px;
	}

	.mg-promo-popup__description {
		padding: 14px 15px;
	}

	.mg-promo-popup__coupon-wrap {
		align-items: stretch;
		flex-direction: column;
	}

	.mg-promo-popup__coupon,
	.mg-promo-popup__copy {
		width: 100%;
	}
}
