.reparto-fitment-selector {
    background: #050505;
    color: #ffffff;
    width: 100%;
}


/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.reparto-fitment-selector__header {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
}

.reparto-fitment-selector__header-icon {
    align-items: center;
    color: #ef0018;
    display: inline-flex;
    flex: 0 0 36px;
    justify-content: center;
    margin-top: 2px;
    min-width: 36px;
}

.reparto-fitment-selector__header-icon svg {
    display: block;
    fill: none;
    height: 32px;
    stroke: currentColor;
    width: 32px;
}

.reparto-fitment-selector__header-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.reparto-fitment-selector__eyebrow {
    display: none;
}

.reparto-fitment-selector__title {
    color: #ffffff;
    display: block;
    font-family: "Rajdhani", sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.1;
    text-transform: uppercase;
}

.reparto-fitment-selector__description {
    color: #9f9f9f;
    display: block;
    font-size: 14px;
    line-height: 1.35;
    margin: 4px 0 0;
}


/*
|--------------------------------------------------------------------------
| Fields
|--------------------------------------------------------------------------
*/

.reparto-fitment-selector__fields {
    align-items: end;
    display: grid;
    gap: 20px;

    grid-template-columns:
        minmax(180px, 1fr)
        minmax(180px, 1fr)
        minmax(150px, 0.75fr)
        auto;
}

.reparto-fitment-selector__field {
    min-width: 0;
    position: relative;
    z-index: 1;
}

.reparto-fitment-selector__field:has(.select2-container--open) {
    z-index: 30;
}

.reparto-fitment-selector__label {
    color: #ffffff;
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.reparto-fitment-selector__select-wrap {
    position: relative;
}

.reparto-fitment-selector__select-wrap::after {
    border-bottom: 2px solid #ffffff;
    border-right: 2px solid #ffffff;
    content: "";
    height: 7px;
    pointer-events: none;
    position: absolute;
    right: 18px;
    top: 50%;
    transform:
            translateY(-65%)
            rotate(45deg);
    width: 7px;
}

.reparto-fitment-selector__select {
    appearance: none !important;
    background: #101010 !important;
    border: 1px solid #292929 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    color: #ffffff !important;
    cursor: pointer;
    font-family: Inter, Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    height: 56px !important;
    line-height: 1.3 !important;
    min-height: 56px !important;
    padding: 0 48px 0 17px !important;
    transition:
            border-color 0.18s ease,
            background-color 0.18s ease;
    width: 100%;
}

.reparto-fitment-selector__select:hover,
.reparto-fitment-selector__select:focus {
    background: #151515;
    border-color: #ef0018;
    box-shadow: none;
    outline: none;
}

.reparto-fitment-selector__select:disabled {
    color: #666666;
    cursor: not-allowed;
    opacity: 0.75;
}

.reparto-fitment-selector__select-wrap:has(
    .reparto-fitment-selector__select:disabled
)::after {
    border-color: #666666;
}


/*
|--------------------------------------------------------------------------
| Actions
|--------------------------------------------------------------------------
*/

.reparto-fitment-selector__actions {
    min-width: 180px;
}

.reparto-fitment-selector__submit {
    align-items: center;
    background: #ef0018;
    border: 1px solid #ef0018;
    border-radius: 8px;
    box-sizing: border-box;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-family: "Rajdhani", sans-serif;
    font-size: 16px;
    font-weight: 700;
    height: 56px;
    justify-content: center;
    letter-spacing: 0.05em;
    line-height: 1;
    max-width: 200px;
    min-height: 56px;
    overflow: hidden;
    padding: 0 28px;
    text-align: center;
    text-transform: uppercase;
    transition:
            background-color 0.18s ease,
            border-color 0.18s ease,
            color 0.18s ease;
    white-space: nowrap;
    width: 100%;
}

.reparto-fitment-selector__submit::after {
    content: "→";
    display: inline-block;
    font-size: 19px;
    line-height: 1;
    margin-left: 12px;
    opacity: 1;
    transform: translateX(0);
    transition:
            opacity 0.22s ease,
            transform 0.22s ease;
}

.reparto-fitment-selector__submit:hover,
.reparto-fitment-selector__submit:focus {
    background: #bc0510;
    border-color: #bc0510;
    color: #ffffff;
}

.reparto-fitment-selector__submit:hover::after,
.reparto-fitment-selector__submit:focus::after {
    opacity: 0;
    transform: translateX(28px);
}

.reparto-fitment-selector__submit:disabled {
    background: #252525;
    border-color: #252525;
    color: #6e6e6e;
    cursor: not-allowed;
}


/*
|--------------------------------------------------------------------------
| Message
|--------------------------------------------------------------------------
*/

.reparto-fitment-selector__message {
    color: #8f8f8f;
    font-size: 13px;
    min-height: 20px;
    padding-top: 12px;
}

.reparto-fitment-selector__message--error {
    color: #ef0018;
}


/*
|--------------------------------------------------------------------------
| Megamenu mode
|--------------------------------------------------------------------------
*/

.reparto-fitment-selector--megamenu {
    margin: 0 auto;
    max-width: 1460px;
    min-height: 300px;
    padding: 42px;
}

.reparto-fitment-selector--megamenu
.reparto-fitment-selector__header {
    max-width: 600px;
}


/*
|--------------------------------------------------------------------------
| Default mode
|--------------------------------------------------------------------------
*/

.reparto-fitment-selector--default {
    padding: 36px;
}


/*
|--------------------------------------------------------------------------
| Hero mode
|--------------------------------------------------------------------------
*/

.reparto-hero__fitment {
    box-sizing: border-box;
    flex: 0 0 auto;
    margin-top: 26px;
    overflow: visible;
    position: relative;
    width: 100%;
    z-index: 20;
}

.reparto-fitment-selector--hero {
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    background: rgba(7, 7, 7, 0.93);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 2px solid #ef0018;
    border-radius: 8px;
    box-shadow:
            0 16px 40px rgba(0, 0, 0, 0.38);
    box-sizing: border-box;
    color: #ffffff;
    max-width: none;
    padding: 18px 24px 14px;
    width: 100%;
}


/*
|--------------------------------------------------------------------------
| Hero header
|--------------------------------------------------------------------------
*/

.reparto-fitment-selector--hero
.reparto-fitment-selector__header {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
}

.reparto-fitment-selector--hero
.reparto-fitment-selector__header-icon {
    color: #ef0018;
    flex: 0 0 36px;
    min-width: 36px;
}

.reparto-fitment-selector--hero
.reparto-fitment-selector__header-icon svg {
    height: 32px;
    width: 32px;
}

.reparto-fitment-selector--hero
.reparto-fitment-selector__header-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.reparto-fitment-selector--hero
.reparto-fitment-selector__eyebrow {
    display: none;
}

.reparto-fitment-selector--hero
.reparto-fitment-selector__title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.1;
    text-transform: uppercase;
}

.reparto-fitment-selector--hero
.reparto-fitment-selector__description {
    color: #9f9f9f;
    display: block;
    font-size: 14px;
    line-height: 1.35;
    margin-top: 4px;
}


/*
|--------------------------------------------------------------------------
| Hero fields
|--------------------------------------------------------------------------
*/

.reparto-fitment-selector--hero
.reparto-fitment-selector__fields {
    align-items: end;
    display: grid;
    gap: 14px;

    grid-template-columns:
        minmax(200px, 1fr)
        minmax(200px, 1fr)
        minmax(160px, 0.8fr)
        minmax(210px, 250px);
}

.reparto-fitment-selector--hero
.reparto-fitment-selector__field {
    min-width: 0;
}

.reparto-fitment-selector--hero
.reparto-fitment-selector__label {
    color: #bcbcbc;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.055em;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.reparto-fitment-selector--hero
.reparto-fitment-selector__select {
    background: rgba(12, 12, 12, 0.96) !important;
    border: 1px solid #2d2d2d !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-size: 15px !important;
    height: 56px !important;
    min-height: 56px !important;
    padding-left: 16px !important;
}

.reparto-fitment-selector--hero
.reparto-fitment-selector__select:hover,
.reparto-fitment-selector--hero
.reparto-fitment-selector__select:focus {
    background: #111111;
    border-color: #555555;
}

.reparto-fitment-selector--hero
.reparto-fitment-selector__select-wrap::after {
    right: 18px;
}


/*
|--------------------------------------------------------------------------
| Hero button
|--------------------------------------------------------------------------
*/

.reparto-fitment-selector--hero
.reparto-fitment-selector__actions {
    min-width: 0;
}

.reparto-fitment-selector--hero
.reparto-fitment-selector__submit {
    background: #ef0018;
    border-color: #ef0018;
    border-radius: 8px;
    font-size: 16px;
    height: 56px;
    min-height: 56px;
    padding: 0 24px;
}

.reparto-fitment-selector--hero
.reparto-fitment-selector__submit:hover,
.reparto-fitment-selector--hero
.reparto-fitment-selector__submit:focus {
    background: #bc0510;
    border-color: #bc0510;
    color: #ffffff;
}


/*
|--------------------------------------------------------------------------
| Saved bike / message
|--------------------------------------------------------------------------
*/

.reparto-fitment-selector--hero
.reparto-fitment-selector__message {
    color: #b4b4b4;
    font-size: 13px;
    min-height: 0;
    padding-top: 12px;
}

.reparto-fitment-selector--hero
.reparto-fitment-selector__message--error {
    color: #ef0018;
}

.reparto-fitment-selector--hero
.reparto-fitment-selector__saved,
.reparto-fitment-selector--hero
.reparto-fitment-selector__saved-bike {
    align-items: center;
    color: #b4b4b4;
    display: flex;
    font-size: 13px;
    gap: 8px;
    margin-top: 12px;
}

.reparto-fitment-selector--hero
.reparto-fitment-selector__saved a,
.reparto-fitment-selector--hero
.reparto-fitment-selector__saved-bike a {
    color: #ef0018;
    font-weight: 700;
    text-decoration: none;
}

.reparto-fitment-selector--hero
.reparto-fitment-selector__saved a:hover,
.reparto-fitment-selector--hero
.reparto-fitment-selector__saved-bike a:hover {
    color: #ffffff;
}


/*
|--------------------------------------------------------------------------
| Smaller desktop
|--------------------------------------------------------------------------
*/

@media only screen and (max-width: 1280px) {

    .reparto-fitment-selector--hero {
        padding:
                18px
                20px
                15px;
    }

    .reparto-fitment-selector--hero
    .reparto-fitment-selector__fields {
        gap: 12px;

        grid-template-columns:
            minmax(170px, 1fr)
            minmax(170px, 1fr)
            minmax(130px, 0.75fr)
            minmax(190px, 220px);
    }
}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media only screen and (max-width: 1100px) {

    .reparto-fitment-selector__fields {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .reparto-fitment-selector__actions {
        grid-column: 1 / -1;
        min-width: 0;
    }

    .reparto-fitment-selector__submit {
        width: auto;
    }

    .reparto-hero__fitment {
        margin-top: 22px;
    }

    .reparto-fitment-selector--hero
    .reparto-fitment-selector__fields {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .reparto-fitment-selector--hero
    .reparto-fitment-selector__actions {
        grid-column: 1 / -1;
    }

    .reparto-fitment-selector--hero
    .reparto-fitment-selector__submit {
        width: 100%;
    }
}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media only screen and (max-width: 767px) {

    .reparto-fitment-selector--megamenu,
    .reparto-fitment-selector--default {
        min-height: 0;

        padding:
                24px
                20px
                30px;
    }

    .reparto-fitment-selector__header,
    .reparto-fitment-selector--hero
    .reparto-fitment-selector__header {
        gap: 12px;
        margin-bottom: 14px;
    }

    .reparto-fitment-selector__header-icon,
    .reparto-fitment-selector--hero
    .reparto-fitment-selector__header-icon {
        flex: 0 0 28px;
        min-width: 28px;
    }

    .reparto-fitment-selector__header-icon svg,
    .reparto-fitment-selector--hero
    .reparto-fitment-selector__header-icon svg {
        height: 24px;
        width: 24px;
    }

    .reparto-fitment-selector__title,
    .reparto-fitment-selector--hero
    .reparto-fitment-selector__title {
        font-size: 17px;
    }

    .reparto-fitment-selector__description,
    .reparto-fitment-selector--hero
    .reparto-fitment-selector__description {
        font-size: 12px;
    }

    .reparto-fitment-selector__fields {
        display: grid;
        gap: 16px;
        grid-template-columns: 1fr;
    }

    .reparto-fitment-selector__actions {
        grid-column: auto;
    }

    .reparto-fitment-selector__submit {
        width: 100%;
    }

    .reparto-hero__fitment {
        margin-top: 12px;
        width: 100%;
    }

    .reparto-fitment-selector--hero {
        border-left-color: rgba(255, 255, 255, 0.12);
        min-height: 0;
        padding: 12px;
    }

    .reparto-fitment-selector--hero
    .reparto-fitment-selector__header {
        cursor: pointer;
        margin-bottom: 0;
    }

    .reparto-fitment-selector--hero
    .reparto-fitment-selector__form {
        display: none;
    }

    .reparto-fitment-selector--hero.is-open
    .reparto-fitment-selector__form {
        display: block;
    }

    .reparto-fitment-selector--hero.is-open
    .reparto-fitment-selector__header {
        margin-bottom: 14px;
    }

    .reparto-fitment-selector--hero
    .reparto-fitment-selector__fields {
        display: grid;
        gap: 10px;
        grid-template-columns: 1fr;
    }

    .reparto-fitment-selector--hero
    .reparto-fitment-selector__actions {
        grid-column: auto;
        max-width: none;
        min-width: 0;
        width: 100%;
    }

    .reparto-fitment-selector--hero
    .reparto-fitment-selector__submit {
        height: 48px;
        max-width: none;
        min-height: 48px;
        padding: 10px 18px;
        width: 100%;
    }
}

/*
| Select2 dropdown is appended to body (hero overflow:hidden).
| Dark styles must live here — not nested under .reparto-fitment-selector.
*/
.select2-dropdown.reparto-fitment-select2 {
    background: #111 !important;
    border: 1px solid #2d2d2d !important;
    overflow: hidden;
}

.select2-dropdown.reparto-fitment-select2 .select2-search__field {
    background: #1a1a1a !important;
    border-color: #333 !important;
    color: #fff !important;
}

.select2-dropdown.reparto-fitment-select2 .select2-results,
.select2-dropdown.reparto-fitment-select2 .select2-results__options {
    max-height: 240px !important;
    overflow-y: auto !important;
}

.select2-dropdown.reparto-fitment-select2 .select2-results__option {
    background: transparent !important;
    color: #fff !important;
}

.select2-dropdown.reparto-fitment-select2
.select2-results__option--highlighted.select2-results__option--selectable {
    background: #ef0018 !important;
    color: #fff !important;
}

.select2-dropdown.reparto-fitment-select2 .select2-results__option--selected {
    background: #222 !important;
    color: #fff !important;
}

html body .select2-container--default .select2-dropdown:not(.reparto-fitment-select2) .select2-results__option {
    background: #fff !important;
    color: #111 !important;
}

html body .select2-container--default .select2-dropdown:not(.reparto-fitment-select2) .select2-results__option--highlighted.select2-results__option--selectable,
html body .select2-container--default .select2-dropdown:not(.reparto-fitment-select2) .select2-results__option--highlighted.select2-results__option--selected {
    background: #111 !important;
    color: #fff !important;
}

html body .select2-container--default .select2-dropdown:not(.reparto-fitment-select2) .select2-results__option--selected:not(.select2-results__option--highlighted) {
    background: #f3f3f3 !important;
    color: #111 !important;
}