/* ---- Full specs disclosure on a result card ---- */
.bix-fx-specs { margin-top: 10px; border-top: 1px solid #f0ede6; padding-top: 8px; }
.bix-fx-specs > summary {
	cursor: pointer; list-style: none; font-family: 'JetBrains Mono', monospace;
	font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #d81f14;
	font-weight: 700; padding: 2px 0;
}
.bix-fx-specs > summary::-webkit-details-marker { display: none; }
.bix-fx-specs > summary::after { content: ' +'; font-weight: 700; }
.bix-fx-specs[open] > summary::after { content: ' \2212'; }
.bix-fx-specs > summary:hover { color: #161311; }
.bix-fx-specs dl {
	display: grid; grid-template-columns: auto 1fr; gap: 3px 10px;
	margin: 8px 0 0; font-size: 11.5px; line-height: 1.35;
}
.bix-fx-specs dt { color: #8f8c84; font-weight: 600; white-space: nowrap; }
.bix-fx-specs dd { margin: 0; font-weight: 700; color: #161311; }
.bix-fx-specsrc { margin: 8px 0 0; font-size: 9.5px; color: #a8a49c; line-height: 1.35; }

.bix-finder-embed { min-height: 60px; }

/* ============================================================
   Battery Finder — horizontal, fits a hero column or full width
   ============================================================ */
.bix-fx { font-family: 'Barlow', system-ui, sans-serif; color: #161311; }

.bix-fx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.bix-fx-chip {
	font-family: 'Barlow', sans-serif; font-size: 12.5px; font-weight: 700;
	background: #fff; color: #57544b; border: 1px solid #e6e2d9;
	border-radius: 20px; padding: 7px 13px; cursor: pointer;
	transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.bix-fx-chip:hover { border-color: #d81f14; color: #d81f14; }
.bix-fx-chip.is-on { background: #161311; border-color: #161311; color: #fff; }

/* control row — horizontal, wraps on narrow containers */
.bix-fx-controls { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: start; }
.bix-fx-field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 130px; min-width: 0; }
.bix-fx-label {
	font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .08em;
	text-transform: uppercase; color: #8f8c84;
}
.bix-fx-field select {
	width: 100%; box-sizing: border-box; font-family: 'Barlow', sans-serif;
	font-size: 14.5px; font-weight: 600; color: #161311;
	background: #fff; border: 1px solid #d9d5cc; border-radius: 8px;
	padding: 10px 11px; cursor: pointer;
}
.bix-fx-field select:disabled { background: #f4f2ed; color: #b3afa5; cursor: not-allowed; }
.bix-fx-field select:focus { outline: 2px solid #d81f14; outline-offset: 1px; }
.bix-fx-go {
	flex: 0 0 auto; align-self: start; margin-top: 17px;
	font-family: 'Barlow Semi Condensed', sans-serif; font-style: italic;
	font-weight: 800; font-size: 18px; text-transform: uppercase; letter-spacing: .02em;
	background: #FFD814; color: #161311; border: 0; border-radius: 8px;
	padding: 11px 22px; cursor: pointer; white-space: nowrap;
}
.bix-fx-go:hover { background: #ffe04a; }
.bix-fx-go:disabled { background: #ece9e1; color: #b3afa5; cursor: not-allowed; }

.bix-fx-note {
	font-size: 13.5px; line-height: 1.5; color: #57544b;
	background: #f4f2ed; border: 1px solid #e6e2d9; border-radius: 9px; padding: 11px 13px;
}
.bix-fx-note-warn { border-color: #f0c9c5; background: #fdf4f3; color: #8a2b22; margin-top: 12px; }

/* result header */
.bix-fx-results:not(:empty) { margin-top: 14px; }
.bix-fx-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.bix-fx-fit {
	font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .06em;
	text-transform: uppercase; font-weight: 500;
	padding: 5px 10px; border-radius: 20px; white-space: nowrap;
}
.bix-fx-fit.ok    { background: #e7f6ec; color: #1c7a44; }
.bix-fx-fit.exact { background: #e7f6ec; color: #1c7a44; }
.bix-fx-fit.maybe { background: #fdf2e7; color: #a55b12; }
.bix-fx-veh { font-size: 14px; font-weight: 700; color: #26221f; }
.bix-fx-change {
	margin-left: auto; background: none; border: 0; cursor: pointer;
	font-family: 'Barlow', sans-serif; font-size: 13px; font-weight: 700;
	color: #d81f14; text-decoration: underline; padding: 4px;
}

/* card rail — horizontal scroll, no vertical explosion */
.bix-fx-rail {
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(196px, 1fr);
	gap: 12px; overflow-x: auto; padding-bottom: 6px;
	scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.bix-fx-rail > * { scroll-snap-align: start; }
.bix-fx-rail:has(> :only-child) { grid-auto-columns: minmax(196px, 340px); }

.bix-fx-card {
	background: #fff; border: 1px solid #e6e2d9; border-radius: 12px;
	overflow: hidden; display: flex; flex-direction: column; min-width: 0;
	transition: transform .16s ease, box-shadow .16s ease;
}
.bix-fx-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0,0,0,.12); }
.bix-fx-card.is-featured { border: 2px solid #d81f14; }

.bix-fx-media {
	position: relative; height: 132px; background: #fff;
	display: flex; align-items: center; justify-content: center; padding: 12px;
	border-bottom: 1px solid #f0ede6;
}
.bix-fx-media img { max-height: 100%; max-width: 100%; object-fit: contain; }
.bix-fx-badge {
	position: absolute; top: 8px; left: 8px; color: #fff;
	font-size: 9px; font-weight: 800; letter-spacing: .06em;
	padding: 3px 8px; border-radius: 20px; white-space: nowrap;
}
.bix-fx-repi {
	position: absolute; bottom: 6px; right: 8px; font-size: 9.5px; color: #a8a49b;
	font-family: 'JetBrains Mono', monospace; letter-spacing: .02em;
}

.bix-fx-body { padding: 12px; flex: 1; }
.bix-fx-brand { font-size: 10px; font-weight: 700; color: #8f8c84; letter-spacing: .04em; text-transform: uppercase; }
.bix-fx-name { font-weight: 800; font-size: 14px; line-height: 1.25; margin-top: 4px; text-wrap: pretty; }
.bix-fx-spec { font-size: 11.5px; color: #8f8c84; margin-top: 4px; }
.bix-fx-core {
	font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .06em;
	color: #8f8c84; margin-top: 3px;
}
.bix-fx-from {
	font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .1em;
	text-transform: uppercase; color: #8f8c84; font-weight: 700; margin-top: 8px;
}
.bix-fx-price {
	font-family: 'Barlow Semi Condensed', sans-serif; font-style: italic; font-weight: 800;
	font-size: 26px; margin-top: 8px; line-height: 1;
}
.bix-fx-from + .bix-fx-price { margin-top: 2px; }
.bix-fx-tiers {
	font-size: 11px; line-height: 1.45; color: #57544b; margin-top: 5px;
	padding-top: 5px; border-top: 1px solid #efece5;
}
.bix-fx-price-call { font-size: 17px; color: #57544b; }
.bix-fx-per { font-size: 13px; font-style: normal; font-weight: 600; color: #8f8c84; }
.bix-fx-set { font-size: 11.5px; font-weight: 700; color: #d81f14; margin-top: 2px; }
.bix-fx-msrp { font-size: 10px; color: #8f8c84; margin-top: 3px; line-height: 1.3; }
.bix-fx-note-sm { font-size: 11px; color: #57544b; background: #f4f2ed; border-radius: 6px; padding: 5px 7px; margin-top: 6px; line-height: 1.35; }
.bix-fx-warr { font-size: 10.5px; color: #8f8c84; margin-top: 5px; }
.bix-fx-more { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: #8f8c84; margin-left: auto; }
.bix-fx-toggle {
	flex: 0 0 auto;
	font-family: 'Barlow', sans-serif; font-size: 12.5px; font-weight: 800;
	color: #d81f14; background: none; border: 0; border-bottom: 2px solid #f0c9c5;
	padding: 2px 0; cursor: pointer; white-space: nowrap;
}
.bix-fx-toggle:hover { border-bottom-color: #d81f14; }
.bix-fx-sort {
	margin-left: auto; flex: 0 0 auto;
	display: inline-flex; align-items: center; gap: 6px;
}
.bix-fx-sort > span {
	font-family: 'JetBrains Mono', monospace; font-size: 10px;
	letter-spacing: .1em; text-transform: uppercase; color: #8f8c84;
}
.bix-fx-sort select {
	font-family: 'Barlow', sans-serif; font-size: 12.5px; font-weight: 700; color: #161311;
	background: #fff; border: 1px solid #d9d5cc; border-radius: 20px;
	padding: 5px 26px 5px 11px; cursor: pointer; max-width: 190px;
	appearance: none; -webkit-appearance: none;
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%238f8c84' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 10px center; background-size: 9px;
}
.bix-fx-sort select:hover { border-color: #161311; }
.bix-fx-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
	gap: 12px; margin-top: 12px;
}
.bix-fx-grid .bix-fx-card { width: auto; }
.bix-fx-hint { font-size: 10.5px; color: #8f8c84; line-height: 1.35; margin-top: 2px; }
.bix-fx-card.is-order { border-style: dashed; }

/* ---- Ask about fit ---- */
.bix-fx-ask {
	display: block; width: 100%; box-sizing: border-box; border: 0; border-top: 1px solid #f0ede6;
	background: #fff; color: #161311; font-family: 'Barlow', sans-serif;
	font-size: 12.5px; font-weight: 800; letter-spacing: .02em;
	padding: 10px 8px; cursor: pointer; text-align: center;
}
.bix-fx-ask:hover { background: #f4f2ed; color: #d81f14; }
.bix-fx-ask-wrap {
	position: fixed; inset: 0; z-index: 9000; background: rgba(22,19,17,.55);
	display: flex; align-items: center; justify-content: center; padding: 20px;
}
.bix-fx-ask-panel {
	position: relative; background: #fff; border-radius: 16px; padding: 26px;
	width: 100%; max-width: 470px; max-height: 90vh; overflow: auto;
	box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
.bix-fx-ask-x {
	position: absolute; top: 12px; right: 14px; border: 0; background: none;
	font-size: 26px; line-height: 1; color: #8f8c84; cursor: pointer; padding: 4px 8px;
}
.bix-fx-ask-x:hover { color: #d81f14; }
.bix-fx-ask-h {
	font-family: 'Barlow Semi Condensed', sans-serif; font-style: italic; font-weight: 800;
	font-size: 27px; text-transform: uppercase; line-height: 1; color: #161311;
}
.bix-fx-ask-sub { font-size: 13.5px; color: #57544b; margin-top: 7px; line-height: 1.45; }
.bix-fx-ask-sub a { color: #d81f14; font-weight: 800; }
.bix-fx-ask-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 4px; }
.bix-fx-ask-chips span {
	font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .04em;
	background: #f4f2ed; border: 1px solid #e6e2d9; border-radius: 20px;
	padding: 4px 10px; color: #57544b;
}
.bix-fx-ask-form { display: flex; flex-direction: column; gap: 11px; margin-top: 14px; }
.bix-fx-ask-row { display: flex; gap: 11px; }
.bix-fx-ask-row label { flex: 1 1 0; min-width: 0; }
.bix-fx-ask-form label { display: flex; flex-direction: column; gap: 4px; }
.bix-fx-ask-form label span {
	font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .07em;
	text-transform: uppercase; color: #8f8c84;
}
.bix-fx-ask-form input, .bix-fx-ask-form textarea {
	width: 100%; box-sizing: border-box; font-family: 'Barlow', sans-serif;
	font-size: 15px; color: #161311; background: #f4f2ed;
	border: 1px solid #d9d5cc; border-radius: 8px; padding: 11px 12px; resize: vertical;
}
.bix-fx-ask-form input:focus, .bix-fx-ask-form textarea:focus { outline: 2px solid #d81f14; outline-offset: 1px; background: #fff; }
.bix-fx-ask-send {
	font-family: 'Barlow Semi Condensed', sans-serif; font-style: italic; font-weight: 800;
	font-size: 20px; text-transform: uppercase; letter-spacing: .02em;
	background: #FFD814; color: #161311; border: 0; border-radius: 9px;
	padding: 13px 20px; cursor: pointer; margin-top: 3px;
}
.bix-fx-ask-send:hover { background: #ffe04a; }
.bix-fx-ask-send:disabled { opacity: .6; cursor: default; }
.bix-fx-ask-note { font-size: 11px; color: #8f8c84; line-height: 1.4; }
.bix-fx-ask-msg { font-size: 13px; color: #d81f14; font-weight: 700; }
.bix-fx-ask-ok { display: flex; flex-direction: column; gap: 7px; padding: 14px 0; }
.bix-fx-ask-ok strong { font-size: 19px; color: #161311; }
.bix-fx-ask-ok span { font-size: 13.5px; color: #57544b; line-height: 1.45; }
@media (max-width: 480px) { .bix-fx-ask-row { flex-direction: column; } }
.bix-fx-field input[type=search] {
	width: 100%; box-sizing: border-box; font-family: 'Barlow', sans-serif;
	font-size: 14.5px; font-weight: 600; color: #161311;
	background: #fff; border: 1px solid #d9d5cc; border-radius: 8px; padding: 10px 11px;
}
.bix-fx-field input[type=search]:focus { outline: 2px solid #d81f14; outline-offset: 1px; }

.bix-fx-cta {
	display: block; text-align: center; padding: 12px;
	background: #FFD814; color: #161311; text-decoration: none;
	font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .03em;
}
.bix-fx-cta:hover { background: #ffe04a; color: #161311; }
.bix-fx-dd { text-align: center; padding: 7px; font-size: 10.5px; color: #8f8c84; }
.bix-fx-dd img { height: 12px; vertical-align: middle; display: inline-block; }

/* no-result / fallback callout */
.bix-fx-callout {
	background: #161311; border-radius: 12px; padding: 20px; color: #c9c6bd;
}
.bix-fx-callout-h {
	font-family: 'Barlow Semi Condensed', sans-serif; font-style: italic; font-weight: 800;
	font-size: 22px; color: #fff; line-height: 1.05;
}
.bix-fx-callout-p { font-size: 13.5px; line-height: 1.5; margin-top: 7px; }
.bix-fx-callout-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.bix-fx-callout-btns .bix-fx-cta { border-radius: 8px; padding: 11px 16px; flex: 1 1 auto; }
.bix-fx-cta-alt { background: transparent !important; color: #FFD814 !important; border: 2px solid #FFD814; }
.bix-fx-cta-alt:hover { background: #FFD814 !important; color: #161311 !important; }

@media (max-width: 600px) {
	.bix-fx-field { flex: 1 1 100%; }
	.bix-fx-go { width: 100%; }
	.bix-fx-rail { grid-auto-columns: minmax(180px, 82%); }
}

/* Container queries: the finder also adapts to the width of whatever it is
   embedded in, not just the viewport — so it behaves correctly in a narrow
   column on a wide screen, not only on a phone. Viewport rules above remain
   as the fallback for browsers without container-query support. */
.bix-finder-embed { container-type: inline-size; }
@container (max-width: 620px) {
	.bix-fx-field { flex: 1 1 100%; }
	.bix-fx-go { width: 100%; }
	.bix-fx-rail { grid-auto-columns: minmax(180px, 82%); }
	.bix-fx-ask-row { grid-template-columns: 1fr; }
}
@container (max-width: 420px) {
	.bix-fx-chip { font-size: 12px; padding: 7px 10px; }
	.bix-fx-rail { grid-auto-columns: minmax(168px, 88%); }
}
