/* GROmagic Expander Upsell — popup styles */

.gmxu-overlay[hidden] {
	display: none !important;
}

.gmxu-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(17, 17, 26, 0.55);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.gmxu-overlay.is-open {
	opacity: 1;
}

#gmxu-popup,
#gmxu-popup *,
#gmxu-popup *::before,
#gmxu-popup *::after {
	box-sizing: border-box;
}

.gmxu-dialog {
	position: relative;
	width: 100%;
	max-width: 620px;
	max-height: min(90vh, 90dvh);
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 0;
	background: #fff;
	color: #1f2430;
	border-radius: 16px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
	text-align: center;
	transform: translateY(16px) scale(0.97);
	transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.gmxu-overlay.is-open .gmxu-dialog {
	transform: translateY(0) scale(1);
}

.gmxu-dialog:focus {
	outline: none;
}

#gmxu-popup :focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

/* Slides: panels sit side by side; the track slides. The viewport height
   follows the visible panel (set by JS). */
.gmxu-viewport {
	overflow: hidden;
	transition: height 0.3s ease;
}

.gmxu-track {
	display: flex;
	align-items: flex-start;
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.gmxu-panel {
	position: relative;
	flex: 0 0 100%;
	min-width: 0;
	padding: 32px 28px 20px;
}

.gmxu-panel-explainer {
	padding: 56px 36px 22px;
}

.gmxu-panel-bags {
	padding: 32px 40px 20px;
}

/* Shared buttons */

#gmxu-popup button {
	font-family: inherit;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
}

#gmxu-popup .gmxu-close {
	position: absolute;
	z-index: 5;
	top: 10px;
	right: 10px;
	width: 36px;
	height: 36px;
	min-height: 0;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: #f3f4f6;
	color: #444;
	font-size: 22px;
	line-height: 36px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

#gmxu-popup .gmxu-close:hover,
#gmxu-popup .gmxu-close:focus-visible {
	background: #1f2430;
	color: #fff;
}

#gmxu-popup .gmxu-add,
#gmxu-popup .gmxu-see,
#gmxu-popup .gmxu-bag-add {
	display: block;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 11px 16px;
	border: 0;
	border-radius: 10px;
	background: var(--gmxu-btn-bg, #111827);
	color: var(--gmxu-btn-color, #fff);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: filter 0.15s ease, transform 0.05s ease, background 0.2s ease;
}

#gmxu-popup .gmxu-add:hover,
#gmxu-popup .gmxu-see:hover,
#gmxu-popup .gmxu-bag-add:hover {
	filter: brightness(1.12);
}

#gmxu-popup .gmxu-add:active,
#gmxu-popup .gmxu-see:active,
#gmxu-popup .gmxu-bag-add:active {
	transform: scale(0.99);
}

#gmxu-popup .gmxu-add[disabled],
#gmxu-popup .gmxu-bag-add[disabled] {
	cursor: default;
	filter: none;
	transform: none;
}

#gmxu-popup .is-loading {
	opacity: 0.7;
	cursor: wait;
}

#gmxu-popup .is-added {
	background: #1a7f37;
	color: #fff;
	opacity: 1;
}

#gmxu-popup .gmxu-view-cart {
	display: block;
	width: 100%;
	max-width: 280px;
	margin: 10px auto 0;
	padding: 9px 16px;
	border: 2px solid var(--gmxu-btn-bg, #111827);
	border-radius: 10px;
	color: var(--gmxu-btn-bg, #111827);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
}

#gmxu-popup .gmxu-view-cart[hidden] {
	display: none;
}

#gmxu-popup .gmxu-view-cart:hover {
	background: var(--gmxu-btn-bg, #111827);
	color: var(--gmxu-btn-color, #fff);
}

#gmxu-popup .gmxu-dismiss {
	display: inline-block;
	min-height: 0;
	margin: 6px 0 0;
	padding: 8px;
	border: 0;
	background: none;
	color: var(--gmxu-dismiss, #9ca3af);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	transition: filter 0.15s ease;
}

#gmxu-popup .gmxu-dismiss:hover {
	background: none;
	color: var(--gmxu-dismiss, #9ca3af);
	text-decoration: none;
	filter: brightness(0.75);
}

/* Slide 1: header */

#gmxu-popup .gmxu-title,
#gmxu-popup .gmxu-ex-title,
#gmxu-popup .gmxu-cele-title {
	margin: 0 32px 6px;
	padding: 0;
	color: var(--gmxu-title-color, #1f2430);
	font-size: var(--gmxu-title-size, 26px);
	line-height: 1.2;
	font-weight: 700;
	text-align: center;
	text-transform: none;
	letter-spacing: normal;
}

#gmxu-popup .gmxu-ex-title:focus,
#gmxu-popup .gmxu-cele-title:focus {
	outline: none;
}

#gmxu-popup .gmxu-desc {
	margin: 0 0 12px;
	color: var(--gmxu-text-color, #4a5060);
	font-size: var(--gmxu-text-size, 16px);
	line-height: 1.5;
	text-align: center;
}

#gmxu-popup .gmxu-desc p {
	margin: 0 0 0.5em;
	font-size: inherit;
	color: inherit;
}

#gmxu-popup .gmxu-desc p:last-child {
	margin-bottom: 0;
}

#gmxu-popup .gmxu-header .gmxu-desc:last-child,
#gmxu-popup .gmxu-what {
	margin-bottom: 22px;
}

#gmxu-popup .gmxu-what {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 0;
	padding: 7px 14px;
	border: 0;
	border-radius: 999px;
	background: color-mix(in srgb, var(--gmxu-accent, #e5397f) 10%, #fff);
	color: color-mix(in srgb, var(--gmxu-accent, #e5397f) 75%, #000);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
	transition: background 0.15s ease;
}

#gmxu-popup .gmxu-what:hover {
	background: color-mix(in srgb, var(--gmxu-accent, #e5397f) 18%, #fff);
}

/* Slide 1: offer cards */

.gmxu-offers {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	align-items: stretch;
}

.gmxu-offers.gmxu-count-1 {
	grid-template-columns: minmax(0, 280px);
	justify-content: center;
}

.gmxu-offer {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
	padding: 20px 16px 16px;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.gmxu-offer.is-highlight {
	border: 2px solid var(--gmxu-accent, #e5397f);
	padding: 19px 15px 15px;
}

/* Hover: lift, darker border, soft shadow. Mouse devices only. */
@media (hover: hover) {
	.gmxu-offer:hover {
		z-index: 2;
		border-color: #c3c8d0;
		box-shadow: 0 8px 22px rgba(17, 24, 39, 0.09);
		transform: translateY(-2px);
	}

	.gmxu-offer.is-highlight:hover {
		border-color: color-mix(in srgb, var(--gmxu-accent, #e5397f) 88%, #000);
		box-shadow: 0 8px 24px color-mix(in srgb, var(--gmxu-accent, #e5397f) 20%, transparent);
	}
}

.gmxu-offer:focus-within {
	border-color: #c3c8d0;
}

.gmxu-offer.is-highlight:focus-within {
	border-color: color-mix(in srgb, var(--gmxu-accent, #e5397f) 88%, #000);
}

#gmxu-popup .gmxu-badge {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 3px 12px;
	border-radius: 999px;
	background: var(--gmxu-accent, #e5397f);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	white-space: nowrap;
}

.gmxu-offer-media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 140px;
	margin: 0 0 12px;
	padding: 8px;
	border-radius: 10px;
	background: #f6f7f9;
	overflow: hidden;
}

/* Images fill their box and scale down inside it (flex items won't shrink below
   their natural width otherwise). */
#gmxu-popup .gmxu-offer-img,
#gmxu-popup .gmxu-bag-img {
	display: block;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	height: 100%;
	max-height: none;
	margin: 0;
	object-fit: contain;
}

.gmxu-offer-info {
	width: 100%;
	min-width: 0;
	margin: 0 0 14px;
}

#gmxu-popup .gmxu-offer-name {
	margin: 0 0 4px;
	color: #1f2430;
	padding: 0;
	font-size: 15px;
	line-height: 1.3;
	font-weight: 700;
	overflow-wrap: anywhere;
	text-transform: none;
	letter-spacing: normal;
}


#gmxu-popup .gmxu-offer-tagline {
	margin: 0 0 8px;
	color: #6b7180;
	font-size: 13px;
	line-height: 1.4;
}

.gmxu-price-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 8px;
}

#gmxu-popup .gmxu-offer-price {
	color: var(--gmxu-accent, #e5397f);
	font-size: 17px;
	line-height: 1.3;
	font-weight: 700;
	white-space: nowrap;
}

/* The theme enlarges prices globally; keep them in scale inside the popup. */
#gmxu-popup .woocommerce-Price-amount,
#gmxu-popup .woocommerce-Price-amount * {
	font-size: inherit !important;
	line-height: inherit !important;
	font-weight: inherit;
	color: inherit !important;
}

#gmxu-popup del {
	margin-right: 2px;
	color: #9ca3af;
	font-weight: 400;
}

#gmxu-popup ins {
	text-decoration: none;
}

/* Savings chip + tooltip */

.gmxu-save-wrap {
	position: relative;
	display: inline-flex;
}

#gmxu-popup .gmxu-save {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 0;
	margin: 0;
	padding: 3px 8px 3px 10px;
	border: 0;
	border-radius: 999px;
	background: #e8f6ec;
	color: #15803d;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
	cursor: help;
	transition: background 0.15s ease;
}

#gmxu-popup .gmxu-save svg {
	flex: none;
	opacity: 0.8;
}

#gmxu-popup .gmxu-save:hover,
#gmxu-popup .gmxu-save[aria-expanded="true"] {
	background: #d5efdd;
	color: #15803d;
}

#gmxu-popup .gmxu-tip {
	position: absolute;
	z-index: 5;
	bottom: calc(100% + 8px);
	left: 50%;
	width: 224px;
	margin-left: -112px;
	padding: 10px 12px;
	border-radius: 10px;
	background: #1f2430;
	color: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.45;
	text-align: left;
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
	pointer-events: none;
}

#gmxu-popup .gmxu-tip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: var(--gmxu-arrow, 50%);
	margin-left: -6px;
	border: 6px solid transparent;
	border-top-color: #1f2430;
}

#gmxu-popup .gmxu-save[aria-expanded="true"] + .gmxu-tip,
#gmxu-popup .gmxu-save:focus-visible + .gmxu-tip {
	opacity: 1;
	visibility: visible;
	transform: none;
}

@media (hover: hover) {
	#gmxu-popup .gmxu-dialog:not(.has-open-tip) .gmxu-save-wrap:hover .gmxu-tip {
		opacity: 1;
		visibility: visible;
		transform: none;
	}
}

#gmxu-popup .gmxu-tip-heading {
	display: block;
	margin: 0 0 6px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

#gmxu-popup .gmxu-tip-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	color: #d1d5db;
}

#gmxu-popup .gmxu-tip-row b {
	color: #fff;
	font-weight: 600;
	white-space: nowrap;
}

#gmxu-popup .gmxu-tip-bundle,
#gmxu-popup .gmxu-tip-bundle b {
	color: #86efac;
}

#gmxu-popup .gmxu-tip-total {
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	color: #fff;
	font-weight: 700;
}

#gmxu-popup .gmxu-tip-total b {
	color: #fff;
	font-weight: 700;
}

/* Slide 1: footer */

#gmxu-popup .gmxu-feedback,
#gmxu-popup .gmxu-bag-feedback {
	margin: 12px 0 0;
	font-size: 14px;
	line-height: 1.3;
}

#gmxu-popup .gmxu-feedback:empty,
#gmxu-popup .gmxu-bag-feedback:empty {
	margin: 0;
}

#gmxu-popup .is-error {
	color: #b32d2e;
}

#gmxu-popup .is-success {
	color: #1a7f37;
	font-weight: 600;
}

.gmxu-footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 8px;
}

/* Slide 2: explainer */

#gmxu-popup .gmxu-back {
	position: absolute;
	z-index: 3;
	top: 12px;
	left: 12px;
	display: inline-flex;
	align-items: center;
	gap: 2px;
	min-height: 0;
	margin: 0;
	padding: 7px 10px 7px 6px;
	border: 0;
	border-radius: 8px;
	background: none;
	color: #4a5060;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
}

#gmxu-popup .gmxu-back:hover {
	background: #f3f4f6;
	color: #1f2430;
}

#gmxu-popup .gmxu-ex-title {
	margin-bottom: 14px;
	font-size: calc(var(--gmxu-title-size, 26px) * 0.92);
}

/* The basic text stays in the flow and sets the height; "learn more" content
   overlays the same space and scrolls inside it. */
.gmxu-exbody {
	position: relative;
	overflow: hidden;
	margin: 0 0 6px;
}

.gmxu-basic {
	transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.gmxu-exbody.is-more .gmxu-basic {
	opacity: 0;
	transform: translateY(-28px);
	pointer-events: none;
}

#gmxu-popup .gmxu-more {
	position: absolute;
	inset: 0;
	padding: 2px 6px 28px 2px;
	overflow-y: auto;
	overscroll-behavior: contain;
	text-align: left;
	opacity: 0;
	visibility: hidden;
	transform: translateY(18px);
	transition: opacity 0.3s ease 0.08s, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1) 0.08s, visibility 0s linear 0.4s;
	scrollbar-width: thin;
}

#gmxu-popup .gmxu-exbody.is-more .gmxu-more {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.3s ease 0.08s, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1) 0.08s, visibility 0s;
}

.gmxu-more-fade {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 34px;
	background: linear-gradient(rgba(255, 255, 255, 0), #fff);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.gmxu-exbody.is-more:not(.is-end) .gmxu-more-fade {
	opacity: 1;
}

#gmxu-popup .gmxu-more h2,
#gmxu-popup .gmxu-more h3,
#gmxu-popup .gmxu-more h4,
#gmxu-popup .gmxu-more h5 {
	margin: 16px 0 6px;
	padding: 0;
	color: #1f2430;
	font-size: 15px;
	line-height: 1.3;
	font-weight: 700;
	text-transform: none;
	letter-spacing: normal;
}

#gmxu-popup .gmxu-more > :first-child {
	margin-top: 0;
}

#gmxu-popup .gmxu-more p,
#gmxu-popup .gmxu-more li {
	color: #4a5060;
	font-size: 14px;
	line-height: 1.55;
}

#gmxu-popup .gmxu-more p {
	margin: 0 0 8px;
}

#gmxu-popup .gmxu-more ol,
#gmxu-popup .gmxu-more ul {
	margin: 0 0 10px;
	padding: 0 0 0 20px;
}

#gmxu-popup .gmxu-more li {
	margin: 0 0 4px;
	padding: 0;
}

#gmxu-popup .gmxu-more ul {
	list-style: disc;
}

#gmxu-popup .gmxu-more ol {
	list-style: decimal;
}

#gmxu-popup .gmxu-more li::before {
	content: none;
}

#gmxu-popup .gmxu-more a {
	color: color-mix(in srgb, var(--gmxu-accent, #e5397f) 80%, #000);
}

#gmxu-popup .gmxu-more ul.gmxu-yield {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	padding: 0;
	list-style: none;
}

#gmxu-popup .gmxu-more ul.gmxu-yield li {
	margin: 0;
	padding: 8px 10px;
	border-radius: 10px;
	background: #f6f7f9;
	font-size: 13px;
	line-height: 1.4;
}

#gmxu-popup .gmxu-more ul.gmxu-yield strong {
	display: block;
	color: #1f2430;
	font-size: 16px;
}

#gmxu-popup .gmxu-more .gmxu-note {
	padding: 8px 10px;
	border-radius: 8px;
	background: #fff8e6;
	color: #6b5314;
	font-size: 13px;
}

#gmxu-popup .gmxu-lm {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 0;
	margin: 0 0 10px;
	padding: 6px 8px;
	border: 0;
	border-radius: 8px;
	background: none;
	color: color-mix(in srgb, var(--gmxu-accent, #e5397f) 80%, #000);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
}

#gmxu-popup .gmxu-lm:hover {
	background: color-mix(in srgb, var(--gmxu-accent, #e5397f) 8%, #fff);
}

#gmxu-popup .gmxu-lm svg {
	transition: transform 0.3s ease;
}

#gmxu-popup .gmxu-lm[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

#gmxu-popup .gmxu-ex-intro {
	margin: 0 0 18px;
	color: var(--gmxu-text-color, #4a5060);
	font-size: var(--gmxu-text-size, 16px);
	line-height: 1.5;
}

#gmxu-popup .gmxu-steps {
	display: grid;
	gap: 12px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
	text-align: left;
}

#gmxu-popup .gmxu-steps li {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	margin: 0;
	padding: 0;
	color: #1f2430;
	font-size: 15px;
	line-height: 1.45;
}

#gmxu-popup .gmxu-steps li::before,
#gmxu-popup .gmxu-steps li::marker {
	content: none;
}

#gmxu-popup .gmxu-step-num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--gmxu-accent, #e5397f);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
}

#gmxu-popup .gmxu-perks {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
}

#gmxu-popup .gmxu-perks li {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	padding: 5px 11px;
	border-radius: 999px;
	background: #f3f4f6;
	color: #374151;
	font-size: 13px;
	line-height: 1.3;
}

#gmxu-popup .gmxu-perks li::before {
	content: none;
}

#gmxu-popup .gmxu-perks svg {
	flex: none;
	color: #1a7f37;
}

/* Slide 3: grow bags */

.gmxu-cele {
	display: flex;
	flex-direction: column;
	align-items: center;
}

#gmxu-popup .gmxu-burst {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0 0 10px;
	border-radius: 50%;
	background: #e8f6ec;
	color: #15803d;
}

.gmxu-bag-variant.is-live .gmxu-burst {
	animation: gmxu-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes gmxu-pop {
	from {
		transform: scale(0.3);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

#gmxu-popup .gmxu-cele-saved {
	margin: 2px 0 0;
	color: var(--gmxu-text-color, #4a5060);
	font-size: var(--gmxu-text-size, 16px);
	line-height: 1.45;
}

#gmxu-popup .gmxu-green,
#gmxu-popup .gmxu-green * {
	color: #15803d !important;
	font-weight: 700;
}

#gmxu-popup .gmxu-sep {
	height: 1px;
	margin: 18px 0 16px;
	border: 0;
	background: #eef0f3;
}

#gmxu-popup .gmxu-bag-heading {
	margin: 0 0 4px;
	color: #1f2430;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

#gmxu-popup .gmxu-bag-desc {
	margin: 0 0 14px;
	color: var(--gmxu-text-color, #4a5060);
	font-size: 14px;
	line-height: 1.45;
}

.gmxu-bag-card {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	margin: 0 0 12px;
	padding: 12px;
	border: 2px solid var(--gmxu-accent, #e5397f);
	border-radius: 14px;
	text-align: left;
}

.gmxu-bag-media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	padding: 4px;
	border-radius: 10px;
	background: #f6f7f9;
	overflow: hidden;
}

#gmxu-popup .gmxu-bag-name {
	margin: 0 0 4px;
	color: #1f2430;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

#gmxu-popup .gmxu-qty {
	display: inline-block;
	padding: 1px 6px;
	border-radius: 6px;
	background: #f3f4f6;
	color: #374151;
	font-size: 12px;
	white-space: nowrap;
	vertical-align: 1px;
}

.gmxu-bag-prices {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	font-size: 14px;
}

#gmxu-popup .gmxu-bag-now {
	color: var(--gmxu-accent, #e5397f);
	font-size: 17px;
	font-weight: 700;
}

#gmxu-popup .gmxu-off {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--gmxu-accent, #e5397f);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
}

#gmxu-popup .gmxu-bag-each {
	margin-top: 2px;
	color: #6b7180;
	font-size: 13px;
}

/* Confetti */

.gmxu-confetti {
	position: absolute;
	inset: 0;
	z-index: 4;
	overflow: hidden;
	pointer-events: none;
}

.gmxu-confetti i {
	position: absolute;
	top: 60px;
	left: 50%;
	width: 7px;
	height: 11px;
	border-radius: 2px;
	opacity: 0;
	animation: gmxu-fly 1.5s cubic-bezier(0.2, 0.6, 0.4, 1) forwards;
}

@keyframes gmxu-fly {
	0% {
		opacity: 1;
		transform: translate(0, 0) rotate(0);
	}
	70% {
		opacity: 1;
	}
	100% {
		opacity: 0;
		transform: translate(var(--dx), var(--dy)) rotate(var(--r));
	}
}

body.gmxu-no-scroll {
	overflow: hidden;
}

/* Phone-sized screens: tighter spacing, and room at the bottom for chat bubbles. */
@media (max-width: 560px) {
	.gmxu-overlay {
		padding: 16px 16px calc(70px + env(safe-area-inset-bottom, 0px));
	}

	.gmxu-dialog {
		max-height: min(84vh, 84dvh);
	}

	.gmxu-panel {
		padding: 26px 16px 14px;
	}

	.gmxu-panel-explainer {
		padding: 52px 18px 18px;
	}

	.gmxu-panel-bags {
		padding: 26px 16px 14px;
	}

	#gmxu-popup .gmxu-title,
	#gmxu-popup .gmxu-cele-title {
		font-size: calc(var(--gmxu-title-size, 26px) * 0.85);
	}

	#gmxu-popup .gmxu-ex-title {
		font-size: calc(var(--gmxu-title-size, 26px) * 0.8);
	}

	#gmxu-popup .gmxu-desc,
	#gmxu-popup .gmxu-ex-intro,
	#gmxu-popup .gmxu-cele-saved {
		font-size: calc(var(--gmxu-text-size, 16px) * 0.9);
	}

	#gmxu-popup .gmxu-header .gmxu-desc:last-child,
	#gmxu-popup .gmxu-what {
		margin-bottom: 18px;
	}

	#gmxu-popup .gmxu-steps li {
		font-size: 14px;
	}

	#gmxu-popup .gmxu-bag-heading {
		font-size: 16px;
	}

	#gmxu-popup .gmxu-bag-desc {
		font-size: 13px;
	}

	.gmxu-bag-card {
		grid-template-columns: 60px minmax(0, 1fr);
	}

	.gmxu-bag-media {
		width: 60px;
		height: 60px;
	}
}

/* Narrow: offer cards stack as compact rows. */
@media (max-width: 400px) {
	.gmxu-panel-offers {
		padding: 24px 12px 12px;
	}

	.gmxu-offers,
	.gmxu-offers.gmxu-count-1 {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}

	.gmxu-offer {
		display: grid;
		grid-template-columns: 64px minmax(0, 1fr);
		column-gap: 12px;
		row-gap: 10px;
		align-items: center;
		padding: 14px 12px 12px;
		text-align: left;
	}

	.gmxu-offer.is-highlight {
		padding: 13px 11px 11px;
	}

	#gmxu-popup .gmxu-badge {
		left: auto;
		right: 12px;
		transform: translateY(-50%);
	}

	.gmxu-offer-media {
		width: 64px;
		height: 64px;
		margin: 0;
		padding: 4px;
	}

	.gmxu-offer-info {
		margin: 0;
	}

	#gmxu-popup .gmxu-offer-tagline {
		margin-bottom: 4px;
	}

	.gmxu-price-row {
		justify-content: flex-start;
	}

	#gmxu-popup .gmxu-add {
		grid-column: 1 / -1;
	}
}

/* Very narrow: small phones and split screens. */
@media (max-width: 340px) {
	.gmxu-overlay {
		padding-left: 10px;
		padding-right: 10px;
	}

	.gmxu-panel,
	.gmxu-panel-bags {
		padding: 22px 10px 10px;
	}

	.gmxu-panel-explainer {
		padding: 48px 12px 12px;
	}

	#gmxu-popup .gmxu-title,
	#gmxu-popup .gmxu-ex-title,
	#gmxu-popup .gmxu-cele-title {
		margin-left: 36px;
		margin-right: 36px;
		font-size: 20px;
	}

	.gmxu-offer {
		grid-template-columns: 48px minmax(0, 1fr);
	}

	.gmxu-offer-media {
		width: 48px;
		height: 48px;
	}

	.gmxu-bag-card {
		grid-template-columns: 48px minmax(0, 1fr);
		padding: 10px;
	}

	.gmxu-bag-media {
		width: 48px;
		height: 48px;
	}

	#gmxu-popup .gmxu-more ul.gmxu-yield {
		grid-template-columns: minmax(0, 1fr);
	}

	#gmxu-popup .gmxu-perks li {
		font-size: 12px;
	}

	#gmxu-popup .gmxu-tip {
		width: 200px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gmxu-overlay,
	.gmxu-dialog,
	.gmxu-viewport,
	.gmxu-track,
	.gmxu-offer,
	.gmxu-basic,
	#gmxu-popup .gmxu-more,
	#gmxu-popup .gmxu-tip {
		transition: none !important;
	}

	.gmxu-offer:hover {
		transform: none;
	}

	.gmxu-confetti {
		display: none;
	}

	.gmxu-bag-variant.is-live .gmxu-burst {
		animation: none;
	}
}
