/* Part number search — a solid slab, shaped to sit beside the vehicle selector bar as a sibling. */

.oap-ps {
    --ps-shell: #ffffff;
    --ps-field-ink: #16191d;
    --ps-placeholder: #8a94a0;
    --ps-btn: #16191d;
    --ps-btn-ink: #ffffff;
    --ps-label: #16191d;
    --ps-radius: 0.75rem;
    --ps-height: 4rem;
    --ps-width: 100%;
    margin: 0 0 1.25rem;
}

.oap-ps--dark {
    --ps-label: #ffffff;
}

.oap-ps-form {
    width: 100%;
    max-width: var(--ps-width);
    margin: 0 auto;
}

.oap-ps-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--ps-label);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
}

.oap-ps-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    box-sizing: border-box;
    width: 100%;
    height: var(--ps-height);
    padding: 0.45rem;
    background: var(--ps-shell);
    border-radius: var(--ps-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.oap-ps .oap-ps-row .oap-ps-input {
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 1rem !important;
    border: 0 !important;
    border-radius: calc(var(--ps-radius) - 0.25rem);
    background: transparent !important;
    color: var(--ps-field-ink);
    font-size: 1.0625rem;
    font-family: ui-monospace, "SF Mono", Consolas, monospace;
    letter-spacing: 0.04em;
    line-height: normal;
    box-shadow: none !important;
    outline: 0 !important;
}

.oap-ps .oap-ps-row .oap-ps-input:focus,
.oap-ps .oap-ps-row .oap-ps-input:focus-visible {
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
}

.oap-ps-input::placeholder {
    color: var(--ps-placeholder);
    font-family: inherit;
    font-size: 0.9375rem;
    letter-spacing: normal;
}

.oap-ps .oap-ps-row .oap-ps-btn {
    flex: 0 0 auto;
    box-sizing: border-box;
    height: 100% !important;
    min-height: 0 !important;
    min-width: 7rem;
    margin: 0 !important;
    padding: 0 1.5rem !important;
    border: 0 !important;
    border-radius: calc(var(--ps-radius) - 0.25rem);
    background: var(--ps-btn);
    color: var(--ps-btn-ink);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.oap-ps-btn:hover {
    opacity: 0.88;
}

.oap-ps-row:focus-within {
    box-shadow: 0 0 0 3px #f5b301, 0 2px 10px rgba(0, 0, 0, 0.12);
}

.oap-ps-results {
    position: relative;
    clear: both;
    box-sizing: border-box;
    overflow: hidden;
    max-width: var(--ps-width);
    margin: 1.5rem auto 0;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: var(--ps-radius);
    color: #16191d;
}

.oap-ps-count {
    margin: 0 0 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid #eef2f6;
    color: #16191d;
    font-size: 0.9375rem;
}

.oap-ps-heading {
    margin: 1.75rem 0 1rem;
    color: #5c6773;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.oap-ps-heading:first-of-type {
    margin-top: 0;
}

.oap-ps .oap-ps-results ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.25rem !important;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    float: none !important;
}

.oap-ps .oap-ps-results ul.products::before,
.oap-ps .oap-ps-results ul.products::after {
    content: none !important;
    display: none !important;
}

.oap-ps .oap-ps-results ul.products li.product {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
}

.oap-ps .oap-ps-results ul.products li.product img {
    max-width: 100%;
    height: auto;
}

.oap-ps-empty {
    max-width: var(--ps-width);
    margin: 1.5rem auto 0;
    padding: 1.35rem 1.5rem;
    background: #ffffff;
    border-left: 6px solid #b3261e;
    border-radius: var(--ps-radius);
    color: #16191d;
}

.oap-ps-empty p {
    margin: 0 0 0.5rem;
}

.oap-ps-empty p:last-child {
    margin-bottom: 0;
    color: #5c6773;
    font-size: 0.9375rem;
}

.oap-ps-msg {
    max-width: var(--ps-width);
    margin: 1.25rem auto 0;
    padding: 1rem 1.35rem;
    background: #ffffff;
    border-radius: var(--ps-radius);
    color: #16191d;
    font-size: 0.9375rem;
}

@media (max-width: 1100px) {
    .oap-ps .oap-ps-results ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    .oap-ps .oap-ps-results ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    .oap-ps {
        --ps-height: auto;
    }

    .oap-ps-row {
        flex-wrap: wrap;
        gap: 0.45rem;
    }

    .oap-ps .oap-ps-row .oap-ps-input {
        flex: 1 1 100%;
        height: 3.25rem !important;
    }

    .oap-ps .oap-ps-row .oap-ps-btn {
        width: 100%;
        min-width: 0;
        height: 3.25rem !important;
    }

    .oap-ps-results {
        padding: 1rem;
    }
}
