/*
 * /brand/<make> make page (AFX_VehicleMaster::models.phtml, layout makes_vehiclemodel_index.xml).
 * Partbox design "SparesUSA-Brand": geometry and type from the canvas; every colour is a store theme token, so spares.net
 * renders green and sparesusa.net red from the same file (--color-brand, --color-link, --color-kicker, --color-cond-*).
 * The canvas' navy (#043c50) is the USA header colour; on spares.net that token is pale, so links/kickers use
 * --color-link / --color-kicker instead. The page background is white here (canvas: light grey), so cards keep a hairline.
 * A plain stylesheet, outside the shared Tailwind build on purpose.
 */
.sx-make { --sx-gap: 12px; color: var(--color-ink); padding-bottom: 8px; }
.sx-make a { text-decoration: none; }
.sx-make .pb-kicker { color: var(--color-kicker); margin: 0 0 6px; }
.sx-make__section { margin-top: 36px; }
.sx-make__h2 { margin: 0 0 14px; font-size: 20px; line-height: 24px; }
.sx-make__section > .pb-kicker + .sx-make__h2 { font-size: 26px; line-height: 30px; }
.sx-make__h2row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.sx-make__more { font-size: 14px; font-weight: 700; color: var(--color-link); margin-bottom: 14px; }
.sx-make__more:hover, .sx-make__model:hover .sx-make__model-parts, .sx-make__dis-card:hover .sx-make__dis-link,
.sx-make__part:hover .sx-make__part-cta { text-decoration: underline; }
.sx-make__note { margin: 10px 0 0; font-size: 12.5px; color: var(--color-ink-subtle); }

/* head: title, intro, figures | car box */
.sx-make__head { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-top: 14px; }
.sx-make__intro { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sx-make__title { display: flex; align-items: center; gap: 18px; }
.sx-make__title .pb-h1 { margin: 0; overflow-wrap: anywhere; }
.sx-make__title .pb-stripe { margin-top: 8px; }
.sx-make-tile {
    flex: 0 0 auto; width: 72px; height: 72px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    background: var(--color-brand); color: var(--color-on-cta, #fff);
    font-family: var(--font-heading); font-weight: 900; font-size: 34px; line-height: 1;
}
.sx-make__lead { margin: 0; max-width: 760px; font-size: 16px; line-height: 25px; color: var(--color-ink-muted); }
.sx-make__stats { display: flex; flex-wrap: wrap; gap: var(--sx-gap); margin: 0; padding: 0; list-style: none; }
.sx-make__stats li {
    flex: 1 1 140px; padding: 12px 14px; background: #fff; border: 1px solid var(--color-line); border-top: 4px solid var(--color-brand);
    border-radius: 10px;
}
.sx-make__stats b { display: block; font-family: var(--font-heading); font-weight: 900; font-size: 24px; line-height: 28px; }
.sx-make__stats span { font-size: 13px; color: var(--color-ink-muted); }
.sx-make__cond { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sx-make__cond li {
    display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #fff; border: 1px solid var(--color-line);
    border-radius: 10px; font-size: 13px; color: var(--color-ink-muted);
}
.sx-make__cond b { color: var(--color-ink); }
.sx-cond {
    display: inline-block; font-size: 10px; line-height: 15px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
    padding: 1px 7px; border-radius: 8px; white-space: nowrap;
}
.sx-cond--new { background: var(--color-cond-new); color: #fff; }
.sx-cond--used { background: var(--color-cond-used); color: var(--color-cond-used-ink); }

.sx-make__car {
    flex: 0 1 380px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px;
    background: var(--color-brand-tint); border: 2px solid var(--color-brand); border-radius: 12px;
}
.sx-make__car .pb-kicker { margin: 0; }
.sx-make__car p { margin: 0; }
.sx-make__car-title { font-size: 18px; line-height: 23px; font-weight: 700; }
.sx-make__car-text { font-size: 13.5px; line-height: 20px; color: var(--color-ink-muted); }
.sx-make__car .btn { min-height: 44px; padding: 0 18px; margin-top: 4px; }

/* popular models */
.sx-make__models, .sx-make__dis, .sx-make__parts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sx-gap); margin: 0; padding: 0; list-style: none; }
.sx-make__model {
    height: 100%; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: #fff;
    border: 1px solid var(--color-field-line); border-radius: 12px; color: var(--color-ink); transition: border-color .15s;
}
.sx-make__model:hover { border-color: var(--color-brand); }
.sx-make__model-name { font-family: var(--font-heading); font-weight: 900; font-size: 17px; line-height: 21px; text-transform: uppercase; }
.sx-make__model-years { font-size: 13px; color: var(--color-ink-muted); }
.sx-make__model-parts { font-size: 13px; font-weight: 700; color: var(--color-link); }
.sx-make__model-badge { align-self: flex-start; margin-top: 2px; }

/* A-Z */
.sx-make__az { columns: 4; column-gap: 28px; padding: 12px 18px; margin: 0; list-style: none; border-color: var(--color-field-line); }
.sx-make__az li { break-inside: avoid; }
.sx-make__az a {
    display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--color-field);
    font-size: 14px; color: var(--color-ink);
}
.sx-make__az a:hover span:first-child { color: var(--color-link); text-decoration: underline; }
.sx-make__az-count { color: var(--color-ink-subtle); font-variant-numeric: tabular-nums; }
.sx-make__az .is-empty a { color: #9aa2a6; }

/* categories */
.sx-make__cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sx-gap); margin: 0; padding: 0; list-style: none; }
.sx-make__cat {
    height: 100%; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
    padding: 12px 14px; background: #fff; border: 1px solid var(--color-field-line); border-radius: 12px; color: var(--color-ink);
}
.sx-make__cat:hover { border-color: var(--color-brand); }
.sx-make__cat-icon, .sx-make__cat > svg, .sx-make__cat > img { grid-row: span 2; color: var(--color-brand); }
.sx-make__cat-name { font-weight: 700; font-size: 14px; line-height: 18px; }
.sx-make__cat-count { font-size: 12.5px; color: var(--color-ink-muted); }

/* dismantled cars */
.sx-make__dis-card {
    height: 100%; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: #fff;
    border: 1px solid var(--color-line); border-left: 5px solid var(--color-cond-used); border-radius: 12px; color: var(--color-ink);
}
.sx-make__dis-name { font-size: 16px; font-weight: 700; line-height: 21px; }
.sx-make__dis-facts { font-size: 13px; color: var(--color-ink-muted); }
.sx-make__dis-link { margin-top: auto; padding-top: 4px; font-size: 13px; font-weight: 700; color: var(--color-link); }

/* most ordered */
.sx-make__part { height: 100%; display: flex; flex-direction: column; gap: 6px; padding: 14px; color: var(--color-ink); border-color: var(--color-field-line); }
.sx-make__part:hover { border-color: var(--color-brand); }
.sx-make__part-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--color-ink-muted); }
.sx-make__part-name { font-size: 15px; line-height: 20px; font-weight: 700; }
.sx-make__part-fits { font-size: 12.5px; color: var(--color-ink-muted); }
.sx-make__part-cta { margin-top: auto; padding-top: 4px; font-size: 13px; font-weight: 700; color: var(--color-link); }

/* facts + FAQ */
.sx-make__facts-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.sx-make__facts, .sx-make__faq { padding: 18px; border-color: var(--color-field-line); }
.sx-make__facts dl { margin: 0; }
.sx-make__facts dl > div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--color-field); font-size: 14px; }
.sx-make__facts dt { color: var(--color-ink-muted); }
.sx-make__facts dd { margin: 0; font-weight: 600; }
.sx-make__faq details { border-top: 1px solid var(--color-field); padding: 10px 0; }
.sx-make__faq summary { cursor: pointer; font-weight: 700; font-size: 14.5px; }
.sx-make__faq summary:hover { color: var(--color-link); }
.sx-make__faq p { margin: 8px 0 0; font-size: 14px; line-height: 21px; color: var(--color-ink-muted); }
.sx-make__tm { margin: 24px 0 0; font-size: 12px; line-height: 18px; color: var(--color-ink-subtle); }

/* the make's own texts */
.sx-make__about { padding: 18px; }
.sx-make__about-text { font-size: 14px; line-height: 22px; color: var(--color-ink-muted); max-height: 180px; overflow: hidden; position: relative; }
.sx-make__about-text::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(rgba(255,255,255,0), #fff); }
.sx-make__about-body.is-open .sx-make__about-text { max-height: none; }
.sx-make__about-body.is-open .sx-make__about-text::after { display: none; }
.sx-make__about-text h2, .sx-make__about-text h3 { font-size: 16px; line-height: 22px; margin: 16px 0 6px; color: var(--color-ink); }
.sx-make__about-text p { margin: 0 0 10px; }
.sx-make__about-text a { color: var(--color-link); text-decoration: underline; }
.sx-make__about-toggle { margin-top: 10px; background: none; border: 0; padding: 0; font-size: 14px; font-weight: 700; color: var(--color-link); cursor: pointer; }

@media (max-width: 1023px) {
    .sx-make__models, .sx-make__dis, .sx-make__parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sx-make__cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sx-make__az { columns: 3; }
    .sx-make__car { flex: 1 1 100%; }
    .sx-make__facts-faq { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
    .sx-make__section { margin-top: 28px; }
    .sx-make__title { gap: 12px; }
    .sx-make-tile { width: 52px; height: 52px; font-size: 24px; border-radius: 10px; }
    .sx-make__title .pb-h1 { font-size: 26px; line-height: 30px; }
    .sx-make__section > .pb-kicker + .sx-make__h2 { font-size: 22px; line-height: 26px; }
    .sx-make__lead { font-size: 15px; line-height: 23px; }
    .sx-make__stats li { flex-basis: calc(50% - 6px); }
    .sx-make__stats b { font-size: 20px; line-height: 24px; }
    .sx-make__dis, .sx-make__parts { grid-template-columns: 1fr; }
    .sx-make__cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sx-make__az { columns: 2; column-gap: 18px; padding: 8px 14px; }
    .sx-make__facts dl > div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---- model page /brand/<make>/<model> (AFX_VehicleMaster::model-page.phtml, canvas "SparesUSA-Model") ---- */
.sx-model__types { overflow: hidden; border-color: var(--color-field-line); }
.sx-model__types table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sx-model__types thead th {
    text-align: left; padding: 12px 16px; background: var(--color-field); font-size: 11px; font-weight: 800; letter-spacing: 1px;
    text-transform: uppercase; color: var(--color-ink-muted);
}
.sx-model__types tbody th, .sx-model__types td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--color-field); font-weight: 400; }
.sx-model__types tbody th { font-weight: 700; }
.sx-model__types tbody th a { color: var(--color-ink); }
.sx-model__types tbody tr:hover th a { color: var(--color-link); text-decoration: underline; }
.sx-model__types .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.sx-model__types tr.is-mine { background: var(--color-brand-tint); }
.sx-model__types tr.is-empty, .sx-model__types tr.is-empty th a { color: #9aa2a6; }
.sx-model__mine {
    display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 3px; vertical-align: 1px;
    font-size: 10.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; background: var(--color-brand); color: #fff;
}
.sx-model__go { text-align: right; white-space: nowrap; }
.sx-model__go a { font-weight: 700; color: var(--color-link); }
.sx-model__others { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sx-gap); margin: 0; padding: 0; list-style: none; }
.sx-model__other {
    height: 100%; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: #fff; color: var(--color-ink);
    border: 1px solid var(--color-line); border-left: 5px solid var(--color-brand); border-radius: 12px;
}
.sx-model__other b { font-size: 16px; }
.sx-model__other span { font-size: 13px; color: var(--color-ink-muted); }
.sx-model__other:hover b { color: var(--color-link); text-decoration: underline; }

@media (max-width: 639px) {
    /* table rows become cards: type + link on top, then the figures with their labels */
    .sx-model__types thead { display: none; }
    .sx-model__types tbody tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding: 12px 14px; border-top: 1px solid var(--color-field); }
    .sx-model__types tbody th, .sx-model__types td, .sx-model__types td.is-num { padding: 0; border: 0; text-align: left; }
    .sx-model__types tbody th { flex: 1 1 60%; order: 0; }
    .sx-model__types .sx-model__go { flex: 0 0 auto; order: 1; }
    .sx-model__types td[data-label] { order: 2; flex: 0 0 auto; font-size: 13px; color: var(--color-ink-muted); }
    .sx-model__types td[data-label]::before { content: attr(data-label) ': '; }
    .sx-model__others { grid-template-columns: 1fr; }
}

/* ---- type page /brand/<make>/<model>/<type> (generations.phtml, tabs/tab-content.phtml, split-drawings.phtml; canvas "Spares-Type") ---- */
.sx-tpage { padding-top: 6px; }
.sx-tpage__h1 { margin: 0 0 18px; overflow-wrap: anywhere; }
.sx-tpage__h1-car { color: var(--color-brand-dark); }
.sx-tpage__band {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 18px;
    background: var(--color-brand-tint); border: 2px solid var(--color-brand); border-radius: 12px;
}
.sx-tpage__tile { width: 30px; height: 30px; font-size: 15px; border-radius: 6px; }
.sx-tpage__car { margin: 0; flex: 1 1 280px; font-size: 15px; }
.sx-tpage__search { flex: 1 1 280px; max-width: 420px; }
.sx-tpage__search input, .sx-tpage__input {
    width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--color-field-line); border-radius: 10px; background: #fff;
    font-size: 15px; color: var(--color-ink);
}
.sx-tpage__search input:focus, .sx-tpage__input:focus { outline: 2px solid var(--color-brand); outline-offset: 1px; }
.sx-tpage__change {
    height: 44px; padding: 0 14px; border: 1.5px solid var(--color-ink); border-radius: 8px; background: #fff;
    font-weight: 700; font-size: 15px; color: var(--color-ink); cursor: pointer;
}
.sx-tpage__change:hover { border-color: var(--color-brand); color: var(--color-link); }

/* tabs (markup .sx-vtabs from tab-content.phtml; underline style of the canvas) */
.sx-tpage .sx-vtabs-wrap { margin-top: 22px; }
.sx-tpage .sx-tpage__tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--color-line); margin-bottom: 22px; padding: 0; background: none; }
.sx-tpage .sx-tpage__tabs .sx-vtab {
    display: inline-flex; align-items: center; gap: 6px; padding: 12px 16px; margin: 0 0 -1px; border: 0; border-bottom: 3px solid transparent;
    border-radius: 0; background: none; color: var(--color-ink-muted); font-family: var(--font-heading); font-size: 16px; font-weight: 400;
    text-transform: none; letter-spacing: 0; box-shadow: none; cursor: pointer;
}
.sx-tpage .sx-tpage__tabs .sx-vtab:hover { color: var(--color-ink); }
.sx-tpage .sx-tpage__tabs .sx-vtab.active { color: var(--color-ink); border-bottom-color: var(--color-brand); background: none; }
.sx-tpage__count {
    display: inline-block; min-width: 22px; padding: 0 7px; border-radius: 10px; background: var(--color-field);
    font-family: Inter, sans-serif; font-size: 12px; line-height: 18px; font-weight: 700; color: var(--color-ink-muted); text-align: center;
}
.sx-vtab.active .sx-tpage__count { background: var(--color-brand); color: #fff; }

/* drawings tab */
.sx-tpage__layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
.sx-tpage__filter { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 16px; }
.sx-tpage__filter-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.sx-tpage__filter-head .pb-heading { margin: 0; font-size: 20px; }
.sx-tpage__reset { border: 0; background: none; padding: 0; font-size: 14px; text-decoration: underline; color: var(--color-ink); cursor: pointer; }
.sx-tpage__label { margin-top: 10px; font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--color-ink); }
.sx-tpage__tip { margin: 18px 0 0; padding: 14px 16px; border-radius: 10px; background: var(--color-field); font-size: 13px; line-height: 20px; color: var(--color-ink-muted); }
.sx-tpage__tip b { color: var(--color-ink); }
.sx-tpage__lead { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--color-line); font-size: 15px; color: var(--color-ink-muted); }
.sx-tpage__lead b { color: var(--color-ink); }
.sx-tpage__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.sx-tpage__grid.is-limited:not(.is-searching) .is-more { display: none; }
.sx-tpage__grid [hidden] { display: none !important; }
.sx-tpage__drawing {
    height: 100%; display: flex; flex-direction: column; overflow: hidden; background: #fff; color: var(--color-ink);
    border: 1px solid var(--color-field-line); border-radius: 10px; transition: border-color .15s;
}
.sx-tpage__drawing:hover { border-color: var(--color-brand); }
.sx-tpage__drawing-panel { height: 130px; display: flex; align-items: center; justify-content: center; background: var(--color-field); }
.sx-tpage__drawing-panel img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.sx-tpage__drawing-no { font-family: var(--font-heading); font-weight: 900; font-size: 30px; letter-spacing: 1px; color: #9aa2a6; }
.sx-tpage__drawing-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 13px 14px; }
.sx-tpage__drawing-num { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; font-weight: 700; color: var(--color-link); }
.sx-tpage__drawing-title { font-size: 13.5px; line-height: 18px; font-weight: 700; overflow-wrap: anywhere; }
.sx-tpage__drawing:hover .sx-tpage__drawing-title { color: var(--color-link); }
.sx-tpage__more-wrap { display: flex; justify-content: center; margin-top: 18px; }
.sx-tpage__more {
    height: 46px; padding: 0 22px; border: 2px solid var(--color-ink); border-radius: 10px; background: #fff;
    font-family: var(--font-heading); font-size: 16px; color: var(--color-ink); cursor: pointer;
}
.sx-tpage__more:hover { border-color: var(--color-brand); color: var(--color-link); }
.sx-tpage .sx-drawings__none { margin: 16px 0 0; color: var(--color-ink-muted); }

/* can't find the part */
.sx-tpage__help {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 32px;
    padding: 24px 22px; border-radius: 12px; background: var(--color-footer-bg, #181818); color: #fff;
}
.sx-tpage__help .pb-kicker { color: var(--color-brand-tint-line); margin: 0 0 4px; }
.sx-tpage__help p { margin: 0; }
.sx-tpage__help-title { font-family: var(--font-heading); font-weight: 900; font-size: 24px; line-height: 28px; text-transform: uppercase; }
.sx-tpage__help-text { margin-top: 6px !important; font-size: 15px; color: #c9d0d2; }
.sx-tpage__help-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.sx-tpage__help-actions .btn { min-height: 46px; padding: 0 22px; }
.sx-tpage__help-phone { font-weight: 700; font-size: 17px; color: #fff; text-decoration: underline; }

@media (max-width: 1199px) { .sx-tpage__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1023px) {
    .sx-tpage__layout { grid-template-columns: 1fr; gap: 18px; }
    .sx-tpage__filter { position: static; display: grid; grid-template-columns: 1fr 180px; column-gap: 12px; row-gap: 6px; }
    .sx-tpage__filter-head, .sx-tpage__tip { grid-column: 1 / -1; }
    .sx-tpage__filter .sx-tpage__label { margin-top: 0; }
    .sx-tpage__filter label[for="productSearch"] { grid-column: 1; grid-row: 2; }
    .sx-tpage__filter #productSearch { grid-column: 1; grid-row: 3; }
    .sx-tpage__filter label[for="sx-drawing-sort"] { grid-column: 2; grid-row: 2; }
    .sx-tpage__filter #sx-drawing-sort { grid-column: 2; grid-row: 3; }
    .sx-tpage__tip { display: none; }
}
@media (max-width: 639px) {
    .sx-tpage__h1 { font-size: 24px; line-height: 28px; }
    .sx-tpage__search { max-width: none; flex-basis: 100%; order: 3; }
    .sx-tpage__change { order: 2; margin-left: auto; height: 38px; font-size: 14px; }
    .sx-tpage__car { flex-basis: auto; order: 1; flex: 1 1 0; font-size: 14px; }
    .sx-tpage__tile { order: 0; }
    .sx-tpage__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .sx-tpage__drawing-panel { height: 86px; }
    .sx-tpage__drawing-no { font-size: 22px; }
    .sx-tpage__filter { grid-template-columns: 1fr 130px; }
    .sx-tpage .sx-tpage__tabs { flex-wrap: nowrap; overflow-x: auto; }
    .sx-tpage .sx-tpage__tabs .sx-vtab { padding: 10px 10px; font-size: 14px; white-space: nowrap; }
    .sx-tpage__help-title { font-size: 20px; line-height: 24px; }
}

/* ---- vehicle page tabs: Parts kits (tabs/parts-kits.phtml) + Dismantled cars (AFX_DismantleVehicles::index.phtml in_tab) ---- */
#ajax-tab-content .sx-tkits .d-none, .sx-tdis .d-none { display: none !important; }
/* AFX_PartKits partkits.css sizes these ids for its catalogue page (20 % / 60 % columns, 0-size until a kit opens) */
#ajax-tab-content .sx-tkits #accordion-wrapper, #ajax-tab-content .sx-tkits #partkits-wrapper, #ajax-tab-content .sx-tkits #total-wrapper,
#ajax-tab-content .sx-tkits .layout-split #accordion-wrapper, #ajax-tab-content .sx-tkits .layout-split #partkits-wrapper, #ajax-tab-content .sx-tkits .layout-split #total-wrapper {
    flex: none !important; width: auto !important; height: auto; opacity: 1; overflow: visible; padding: 0;
}
#ajax-tab-content .sx-tkits #total-wrapper.d-none { display: none !important; }
#ajax-tab-content .sx-tkits .layout-split #partkits-wrapper > div { padding: 0; border: 0; background: none; }
#ajax-tab-content .sx-tkits .sx-tkits__layout { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 24px; align-items: start; margin: 0; }
#ajax-tab-content .sx-tkits .sx-tkits__list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
#ajax-tab-content .sx-tkits .sx-tkits__kit {
    width: 100%; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; text-align: left; cursor: pointer;
    background: #fff; border: 1px solid var(--color-field-line); border-left: 5px solid var(--color-brand); border-radius: 12px; color: var(--color-ink);
}
#ajax-tab-content .sx-tkits .sx-tkits__kit:hover, #ajax-tab-content .sx-tkits .sx-tkits__kit[aria-current="true"] { border-color: var(--color-brand); background: var(--color-brand-tint); }
#ajax-tab-content .sx-tkits .sx-tkits__kit-name { font-size: 16px; font-weight: 700; line-height: 21px; }
#ajax-tab-content .sx-tkits .sx-tkits__kit-sku { font-weight: 400; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; color: var(--color-ink-subtle); }
#ajax-tab-content .sx-tkits .sx-tkits__kit-desc { font-weight: 400; font-size: 13px; line-height: 19px; color: var(--color-ink-muted); }
#ajax-tab-content .sx-tkits .sx-tkits__kit-cta { margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--color-link); }
#ajax-tab-content .sx-tkits .sx-tkits__detail { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; align-items: start; }
#ajax-tab-content .sx-tkits .sx-tkits__panel { min-height: 160px; padding: 18px !important; background: #fff; border: 1px solid var(--color-field-line); border-radius: 12px; }
#ajax-tab-content .sx-tkits .sx-tkits__hint { margin: 48px 0; text-align: center; color: var(--color-ink-subtle); }
#ajax-tab-content .sx-tkits .sx-tkits__panel .accordion-button { background: var(--color-field) !important; color: var(--color-ink) !important; }
#ajax-tab-content .sx-tkits .sx-tkits__panel .accordion-button:not(.collapsed) { background: var(--color-brand-tint) !important; }
#ajax-tab-content .sx-tkits .sx-tkits__total {
    position: sticky; top: 16px; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px !important;
    background: var(--color-brand-tint); border: 2px solid var(--color-brand); border-radius: 12px;
}
#ajax-tab-content .sx-tkits .sx-tkits__total p { margin: 0; }
#ajax-tab-content .sx-tkits .sx-tkits__price { font-family: var(--font-heading); font-weight: 900; font-size: 26px; line-height: 30px; }
#ajax-tab-content .sx-tkits .sx-tkits__lines, #ajax-tab-content .sx-tkits .sx-tkits__loading { font-size: 13px; color: var(--color-ink-muted); }
#ajax-tab-content .sx-tkits .sx-tkits__add { width: 100%; min-height: 46px; margin-top: 6px; }
#ajax-tab-content .sx-tkits .sx-tkits__add[disabled] { opacity: .5; cursor: not-allowed; }
#ajax-tab-content .sx-tkits .sx-tkits__msg:empty { display: none; }
#ajax-tab-content .sx-tkits .sx-tkits__empty { padding: 22px 24px; max-width: 760px; }
#ajax-tab-content .sx-tkits .sx-tkits__empty p { margin: 0 0 10px; color: var(--color-ink-muted); line-height: 22px; }
#ajax-tab-content .sx-tkits .sx-tkits__empty #ajax-tab-content .sx-tkits .sx-tkits__empty-title { font-family: var(--font-heading); font-size: 20px; line-height: 24px; text-transform: uppercase; color: var(--color-ink); }
#ajax-tab-content .sx-tkits .sx-tkits__empty-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 16px 0 0 !important; }
#ajax-tab-content .sx-tkits .sx-tkits__empty-actions .btn { min-height: 44px; padding: 0 18px; }
#ajax-tab-content .sx-tkits .sx-tkits__ask { font-weight: 700; color: var(--color-link); text-decoration: underline; }

/* dismantled cars in the tab: the list's own layout (.sx-types.sx-dis) with tighter spacing */
.sx-tdis .sx-types.sx-dis { margin-top: 0; }
.sx-tdis .pb-card h2.pb-heading { font-size: 18px; line-height: 23px; }

@media (max-width: 1023px) {
    #ajax-tab-content .sx-tkits .sx-tkits__layout { grid-template-columns: 1fr; }
    #ajax-tab-content .sx-tkits .sx-tkits__detail { grid-template-columns: 1fr; }
    #ajax-tab-content .sx-tkits .sx-tkits__total { position: static; }
}
