/* MTM Promo Popups — dark promo sheet, tuned to the MTM ticket pages */

.mpp-modal {
	position: fixed;
	inset: 0;
	display: none;
	/* above #cartModal (9999999) and the side cart */
	z-index: 2147483000;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	font-size: 14px;
	line-height: 1.55;
	text-align: left;
}

.mpp-modal.mpp-open {
	display: block;
}

.mpp-modal__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.82);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	animation: mpp-fade 0.25s ease both;
}

.mpp-modal__inner {
	position: relative;
	margin: 6vh auto 40px;
	width: 92vw;
	max-width: 380px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 18px;
	background: #141414;
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65);
	color: #fff;
	overflow: hidden;
	animation: mpp-rise 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes mpp-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes mpp-rise {
	from { opacity: 0; transform: translateY(18px) scale(0.98); }
	to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.mpp-modal__backdrop,
	.mpp-modal__inner { animation: none; }
}

/* ---------- close ---------- */

/* Scoped past the Bootstrap-style reset the checkout modal loads
   ([type=button], [type=submit], button { … }) so these always win. */
.mpp-modal button.mpp-close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	border-radius: 100px;
	background: #141414;
	font-size: 19px;
	cursor: pointer;
	transition: background 0.15s ease;
}
.mpp-modal button.mpp-close:hover { background: #383838; }

.mpp-modal button.mpp-close svg {
	width: 16px;
	height: 16px;
	stroke: #fff;
	stroke-width: 2.2;
	stroke-linecap: round;
	fill: none;
}

/* ---------- hero ---------- */

.mpp-hero {
	position: relative;
	display: block;
	line-height: 0;
	background: #0d0d0d;
}

.mpp-hero img {
	display: block;
	width: 100%;
	height: auto;
}

/* fade the bottom of the image into the card */
.mpp-hero:after {
	position: absolute;
	width: 100%;
	height: 100px;
	background: linear-gradient(0deg, #141414, transparent);
	bottom: 0;
	content: '';
}

/* ---------- body ---------- */

.mpp-body {
	position: relative;
	z-index: 1;
	padding: 18px 22px 22px;
}

/* Red badge, centred above the heading */
.mpp-chip {
	display: table;
	margin: 0 auto;
	padding: 6px 12px;
	border-radius: 100px;
	background: #d01e21;
	box-shadow: 0 6px 20px rgba(208, 30, 33, 0.45);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.6px;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
}

.mpp-heading {
	margin: 10px 0 0;
	color: #fff;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.2px;
	text-align: center;
}

.mpp-copy {
	margin-top: 10px;
}
.mpp-copy p {
	margin: 0 0 8px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 13.5px;
	line-height: 1.55;
	text-align: center;
}
.mpp-copy p:last-child { margin-bottom: 0; }

/* ---------- product card ---------- */

.mpp-products {
	margin-top: 18px;
}

.mpp-product {
	padding: 14px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.045);
}
.mpp-product + .mpp-product {
	margin-top: 10px;
}

.mpp-product-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 14px;
}

.mpp-product-img {
	flex: 0 0 auto;
	width: 54px;
	height: 54px;
	border-radius: 10px;
	object-fit: cover;
	background: #0d0d0d;
}

.mpp-product-info {
	flex: none;
	min-width: 0;
}

.mpp-product-name {
	display: block;
	margin-bottom: 4px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

.mpp-prices {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
}

.mpp-price-new,
.mpp-price-new .amount,
.mpp-price-new .amount bdi {
	color: #fff;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.3px;
}

.mpp-price-old,
.mpp-price-old .amount,
.mpp-price-old .amount bdi {
	color: rgba(255, 255, 255, 0.42);
	font-size: 14px;
	font-weight: 500;
	text-decoration: line-through;
}

.mpp-save {
	padding: 3px 8px;
	border-radius: 100px;
	background: rgba(208, 30, 33, 0.16);
	border: 1px solid rgba(208, 30, 33, 0.5);
	color: #ff6b6e;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.3px;
	white-space: nowrap;
}

/* Scarcity line under the price */
.mpp-stock {
	display: block;
	margin-top: 5px;
	color: #d9a24a;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.2px;
}

/* ---------- call to action ---------- */

/* The theme styles WooCommerce's own add-to-cart classes with
   a.product_type_simple.add_to_cart_button.ajax_add_to_cart (0-3-1), which
   forces display:table, padding:10px and margin-top:20px onto this button.
   These selectors outrank it so the popup keeps its own layout. */
.mpp-modal .mpp-product a.mpp-add,
.mpp-modal .mpp-product a.mpp-add.add_to_cart_button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 14px 18px;
	border-radius: 100px;
	background: #d01e21;
	box-shadow: 0 10px 28px rgba(208, 30, 33, 0.38);
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	line-height: 36px;
	text-align: center;
	text-decoration: none;
	transition: background 0.15s ease, transform 0.12s ease;
}
.mpp-modal .mpp-product a.mpp-add:hover,
.mpp-modal .mpp-product a.mpp-add.add_to_cart_button:hover {
	background: #ad191c;
	color: #fff;
	text-decoration: none;
}
.mpp-modal .mpp-product a.mpp-add:active,
.mpp-modal .mpp-product a.mpp-add.add_to_cart_button:active { transform: scale(0.985); }
.mpp-modal .mpp-product a.mpp-add.loading { opacity: 0.75; }

/* WooCommerce appends its own "View cart" link after an AJAX add */
.mpp-modal a.added_to_cart { display: none; }

.mpp-soldout {
	display: block;
	padding: 12px 0;
	color: rgba(255, 255, 255, 0.5);
	font-size: 14px;
	text-align: center;
}

.mpp-dismiss {
	display: block;
	margin-top: 14px;
	color: rgba(255, 255, 255, 0.55);
	font-size: 14px;
	text-align: center;
	text-decoration: underline;
}
.mpp-dismiss:hover { color: #fff; }

/* ---------- small screens ---------- */

@media (max-width: 480px) {
	.mpp-modal__inner {
		margin: 4vh auto 24px;
		width: 94vw;
	}
	.mpp-heading { font-size: 19px; }
	.mpp-body { padding: 16px 18px 18px; }
	.mpp-price-new,
	.mpp-price-new .amount,
	.mpp-price-new .amount bdi { font-size: 22px; }
}

/* very short viewports (checkout popup open on a laptop) */
@media (max-height: 640px) {
	.mpp-modal__inner { margin-top: 3vh; }
}
