/*
 * Mystery Gift block — values from Figma "Campaigns 2026" › Pop up - SBF (node 6657:507).
 * Desktop frames 1440, mobile 375; breakpoint 600px, same as the theme popup shell.
 * Intro defaults are (0,2,0): enough to beat WordPress global styles (:root :where(h2)),
 * still below block inline styles and preset classes, so editor settings win.
 */
.bbmg {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	min-height: 100dvh;
	padding: 96px 24px;
	box-sizing: border-box;
	overflow: hidden;
	color: #ffffff;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	text-align: center;
}
.bbmg__bg,
.bbmg__bg img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.bbmg__overlay {
	position: absolute;
	inset: 0;
	background: #003333;
	opacity: var(--bbmg-ov-d, 0.75);
}
.bbmg__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	width: 100%;
	max-width: 436px;
}

/* ---- intro (inner blocks) ---- */
.bbmg__intro {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	width: 100%;
}
.bbmg__intro :where(*) {
	margin: 0;
}
.bbmg .bbmg__intro :where(.wp-block-image) {
	margin-bottom: 8px;
}
.bbmg .bbmg__intro :where(.wp-block-image img) {
	width: 190px;
	height: auto;
}
.bbmg .bbmg__intro :where(h1, h2, h3) {
	font: 400 80px/88px "AwesomeSerif", Georgia, serif;
	color: #ffffff;
}
.bbmg .bbmg__intro :where(em) {
	font-style: italic;
	color: #00cc66;
}
.bbmg .bbmg__intro :where(p) {
	font: 400 20px/30px "Inter", sans-serif;
	color: #ffffff;
}

/* ---- form ---- */
.bbmg__form {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	width: 100%;
}
.bbmg__email {
	display: block;
	width: 346px;
	max-width: 100%;
	height: 56px;
	padding: 17px 16px 15px 24px;
	border: 1px solid #938b8b;
	border-radius: 27px;
	background: #ffffff;
	color: #070707;
	font: 400 16px/24px "Inter", sans-serif;
	box-sizing: border-box;
	outline: none;
}
.bbmg__email::placeholder {
	color: #938b8b;
	opacity: 1;
}
.bbmg__email:focus {
	border-color: #00cc66;
	box-shadow: 0 0 0 3px rgba(0, 204, 102, 0.35);
}
.bbmg__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 48px;
	border: 0;
	border-radius: 27px;
	background: #00cc66;
	color: #ffffff;
	font: 700 16px/24px "Inter", sans-serif;
	cursor: pointer;
	transition: background 0.15s ease, opacity 0.15s ease;
}
.bbmg__button:hover {
	background: #00b85c;
}
.bbmg__button[disabled] {
	opacity: 0.6;
	cursor: wait;
}
.bbmg__dismiss {
	padding: 0;
	border: 0;
	background: none;
	color: #ffffff;
	font: 400 12px/18px "Inter", sans-serif;
	text-decoration: underline;
	cursor: pointer;
}
.bbmg__error {
	color: #ffb3ad;
	font: 700 14px/20px "Inter", sans-serif;
}
.bbmg__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}
.bbmg__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---- reveal ---- */
.bbmg__reveal {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	width: 100%;
}
.bbmg__panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
}
.bbmg__head {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.bbmg__tagline {
	color: #00cc66;
	font: 500 20px/30px "Inter", sans-serif;
}
.bbmg__heading {
	color: #ffffff;
	font: 400 64px/72px "AwesomeSerif", Georgia, serif;
}
.bbmg__product {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 16px 32px 16px 0;
	border-radius: 24px;
	background: #ffffff;
	color: #000000;
	text-align: left;
}
.bbmg__product-img {
	display: block;
	width: 128px;
	height: 91px;
	object-fit: contain;
}
.bbmg__info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}
.bbmg__badge {
	display: inline-block;
	padding: 0 12px;
	border-radius: 10px;
	background: #00cc66;
	color: #ffffff;
	font: 700 12px/18px "Inter", sans-serif;
}
.bbmg__name {
	color: #000000;
	font: 700 20px/30px "Inter", sans-serif;
}
.bbmg__prices {
	display: flex;
	align-items: baseline;
	gap: 16px;
}
.bbmg__price {
	color: #000000;
	font: 500 20px/30px "Inter", sans-serif;
}
.bbmg__was {
	color: #b5b2af;
	font: 500 16px/24px "Inter", sans-serif;
	text-decoration: line-through;
}
.bbmg__text {
	margin: 0;
	color: #ffffff;
	font: 400 20px/30px "Inter", sans-serif;
}

/* ---- mobile (Figma 375 frames) ---- */
@media (max-width: 600px) {
	.bbmg {
		padding: 64px 16px;
	}
	.bbmg__overlay {
		opacity: var(--bbmg-ov-m, 0.8);
	}
	.bbmg__inner,
	.bbmg__form {
		gap: 32px;
	}
	.bbmg .bbmg__intro :where(.wp-block-image) {
		margin-bottom: 16px;
	}
	.bbmg .bbmg__intro :where(.wp-block-image img) {
		width: 125px;
	}
	.bbmg .bbmg__intro :where(h1, h2, h3) {
		font-size: 56px;
		line-height: 64px;
	}
	.bbmg .bbmg__intro :where(p) {
		font-size: 16px;
		line-height: 24px;
	}
	.bbmg__email {
		width: 100%;
	}
	.bbmg__dismiss {
		line-height: 16px;
	}

	.bbmg__reveal {
		gap: 20px;
	}
	.bbmg__panel {
		width: 302px;
		max-width: 100%;
		padding: 24px;
		gap: 16px;
		border-radius: 24px;
		background: #ffffff;
		box-sizing: border-box;
	}
	.bbmg__tagline {
		font-size: 16px;
		line-height: 24px;
	}
	.bbmg__heading {
		color: #003333;
		font-size: 56px;
		line-height: 64px;
	}
	.bbmg__product {
		flex-direction: column;
		gap: 16px;
		padding: 0;
		background: none;
		text-align: center;
	}
	.bbmg__product-img {
		width: 227px;
		height: 168px;
	}
	.bbmg__info {
		align-items: center;
		gap: 4px;
	}
	.bbmg__badge {
		padding: 2px 12px;
		line-height: 16px;
	}
	.bbmg__name {
		line-height: 26px;
	}
	.bbmg__price {
		font-size: 16px;
		line-height: 24px;
	}
	.bbmg__was {
		font-size: 14px;
		line-height: 20px;
	}
	.bbmg__text {
		font-size: 16px;
		line-height: 24px;
	}
}

/* Editor canvas: a full viewport height is too tall to work with. */
.editor-styles-wrapper .bbmg {
	min-height: 760px;
}
