/* HH Growth Engine — front-end styles */

/* Order bump */
.hh-bump {
	border: 2px dashed #5B7B3A;
	border-radius: 10px;
	padding: 16px;
	margin: 18px 0;
	background: #f7f9f4;
}
.hh-bump.hh-loading {
	opacity: .6;
	pointer-events: none;
}
.hh-bump__label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
	margin: 0;
}
.hh-bump__checkbox {
	margin-top: 4px;
	transform: scale(1.3);
}
.hh-bump__media img {
	width: 64px;
	height: auto;
	border-radius: 6px;
	display: block;
}
.hh-bump__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.hh-bump__title {
	font-weight: 700;
	color: #3f5628;
}
.hh-bump__desc {
	font-size: 14px;
	color: #555;
}
.hh-bump__price del {
	color: #999;
	margin-right: 6px;
}
.hh-bump__price ins {
	color: #5B7B3A;
	font-weight: 700;
	text-decoration: none;
}
.hh-bump-badge {
	display: inline-block;
	font-size: 11px;
	background: #5B7B3A;
	color: #fff;
	padding: 1px 6px;
	border-radius: 4px;
	vertical-align: middle;
}

/* Progress bar */
.hh-bar-wrap {
	margin: 0 0 18px;
}
.hh-bar {
	background: #f2f3ee;
	border-radius: 10px;
	padding: 12px 16px;
}
.hh-bar__text {
	font-weight: 600;
	margin-bottom: 8px;
	color: #3f5628;
}
.hh-bar__track {
	height: 10px;
	background: #dfe3d6;
	border-radius: 6px;
	overflow: hidden;
}
.hh-bar__fill {
	height: 100%;
	background: linear-gradient(90deg, #7ea24f, #5B7B3A);
	transition: width .4s ease;
}
.hh-bar--done .hh-bar__fill {
	background: #5B7B3A;
}
.hh-gift-price {
	color: #5B7B3A;
	font-weight: 700;
}

/* Upsell */
.hh-upsell {
	border: 2px solid #5B7B3A;
	border-radius: 12px;
	padding: 20px;
	margin: 22px 0;
	background: #fff;
}
.hh-upsell.hh-loading {
	opacity: .6;
	pointer-events: none;
}
.hh-upsell__title {
	margin: 0 0 14px;
	color: #3f5628;
}
.hh-upsell__inner {
	display: flex;
	gap: 16px;
	align-items: center;
}
.hh-upsell__media img {
	width: 110px;
	height: auto;
	border-radius: 8px;
	display: block;
}
.hh-upsell__name {
	font-weight: 700;
	font-size: 17px;
}
.hh-upsell__price {
	margin: 6px 0;
}
.hh-upsell__price del {
	color: #999;
	margin-right: 8px;
}
.hh-upsell__price ins {
	color: #5B7B3A;
	font-weight: 700;
	text-decoration: none;
	font-size: 18px;
}
.hh-upsell__pct {
	display: inline-block;
	background: #d33;
	color: #fff;
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 4px;
	margin-left: 8px;
}
.hh-upsell__countdown {
	margin: 8px 0;
	font-size: 14px;
	color: #555;
}
.hh-upsell__timer {
	font-weight: 700;
	color: #d33;
}
.hh-upsell__actions {
	display: flex;
	gap: 10px;
	margin-top: 10px;
	flex-wrap: wrap;
}
.hh-upsell__msg {
	margin-top: 10px;
	color: #d33;
	font-weight: 600;
}
.hh-upsell--expired {
	opacity: .75;
}

@media (max-width: 480px) {
	.hh-upsell__inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Upsell popup / modal */
.hh-upsell-overlay {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, .55);
	z-index: 999999;
	opacity: 0;
	transition: opacity .25s ease;
}
.hh-upsell-overlay.is-open {
	opacity: 1;
}
.hh-upsell-modal {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: 90vh;
	overflow: auto;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
	transform: translateY(12px) scale(.98);
	transition: transform .25s ease;
}
.hh-upsell-overlay.is-open .hh-upsell-modal {
	transform: none;
}
.hh-upsell-modal .hh-upsell {
	margin: 0;
	border: none;
	border-radius: 12px;
}
.hh-upsell-modal__close {
	position: absolute;
	top: 6px;
	right: 10px;
	z-index: 2;
	padding: 4px 8px;
	background: transparent;
	border: none;
	font-size: 26px;
	line-height: 1;
	color: #999;
	cursor: pointer;
}
.hh-upsell-modal__close:hover {
	color: #333;
}
body.hh-upsell-modal-open {
	overflow: hidden;
}
