/* ==========================================================================
   BA Liquidation - interactive tools
   Styles the four shortcode widgets ([ba_delivery_estimator], [ba_savings_calc],
   [ba_financing_calc], [ba_fit_checker]). Reuses the main.css design tokens.
   ========================================================================== */

.ba-tool {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 22px;
	box-shadow: var(--shadow-sm);
	margin-bottom: 20px;
	max-width: 100%;
}

.ba-tool .eyebrow {
	margin-bottom: 8px;
}

.ba-tool-title {
	font-size: 20px;
	margin: 0 0 4px;
}

.ba-tool-intro {
	color: var(--muted);
	font-size: 14.5px;
	margin: 0 0 18px;
}

/* responsive input grid */
.ba-tool-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 14px;
	margin-bottom: 18px;
}

.ba-tool-grid .field {
	margin-bottom: 0;
	min-width: 0;
}

.ba-tool-grid .field input,
.ba-tool-grid .field select {
	max-width: 100%;
}

/* hide-until-needed helper (custom miles input) */
.ba-tool .ba-hide {
	display: none;
}

/* the Calculate button */
.ba-tool > .btn {
	margin-top: 2px;
}

/* result panel: hidden until the .on modifier is added */
.ba-tool-result {
	display: none;
	margin-top: 18px;
	background: var(--bg-2);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	padding: 18px 20px;
}

.ba-tool-result.on {
	display: block;
}

.ba-tool-result p {
	color: var(--body);
	font-size: 14.5px;
	margin: 0 0 8px;
}

.ba-tool-result p:last-child {
	margin-bottom: 0;
}

.ba-tool-result strong {
	color: var(--ink);
	font-weight: 700;
}

/* the big headline figure */
.ba-tool-figure {
	font-family: var(--sans);
	font-size: 30px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: var(--navy);
	margin-bottom: 10px;
}

/* accent variant for savings-style figures */
.ba-tool[data-ba-tool="savings"] .ba-tool-figure {
	color: var(--accent);
}

/* fit checker states */
.ba-tool-figure.ba-fit-pass {
	color: var(--good);
}

.ba-tool-figure.ba-fit-tight {
	color: var(--accent);
}

.ba-tool-figure.ba-fit-fail {
	color: var(--sale);
}

/* fine print inside results */
.ba-tool-note {
	font-size: 12.5px;
	color: var(--muted);
	margin: 12px 0 0;
	padding-top: 12px;
	border-top: 1px solid var(--line);
}

@media (max-width: 480px) {
	.ba-tool {
		padding: 18px;
	}
	.ba-tool-figure {
		font-size: 26px;
	}
	.ba-tool > .btn {
		width: 100%;
	}
}
