/* HighPony Upsell — liquid-glass offer popup (matches highpony-cart). */

#hp-up-overlay {
	position: fixed;
	inset: 0;
	z-index: 999996;
	background: rgba(8, 8, 20, 0.6);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
#hp-up-overlay.hp-show {
	display: flex;
}
#hp-up-modal {
	position: relative;
	width: min(400px, 94vw);
	border-radius: 20px;
	background: linear-gradient(160deg, rgba(30, 25, 60, 0.88), rgba(15, 12, 35, 0.92));
	backdrop-filter: blur(26px) saturate(1.5);
	-webkit-backdrop-filter: blur(26px) saturate(1.5);
	border: 1px solid rgba(255, 255, 255, 0.22);
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
	color: #fff;
	padding: 22px;
}
#hp-up-modal .hp-up-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	border-radius: 99px !important;
	border: 1px solid rgba(255, 255, 255, 0.22) !important;
	background: rgba(255, 255, 255, 0.1) !important;
	color: #fff !important;
	font-size: 16px;
	line-height: 1;
	padding: 0 !important;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
#hp-up-modal .hp-up-text {
	margin: 0 30px 14px 0;
	font-size: 1em;
	font-weight: 700;
	line-height: 1.4;
	color: #fff;
}
#hp-up-modal .hp-up-product {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 10px;
	border-radius: 13px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.14);
	margin-bottom: 16px;
}
#hp-up-modal .hp-up-product img {
	width: 62px;
	height: 62px;
	object-fit: cover;
	border-radius: 11px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	flex: none;
}
#hp-up-modal .hp-up-name {
	display: block;
	font-size: 0.9em;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 5px;
}
#hp-up-modal .hp-up-prices s {
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.85em;
	margin-right: 7px;
}
#hp-up-modal .hp-up-prices b {
	color: #ff7ad9;
	font-size: 1.05em;
	font-weight: 800;
}
#hp-up-modal .hp-up-btns {
	display: flex;
	gap: 10px;
}
#hp-up-modal button.hp-up-accept {
	flex: 1.4;
	border: 0 !important;
	border-radius: 99px !important;
	padding: 0.8em 1em !important;
	font-weight: 800 !important;
	font-size: 0.9em !important;
	cursor: pointer;
	background: linear-gradient(90deg, #8b5cf6, #ff7ad9) !important;
	color: #fff !important;
	box-shadow: 0 8px 22px rgba(139, 92, 246, 0.4);
}
#hp-up-modal button.hp-up-decline {
	flex: 1;
	border: 1px solid rgba(255, 255, 255, 0.22) !important;
	border-radius: 99px !important;
	padding: 0.8em 1em !important;
	font-weight: 600 !important;
	font-size: 0.9em !important;
	cursor: pointer;
	background: transparent !important;
	color: rgba(255, 255, 255, 0.72) !important;
}

/* discount badge on cart lines (classic contexts) */
.hp-upsell-badge {
	display: inline-block;
	background: linear-gradient(90deg, #8b5cf6, #ff7ad9);
	color: #fff;
	border-radius: 99px;
	padding: 0.15em 0.6em;
	font-size: 0.75em;
	font-weight: 700;
	margin-left: 0.4em;
}

/* toast placement: non-blocking card bottom-right (desktop) */
#hp-up-overlay.hp-toast {
	background: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	pointer-events: none;
	align-items: flex-end;
	justify-content: flex-end;
	padding: 24px;
}
#hp-up-overlay.hp-toast #hp-up-modal {
	pointer-events: auto;
	width: min(360px, 94vw);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

/* mobile: every placement becomes a bottom sheet (thumb zone, native feel) */
@media (max-width: 640px) {
	#hp-up-overlay,
	#hp-up-overlay.hp-toast {
		align-items: flex-end;
		justify-content: center;
		padding: 0;
	}
	#hp-up-overlay #hp-up-modal,
	#hp-up-overlay.hp-toast #hp-up-modal {
		width: 100%;
		max-width: none;
		border-radius: 20px 20px 0 0;
		border-bottom: 0;
	}
}

/* thank-you page post-purchase box */
.hp-ty-box {
	margin: 22px 0;
	padding: 20px;
	border-radius: 18px;
	background: linear-gradient(160deg, rgba(30, 25, 60, 0.85), rgba(15, 12, 35, 0.9));
	border: 1px solid rgba(255, 255, 255, 0.22);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
	color: #fff;
	max-width: 520px;
}
.hp-ty-box.hp-ty-done {
	font-weight: 700;
}
.hp-ty-text {
	margin: 0 0 13px;
	font-weight: 700;
	line-height: 1.4;
	color: #fff;
}
.hp-ty-product {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 10px;
	border-radius: 13px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.14);
	margin-bottom: 14px;
}
.hp-ty-product img {
	width: 58px;
	height: 58px;
	object-fit: cover;
	border-radius: 11px;
	flex: none;
}
.hp-ty-name {
	display: block;
	font-size: 0.92em;
	font-weight: 700;
	margin-bottom: 4px;
	color: #fff;
}
.hp-ty-prices s {
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.85em;
	margin-right: 6px;
}
.hp-ty-prices b {
	color: #ff7ad9;
	font-weight: 800;
}
a.hp-ty-accept {
	display: inline-block;
	border-radius: 99px;
	padding: 0.75em 1.6em;
	font-weight: 800;
	background: linear-gradient(90deg, #8b5cf6, #ff7ad9);
	color: #fff !important;
	text-decoration: none;
	box-shadow: 0 8px 22px rgba(139, 92, 246, 0.4);
}

/* ---- inline bump: a compact "slab" strip, deliberately lighter than the
   cards around it. No dashed outline; a soft accent edge on the left does
   the signalling instead. Narrower and shorter than the cart card above,
   with clear air between them. ---- */
.hp-bump-box {
	position: relative;
	max-width: 420px;
	margin: 26px 0 0;
	padding: 13px 15px 13px 17px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.045);
	border: 1px solid rgba(255, 255, 255, 0.11);
	color: #fff;
	overflow: hidden;
}
.hp-bump-box::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: linear-gradient(180deg, #8b5cf6, #ff7ad9);
}
.hp-bump-text {
	margin: 0 0 10px;
	font-size: 0.78em;
	font-weight: 600;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.72);
}
.hp-bump-row {
	display: flex;
	align-items: center;
	gap: 11px;
}
.hp-bump-img {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 9px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	flex: none;
}
.hp-bump-main {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1 1 auto;
}
.hp-bump-name {
	font-size: 0.8em;
	font-weight: 600;
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.92);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.hp-bump-prices s {
	color: rgba(255, 255, 255, 0.45);
	font-size: 0.78em;
	margin-right: 5px;
}
.hp-bump-prices b {
	color: #ff7ad9;
	font-weight: 800;
	font-size: 0.92em;
}
button.hp-bump-accept {
	flex: none;
	border: 1px solid rgba(255, 122, 217, 0.55) !important;
	border-radius: 99px !important;
	padding: 0.45em 1em !important;
	font-weight: 700 !important;
	font-size: 0.76em !important;
	cursor: pointer;
	background: rgba(255, 122, 217, 0.12) !important;
	color: #ff9fe3 !important;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}
button.hp-bump-accept:hover {
	background: linear-gradient(90deg, #8b5cf6, #ff7ad9) !important;
	color: #fff !important;
	border-color: transparent !important;
}
button.hp-bump-accept:disabled {
	opacity: 0.5;
}
/* checkout column is narrow — let it use the full width there */
.woocommerce-checkout .hp-bump-box {
	max-width: none;
	margin: 18px 0;
}
@media (max-width: 640px) {
	.hp-bump-box {
		max-width: none;
		margin-top: 18px;
	}
	.hp-bump-row {
		flex-wrap: wrap;
	}
	button.hp-bump-accept {
		width: 100%;
		margin-top: 4px;
	}
}
