/* Generated from ys-progress-bar.css; scoped to the shared Free preview. */
/* =========================================================================
   You Save for WooCommerce — Progress Bar frontend styles
   Rendered by Ys_PB_Renderer; displayed on Classic Cart / Classic Checkout.
   Figma reference: node 3691:1190 (You Save v2 — Progress Bar).
   ========================================================================= */

/* Wrapper — self-contained card. Always present so WC cart fragments can
   locate and replace it on AJAX cart updates, even when the bar is empty.

   Width is intentionally left to the container. On Classic Checkout the bar
   hooks inside #order_review (woocommerce_checkout_order_review, priority 5),
   which is naturally sized to the right column by the theme. No max-width
   override is needed or wanted — adding one here would fight the container.   */
.ys-pb-shared-preview .ys-pb-wrap {
	box-sizing: border-box;
	width: 100%;
	margin: 0 0 16px;
	padding: 20px;
	background: #f2edff;
	border: 1px solid #dfe6f1;
	border-radius: 12px;
	font-size: 1rem;
	font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
	display: block;
}

/* Empty wrapper (NOT_APPLICABLE, ELIGIBILITY_UNCERTAIN) — remove all spacing/styling. */
.ys-pb-shared-preview .ys-pb-wrap:empty,
.ys-pb-shared-preview .ys-pb-wrap[aria-hidden="true"] {
	margin: 0;
	padding: 0;
	background: none;
	border: none;
}

/* ---- Message ---- (above the track)                                       */
.ys-pb-shared-preview .ys-pb-message {
	margin: 0 0 12px;
	padding: 0;
	color: #10132d;
	font-size: 0.9375rem; /* 15px — readable without overriding theme body size */
	font-weight: 600;
	line-height: 1.5;
}

/* ---- Progress track ---- */
/* Specificity (0,2,0) resists theme rules like `.woocommerce .ys-pb-track`. */
.ys-pb-shared-preview .ys-pb-wrap .ys-pb-track {
	display: block;
	height: 8px;
	background: rgba(100, 28, 255, 0.15);
	border-radius: 4px;
	overflow: hidden;
}

/* ---- Fill bar ---- */
.ys-pb-shared-preview .ys-pb-wrap .ys-pb-fill {
	height: 100%;
	background: #641cff;
	border-radius: 4px;
	transition: width 0.4s ease;
	min-width: 0;
}

/* ---- Success state ---- (ELIGIBLE: message + 100%-filled bar)             */
.ys-pb-shared-preview .ys-pb-success .ys-pb-message {
	color: #087a43;
	font-weight: 600;
}

/* Success fill: green to reinforce goal-reached state. */
.ys-pb-shared-preview .ys-pb-success .ys-pb-wrap .ys-pb-fill,
.ys-pb-shared-preview .ys-pb-success.ys-pb-wrap .ys-pb-fill,
.ys-pb-shared-preview .ys-pb-success.ys-pb-surface .ys-pb-fill {
	background: #087a43;
}

/* Success track background stays neutral so the green fill reads clearly. */
.ys-pb-shared-preview .ys-pb-success.ys-pb-wrap .ys-pb-track,
.ys-pb-shared-preview .ys-pb-success.ys-pb-surface .ys-pb-track {
	background: rgba(8, 122, 67, 0.15);
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
	.ys-pb-shared-preview .ys-pb-wrap .ys-pb-fill {
		transition: none;
	}
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
	.ys-pb-shared-preview .ys-pb-wrap {
		margin: 0 0 12px;
		padding: 16px;
	}
}

@media (max-width: 480px) {
	.ys-pb-shared-preview .ys-pb-wrap {
		margin: 0 0 10px;
		padding: 14px;
		border-radius: 10px;
	}
	.ys-pb-shared-preview .ys-pb-wrap .ys-pb-track {
		height: 6px;
	}
}

/* ---- Qualifying line (below the track) ---- */
/* Shows "Qualifying: $X / $Y   Z%" — amount progress context for the customer. */
.ys-pb-shared-preview .ys-pb-qualifying-line {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 6px 0 0;
	padding: 0;
	font-size: 0.75rem;
	color: rgba(16, 19, 45, 0.55);
	line-height: 1.4;
}

.ys-pb-shared-preview .ys-pb-qualifying-pct {
	font-weight: 600;
	color: #641cff;
	font-size: 0.75rem;
}

.ys-pb-shared-preview .ys-pb-success .ys-pb-qualifying-pct {
	color: #087a43;
}

/* ---- Coupon reveal (Cart Discount ELIGIBLE, Free edition) ---- */
/* Card-style reveal: label + prominent code. No Apply button.
   Customer uses WooCommerce's standard coupon-entry field.         */
.ys-pb-shared-preview .ys-pb-coupon-reveal {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 10px 0 0;
	padding: 10px 12px;
	border: 1.5px dashed #087a43;
	border-radius: 8px;
	background: rgba(8, 122, 67, 0.04);
}

.ys-pb-shared-preview .ys-pb-coupon-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(8, 122, 67, 0.65);
	line-height: 1.4;
}

.ys-pb-shared-preview .ys-pb-coupon-code {
	display: block;
	font-family: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Consolas, monospace;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #087a43;
	line-height: 1.4;
}

/* ---- Admin settings tab styles ---- */
.ys-pb-shared-preview .ys-pb-admin-wrap {
	max-width: 640px;
}

.ys-pb-shared-preview .ys-pb-admin-wrap h2 {
	margin-top: 16px;
}

.ys-pb-shared-preview .ys-pb-surface {
	box-sizing: border-box;
	width: 100%;
	margin: 0 0 16px;
	padding: 20px;
	background: #f2edff;
	border: 1px solid #dfe6f1;
	border-radius: 12px;
	font-size: 1rem;
	font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
	display: block;
}

.ys-pb-shared-preview .ys-pb-attributed{padding:0;background:transparent;border:0}.ys-pb-shared-preview .ys-pb-surface{margin-bottom:0}.ys-pb-shared-preview .ys-pb-attribution{margin:8px 0 0;text-align:center;font-size:12px;color:#444;background:#fff;line-height:1.5}.ys-pb-shared-preview .ys-pb-attribution a{color:inherit;text-decoration:underline}.ys-pb-shared-preview .ys-pb-attribution a:focus-visible{outline:2px solid currentColor;outline-offset:2px}
