.ngp-machine-selector,
.ngp-machine-bar,
.ngp-tech-filters {
    --ngp-component-accent: var(--ngp-accent, #ff5a0a);
    --ngp-component-dark: var(--ngp-dark-2, #13232d);
    --ngp-component-line: var(--ngp-line, #dfe4e7);
    --ngp-component-muted: var(--ngp-muted, #66727a);
    --ngp-component-soft: var(--ngp-soft, #f5f7f8);
    box-sizing: border-box;
    font-family: inherit;
}

.ngp-machine-selector *,
.ngp-machine-bar *,
.ngp-tech-filters * {
    box-sizing: border-box;
}

/* Full three-stage selector */
.ngp-machine-selector {
    max-width: 1180px;
    margin: 24px auto;
    overflow: hidden;
    border: 1px solid var(--ngp-component-line);
    border-radius: 14px;
    background: #fff;
    color: #182733;
    box-shadow: 0 14px 42px rgba(20, 42, 56, .08);
}

.ngp-machine-selector--empty {
    padding: 24px;
    color: var(--ngp-component-muted);
}

.ngp-selector-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 30px 34px 22px;
}

.ngp-selector-kicker {
    color: var(--ngp-component-accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .1em;
}

.ngp-selector-head h2 {
    margin: 6px 0 7px;
    color: var(--ngp-component-dark);
    font-size: 29px;
    line-height: 1.16;
}

.ngp-selector-head p {
    margin: 0;
    color: var(--ngp-component-muted);
}

.ngp-selector-reset,
.ngp-selector-back {
    padding: 7px 0;
    border: 0;
    background: transparent;
    color: var(--ngp-component-accent);
    font-weight: 750;
    cursor: pointer;
}

.ngp-selector-progress {
    display: flex;
    align-items: center;
    padding: 0 34px 24px;
}

.ngp-selector-progress div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a1a8;
    font-size: 14px;
    white-space: nowrap;
}

.ngp-selector-progress span {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border: 2px solid #cbd2d6;
    border-radius: 50%;
    font-size: 13px;
}

.ngp-selector-progress i {
    height: 2px;
    flex: 1;
    margin: 0 12px;
    background: #e5e9eb;
}

.ngp-selector-progress .is-active,
.ngp-selector-progress .is-done {
    color: var(--ngp-component-dark);
}

.ngp-selector-progress .is-active span {
    border-color: var(--ngp-component-accent);
    color: var(--ngp-component-accent);
    box-shadow: 0 0 0 4px rgba(255, 90, 10, .09);
}

.ngp-selector-progress .is-done span {
    border-color: var(--ngp-component-accent);
    background: var(--ngp-component-accent);
    color: #fff;
}

.ngp-selector-stage {
    padding: 26px 34px 34px;
    border-top: 1px solid var(--ngp-component-line);
    background: var(--ngp-component-soft);
}

.ngp-selector-stage[hidden],
.ngp-selector-result[hidden] {
    display: none;
}

.ngp-selector-stage h3 {
    margin: 0 0 16px;
    color: var(--ngp-component-dark);
    font-size: 17px;
}

.ngp-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

.ngp-selector-grid--models {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ngp-selector-option {
    position: relative;
    min-height: 76px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20px;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    border: 1px solid #d8dfe3;
    border-radius: 8px;
    background: #fff;
    color: #1e303a;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ngp-selector-option:hover {
    border-color: var(--ngp-component-accent);
    box-shadow: 0 6px 18px rgba(37, 48, 55, .08);
    transform: translateY(-1px);
}

.ngp-selector-option--type {
    grid-template-columns: 76px minmax(0, 1fr) 20px;
    min-height: 98px;
}

.ngp-selector-option__icon {
    width: 76px;
    height: 60px;
    display: grid;
    place-items: center;
    border: 1px solid #dbe2e5;
    border-radius: 10px;
    background: linear-gradient(145deg, #fff, #eef2f4);
    color: #172a35;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.ngp-selector-option__icon svg {
    width: 68px;
    height: 45px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ngp-machine-svg__accent {
    stroke: var(--ngp-component-accent);
}

.ngp-machine-selector .ngp-machine-svg__window,
.ngp-machine-bar .ngp-machine-svg__window {
    fill: #e7f0f4;
}

.ngp-machine-selector .ngp-machine-svg__wheel,
.ngp-machine-selector .ngp-machine-svg__track,
.ngp-machine-selector .ngp-machine-svg__drum,
.ngp-machine-bar .ngp-machine-svg__wheel,
.ngp-machine-bar .ngp-machine-svg__track,
.ngp-machine-bar .ngp-machine-svg__drum {
    fill: #f4f6f7;
}

.ngp-selector-option__copy {
    min-width: 0;
}

.ngp-selector-option__copy strong,
.ngp-selector-option__copy small {
    display: block;
}

.ngp-selector-option__copy strong {
    color: #1d303a;
    font-size: 15px;
}

.ngp-selector-option__copy small {
    margin-top: 3px;
    color: var(--ngp-component-muted);
    font-size: 12px;
}

.ngp-selector-option > span:last-child {
    color: var(--ngp-component-accent);
}

.ngp-model-search {
    max-width: 420px;
    display: flex;
    align-items: center;
    margin: -2px 0 16px;
    padding: 0 12px;
    border: 1px solid #d5dde1;
    border-radius: 7px;
    background: #fff;
    color: #718089;
}

.ngp-model-search input {
    width: 100%;
    padding: 10px 8px;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
}

.ngp-no-result {
    grid-column: 1 / -1;
    color: var(--ngp-component-muted);
}

.ngp-selector-result {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(160px, 220px) auto;
    align-items: end;
    gap: 18px;
    padding: 28px 34px;
    border-top: 1px solid #cfe5d8;
    background: #f0f8f3;
}

.ngp-result-check {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    align-self: center;
    border-radius: 50%;
    background: #198754;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
}

.ngp-selector-result small {
    color: #667d71;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
}

.ngp-selector-result h3 {
    margin: 2px 0;
    color: #173e2e;
    font-size: 19px;
}

.ngp-selector-result p {
    margin: 0;
    color: #64786e;
    font-size: 14px;
}

.ngp-result-button {
    min-height: 44px;
    padding: 10px 17px;
    border: 0;
    border-radius: 6px;
    background: var(--ngp-component-accent);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.ngp-result-button:disabled {
    background: #abb8be;
    cursor: not-allowed;
}

/* Compact home-page selector */
.ngp-machine-bar {
    display: grid;
    grid-template-columns: 1.1fr repeat(4, minmax(0, 1fr)) auto;
    align-items: end;
    gap: 10px;
    padding: 14px 16px 34px;
    border: 1px solid var(--ngp-component-line);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(20, 42, 56, .07);
}

.ngp-machine-bar__label {
    align-self: center;
    padding-right: 8px;
}

.ngp-machine-bar__label strong,
.ngp-machine-bar__label span {
    display: block;
}

.ngp-machine-bar__label strong {
    color: var(--ngp-component-dark);
    font-size: 15px;
}

.ngp-machine-bar__label span {
    margin-top: 1px;
    color: var(--ngp-component-muted);
    font-size: 13px;
}

.ngp-machine-bar label {
    position: relative;
    min-width: 0;
    margin: 0;
}

.ngp-machine-bar label > span,
.ngp-machine-serial > span,
.ngp-result-serial > span {
    display: block;
    margin: 0 0 4px;
    color: #60717b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ngp-machine-serial > span small,
.ngp-result-serial > span small {
    color: #87949b;
    font: inherit;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.ngp-machine-bar select,
.ngp-machine-serial input,
.ngp-result-serial input {
    width: 100%;
    height: 42px;
    padding: 0 11px;
    border: 1px solid #ccd4d9;
    border-radius: 6px;
    outline: 0;
    background: #fff;
    color: #243740;
    font-size: 14px;
    box-shadow: none;
}

.ngp-machine-bar select:focus,
.ngp-machine-serial input:focus,
.ngp-result-serial input:focus {
    border-color: var(--ngp-component-accent);
    box-shadow: 0 0 0 3px rgba(255, 90, 10, .1);
}

.ngp-machine-bar select:disabled {
    background: #f2f4f5;
    color: #9aa5aa;
}

.ngp-machine-bar__submit {
    height: 42px;
    padding: 0 17px;
    border: 0;
    border-radius: 6px;
    background: var(--ngp-component-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.ngp-machine-bar__submit:disabled {
    background: #aab5ba;
    cursor: not-allowed;
}

.ngp-machine-bar__submit:not(:disabled):hover {
    filter: brightness(.92);
}

.ngp-serial-help {
    position: absolute;
    top: 100%;
    left: 1px;
    display: block;
    margin-top: 4px;
    color: #7c898f;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
}

/* Accessible custom select */
.ngp-native-select {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.ngp-smart-select {
    position: relative;
    width: 100%;
}

.ngp-smart-select__button {
    width: 100%;
    height: 42px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 17px;
    align-items: center;
    gap: 8px;
    padding: 4px 9px 4px 11px;
    border: 1px solid #ccd4d9;
    border-radius: 6px;
    background: #fff;
    color: #263740;
    text-align: left;
    cursor: pointer;
}

.ngp-smart-select.has-icon .ngp-smart-select__button {
    grid-template-columns: 40px minmax(0, 1fr) 17px;
    padding-left: 5px;
}

.ngp-smart-select__button:focus-visible,
.ngp-smart-select.is-open .ngp-smart-select__button {
    border-color: var(--ngp-component-accent);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(255, 90, 10, .1);
}

.ngp-smart-select__button:disabled {
    background: #f2f4f5;
    color: #97a2a8;
    cursor: not-allowed;
}

.ngp-smart-select__icon,
.ngp-smart-select__option-icon {
    display: grid;
    place-items: center;
    color: #34464f;
}

.ngp-smart-select__icon[hidden] {
    display: none;
}

.ngp-smart-select__icon {
    width: 40px;
    height: 31px;
    border: 1px solid #e1e5e7;
    border-radius: 5px;
    background: linear-gradient(145deg, #fff, #eef1f3);
}

.ngp-smart-select__icon svg,
.ngp-smart-select__option-icon svg {
    width: 36px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ngp-smart-select__value {
    min-width: 0;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ngp-smart-select__chevron,
.ngp-smart-select__chevron svg {
    width: 17px;
    height: 17px;
}

.ngp-smart-select__chevron svg,
.ngp-smart-select__check {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ngp-smart-select__chevron {
    transition: transform .18s ease;
}

.ngp-smart-select.is-open .ngp-smart-select__chevron {
    transform: rotate(180deg);
}

.ngp-smart-select__menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 200;
    max-height: 280px;
    display: none;
    overflow: auto;
    padding: 6px;
    border: 1px solid #d5dce0;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(17, 28, 35, .16);
}

.ngp-smart-select.is-open .ngp-smart-select__menu {
    display: block;
}

.ngp-smart-select__option {
    width: 100%;
    min-height: 43px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 17px;
    align-items: center;
    gap: 8px;
    padding: 5px 8px 5px 11px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #283942;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.ngp-smart-select__option.has-icon {
    grid-template-columns: 40px minmax(0, 1fr) 17px;
    padding-left: 5px;
}

.ngp-smart-select__option:hover,
.ngp-smart-select__option:focus-visible {
    outline: 0;
    background: #f2f4f5;
}

.ngp-smart-select__option.is-selected {
    background: #fff2eb;
    color: #b93d00;
    font-weight: 750;
}

.ngp-smart-select__option-icon {
    width: 40px;
    height: 31px;
}

.ngp-smart-select__check {
    width: 17px;
    height: 17px;
    opacity: 0;
}

.ngp-smart-select__option.is-selected .ngp-smart-select__check {
    opacity: 1;
}

/* Technical filters */
.ngp-tech-filters {
    margin: 0 0 24px;
}

.ngp-tech-filters__toggle {
    height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 9px 0 0;
    padding: 0 14px;
    border: 1px solid #cdd5da;
    border-radius: 6px;
    background: #fff;
    color: var(--ngp-component-dark);
    font-size: 14px;
    font-weight: 800;
}

.ngp-tech-filters__toggle b {
    min-width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border-radius: 999px;
    background: #fff0e8;
    color: #bd3f00;
    font-size: 12px;
}

.ngp-tech-filters__toggle i {
    display: none;
    width: 7px;
    height: 7px;
    margin: -4px 1px 0 3px;
    border-right: 2px solid #64747d;
    border-bottom: 2px solid #64747d;
    transform: rotate(45deg);
}

.ngp-filter-icon {
    position: relative;
    width: 15px;
    height: 12px;
    border-top: 2px solid var(--ngp-component-accent);
    border-bottom: 2px solid var(--ngp-component-accent);
}

.ngp-filter-icon::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 3px;
    right: 3px;
    border-top: 2px solid var(--ngp-component-accent);
}

.ngp-tech-filters__fields {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
    vertical-align: top;
}

.ngp-tech-filters label {
    min-width: 150px;
    margin: 0;
}

.ngp-tech-filters label > span {
    display: none;
}

.ngp-tech-filters select {
    min-width: 150px;
    max-width: 230px;
    height: 42px;
    padding: 0 34px 0 11px;
    border: 1px solid #cdd5da;
    border-radius: 6px;
    background: #fff;
    color: #29414d;
    font-size: 13px;
    font-weight: 700;
}

.ngp-tech-filters__submit {
    height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 6px;
    background: var(--ngp-component-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.ngp-tech-filters__active {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.ngp-tech-filter-chip {
    min-height: 29px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 7px 4px 9px;
    border-radius: 999px;
    background: #fff0e8;
    color: #a93900;
    font-size: 12px;
    font-weight: 750;
}

.ngp-tech-filter-chip b {
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    font-size: 14px;
}

.ngp-tech-filters__clear {
    min-height: 29px;
    display: inline-flex;
    align-items: center;
    padding: 0 5px;
    color: var(--ngp-component-muted);
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 980px) {
    .ngp-selector-grid--models {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ngp-machine-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-bottom: 14px;
    }

    .ngp-machine-bar__label,
    .ngp-machine-serial,
    .ngp-machine-bar__submit {
        grid-column: 1 / -1;
    }

    .ngp-serial-help {
        position: static;
        margin: 4px 1px 0;
    }
}

@media (max-width: 780px) {
    .ngp-selector-head {
        padding: 22px 20px 18px;
    }

    .ngp-selector-head h2 {
        font-size: 23px;
    }

    .ngp-selector-progress {
        padding: 0 20px 20px;
    }

    .ngp-selector-progress b {
        display: none;
    }

    .ngp-selector-stage {
        padding: 21px 20px 26px;
    }

    .ngp-selector-grid,
    .ngp-selector-grid--models {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ngp-selector-result {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 22px 20px;
    }

    .ngp-result-serial,
    .ngp-result-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .ngp-tech-filters__toggle {
        width: 100%;
        justify-content: flex-start;
        margin: 0;
        cursor: pointer;
    }

    .ngp-tech-filters__toggle i {
        display: block;
        margin-left: auto;
    }

    .ngp-tech-filters.is-open .ngp-tech-filters__toggle i {
        margin-top: 4px;
        transform: rotate(225deg);
    }

    .ngp-tech-filters__fields {
        width: 100%;
        display: none;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 8px;
        padding: 11px;
        border: 1px solid var(--ngp-component-line);
        border-radius: 7px;
        background: #f7f8f9;
    }

    .ngp-tech-filters.is-open .ngp-tech-filters__fields {
        display: grid;
    }

    .ngp-tech-filters label,
    .ngp-tech-filters select {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .ngp-tech-filters label > span {
        display: block;
        margin-bottom: 3px;
        color: #60717b;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .ngp-tech-filters__submit {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .ngp-machine-selector {
        margin: 14px auto;
        border-radius: 10px;
    }

    .ngp-selector-head {
        display: block;
    }

    .ngp-selector-reset {
        margin-top: 7px;
    }

    .ngp-selector-progress i {
        margin-inline: 6px;
    }

    .ngp-selector-grid,
    .ngp-selector-grid--models,
    .ngp-machine-bar {
        grid-template-columns: 1fr;
    }

    .ngp-selector-option,
    .ngp-selector-option--type {
        min-height: 86px;
    }

    .ngp-selector-option--type {
        grid-template-columns: 72px minmax(0, 1fr) 20px;
    }

    .ngp-selector-option__icon {
        width: 70px;
        height: 58px;
    }

    .ngp-selector-option__icon svg {
        width: 64px;
        height: 43px;
    }

    .ngp-machine-bar__label,
    .ngp-machine-serial,
    .ngp-machine-bar__submit {
        grid-column: auto;
    }

    .ngp-machine-bar {
        gap: 13px;
        padding: 16px;
    }

    .ngp-machine-bar__label strong {
        font-size: 17px;
    }

    .ngp-machine-bar__label span {
        font-size: 14px;
    }

    .ngp-smart-select__button,
    .ngp-machine-serial input,
    .ngp-machine-bar__submit {
        height: 50px;
    }

    .ngp-smart-select__button {
        grid-template-columns: minmax(0, 1fr) 20px;
        gap: 9px;
    }

    .ngp-smart-select.has-icon .ngp-smart-select__button {
        grid-template-columns: 46px minmax(0, 1fr) 20px;
    }

    .ngp-smart-select__icon {
        width: 46px;
        height: 37px;
    }

    .ngp-smart-select__icon svg {
        width: 42px;
        height: 28px;
    }

    .ngp-smart-select__value,
    .ngp-machine-serial input,
    .ngp-machine-bar__submit {
        font-size: 15px;
    }

    .ngp-smart-select__menu {
        max-height: min(48vh, 330px);
    }
}
