/**
 * Battery fitment finder — implements the Regnr-lookup design, direction 1a
 * ("Samma band, sidans egna komponenter") with the states from 2a and the
 * stacked mobile layout from 2b.
 *
 * TWO DELIBERATE DEVIATIONS FROM THE DESIGN FILE, both in service of its own
 * stated goal ("att få sökrutan att höra ihop med resten av sidan"):
 *
 *   font    the file specifies Figtree; the site runs Cabinet Grotesque via
 *           --bo-font. Loading a second Google font for one module would make
 *           this the only block on the page in a different typeface.
 *   yellow  the file specifies #EAC000 / #D4AE00; the site's real buttons are
 *           --bo-accent #F0C100 / --bo-accent-dark #B39002. Four shades off,
 *           sitting beside the genuine article, reads as a rendering bug.
 *
 * Everything else is taken from the file literally, including the EU blue
 * #1D349A, the field border #D5D7DA, the muted greys and the error red #B4331F.
 *
 * Products are NOT styled here. Results render through
 * woocommerce/content-product.php in the standard `.bo-cards` grid.
 */

/* ---------------------------------------------------------------------------
   ARCHIVE PLACEMENT
   The hero above is full-bleed and the product grid below is a centred 1200px
   column; the design places the module on #FAFAFA between the two with a
   single hairline underneath.
   --------------------------------------------------------------------------- */
.bo-pa-fitment {
	background: var(--bo-bg-secondary, #fafafa);
	border-bottom: 1px solid #eaeaea;
}

.bo-pa-fitment__inner {
	max-width: var(--bo-container-width, 1200px);
	margin: 0 auto;
	padding: 34px 20px 30px;
}

/* ---------------------------------------------------------------------------
   TWO GUARDS THE MODULE CANNOT WORK WITHOUT
   --------------------------------------------------------------------------- */

/* 1. [hidden] must actually hide.
 *
 *    JS toggles the `hidden` attribute on the panel, the hint, the error row,
 *    the confirmation bar and the results. The attribute only carries
 *    `display:none` at user-agent specificity, so ANY class here that sets a
 *    display value silently defeats it. That is not theoretical: it shipped,
 *    and it put an empty red "!" bubble under the field and pushed the
 *    "Välj bil manuellt" column below the field, because the invisible error
 *    row was still taking part in the flex layout.
 *
 *    One rule, at .bo-fit + attribute specificity, so it beats every component
 *    class below without needing !important.
 */
.bo-fit [hidden],
.bo-pa-fitment [hidden] {
	display: none;
}

/* 2. A scoped margin reset.
 *
 *    Astra sets `p{margin-bottom:1.75em}` globally. `:where()` contributes no
 *    specificity, so this lands at .bo-fit's own weight — enough to beat a bare
 *    element selector, but low enough that every component rule further down
 *    still wins without having to be written defensively.
 */
.bo-fit :where(h1, h2, h3, h4, p, ul, ol):where(:not(.bo-cards *)) {
	margin: 0;
}

/* 3. Neutralise Astra Pro's generated <button> styling.
 *
 *    Astra Pro injects an inline rule for EVERY button on the site:
 *
 *      .menu-toggle,button,.ast-button,.button,input#submit,… {
 *        background-color:#f0c100; border-color:#f0c100;
 *        padding:10px 40px; font-family:"Roboto"; letter-spacing:2px }
 *
 *    Its `button` selector is only (0,0,1), so a single class beats it on the
 *    properties that class actually declares — but ONLY those. Anything left
 *    undeclared leaks through, which is how `letter-spacing:2px` ended up
 *    spacing out "Hitta batteri", and how a yellow box appeared behind a
 *    button meant to look like a link.
 *
 *    So every button in the module gets a full chrome reset first, declared at
 *    (0,2,0) so nothing generated can reach it, and the component rules below
 *    then add back only what they want.
 *
 *    The product cards in the inline results are NOT part of the module: they
 *    are the shop's own cards and must look exactly like the listings. The
 *    :where(:not(.bo-cards *)) keeps the reset off them without adding any
 *    specificity.
 */
.bo-fit button:where(:not(.bo-cards *)),
.bo-pa-fitment button,
.bo-fit-slot button {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: normal;
	text-transform: none;
	color: inherit;
}

/* ---------------------------------------------------------------------------
   SHARED TEXT ACTION
   "Byt bil", "Visa alla batterier" and the badge's reset link are the same
   control in three places. They were drifting — one rendered as a link and one
   as a yellow button — so they share one class and one rule. Declared for both
   <button> and <a> so the two are indistinguishable.
   --------------------------------------------------------------------------- */
.bo-fit .bo-fit-textlink,
.bo-pa-fitment .bo-fit-textlink,
.bo-fit-slot .bo-fit-textlink {
	display: inline;
	padding: 0;
	border: 0;
	background: none;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: inherit;
	letter-spacing: normal;
	color: #6b6f76;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	cursor: pointer;
	transition: color 0.15s ease;
}

.bo-fit .bo-fit-textlink:hover,
.bo-fit .bo-fit-textlink:focus-visible,
.bo-pa-fitment .bo-fit-textlink:hover,
.bo-pa-fitment .bo-fit-textlink:focus-visible,
.bo-fit-slot .bo-fit-textlink:hover,
.bo-fit-slot .bo-fit-textlink:focus-visible {
	color: var(--bo-text, #1b1c20);
	text-decoration-thickness: 2px;
}

.bo-fit .bo-fit-textlink:focus-visible,
.bo-pa-fitment .bo-fit-textlink:focus-visible,
.bo-fit-slot .bo-fit-textlink:focus-visible {
	outline: 2px solid var(--bo-accent, #f0c100);
	outline-offset: 3px;
	border-radius: 2px;
}

/* ---------------------------------------------------------------------------
   SHELL
   --------------------------------------------------------------------------- */
.bo-fit {
	font-family: var(--bo-font, "Cabinet Grotesque", "Helvetica Neue", Helvetica, Arial, sans-serif);
	color: var(--bo-text, #24262b);
}

/* Standalone contexts (landing page, a shortcode on a CMS page) get the panel
   as a card. On the archive the surrounding band already provides it. */
.bo-fit--full,
.bo-fit--compact {
	background: var(--bo-bg-secondary, #fafafa);
	border: 1px solid #eaeaea;
	border-radius: var(--bo-radius, 10px);
	padding: 34px 40px 30px;
	margin: 0 0 28px;
}

/* The design's row: the lead block (heading, text, plate field). */
.bo-fit__panel {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 32px 48px;
}

.bo-fit__lead {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.bo-fit__head {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.bo-fit__heading {
	margin: 0 !important;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--bo-text, #1b1c20);
}

.bo-fit__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: #5a5e66;
	max-width: 62ch;
}

.bo-fit__form {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* ---------------------------------------------------------------------------
   THE PLATE FIELD
   One object: EU band, input and submit share a single border.
   --------------------------------------------------------------------------- */
/* Desktop: field and submit share one border and read as a single control. */
.bo-fit__control {
	display: flex;
	align-items: stretch;
	height: 56px;
	width: 520px;
	max-width: 100%;
	border: 1.5px solid #d5d7da;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
	transition: border-color 0.15s ease;
}

.bo-fit__control:focus-within {
	border-color: var(--bo-text, #1b1c20);
}

.bo-fit--error .bo-fit__control {
	border-color: #b4331f;
}

.bo-fit-plate {
	display: flex;
	align-items: stretch;
	flex: 1;
	min-width: 0;
	background: #fff;
}

.bo-fit-plate__band {
	flex: none;
	width: 44px;
	background: #1d349a;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

/* The EU star ring, drawn rather than shipped as an image. */
.bo-fit-plate__ring {
	width: 15px;
	height: 15px;
	border: 1.5px solid #fff;
	border-radius: 50%;
}

.bo-fit-plate__country {
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.bo-fit-plate__input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: none;
	background: transparent;
	font-family: inherit;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.16em;
	color: var(--bo-text, #1b1c20);
	padding: 0 18px;
	text-transform: uppercase;
}

.bo-fit-plate__input::placeholder {
	color: #a9adb4;
	font-weight: 700;
}

/* Prefixed with .bo-fit so these (0,2,0) rules beat the module's button reset
   (.bo-pa-fitment button / .bo-fit button, 0,1,1) on every breakpoint. */
.bo-fit .bo-fit-plate__submit {
	flex: none;
	border: 0;
	cursor: pointer;
	background: var(--bo-accent, #f0c100);
	color: var(--bo-text, #1b1c20);
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: normal;
	padding: 0 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	white-space: nowrap;
	transition: background 0.15s ease;
}

.bo-fit .bo-fit-plate__submit:hover:not(:disabled) {
	background: var(--bo-accent-dark, #b39002);
}

/* Loading. The design keeps the button in place and dims it rather than
   swapping it out, so the control never changes size mid-request. */
.bo-fit--loading .bo-fit-plate__submit {
	opacity: 0.75;
	cursor: default;
}

.bo-fit-plate__spinner {
	display: none;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(27, 28, 32, 0.3);
	border-top-color: var(--bo-text, #1b1c20);
	border-radius: 50%;
	animation: bo-fit-spin 0.7s linear infinite;
}

.bo-fit--loading .bo-fit-plate__spinner {
	display: block;
}

@keyframes bo-fit-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.bo-fit-plate__spinner {
		animation-duration: 2.4s;
	}
}

/* Unreachable for people, present for bots. Off-screen rather than
   display:none, which some bots skip. */
.bo-fit__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------------------------------------------------------------------------
   INLINE ERROR
   --------------------------------------------------------------------------- */
.bo-fit__error {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #b4331f;
}

.bo-fit__error-icon {
	flex: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #b4331f;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ---------------------------------------------------------------------------
   BUTTON — used by the result and empty states.
   --------------------------------------------------------------------------- */
.bo-fit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	cursor: pointer;
	background: var(--bo-accent, #f0c100);
	color: var(--bo-text, #1b1c20);
	border-radius: 8px;
	height: 52px;
	padding: 0 28px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: normal;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.bo-fit-btn:hover {
	background: var(--bo-accent-dark, #b39002);
	color: var(--bo-text, #1b1c20);
}

.bo-fit-btn:disabled {
	background: #eceef0;
	color: #9ca0a7;
	cursor: not-allowed;
}

/* ---------------------------------------------------------------------------
   HINT
   --------------------------------------------------------------------------- */
.bo-fit__hint {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 18px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: #84888f;
}

.bo-fit__hint-dot {
	flex: none;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #b9bcc1;
}

/* ---------------------------------------------------------------------------
   RESULT SLOTS
   --------------------------------------------------------------------------- */

/* The archive variant deliberately carries no card of its own: .bo-pa-fitment
   already provides the band, border and padding around it. The class stays as
   a hook for the JS mode switch and for future overrides. */
.bo-fit--bar {
	background: none;
	border: 0;
	padding: 0;
}

.bo-fit__results:not([hidden]) {
	margin-top: 8px;
}

.bo-fit-res__car {
	min-width: 0;
}

/* The fit-table row modifiers exist so a whole row can be tinted without
   touching the cells. Only the failing row is tinted — a row we simply have no
   data for stays plain, in line with the honesty rule in fit-table.php. */
.bo-fit-table__row--fail {
	background: #fdf5f4;
}

/* ---------------------------------------------------------------------------
   STATUS
   --------------------------------------------------------------------------- */
.bo-fit__status:empty {
	display: none;
}

.bo-fit__status {
	margin-top: 14px;
	font-size: 14px;
	color: #6b6f76;
}

.bo-fit__status.is-error {
	color: #b4331f;
	font-weight: 600;
}

/* ---------------------------------------------------------------------------
   ACTIVE STATE on a filtered archive
   --------------------------------------------------------------------------- */
.bo-fit--bar + .bo-fit-active {
	margin-top: 20px;
}

.bo-fit-active {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	flex-wrap: wrap;
	background: #fff;
	border: 1.5px solid var(--bo-text, #1b1c20);
	border-radius: 8px;
	padding: 14px 20px;
}

.bo-fit-active__main {
	display: flex;
	align-items: center;
	gap: 14px;
}


.bo-fit-active__line {
	margin: 0;
	font-size: 17px;
	font-weight: 800;
}

.bo-fit-active__meta {
	margin: 2px 0 0;
	font-size: 14px;
	color: #5a5e66;
}

.bo-fit-active__actions {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}


/* ---------------------------------------------------------------------------
   NOTICES
   --------------------------------------------------------------------------- */
.bo-fit-note {
	margin: 14px 0 0;
	padding: 14px 16px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.5;
}

.bo-fit-note--warn {
	background: #fff8e1;
	border-left-color: var(--bo-accent, #f0c100);
}

.bo-fit-note--info {
	background: #eef4fb;
	border-left-color: #2a7ab0;
}

.bo-fit-note--muted {
	background: var(--bo-bg-secondary, #fafafa);
	border-left-color: #d5d7da;
	color: #6b6f76;
}

/* ---------------------------------------------------------------------------
   RESULTS (inline variant)
   --------------------------------------------------------------------------- */
.bo-fit-res__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin: 28px 0 4px;
	padding-top: 24px;
	border-top: 1px solid #eaeaea;
}

.bo-fit-res__eyebrow {
	display: block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #a0a4ab;
}

.bo-fit-res__title {
	margin: 4px 0 4px;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.bo-fit-res__req {
	margin: 0;
	font-size: 15px;
	color: #5a5e66;
}

.bo-fit .bo-fit-res__change {
	background: none;
	border: 0;
	padding: 0;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	color: #6b6f76;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.bo-fit .bo-fit-res__change:hover {
	color: var(--bo-text, #1b1c20);
}

.bo-fit-picks {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
	margin: 20px 0;
}

.bo-fit-pick {
	display: block;
	padding: 16px;
	border: 1.5px solid #e2e2e2;
	border-radius: 8px;
	background: #fff;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease;
}

.bo-fit-pick:hover {
	border-color: var(--bo-text, #1b1c20);
}

.bo-fit-pick--startkraft {
	border-color: var(--bo-accent, #f0c100);
}

.bo-fit-pick__label {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #8a7300;
	margin-bottom: 6px;
}

.bo-fit-pick__name {
	display: block;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.35;
}

.bo-fit-pick__price {
	display: block;
	margin: 6px 0 4px;
	font-weight: 800;
}

.bo-fit-pick__text {
	display: block;
	font-size: 13px;
	color: #6b6f76;
	line-height: 1.45;
}

.bo-fit-res__count {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin: 22px 0 14px;
	font-size: 17px;
	font-weight: 800;
}

.bo-fit-res__sorted {
	font-weight: 400;
	font-size: 14px;
	color: #6b6f76;
}

.bo-fit-res__why {
	margin-top: 20px;
}

.bo-fit-res__why > summary {
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	color: #6b6f76;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bo-fit-res__why > summary:hover {
	color: var(--bo-text, #1b1c20);
}

/* ------------------------------------------------------------ empty state -- */

.bo-fit-res__empty {
	padding: 24px;
	background: #fff;
	border: 1px solid #eaeaea;
	border-radius: 8px;
	margin-top: 18px;
}

.bo-fit-res__empty h4 {
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 800;
}

.bo-fit-res__near {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
}

.bo-fit-res__near li {
	padding: 10px 0;
	border-top: 1px solid #eaeaea;
}

.bo-fit-res__caveat {
	display: inline-block;
	margin-left: 8px;
	padding: 3px 10px;
	background: #fdf0f0;
	color: #b4331f;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
}

/* ---------------------------------------------------------------------------
   FIT TABLE
   --------------------------------------------------------------------------- */
.bo-fit-table {
	margin-top: 14px;
}

.bo-fit-table__pill {
	display: inline-block;
	margin: 0 0 12px;
	padding: 5px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
}

.bo-fit-table__pill--ok {
	background: #e6f4ec;
	color: #1a7f4b;
}

/* Incomplete is GREY, never red. An unrecorded spec is not a failure. */
.bo-fit-table__pill--partial {
	background: #f1f2f3;
	color: #6b6f76;
}

.bo-fit-table__grid {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.bo-fit-table__grid th,
.bo-fit-table__grid td {
	text-align: left;
	padding: 9px 6px;
	border-bottom: 1px solid #eaeaea;
	vertical-align: top;
}

.bo-fit-table__grid thead th {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #a0a4ab;
}

.bo-fit-table__req {
	display: block;
	font-weight: 400;
	color: #84888f;
	font-size: 13px;
}

.bo-fit-table__missing {
	color: #9ca0a7;
	font-style: italic;
	cursor: help;
	border-bottom: 1px dotted #c9ccd1;
}

.bo-fit-table__note {
	display: block;
	font-size: 13px;
	color: #84888f;
}

.bo-fit-table__mark {
	width: 2em;
	text-align: center;
}

.bo-fit-table__tick {
	color: #1a7f4b;
	font-weight: 700;
}

.bo-fit-table__cross {
	color: #b4331f;
	font-weight: 700;
}

.bo-fit-table__dash {
	color: #c9ccd1;
}

.bo-fit-table__guarantee {
	margin: 14px 0 0;
	padding: 12px 14px;
	background: var(--bo-bg-secondary, #fafafa);
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.55;
	color: #5a5e66;
}

/* ---------------------------------------------------------------------------
   PRODUCT-PAGE FIT BADGE

   Compact by design: it sits directly above the price, so it must be readable
   at a glance without competing with the product. One line, a small status
   mark, the comparison folded away.

   A flat tinted panel with no border, like the support box further down the
   purchase box. The state is carried by the mark and a soft tint: green for
   a fit, the accent yellow for a probable fit, red for no fit. It used to be
   a white box with a coloured left edge, which read as an alert banner and
   looked wrong against the rounded corners.
   --------------------------------------------------------------------------- */

/* The slot is [hidden] until JS has a verdict. It lives in .bo-sp__purchase,
   outside .bo-fit, so it needs its own guard — the module-scoped one above
   does not reach it. */
.bo-fit-slot[hidden] {
	display: none;
}

.bo-fit-badge {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin: 0 0 14px;
	padding: 12px 14px;
	border: 0;
	border-radius: var(--bo-radius, 8px);
	background: #f4f5f6;
	font-size: 14px;
	line-height: 1.4;
}

.bo-fit-badge--ok {
	background: #edf7f1;
}

/* The same tint as the support box (.bo-sp__support). */
.bo-fit-badge--partial {
	background: rgba(240, 193, 0, 0.15);
}

.bo-fit-badge--no {
	background: #fdf1ef;
}

.bo-fit-badge__mark {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	font-size: 11px;
	font-weight: 800;
	color: #fff;
	background: #c9ccd1;
}

.bo-fit-badge--ok .bo-fit-badge__mark {
	background: #1a7f4b;
}

.bo-fit-badge--partial .bo-fit-badge__mark {
	background: var(--bo-accent, #f0c100);
	color: var(--bo-text, #1b1c20);
}

.bo-fit-badge--no .bo-fit-badge__mark {
	background: #b4331f;
}

.bo-fit-badge__text {
	font-weight: 700;
	color: var(--bo-text, #1b1c20);
	min-width: 0;
}

/* Pushed to the far end of the first row so the verdict keeps the emphasis.
   Scoped to .bo-fit-slot so it matches the shared textlink rule's specificity
   and wins on order, rather than shouting over it with !important. */
.bo-fit-slot .bo-fit-badge__change {
	margin-left: auto;
	font-size: 13px;
}

.bo-fit-badge__sub {
	flex-basis: 100%;
	padding-left: 28px;
	font-size: 13px;
	color: #6b6f76;
}

.bo-fit-badge__foot {
	flex-basis: 100%;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 16px;
	padding-left: 28px;
}

.bo-fit-badge__why {
	min-width: 0;
}

.bo-fit-badge__why > summary {
	font-size: 13px;
	list-style: none;
}

.bo-fit-badge__why > summary::-webkit-details-marker {
	display: none;
}

/* The table is a detail view inside a compact control, so it gets its own
   quieter scale rather than the full-size one used in the results list. */
.bo-fit-badge__why[open] > summary {
	margin-bottom: 8px;
}

.bo-fit-badge__why .bo-fit-table {
	margin-top: 0;
}

.bo-fit-badge__why .bo-fit-table__grid {
	font-size: 13px;
}

.bo-fit-badge__why .bo-fit-table__grid th,
.bo-fit-badge__why .bo-fit-table__grid td {
	padding: 6px 4px;
}

.bo-fit-badge__why .bo-fit-table__guarantee {
	font-size: 12px;
	padding: 10px;
	/* Its own grey would look muddy on the badge's tint. */
	background: rgba(255, 255, 255, 0.7);
}

.bo-fit-slot .bo-fit-badge__exit {
	font-size: 13px;
	font-weight: 700;
}

.bo-fit-slot .bo-fit-badge--no .bo-fit-badge__exit {
	color: #b4331f;
}

.bo-fit-slot .bo-fit-badge--no .bo-fit-badge__exit:hover {
	color: #8a2618;
}

/* ---------------------------------------------------------------------------
   MOBILE — design 2b. The field stays, the submit leaves it and becomes its
   own full-width button below it.
   --------------------------------------------------------------------------- */
@media (max-width: 767px) {
	.bo-pa-fitment__inner {
		padding: 24px 16px;
	}

	.bo-fit--full,
	.bo-fit--compact {
		padding: 24px 20px;
	}

	.bo-fit__panel {
		display: block;
	}

	.bo-fit__heading {
		font-size: 20px;
	}

	.bo-fit__text {
		font-size: 14px;
	}

	/* Design 2b: the control splits. The field keeps its own border and the
	   submit becomes a full-width button beneath it. */
	.bo-fit__control {
		display: block;
		height: auto;
		width: 100%;
		border: 0;
		border-radius: 0;
		overflow: visible;
	}

	.bo-fit-plate {
		width: 100%;
		height: 56px;
		border: 1.5px solid #d5d7da;
		border-radius: 8px;
		overflow: hidden;
	}

	.bo-fit__control:focus-within .bo-fit-plate {
		border-color: var(--bo-text, #1b1c20);
	}

	.bo-fit--error .bo-fit-plate {
		border-color: #b4331f;
	}

	.bo-fit-plate__band {
		width: 42px;
		gap: 4px;
	}

	.bo-fit-plate__ring {
		width: 14px;
		height: 14px;
	}

	.bo-fit-plate__country {
		font-size: 10px;
	}

	.bo-fit-plate__input {
		font-size: 21px;
		padding: 0 14px;
	}

	.bo-fit .bo-fit-plate__submit {
		width: 100%;
		height: 52px;
		margin-top: 14px;
		border-radius: 8px;
		justify-content: center;
		font-weight: 800;
	}

	.bo-fit__hint {
		margin-top: 14px;
		font-size: 12px;
	}

	.bo-fit__hint-dot {
		display: none;
	}

	.bo-fit-active {
		align-items: flex-start;
	}
}


/* ---------------------------------------------------------------------------
   PRODUCT PAGE — "Passar batteriet din bil?"
   Treatment arm of the `vehicle-fit-check` experiment
   (lib/templates/fitment/product-check.php). The markup is in the cached HTML
   for both arms; it shows only when the head script has put the treatment on
   <html>, and never for a visitor whose car is already remembered — they get
   the badge in .bo-fit-slot instead.

   One row at every width: it sits between the title and the price, so the
   finder's stacked mobile layout would cost too much of the first screen.
   --------------------------------------------------------------------------- */
.bo-fit--product {
	display: none;
	margin: 0 0 14px;
}

html[data-bo-exp-vehicle-fit-check="fit_check"] .bo-fit--product:not([data-bo-fit-known]) {
	display: block;
}

.bo-fit--product .bo-fit__form {
	gap: 8px;
}

.bo-fit-pcheck__lead {
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
	color: #5a5e66;
}

.bo-fit-pcheck__title {
	display: inline;
	margin: 0 6px 0 0;
	font-size: 15px;
	font-weight: 800;
	color: var(--bo-text, #1b1c20);
}

.bo-fit-pcheck__control {
	display: flex;
	align-items: stretch;
	height: 48px;
	width: 100%;
	max-width: 420px;
	border: 1.5px solid #d5d7da;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
	transition: border-color 0.15s ease;
}

.bo-fit-pcheck__control:focus-within {
	border-color: var(--bo-text, #1b1c20);
}

.bo-fit--product.bo-fit--error .bo-fit-pcheck__control {
	border-color: #b4331f;
}

/* Undo the finder's mobile split (the field with its own border, the submit a
   full-width button below it) for this one-row control. */
.bo-fit--product .bo-fit-plate {
	width: auto;
	height: auto;
	border: 0;
	border-radius: 0;
}

.bo-fit--product .bo-fit-plate__band {
	width: 36px;
	gap: 3px;
}

.bo-fit--product .bo-fit-plate__ring {
	width: 12px;
	height: 12px;
}

.bo-fit--product .bo-fit-plate__country {
	font-size: 10px;
}

.bo-fit--product .bo-fit-plate__input {
	/* 16px or more, or iOS zooms the page when the field takes focus. */
	font-size: 18px;
	letter-spacing: 0.12em;
	padding: 0 12px;
}

.bo-fit--product .bo-fit-plate__submit {
	width: auto;
	height: auto;
	margin: 0;
	border-radius: 0;
	padding: 0 18px;
	font-size: 15px;
	font-weight: 700;
}

.bo-fit--product .bo-fit__error,
.bo-fit--product .bo-fit__status {
	font-size: 13px;
}
