/**
 * MH Smart Offers — Frontend styles (theme-resistant).
 *
 * Three skins, scoped under .mh-smart-offers with high specificity
 * and `!important` on critical visual properties to override the host
 * theme's defaults reliably.
 *
 *   .mh-smart-offers--classic
 *   .mh-smart-offers--premium
 *   .mh-smart-offers--bold
 */

/* =========================================================
   Wrapper reset + base
   ========================================================= */
.mh-smart-offers[data-mh-offers],
.mh-smart-offers[data-mh-offers] * {
	box-sizing: border-box !important;
}

.mh-smart-offers[data-mh-offers] {
	margin: 22px 0 !important;
	padding: 0 !important;
	font-family: inherit;
	color: inherit;
	line-height: 1.5 !important;
	direction: rtl;
	text-align: start !important;
}

.mh-smart-offers[data-mh-offers] .mh-smart-offers__list {
	display: flex !important;
	flex-direction: column !important;
	gap: 14px !important;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
}

.mh-smart-offers[data-mh-offers] .mh-smart-offers__radio {
	position: absolute !important;
	opacity: 0 !important;
	pointer-events: none !important;
	width: 1px !important;
	height: 1px !important;
}

.mh-smart-offers[data-mh-offers] .mh-smart-offers__card {
	display: flex !important;
	align-items: center !important;
	gap: 14px !important;
	padding: 16px 18px !important;
	margin: 0 !important;
	border-radius: 12px !important;
	cursor: pointer !important;
	position: relative !important;
	text-decoration: none !important;
	transition: border-color .18s ease, box-shadow .2s ease, background .18s ease, transform .18s ease !important;
	min-height: auto !important;
	width: 100% !important;
	float: none !important;
}

.mh-smart-offers[data-mh-offers] .mh-smart-offers__card:hover {
	transform: translateY(-1px) !important;
}

.mh-smart-offers[data-mh-offers] .mh-smart-offers__body {
	flex: 1 1 auto !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 6px !important;
	min-width: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
}

.mh-smart-offers[data-mh-offers] .mh-smart-offers__title {
	font-weight: 700 !important;
	font-size: 1rem !important;
	line-height: 1.5 !important;
	color: inherit !important;
	margin: 0 !important;
}

.mh-smart-offers[data-mh-offers] .mh-smart-offers__desc {
	color: #6b7280 !important;
	font-size: .88rem !important;
	line-height: 1.5 !important;
	margin: 0 !important;
}

.mh-smart-offers[data-mh-offers] .mh-smart-offers__pricing {
	display: inline-flex !important;
	flex-wrap: wrap !important;
	align-items: baseline !important;
	gap: 10px !important;
	margin: 0 !important;
}

.mh-smart-offers[data-mh-offers] .mh-smart-offers__price {
	font-weight: 700 !important;
	font-size: 1.05rem !important;
	color: inherit !important;
}
.mh-smart-offers[data-mh-offers] .mh-smart-offers__price .woocommerce-Price-amount,
.mh-smart-offers[data-mh-offers] .mh-smart-offers__price bdi {
	color: inherit !important;
	font-weight: 700 !important;
}

.mh-smart-offers[data-mh-offers] .mh-smart-offers__compare {
	color: #9ca3af !important;
	text-decoration: line-through !important;
	font-size: .9rem !important;
	font-weight: 500 !important;
}
.mh-smart-offers[data-mh-offers] .mh-smart-offers__compare .woocommerce-Price-amount,
.mh-smart-offers[data-mh-offers] .mh-smart-offers__compare bdi {
	color: #9ca3af !important;
	text-decoration: line-through !important;
}

.mh-smart-offers[data-mh-offers] .mh-smart-offers__savings {
	color: #16a34a !important;
	font-size: .85rem !important;
	font-weight: 700 !important;
}
.mh-smart-offers[data-mh-offers] .mh-smart-offers__savings bdi { color: #16a34a !important; }

/* Cart locked qty (used by DisplayHandler). */
.mh-smart-offers__cart-qty {
	display: inline-block !important;
	padding: 4px 10px !important;
	background: #f3f4f6 !important;
	border-radius: 6px !important;
	font-weight: 700 !important;
}

/* Highlight pulse — used by the sticky-button snippet. */
@keyframes mhPulseHighlight {
	0%   { box-shadow: 0 0 0 0 rgba(255, 87, 34, .55); }
	70%  { box-shadow: 0 0 0 20px rgba(255, 87, 34, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 87, 34, 0); }
}
.mh-smart-offers[data-mh-offers].highlight-offer,
.mh-smart-offers[data-mh-offers].mh-highlight {
	animation: mhPulseHighlight 1.2s ease-out 2 !important;
	border-radius: 14px !important;
}

/* =========================================================
   Header (shared structure across skins)
   ========================================================= */
.mh-smart-offers[data-mh-offers] .mh-smart-offers__header {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	margin: 0 0 12px 0 !important;
	padding: 0 !important;
}
.mh-smart-offers[data-mh-offers] .mh-smart-offers__heading {
	font-weight: 800 !important;
	font-size: 1.02rem !important;
	color: #111827 !important;
}
.mh-smart-offers[data-mh-offers] .mh-smart-offers__icon {
	font-size: 1.05rem !important;
}

/* =========================================================
   Skin 1 — Classic Clean
   ========================================================= */
.mh-smart-offers--classic[data-mh-offers] .mh-smart-offers__card {
	background: #ffffff !important;
	border: 1px solid #e5e7eb !important;
}
.mh-smart-offers--classic[data-mh-offers] .mh-smart-offers__card:hover {
	border-color: #9ca3af !important;
	box-shadow: 0 4px 14px rgba(0,0,0,.05) !important;
}
.mh-smart-offers--classic[data-mh-offers] .mh-smart-offers__card.is-selected {
	border-color: #2271b1 !important;
	background: #f5faff !important;
	box-shadow: 0 0 0 2px rgba(34,113,177,.18) !important;
}

.mh-smart-offers--classic[data-mh-offers] .mh-smart-offers__indicator {
	flex: 0 0 auto !important;
	width: 20px !important;
	height: 20px !important;
	border-radius: 50% !important;
	border: 2px solid #cbd5e1 !important;
	background: #ffffff !important;
	position: relative !important;
	transition: border-color .18s ease !important;
}
.mh-smart-offers--classic[data-mh-offers] .mh-smart-offers__card.is-selected .mh-smart-offers__indicator {
	border-color: #2271b1 !important;
}
.mh-smart-offers--classic[data-mh-offers] .mh-smart-offers__card.is-selected .mh-smart-offers__indicator::after {
	content: "" !important;
	position: absolute !important;
	inset: 3px !important;
	border-radius: 50% !important;
	background: #2271b1 !important;
}

.mh-smart-offers--classic[data-mh-offers] .mh-smart-offers__title-row {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 8px !important;
}

.mh-smart-offers--classic[data-mh-offers] .mh-smart-offers__badge {
	display: inline-block !important;
	padding: 3px 10px !important;
	border-radius: 999px !important;
	color: #ffffff !important;
	font-size: .75rem !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
}
.mh-smart-offers--classic[data-mh-offers] .mh-smart-offers__badge--seller { background: #2563eb !important; }
.mh-smart-offers--classic[data-mh-offers] .mh-smart-offers__badge--value  { background: #16a34a !important; }

.mh-smart-offers--classic[data-mh-offers] .mh-smart-offers__percent {
	display: inline-block !important;
	padding: 3px 9px !important;
	border-radius: 6px !important;
	background: #dcfce7 !important;
	color: #15803d !important;
	font-size: .78rem !important;
	font-weight: 700 !important;
}

/* =========================================================
   Skin 2 — Premium Coupon (dashed purple)
   ========================================================= */
.mh-smart-offers--premium[data-mh-offers] .mh-smart-offers__header {
	display: inline-flex !important;
	padding: 8px 14px !important;
	background: #f5f0ff !important;
	border-radius: 999px !important;
}
.mh-smart-offers--premium[data-mh-offers] .mh-smart-offers__heading {
	color: #7c3aed !important;
}

.mh-smart-offers--premium[data-mh-offers] .mh-smart-offers__card {
	background: #ffffff !important;
	border: 2px dashed #d8b4fe !important;
	padding: 18px 20px !important;
	gap: 16px !important;
}
.mh-smart-offers--premium[data-mh-offers] .mh-smart-offers__card:hover {
	border-color: #a78bfa !important;
}
.mh-smart-offers--premium[data-mh-offers] .mh-smart-offers__card.is-selected {
	border-color: #7c3aed !important;
	background: #f5f0ff !important;
	box-shadow: 0 4px 22px rgba(124,58,237,.18) !important;
}

.mh-smart-offers--premium[data-mh-offers] .mh-smart-offers__indicator {
	flex: 0 0 auto !important;
	width: 26px !important;
	height: 26px !important;
	border-radius: 50% !important;
	border: 2px solid #d8b4fe !important;
	background: #ffffff !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	color: transparent !important;
	transition: all .18s ease !important;
}
.mh-smart-offers--premium[data-mh-offers] .mh-smart-offers__card.is-selected .mh-smart-offers__indicator {
	background: #7c3aed !important;
	border-color: #7c3aed !important;
	color: #ffffff !important;
}

.mh-smart-offers--premium[data-mh-offers] .mh-smart-offers__title-row {
	display: flex !important;
	flex-direction: column !important;
	gap: 2px !important;
}
.mh-smart-offers--premium[data-mh-offers] .mh-smart-offers__title {
	font-size: 1.04rem !important;
	color: #1f2937 !important;
}
.mh-smart-offers--premium[data-mh-offers] .mh-smart-offers__title-compare {
	font-size: .82rem !important;
	color: #6b7280 !important;
	font-weight: 500 !important;
	display: block !important;
	margin-top: 4px !important;
}

.mh-smart-offers--premium[data-mh-offers] .mh-smart-offers__shipping {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	color: #16a34a !important;
	font-size: .84rem !important;
	font-weight: 600 !important;
}

.mh-smart-offers--premium[data-mh-offers] .mh-smart-offers__pill {
	display: inline-block !important;
	align-self: flex-start !important;
	padding: 6px 14px !important;
	border-radius: 999px !important;
	background: #facc15 !important;
	color: #1f2937 !important;
	font-size: .8rem !important;
	font-weight: 700 !important;
	margin-top: 4px !important;
}
.mh-smart-offers--premium[data-mh-offers] .mh-smart-offers__pill--seller {
	background: #f59e0b !important;
	color: #ffffff !important;
}
.mh-smart-offers--premium[data-mh-offers] .mh-smart-offers__pill--value {
	background: #7c3aed !important;
	color: #ffffff !important;
}
.mh-smart-offers--premium[data-mh-offers] .mh-smart-offers__pill--neutral {
	background: #facc15 !important;
	color: #1f2937 !important;
}

.mh-smart-offers--premium[data-mh-offers] .mh-smart-offers__price-col {
	flex: 0 0 auto !important;
	margin-inline-start: auto !important;
	text-align: end !important;
	white-space: nowrap !important;
}
.mh-smart-offers--premium[data-mh-offers] .mh-smart-offers__price-col .mh-smart-offers__price {
	font-size: 1.2rem !important;
	font-weight: 800 !important;
	color: #7c3aed !important;
}
.mh-smart-offers--premium[data-mh-offers] .mh-smart-offers__price-col .mh-smart-offers__price .woocommerce-Price-amount,
.mh-smart-offers--premium[data-mh-offers] .mh-smart-offers__price-col .mh-smart-offers__price bdi {
	color: #7c3aed !important;
}

/* =========================================================
   Skin 3 — Bold Black (sharp + top floating badge)
   ========================================================= */
.mh-smart-offers--bold[data-mh-offers] .mh-smart-offers__list {
	gap: 24px !important;
	padding-top: 14px !important;
}

.mh-smart-offers--bold[data-mh-offers] .mh-smart-offers__card {
	background: #ffffff !important;
	border: 2px solid #111111 !important;
	padding: 18px 20px !important;
	border-radius: 14px !important;
	overflow: visible !important;
	color: #111111 !important;
}
.mh-smart-offers--bold[data-mh-offers] .mh-smart-offers__card:hover {
	background: #f9fafb !important;
}
.mh-smart-offers--bold[data-mh-offers] .mh-smart-offers__card.is-selected {
	background: #111111 !important;
	color: #ffffff !important;
	box-shadow: 0 6px 20px rgba(0,0,0,.18) !important;
}
.mh-smart-offers--bold[data-mh-offers] .mh-smart-offers__card.is-selected .mh-smart-offers__title,
.mh-smart-offers--bold[data-mh-offers] .mh-smart-offers__card.is-selected .mh-smart-offers__price,
.mh-smart-offers--bold[data-mh-offers] .mh-smart-offers__card.is-selected bdi {
	color: #ffffff !important;
}

.mh-smart-offers--bold[data-mh-offers] .mh-smart-offers__indicator {
	flex: 0 0 auto !important;
	width: 22px !important;
	height: 22px !important;
	border-radius: 50% !important;
	border: 2px solid #111111 !important;
	background: #ffffff !important;
	position: relative !important;
}
.mh-smart-offers--bold[data-mh-offers] .mh-smart-offers__card.is-selected .mh-smart-offers__indicator {
	background: #ffffff !important;
	border-color: #ffffff !important;
}
.mh-smart-offers--bold[data-mh-offers] .mh-smart-offers__card.is-selected .mh-smart-offers__indicator::after {
	content: "" !important;
	position: absolute !important;
	inset: 4px !important;
	border-radius: 50% !important;
	background: #111111 !important;
}

.mh-smart-offers--bold[data-mh-offers] .mh-smart-offers__title {
	font-size: 1.02rem !important;
	line-height: 1.55 !important;
}
.mh-smart-offers--bold[data-mh-offers] .mh-smart-offers__desc {
	color: inherit !important;
	opacity: .7 !important;
}

.mh-smart-offers--bold[data-mh-offers] .mh-smart-offers__top-badge {
	position: absolute !important;
	top: -14px !important;
	inset-inline-start: 16px !important;
	background: #111111 !important;
	color: #ffffff !important;
	padding: 5px 14px !important;
	border-radius: 999px !important;
	font-size: .78rem !important;
	font-weight: 700 !important;
	border: 2px solid #ffffff !important;
	z-index: 2 !important;
	white-space: nowrap !important;
	line-height: 1.4 !important;
}
.mh-smart-offers--bold[data-mh-offers] .mh-smart-offers__top-badge--seller { background: #2563eb !important; }
.mh-smart-offers--bold[data-mh-offers] .mh-smart-offers__top-badge--value  { background: #16a34a !important; }
.mh-smart-offers--bold[data-mh-offers] .mh-smart-offers__top-badge--save   { background: #dc2626 !important; }
.mh-smart-offers--bold[data-mh-offers] .mh-smart-offers__top-badge bdi { color: #ffffff !important; }

.mh-smart-offers--bold[data-mh-offers] .mh-smart-offers__card.is-selected .mh-smart-offers__top-badge {
	border-color: #111111 !important;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 520px) {
	.mh-smart-offers[data-mh-offers] .mh-smart-offers__card { padding: 14px !important; gap: 10px !important; }
	.mh-smart-offers[data-mh-offers] .mh-smart-offers__price { font-size: 1rem !important; }
	.mh-smart-offers--premium[data-mh-offers] .mh-smart-offers__price-col .mh-smart-offers__price { font-size: 1.08rem !important; }
	.mh-smart-offers--bold[data-mh-offers] .mh-smart-offers__top-badge { font-size: .72rem !important; padding: 4px 10px !important; }
}
