/**
 * Woo Discount Manager — Elegant theme skin.
 *
 * Loaded only when the Elegant theme is active, after frontend.css.
 * Re-themes every alert to the drawer's design language: Jost, monochrome,
 * hairline borders, square corners, quiet motion. Success state uses the
 * theme's coupon-saved green (#2e7d32).
 */

/* ========================================
   Shared shell reset
   ======================================== */
.wdm-incentive-message,
.wdm-gift-incentive-message,
.wdm-free-shipping-progress {
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	animation: none;
	margin: 0 0 14px;
	padding: 0;
	font-family: "Jost", var(--FONT-STACK-BODY, sans-serif);
	color: var(--COLOR-TEXT, #111);
}

/* Inside the drawer the .cart-drawer__alerts wrapper spaces the alerts */
.cart-drawer__alerts .wdm-incentive-message,
.cart-drawer__alerts .wdm-gift-incentive-message,
.cart-drawer__alerts .wdm-reward-bar,
.cart-drawer__alerts .wdm-free-shipping-progress {
	margin: 0;
}

/* ========================================
   Free shipping progress
   ======================================== */
.wdm-free-shipping-progress {
	text-align: center;
}

.wdm-progress-bar {
	height: 6px;
	background: rgba(0, 0, 0, 0.08);
	border-radius: 3px;
	box-shadow: none;
	margin: 0 0 9px;
}

.wdm-progress-fill {
	background: var(--FREE-SHIPPING-GRADIENT, linear-gradient(to right, #4d4d4d, #000));
	border-radius: 3px;
}

/* No candy shine sweep */
.wdm-progress-fill::after {
	display: none;
}

.wdm-progress-text {
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.01em;
	color: var(--COLOR-TEXT, #111);
}

.wdm-progress-text strong {
	color: inherit;
	font-weight: 600;
}

/* Drop the truck emoji; keep the checkmark once qualified */
.wdm-progress-icon {
	display: none;
}

.wdm-free-shipping-progress.qualified .wdm-progress-icon {
	display: inline;
	margin-right: 6px;
	font-size: 13px;
	vertical-align: baseline;
	color: #2e7d32;
}

[dir="rtl"] .wdm-free-shipping-progress.qualified .wdm-progress-icon {
	margin-right: 0;
	margin-left: 6px;
}

/* Qualified: quiet success green */
.wdm-free-shipping-progress.qualified {
	background: none;
	border: 0;
	box-shadow: none;
}

.wdm-free-shipping-progress.qualified .wdm-progress-bar {
	background: rgba(46, 125, 50, 0.16);
}

.wdm-free-shipping-progress.qualified .wdm-progress-fill {
	background: #2e7d32;
}

.wdm-free-shipping-progress.qualified .wdm-progress-text {
	color: #2e7d32;
}

.wdm-free-shipping-progress.qualified .wdm-progress-text strong {
	color: inherit;
}

/* ========================================
   Discount + gift incentive messages
   ======================================== */
.wdm-incentive-message,
.wdm-gift-incentive-message {
	border: 1px solid rgba(0, 0, 0, 0.14);
	padding: 10px 14px;
	font-size: 12.5px;
	line-height: 1.55;
	text-align: center;
}

.wdm-incentive-message strong,
.wdm-gift-incentive-message strong {
	color: inherit;
	font-weight: 600;
}

/* Emojis clash with the theme — text carries the message */
.wdm-incentive-icon {
	display: none;
}

/* ========================================
   Progressive reward ticket (.wdm-pm)
   ======================================== */
.wdm-reward-bar.wdm-pm {
	/* Re-point the ticket's palette at the theme's monochrome tokens */
	--wdm-green: #111;
	--wdm-green-deep: #000;
	--wdm-ink: var(--COLOR-TEXT, #111);
	--wdm-muted: #555;

	margin: 0 0 14px;
	background: transparent;
	border: 1px solid rgba(0, 0, 0, 0.14);
	border-radius: 0;
	box-shadow: none;
	animation: none;
	font-family: "Jost", var(--FONT-STACK-BODY, sans-serif);
	font-size: 13px;
}

.wdm-pm__main {
	padding: 12px 14px;
	background: transparent;
}

.wdm-pm__icon {
	display: none;
}

.wdm-pm__title {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.wdm-pm__sub {
	font-size: 12px;
}

.wdm-pm__track {
	height: 6px;
	border-radius: 3px;
	background: rgba(0, 0, 0, 0.08);
}

.wdm-pm__fill {
	border-radius: 3px;
	background: var(--FREE-SHIPPING-GRADIENT, linear-gradient(to right, #4d4d4d, #000));
}

.wdm-pm__fill::after {
	display: none;
}

.wdm-pm__reward {
	padding: 12px 16px;
	background: transparent;
	border-left: 1px dashed rgba(0, 0, 0, 0.25);
}

.wdm-pm__reward::before,
.wdm-pm__reward::after {
	background: var(--COLOR-BG, #fbfbf9);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.wdm-pm__reward-pct {
	font-size: 18px;
	font-weight: 600;
	color: #000;
}

/* ========================================
   Checkout page — alerts above the form
   ======================================== */
.woocommerce-checkout .wdm-free-shipping-progress,
.woocommerce-checkout .wdm-incentive-message,
.woocommerce-checkout .wdm-gift-incentive-message,
.woocommerce-checkout .wdm-reward-bar {
	max-width: 688px;
	margin: 0 auto 16px;
}

.woocommerce-checkout .wdm-free-shipping-progress:first-of-type {
	margin-top: 38px;
}

.woocommerce-checkout .wdm-progress-text {
	font-size: 14px;
}

/* ========================================
   Badges
   ======================================== */
.wdm-gift-badge,
.wdm-gift-badge-small {
	background: #000;
	color: #fff;
	border-radius: 0;
	box-shadow: none;
	animation: none;
	font-family: "Jost", var(--FONT-STACK-BODY, sans-serif);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 3px 8px;
}

.wdm-catalog-discount-badge {
	background: var(--COLOR-SALE-BG, #f7e9de);
	color: var(--COLOR-SALE-TEXT, #212121);
	border-radius: 0;
	font-size: 11px;
	font-weight: 500;
	padding: 2px 7px;
}
