/* =========================================================
   TPD CORE PROFESSIONAL ROUTES 0.2.1
   ========================================================= */

.tpd-route-page {
    background: #fff;
    color: #132238;
}

.tpd-route-shell {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
    padding: 25px 0 38px;
}

.tpd-route-breadcrumb {
    margin-bottom: 18px;
    color: #788497;
    font-size: 12px;
}

.tpd-route-breadcrumb a {
    color: #075ad7;
    text-decoration: none;
}

.tpd-route-breadcrumb span {
    padding: 0 8px;
}

.tpd-route-kicker {
    margin-bottom: 5px;
    color: #075ad7;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .11em;
}

.tpd-route-page h1,
.tpd-route-page h2 {
    color: #071d38;
}


/* =========================================================
   CATALOG HEADER
   ========================================================= */

.tpd-catalog-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 19px;
}

.tpd-catalog-header h1 {
    margin: 0;
    font-size: clamp(34px,3vw,46px);
    line-height: 1.05;
    letter-spacing: -.025em;
}

.tpd-catalog-header p {
    max-width: 790px;
    margin: 8px 0 0;
    color: #657286;
    font-size: 14px;
    line-height: 1.5;
}

.tpd-catalog-count {
    flex: 0 0 auto;
    text-align: right;
}

.tpd-catalog-count strong,
.tpd-catalog-count span {
    display: block;
}

.tpd-catalog-count strong {
    color: #071d38;
    font-size: 24px;
}

.tpd-catalog-count span {
    color: #788497;
    font-size: 11px;
}


/* =========================================================
   FITMENT STRIP
   ========================================================= */

.tpd-fitment-strip {
    display: grid;
    grid-template-columns: 1fr minmax(500px,620px);
    gap: 35px;
    align-items: center;
    margin-bottom: 0;
    padding: 14px 16px;
    border-top: 1px solid #dce4ee;
    border-bottom: 1px solid #dce4ee;
    background: #f5f8fc;
}

.tpd-fitment-strip-copy strong,
.tpd-fitment-strip-copy span {
    display: block;
}

.tpd-fitment-strip-copy strong {
    color: #071d38;
    font-size: 14px;
}

.tpd-fitment-strip-copy span {
    margin-top: 2px;
    color: #6a778a;
    font-size: 12px;
}

.tpd-fitment-strip form {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 7px;
}

.tpd-fitment-strip input {
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #b7c4d6;
    background: #fff;
}

.tpd-fitment-strip button {
    height: 42px;
    padding: 0 17px;
    border: 0;
    background: #075ad7;
    color: #fff;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}


/* =========================================================
   CATALOG TOOLBAR
   ========================================================= */

.tpd-catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 1px;
    color: #657286;
    font-size: 11px;
}

.tpd-catalog-toolbar strong {
    color: #263448;
}

.tpd-catalog-toolbar-help {
    color: #075ad7;
    font-weight: 750;
}


/* =========================================================
   PRODUCT GRID
   ========================================================= */

.tpd-catalog-product-grid {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 12px;
}

.tpd-catalog-product {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dce3ec;
    background: #fff;
}

.tpd-catalog-product:hover {
    border-color: #afbed0;
}

.tpd-catalog-product-image {
    display: flex;
    height: 170px;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-bottom: 1px solid #edf1f5;
    background: #fff;
}

.tpd-catalog-product-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
}

.tpd-catalog-product-body {
    padding: 13px;
}

.tpd-catalog-oem {
    margin-bottom: 4px;
    color: #075ad7;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .07em;
}

.tpd-catalog-sku {
    color: #748094;
    font-size: 10px;
}

.tpd-catalog-sku strong {
    color: #536175;
}

.tpd-catalog-product h2 {
    min-height: 50px;
    margin: 6px 0 10px;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 800;
}

.tpd-catalog-product h2 a {
    color: #132238;
    text-decoration: none;
}

.tpd-catalog-bottom {
    display: flex;
    min-height: 46px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}

.tpd-catalog-price {
    color: #071d38;
    font-size: 18px;
    font-weight: 900;
}

.tpd-catalog-stock {
    margin-top: 2px;
    color: #17813d;
    font-size: 10px;
    font-weight: 800;
}

.tpd-catalog-view {
    color: #075ad7;
    text-decoration: none;
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

.tpd-catalog-fit-button {
    display: block;
    margin-top: 10px;
    padding: 8px 7px;
    border: 1px solid #075ad7;
    color: #075ad7 !important;
    text-align: center;
    text-decoration: none;
    font-size: 11px;
    font-weight: 850;
}

.tpd-catalog-fit-button:hover {
    background: #075ad7;
    color: #fff !important;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.tpd-route-pagination {
    margin-top: 25px;
}

.tpd-route-pagination .page-numbers {
    display: inline-block;
    margin-right: 4px;
    padding: 7px 10px;
    border: 1px solid #d4dce7;
    color: #263448;
    text-decoration: none;
    font-size: 12px;
}

.tpd-route-pagination .current {
    border-color: #075ad7;
    background: #075ad7;
    color: #fff;
}


/* =========================================================
   REPAIR HEADER
   ========================================================= */

.tpd-repair-header {
    max-width: 930px;
    margin-bottom: 22px;
}

.tpd-repair-header h1 {
    margin: 0;
    font-size: clamp(36px,3.2vw,48px);
    line-height: 1.04;
    letter-spacing: -.025em;
}

.tpd-repair-header p {
    margin: 9px 0 0;
    color: #657286;
    font-size: 15px;
    line-height: 1.5;
}


/* =========================================================
   REPAIR STEPS
   ========================================================= */

.tpd-repair-steps {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    margin-bottom: 27px;
    border-top: 1px solid #dce3ec;
    border-bottom: 1px solid #dce3ec;
}

.tpd-repair-steps > div {
    display: flex;
    gap: 11px;
    padding: 14px 20px;
    border-right: 1px solid #dce3ec;
}

.tpd-repair-steps > div:first-child {
    padding-left: 0;
}

.tpd-repair-steps > div:last-child {
    border-right: 0;
}

.tpd-repair-steps b {
    display: flex;
    flex: 0 0 29px;
    width: 29px;
    height: 29px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #075ad7;
    color: #fff;
    font-size: 12px;
}

.tpd-repair-steps span {
    color: #707c8e;
    font-size: 11px;
    line-height: 1.35;
}

.tpd-repair-steps strong {
    display: block;
    margin-bottom: 2px;
    color: #132238;
    font-size: 12px;
}


/* =========================================================
   REPAIR MAIN
   ========================================================= */

.tpd-repair-main {
    display: grid;
    grid-template-columns: minmax(0,1fr) 430px;
    gap: 46px;
}

.tpd-repair-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 11px;
}

.tpd-repair-section-heading h2 {
    margin: 0;
    font-size: 24px;
}

.tpd-repair-section-heading > span {
    color: #7a8799;
    font-size: 11px;
}

.tpd-repair-cause-list {
    border-top: 1px solid #dce3ec;
}

.tpd-repair-cause {
    display: grid;
    grid-template-columns: 45px 1fr;
    align-items: center;
    min-height: 50px;
    border-bottom: 1px solid #e7ecf2;
}

.tpd-repair-cause b {
    color: #9aa6b6;
    font-size: 11px;
}

.tpd-repair-cause span {
    color: #18283e;
    font-size: 14px;
    font-weight: 750;
}


/* =========================================================
   REPAIR FITMENT
   ========================================================= */

.tpd-repair-fitment {
    padding: 23px;
    border-top: 4px solid #075ad7;
    background: #f4f7fb;
}

.tpd-repair-fitment h2 {
    margin: 0;
    font-size: 23px;
    line-height: 1.18;
}

.tpd-repair-fitment > p {
    margin: 7px 0 16px;
    color: #667386;
    font-size: 12px;
    line-height: 1.45;
}

.tpd-repair-fitment label {
    display: block;
    margin-bottom: 5px;
    color: #263448;
    font-size: 11px;
    font-weight: 800;
}

.tpd-repair-fitment input {
    width: 100%;
    height: 45px;
    padding: 0 12px;
    border: 1px solid #b8c5d7;
    background: #fff;
}

.tpd-repair-fitment button {
    width: 100%;
    height: 45px;
    margin-top: 8px;
    border: 0;
    background: #075ad7;
    color: #fff;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.tpd-repair-fitment-note {
    margin-top: 11px;
    color: #55705f;
    font-size: 10px;
    line-height: 1.4;
}


/* =========================================================
   REPAIR COMPONENTS
   ========================================================= */

.tpd-repair-components {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #dce3ec;
}

.tpd-repair-components h2 {
    margin: 0 0 13px;
    font-size: 21px;
}

.tpd-repair-component-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tpd-repair-component-list span {
    padding: 7px 11px;
    border: 1px solid #d5dee9;
    background: #f8fafc;
    color: #263448;
    font-size: 11px;
    font-weight: 750;
}

.tpd-repair-components > p {
    max-width: 900px;
    margin: 11px 0 0;
    color: #7b8798;
    font-size: 10px;
    line-height: 1.45;
}


/* =========================================================
   INDEX ROUTES — PRESERVE EXISTING
   ========================================================= */

.tpd-route-category-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    margin-top: 24px;
    border-top: 1px solid #dce3ec;
    border-left: 1px solid #dce3ec;
}

.tpd-route-category {
    padding: 22px;
    border-right: 1px solid #dce3ec;
    border-bottom: 1px solid #dce3ec;
    color: #132238;
    text-decoration: none;
}

.tpd-route-category strong,
.tpd-route-category span,
.tpd-route-category b {
    display: block;
}

.tpd-route-category strong {
    font-size: 18px;
}

.tpd-route-category span {
    margin: 5px 0 14px;
    color: #6b788b;
    font-size: 12px;
}

.tpd-route-category b {
    color: #075ad7;
    font-size: 11px;
}

.tpd-route-problem-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    margin-top: 24px;
    border-top: 1px solid #dce3ec;
    border-left: 1px solid #dce3ec;
}

.tpd-route-problem {
    padding: 17px 20px;
    border-right: 1px solid #dce3ec;
    border-bottom: 1px solid #dce3ec;
    color: #132238;
    text-decoration: none;
}

.tpd-route-problem small,
.tpd-route-problem strong,
.tpd-route-problem span {
    display: block;
}

.tpd-route-problem small {
    color: #7b8798;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.tpd-route-problem strong {
    margin-top: 2px;
    font-size: 16px;
}

.tpd-route-problem span {
    margin-top: 6px;
    color: #075ad7;
    font-size: 11px;
    font-weight: 800;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {

    .tpd-catalog-product-grid {
        grid-template-columns: repeat(4,1fr);
    }

}


@media (max-width: 950px) {

    .tpd-fitment-strip {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .tpd-catalog-product-grid {
        grid-template-columns: repeat(3,1fr);
    }

    .tpd-repair-main {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 700px) {

    .tpd-route-shell {
        width: min(100% - 24px,1440px);
    }

    .tpd-catalog-header {
        display: block;
    }

    .tpd-catalog-count {
        margin-top: 12px;
        text-align: left;
    }

    .tpd-fitment-strip form {
        grid-template-columns: 1fr;
    }

    .tpd-catalog-toolbar-help {
        display: none;
    }

    .tpd-catalog-product-grid {
        grid-template-columns: repeat(2,1fr);
        gap: 8px;
    }

    .tpd-repair-steps {
        grid-template-columns: 1fr;
    }

    .tpd-repair-steps > div {
        padding-left: 0;
        border-right: 0;
        border-bottom: 1px solid #e5ebf2;
    }

    .tpd-repair-steps > div:last-child {
        border-bottom: 0;
    }

    .tpd-route-category-grid,
    .tpd-route-problem-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 430px) {

    .tpd-catalog-product-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   TPD CLICKABLE REPAIR UI 0.2.2
   ========================================================= */

html {
    scroll-behavior: smooth;
}


/* FILTERED CATALOG */

.tpd-catalog-filter-title {
    color: #68758a;
    font-weight: 600;
}

.tpd-catalog-toolbar-help a {
    color: #075ad7;
    text-decoration: none;
    font-weight: 850;
}


/* REPAIR HEADER */

.tpd-repair-all-parts {
    display: inline-block;
    margin-top: 10px;
    color: #075ad7;
    text-decoration: none;
    font-size: 12px;
    font-weight: 850;
}

.tpd-repair-all-parts:hover {
    text-decoration: underline;
}


/* CLICKABLE STEPS */

.tpd-repair-steps > a {
    display: flex;
    gap: 11px;
    padding: 14px 20px;
    border-right: 1px solid #dce3ec;
    color: inherit;
    text-decoration: none;
}

.tpd-repair-steps > a:first-child {
    padding-left: 0;
}

.tpd-repair-steps > a:last-child {
    border-right: 0;
}

.tpd-repair-steps > a:hover {
    background: #f7f9fc;
}

.tpd-repair-steps > a:hover strong {
    color: #075ad7;
}


/* SECTION HEADER LINK */

.tpd-repair-section-heading > a {
    color: #075ad7;
    text-decoration: none;
    font-size: 11px;
    font-weight: 850;
}


/* CLICKABLE CAUSE ROWS */

.tpd-repair-cause {
    display: grid;
    grid-template-columns: 45px 1fr 24px;
    align-items: center;
    min-height: 57px;
    border-bottom: 1px solid #e7ecf2;
    color: #18283e;
    text-decoration: none;
}

.tpd-repair-cause:hover {
    background: #f7f9fc;
}

.tpd-repair-cause > b {
    color: #9aa6b6;
    font-size: 11px;
}

.tpd-repair-cause > span strong,
.tpd-repair-cause > span small {
    display: block;
}

.tpd-repair-cause > span strong {
    color: #18283e;
    font-size: 14px;
    font-weight: 800;
}

.tpd-repair-cause > span small {
    margin-top: 2px;
    color: #778497;
    font-size: 10px;
}

.tpd-repair-cause > i {
    color: #075ad7;
    font-style: normal;
    font-size: 16px;
    font-weight: 900;
}

.tpd-repair-cause:hover > span strong {
    color: #075ad7;
}


/* CLICKABLE COMPONENTS */

.tpd-repair-component-list {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 8px;
}

.tpd-repair-component-list > a {
    display: block;
    padding: 10px 11px;
    border: 1px solid #d5dee9;
    background: #f8fafc;
    color: #263448;
    text-decoration: none;
}

.tpd-repair-component-list > a:hover {
    border-color: #075ad7;
    background: #fff;
}

.tpd-repair-component-list > a span,
.tpd-repair-component-list > a b {
    display: block;
}

.tpd-repair-component-list > a span {
    font-size: 11px;
    font-weight: 800;
}

.tpd-repair-component-list > a b {
    margin-top: 4px;
    color: #075ad7;
    font-size: 9px;
    font-weight: 850;
}


/* TARGET HIGHLIGHT */

#common-checks,
#model-fitment,
#possible-components {
    scroll-margin-top: 155px;
}


/* MOBILE */

@media (max-width: 700px) {

    .tpd-repair-steps > a {
        padding-left: 0;
        border-right: 0;
        border-bottom: 1px solid #e5ebf2;
    }

    .tpd-repair-steps > a:last-child {
        border-bottom: 0;
    }

    .tpd-repair-component-list {
        grid-template-columns: repeat(2,1fr);
    }

}

@media (max-width: 430px) {

    .tpd-repair-component-list {
        grid-template-columns: 1fr;
    }

}


/* ==========================================================
   TPD MODEL-FIRST BRAND UI 0.2.4
   ========================================================== */

.tpd-brand-model-first {
    display: grid;
    grid-template-columns: minmax(0,1.25fr) minmax(360px,.75fr);
    gap: 42px;
    align-items: center;
    padding: 34px 0 38px;
    border-bottom: 1px solid #dce4ee;
}

.tpd-brand-model-copy h1 {
    margin: 5px 0 10px;
    max-width: 760px;
}

.tpd-brand-model-copy > p {
    max-width: 720px;
    margin: 0;
    color: #536273;
    font-size: 15px;
    line-height: 1.55;
}

.tpd-brand-model-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 20px;
    color: #17375f;
    font-size: 13px;
    font-weight: 700;
}

.tpd-brand-model-box {
    border: 1px solid #ccd7e4;
    background: #f7f9fc;
    padding: 22px;
}

.tpd-brand-model-box > strong {
    display: block;
    color: #0b2342;
    font-size: 16px;
    margin-bottom: 4px;
}

.tpd-brand-model-box > p {
    margin: 0 0 14px;
    color: #667487;
    font-size: 12px;
}

.tpd-brand-exact-model-form {
    display: flex;
    gap: 8px;
    width: 100%;
}

.tpd-brand-exact-model-form input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #b9c6d6;
    background: #fff;
    color: #102642;
    font-size: 14px;
    outline: none;
}

.tpd-brand-exact-model-form input[type="text"]:focus {
    border-color: #1264d9;
    box-shadow: 0 0 0 2px rgba(18,100,217,.10);
}

.tpd-brand-exact-model-form button {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 0 19px;
    border: 0;
    background: #075fda;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.tpd-brand-exact-model-form button:hover {
    background: #064faa;
}

.tpd-model-not-found {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-left: 3px solid #d58a00;
    background: #fff8e8;
    color: #624900;
    font-size: 12px;
    line-height: 1.45;
}

.tpd-known-brand-catalog {
    padding: 30px 0 15px;
}

.tpd-known-brand-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}

.tpd-known-brand-heading h2 {
    margin: 4px 0 5px;
    color: #0a2342;
    font-size: 25px;
    line-height: 1.15;
}

.tpd-known-brand-heading p {
    max-width: 760px;
    margin: 0;
    color: #647286;
    font-size: 13px;
    line-height: 1.5;
}

.tpd-brand-model-only-note {
    max-width: 760px;
    margin: 22px 0 0;
    padding: 14px 16px;
    border-left: 3px solid #1264d9;
    background: #f5f8fc;
}

.tpd-brand-model-only-note strong {
    color: #0a2342;
}

.tpd-brand-model-only-note p {
    margin: 4px 0 0;
    color: #5f6f82;
    font-size: 13px;
    line-height: 1.5;
}


/*
 * Product cards are now simpler:
 * product page owns fitment confirmation.
 */
.tpd-brand-page .tpd-catalog-fit-button,
.tpd-brand-page .tpd-catalog-oem {
    display: none !important;
}


@media (max-width: 850px) {

    .tpd-brand-model-first {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .tpd-known-brand-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}


@media (max-width: 600px) {

    .tpd-brand-exact-model-form {
        display: block;
    }

    .tpd-brand-exact-model-form input[type="text"],
    .tpd-brand-exact-model-form button {
        width: 100%;
    }

    .tpd-brand-exact-model-form button {
        margin-top: 8px;
    }

    .tpd-brand-model-points {
        display: grid;
        gap: 7px;
    }
}



/* TPD DIRECT ROUTE IMAGE 0.2.6 */

.tpd-catalog-product-image {
    height: 160px;
}

.tpd-catalog-product-image .tpd-route-product-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
}



/* =========================================================
   TPD ROUTE VISUAL IMAGE FALLBACK 0.2.7
   Browser-independent product image presentation
   ========================================================= */

.tpd-catalog-product-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    height: 160px;

    padding: 10px;

    background-color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;

    border-bottom: 1px solid #edf1f5;
}


/*
 * Keep the real IMG in the markup for SEO/accessibility,
 * but the card background guarantees the visual even when
 * a lazy-load optimizer suppresses the IMG.
 */

.tpd-catalog-product-image img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
}


/*
 * If a third-party lazy loader explicitly makes the
 * element invisible, the background remains visible.
 */

.tpd-catalog-product-image img.lazyload,
.tpd-catalog-product-image img.lazyloading {
    opacity: 0 !important;
}




/* ==========================================================
   TPD ZERO-JS CARD IMAGE 0.2.9
   ========================================================== */

.tpd-catalog-product-image {
    position: relative;
    display: block;
    height: 160px;
    padding: 10px;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid #edf1f5;
}

.tpd-route-product-bg {
    display: block;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}


/*
 * Legacy protection only.
 * No IMG should remain in these card image areas after 0.2.9.
 */
.tpd-catalog-product-image > img {
    display: none !important;
}

