/**
 * SDE Smart Discount Engine — Front-end Styles
 *
 * @package SDE_Smart_Discount_Engine
 */

/* ── Progress bar wrapper ─────────────────────────────────────────────────
   Host plugin drops:  <div id="sde_discount_engine_progress_bar"></div>
   anywhere in the mini-cart template.
   ──────────────────────────────────────────────────────────────────────── */
#sde_discount_engine_progress_bar {
	padding: 10px 14px 6px;
}

.sde-progress {
	font-size: 13px;
	line-height: 1.4;
}

.sde-progress__message {
	margin: 0 0 6px;
	color: #444;
	font-weight: 500;
}

/* Track */
.sde-progress__track {
	width: 100%;
	height: 6px;
	background: #e5e5e5;
	border-radius: 999px;
	overflow: hidden;
}

/* Fill */
.sde-progress__bar {
	height: 100%;
	width: 0;
	background: linear-gradient( 90deg, #f0a500 0%, #e67e00 100% );
	border-radius: 999px;
	transition: width 0.4s ease;
}

.sde-progress__bar--unlocked {
	background: linear-gradient( 90deg, #27ae60 0%, #1e8449 100% );
}

.sde-progress__pct {
	margin: 4px 0 0;
	font-size: 11px;
	color: #999;
	text-align: right;
}

/* ── Savings badge (progress bar area) ───────────────────────────────────── */
.sde-savings-badge {
	display: inline-block;
	margin-top: 6px;
	padding: 3px 10px;
	background: #27ae60;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	border-radius: 999px;
	letter-spacing: 0.3px;
}

/* ── Product grid — discounted price ─────────────────────────────────────── */
.sde-discounted-price {
	display: inline-block;
	margin-left: 6px;
	color: #27ae60;
	font-weight: 700;
	font-size: 1em;
}

/* ── Product grid — savings badge ────────────────────────────────────────── */
.sde-savings-badge--grid {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
	font-size: 11px;
	padding: 2px 8px;
	/* Inherits background/color from .sde-savings-badge */
}

/* Ensure the product card has position context for the badge */
.sde-product-card,
.products .product {
	position: relative;
}