:root {
    --ks-filter-red: #ed111a;
    --ks-filter-ink: #171719;
    --ks-filter-copy: #343437;
    --ks-filter-muted: #737377;
    --ks-filter-disabled: #77777b;
    --ks-filter-line: #d9d9dc;
    --ks-filter-soft-line: #e9e9eb;
    --ks-filter-soft: #f5f5f6;
    --ks-filter-surface: #fff;
    --ks-filter-radius: 3px;
}

body.ks-product-filters-active .ns-before-archive-products,
body.ks-product-filters-active .nasa-store-page > .col-sidebar,
body.ks-product-filters-active .nasa-store-page > .nasa-side-sidebar {
    display: none !important;
}

body.ks-product-filters-active .nasa-store-page > .nasa-products-page-wrap {
    float: none !important;
    width: 100% !important;
}

.ks-filter-workspace {
    margin-bottom: 22px;
    scroll-margin-top: 84px;
}

/* Archive control rail */
.ks-filter-toolbar {
    position: relative;
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 18px;
    padding: 7px 0;
    border-top: 1px solid var(--ks-filter-line);
    border-bottom: 1px solid var(--ks-filter-line);
    background: var(--ks-filter-surface);
    color: var(--ks-filter-ink);
}

.ks-filter-toolbar::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: var(--ks-filter-red);
    content: "";
    opacity: 0;
    pointer-events: none;
    transform: scaleX(.04);
    transform-origin: left center;
}

#nasa-ajax-store.ks-filter-is-loading .ks-filter-toolbar::after {
    opacity: 1;
    animation: ks-filter-progress 900ms linear infinite;
}

#nasa-ajax-store .nasa-archive-product-warp {
    transition: opacity 140ms ease-out;
}

#nasa-ajax-store.ks-filter-is-loading .nasa-archive-product-warp {
    opacity: .54;
}

@keyframes ks-filter-progress {
    from {
        opacity: .4;
        transform: scaleX(.04);
    }

    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

.ks-filter-trigger,
.ks-filter-sort__submit {
    appearance: none;
    border-radius: var(--ks-filter-radius);
    font: inherit;
    transform: none !important;
}

.ks-filter-trigger {
    position: relative;
    display: inline-flex;
    min-height: 42px;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    padding: 0 17px 0 0;
    border: 0;
    border-right: 1px solid var(--ks-filter-line);
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--ks-filter-ink) !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    line-height: 1;
}

.ks-filter-trigger__icon {
    display: inline-grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid #bfc0c3;
    border-radius: var(--ks-filter-radius);
    background: var(--ks-filter-soft);
}

.ks-filter-trigger__count {
    min-width: 16px;
    padding-left: 7px;
    border-left: 1px solid var(--ks-filter-line);
    color: var(--ks-filter-red);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    text-align: center;
}

.ks-filter-trigger:hover,
.ks-filter-trigger:focus {
    background: transparent !important;
    box-shadow: none !important;
    color: var(--ks-filter-red) !important;
    transform: none !important;
}

.ks-filter-trigger:hover .ks-filter-trigger__icon,
.ks-filter-trigger:focus .ks-filter-trigger__icon,
.ks-filter-trigger[aria-expanded="true"] .ks-filter-trigger__icon {
    border-color: var(--ks-filter-ink);
    background: var(--ks-filter-surface);
    color: var(--ks-filter-ink);
}

.ks-filter-trigger__label {
    white-space: nowrap;
}

.ks-filter-toolbar__chips {
    min-width: 0;
    flex: 1 1 auto;
}

.ks-active-filters,
.ks-active-filters__track {
    min-width: 0;
}

.ks-active-filters__track {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ks-active-filters__track::-webkit-scrollbar {
    display: none;
}

.ks-filter-chip {
    display: inline-flex;
    min-height: 28px;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 4px 8px;
    border: 1px solid #d0d0d3;
    border-radius: 2px;
    background: var(--ks-filter-soft);
    box-shadow: none !important;
    color: var(--ks-filter-copy);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.15;
    text-decoration: none;
    transform: none !important;
}

.ks-filter-chip span:last-child {
    color: var(--ks-filter-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: .8;
}

.ks-filter-chip:hover,
.ks-filter-chip:focus {
    border-color: #a9aaad;
    background: #eeeef0;
    box-shadow: none !important;
    color: var(--ks-filter-ink);
    transform: none !important;
}

.ks-filter-chip:hover span:last-child,
.ks-filter-chip:focus span:last-child {
    color: var(--ks-filter-red);
}

.ks-active-filters__clear {
    flex: 0 0 auto;
    padding: 7px 2px;
    border: 0;
    border-bottom: 1px solid currentColor;
    color: var(--ks-filter-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .075em;
    line-height: 1;
    transform: none !important;
}

.ks-active-filters__clear:hover,
.ks-active-filters__clear:focus {
    color: var(--ks-filter-red);
    transform: none !important;
}

.ks-filter-toolbar__meta {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-end;
    gap: 18px;
}

.ks-filter-result-count {
    align-self: flex-end;
    color: var(--ks-filter-muted);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 26px;
    white-space: nowrap;
}

.ks-filter-sort {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin: 0;
    padding-left: 17px;
    border-left: 1px solid var(--ks-filter-line);
}

.ks-filter-sort__group {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.ks-filter-sort label {
    margin: 0;
    color: var(--ks-filter-muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1;
}

.ks-filter-sort__select {
    position: relative;
}

.ks-filter-sort__select::after {
    position: absolute;
    top: 50%;
    right: 0;
    width: 6px;
    height: 6px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    content: "";
    pointer-events: none;
    transform: translateY(-70%) rotate(45deg);
}

.ks-filter-sort select {
    width: auto;
    max-width: 205px;
    height: 26px;
    margin: 0;
    padding: 0 19px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ks-filter-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 26px;
}

.ks-filter-sort__submit {
    min-height: 36px;
    padding: 0 9px;
    border: 1px solid #bfc0c3;
    background: var(--ks-filter-surface) !important;
    box-shadow: none !important;
    color: var(--ks-filter-ink) !important;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
}

.ks-filter-enhanced .ks-filter-sort__submit {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

/* Modal and drawer */
.ks-filter-modal-layer {
    position: relative;
    z-index: auto;
}

.ks-filter-overlay {
    position: fixed;
    z-index: 99980;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: rgba(12, 12, 14, .64) !important;
    box-shadow: none !important;
    cursor: default;
    opacity: 0;
    pointer-events: none;
    transform: none !important;
    transition: opacity 180ms ease-out;
}

.ks-filter-overlay:hover,
.ks-filter-overlay:focus {
    background: rgba(12, 12, 14, .64) !important;
    box-shadow: none !important;
    transform: none !important;
}

.ks-filter-drawer {
    position: fixed;
    z-index: 99990;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: clamp(420px, 36vw, 448px);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    border-right: 1px solid #c8c8cb;
    background: var(--ks-filter-surface);
    box-shadow: 8px 0 26px rgba(10, 10, 12, .12);
    color: var(--ks-filter-ink);
    transform: translateX(-102%);
    visibility: hidden;
    transition: transform 220ms ease-out, visibility 0s linear 220ms;
}

.admin-bar .ks-filter-overlay,
.admin-bar .ks-filter-drawer {
    top: 32px;
    height: calc(100vh - 32px);
    height: calc(100dvh - 32px);
}

body.ks-filter-drawer-open {
    overflow: hidden;
}

body.ks-filter-drawer-open .ks-filter-overlay {
    opacity: 1;
    pointer-events: auto;
}

body.ks-filter-drawer-open .ks-filter-drawer {
    transform: translateX(0);
    visibility: visible;
    transition: transform 220ms ease-out;
}

.ks-filter-drawer__header {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    padding: max(18px, env(safe-area-inset-top)) 25px 17px;
    border-top: 3px solid var(--ks-filter-red);
    border-bottom: 1px solid var(--ks-filter-line);
    background: var(--ks-filter-surface);
}

.ks-filter-drawer__kicker {
    margin-bottom: 9px;
    color: var(--ks-filter-muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .14em;
    line-height: 1.2;
}

.ks-filter-drawer__title-row,
.ks-filter-drawer__status {
    display: flex;
    align-items: center;
}

.ks-filter-drawer__title-row {
    justify-content: space-between;
}

.ks-filter-drawer__title-row h2 {
    position: relative;
    margin: 0;
    color: var(--ks-filter-ink);
    font-size: 21px;
    font-weight: 850;
    letter-spacing: .075em;
    line-height: 1.05;
}

.ks-filter-drawer__close {
    display: inline-grid;
    width: 40px;
    height: 40px;
    margin: -9px -10px -7px 0;
    place-items: center;
    padding: 0;
    border: 0 !important;
    border-radius: var(--ks-filter-radius) !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--ks-filter-ink) !important;
    transform: none !important;
}

.ks-filter-drawer__close:hover,
.ks-filter-drawer__close:focus {
    background: var(--ks-filter-soft) !important;
    box-shadow: none !important;
    color: var(--ks-filter-red) !important;
    transform: none !important;
}

.ks-filter-drawer__status {
    min-height: 21px;
    gap: 10px;
    margin-top: 11px;
    color: var(--ks-filter-muted);
    font-size: 9px;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    letter-spacing: .08em;
}

.ks-filter-drawer__active-count {
    padding-left: 10px;
    border-left: 1px solid var(--ks-filter-line);
    color: var(--ks-filter-ink);
}

.ks-filter-drawer__status a {
    margin-left: auto;
    padding: 4px 0;
    border-bottom: 1px solid currentColor;
    color: var(--ks-filter-muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    transform: none !important;
}

.ks-filter-drawer__status a:hover,
.ks-filter-drawer__status a:focus {
    color: var(--ks-filter-red);
    transform: none !important;
}

.ks-filter-drawer__body {
    flex: 1 1 auto;
    padding: 0 25px calc(27px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #b6b6ba transparent;
    scrollbar-width: thin;
}

.ks-filter-drawer__body::-webkit-scrollbar {
    width: 5px;
}

.ks-filter-drawer__body::-webkit-scrollbar-track {
    background: transparent;
}

.ks-filter-drawer__body::-webkit-scrollbar-thumb {
    border-radius: 0;
    background: #b6b6ba;
}

/* Facet structure */
.ks-facet {
    margin: 0;
    padding: 22px 0;
    border: 0;
    border-bottom: 1px solid var(--ks-filter-line);
}

.ks-facet h3,
.ks-facet summary {
    margin: 0 0 14px;
    color: var(--ks-filter-ink);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .12em;
    line-height: 1.25;
    text-transform: uppercase;
}

.ks-facet summary {
    position: relative;
    min-height: 44px;
    margin: -10px 0;
    padding: 15px 34px 15px 0;
    cursor: pointer;
    list-style: none;
}

.ks-facet summary::-webkit-details-marker {
    display: none;
}

.ks-facet summary > span::before,
.ks-facet summary > span::after {
    position: absolute;
    top: 50%;
    right: 4px;
    width: 11px;
    height: 1px;
    background: currentColor;
    content: "";
}

.ks-facet summary > span::after {
    transform: rotate(90deg);
}

.ks-facet[open] summary > span::after {
    transform: rotate(0);
}

.ks-facet[open] summary {
    margin-bottom: 10px;
}

.ks-facet-values,
.ks-facet-selector {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ks-facet-values {
    display: grid;
    grid-template-columns: 1fr;
}

.ks-facet-values li,
.ks-facet-values form {
    margin: 0;
}

.ks-facet-values a,
.ks-facet-values > li > .ks-filter-choice,
.ks-facet--brand button,
.ks-stock-control {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    gap: 10px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--ks-filter-copy) !important;
    font: inherit;
    font-size: 13px;
    font-weight: 620;
    line-height: 1.3;
    text-decoration: none;
    transform: none !important;
}

.ks-facet-values a:hover,
.ks-facet-values a:focus,
.ks-facet--brand button:not(:disabled):hover,
.ks-facet--brand button:not(:disabled):focus,
.ks-stock-control:not(:disabled):hover,
.ks-stock-control:not(:disabled):focus {
    background: var(--ks-filter-soft) !important;
    box-shadow: none !important;
    color: var(--ks-filter-ink) !important;
    transform: none !important;
}

.ks-filter-choice__label {
    min-width: 0;
}

.ks-facet-values .ks-filter-choice__label,
.ks-stock-control .ks-filter-choice__label {
    flex: 1 1 auto;
    text-align: left;
}

.ks-facet-count {
    flex: 0 0 auto;
    margin-left: auto;
    color: var(--ks-filter-muted);
    font-size: 9px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
}

.ks-facet-count.is-incremental {
    color: #555559;
    font-weight: 800;
}

.ks-facet-values .is-selected .ks-facet-count,
.ks-facet-selector .is-selected .ks-facet-count,
.ks-stock-control.is-selected .ks-facet-count {
    display: none;
}

.ks-facet-values .is-disabled > .ks-filter-choice,
.ks-facet--brand .is-disabled button,
.ks-stock-control.is-disabled {
    color: var(--ks-filter-disabled) !important;
    cursor: default;
}

.ks-facet-values .is-disabled .ks-filter-choice__mark {
    border-color: #d4d4d7;
    background: var(--ks-filter-soft);
}

.ks-facet--brand button:disabled,
.ks-stock-control:disabled {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.ks-filter-choice__mark {
    display: inline-grid;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    place-items: center;
    border: 1px solid #a9aaad;
    border-radius: 1px;
    color: var(--ks-filter-surface);
    font-size: 10px;
    line-height: 1;
}

.ks-facet-values .is-selected .ks-filter-choice__mark {
    border-color: var(--ks-filter-ink);
    background: var(--ks-filter-ink);
    box-shadow: inset 0 -2px 0 var(--ks-filter-red);
}

/* Brand: editorial rows rather than option cards */
.ks-facet--brand li {
    border-bottom: 1px solid var(--ks-filter-soft-line);
}

.ks-facet--brand li:last-child {
    border-bottom: 0;
}

.ks-facet--brand button {
    position: relative;
    justify-content: space-between;
    min-height: 43px;
    padding: 0 3px 0 11px;
    text-align: left;
}

.ks-facet--brand button::before {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 0;
    width: 2px;
    background: var(--ks-filter-red);
    content: "";
    opacity: 0;
}

.ks-facet--brand .ks-filter-choice__mark {
    position: relative;
    order: 2;
    width: 14px;
    height: 14px;
    flex-basis: 14px;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
}

.ks-facet--brand .is-selected button {
    color: var(--ks-filter-ink) !important;
    font-weight: 780;
}

.ks-facet--brand .is-selected button::before {
    opacity: 1;
}

.ks-facet--brand .is-selected .ks-filter-choice__mark {
    border-color: var(--ks-filter-ink);
    background: transparent;
    box-shadow: none;
}

.ks-facet--brand .is-selected .ks-filter-choice__mark::after {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ks-filter-red);
    content: "";
}

/* Technical selector matrices */
.ks-facet-selector {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.ks-facet-selector li {
    min-width: 0;
}

.ks-facet-selector a,
.ks-filter-selector-choice {
    position: relative;
    display: grid;
    min-height: 44px;
    place-items: center;
    padding: 7px 5px;
    overflow: hidden;
    border: 1px solid #c7c7ca;
    border-radius: 2px;
    background: var(--ks-filter-surface);
    box-shadow: none !important;
    color: var(--ks-filter-copy);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    transform: none !important;
    transition: border-color 120ms ease-out, color 120ms ease-out, background-color 120ms ease-out;
}

.ks-filter-selector-choice.is-disabled {
    border-color: #dedee0;
    background: var(--ks-filter-soft);
    color: var(--ks-filter-disabled);
    cursor: default;
}

.ks-facet-selector .ks-facet-count {
    margin: 3px 0 0;
    font-size: 8px;
}

.ks-facet-selector a::after {
    position: absolute;
    right: 6px;
    bottom: -1px;
    left: 6px;
    height: 2px;
    background: var(--ks-filter-red);
    content: "";
    opacity: 0;
}

.ks-facet-selector a:hover,
.ks-facet-selector a:focus {
    border-color: #555559;
    background: #f8f8f9;
    box-shadow: none !important;
    color: var(--ks-filter-ink);
    transform: none !important;
}

.ks-facet-selector .is-selected a {
    border-color: var(--ks-filter-ink);
    background: var(--ks-filter-surface);
    box-shadow: none !important;
    color: var(--ks-filter-ink);
    font-weight: 850;
}

.ks-facet-selector .is-selected a::after {
    opacity: 1;
}

.ks-facet--voltage .ks-facet-selector {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ks-facet--voltage .ks-facet-selector a,
.ks-facet--voltage .ks-filter-selector-choice {
    min-height: 52px;
    border-color: #aeb0b3;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .025em;
}

.ks-facet--capacity .ks-facet-selector,
.ks-facet--current .ks-facet-selector {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ks-facet--capacity .ks-facet-selector a,
.ks-facet--capacity .ks-filter-selector-choice,
.ks-facet--current .ks-facet-selector a,
.ks-facet--current .ks-filter-selector-choice {
    min-height: 45px;
    padding-right: 4px;
    padding-left: 4px;
    letter-spacing: -.01em;
}

.ks-facet--capacity .ks-filter-choice__label,
.ks-facet--current .ks-filter-choice__label {
    font-weight: 800;
}

.ks-filter-enhanced .ks-facet-values.is-collapsed .is-beyond-initial:not(.is-selected),
.ks-filter-enhanced .ks-facet-selector.is-collapsed .is-beyond-initial:not(.is-selected) {
    display: none;
}

.ks-filter-enhanced .ks-facet-values.is-expanded .is-beyond-initial,
.ks-filter-enhanced .ks-facet-selector.is-expanded .is-beyond-initial {
    display: list-item;
}

.ks-facet-more {
    display: none;
    min-height: 40px;
    align-items: center;
    gap: 7px;
    margin: 7px 0 0;
    padding: 0 2px;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--ks-filter-muted) !important;
    font: inherit;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .09em;
    transform: none !important;
}

.ks-filter-enhanced .ks-facet-more {
    display: inline-flex;
}

.ks-facet-more [data-ks-more-icon] {
    color: var(--ks-filter-red);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
}

.ks-facet-more:hover,
.ks-facet-more:focus {
    background: transparent !important;
    box-shadow: none !important;
    color: var(--ks-filter-red) !important;
    transform: none !important;
}

/* Stock: full-width technical status row */
.ks-facet--stock {
    border-bottom: 0;
}

.ks-facet--stock form {
    margin: 0;
}

.ks-stock-control {
    justify-content: space-between;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid #c7c7ca !important;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
}

.ks-stock-control__status {
    position: relative;
    display: inline-grid;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    place-items: center;
    border: 1px solid #a9aaad;
    border-radius: 1px;
    color: transparent;
    font-size: 0;
}

.ks-stock-control__status::after {
    width: 6px;
    height: 6px;
    background: transparent;
    content: "";
}

.ks-stock-control.is-selected {
    border-color: var(--ks-filter-ink) !important;
    box-shadow: inset 2px 0 0 var(--ks-filter-red) !important;
}

.ks-stock-control.is-selected .ks-stock-control__status {
    border-color: var(--ks-filter-ink);
}

.ks-stock-control.is-selected .ks-stock-control__status::after {
    background: var(--ks-filter-red);
}

/* Keyboard visibility */
.ks-filter-trigger:focus-visible,
.ks-filter-chip:focus-visible,
.ks-active-filters__clear:focus-visible,
.ks-filter-sort select:focus-visible,
.ks-filter-sort__submit:focus-visible,
.ks-filter-drawer__close:focus-visible,
.ks-facet a:focus-visible,
.ks-facet button:focus-visible,
.ks-facet summary:focus-visible {
    outline: 2px solid var(--ks-filter-red);
    outline-offset: 2px;
}

@media screen and (max-width: 782px) {
    .admin-bar .ks-filter-overlay,
    .admin-bar .ks-filter-drawer {
        top: 46px;
        height: calc(100vh - 46px);
        height: calc(100dvh - 46px);
    }
}

@media (max-width: 1023px) {
    .ks-filter-toolbar {
        flex-wrap: wrap;
    }

    .ks-filter-toolbar__chips {
        order: 3;
        width: 100%;
        flex-basis: 100%;
    }

    .ks-filter-toolbar__meta {
        margin-left: auto;
    }

    .ks-filter-drawer {
        width: min(448px, 72vw);
    }
}

@media (max-width: 767px) {
    .ks-filter-workspace {
        margin-bottom: 16px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .ks-filter-toolbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 8px;
        min-height: 0;
        padding: 10px 0;
    }

    .ks-filter-trigger {
        grid-column: 1;
        grid-row: 2;
        justify-content: flex-start;
        width: 100%;
        min-height: 44px;
        padding: 0 10px 0 5px;
        border: 1px solid #bfc0c3;
        border-radius: var(--ks-filter-radius);
    }

    .ks-filter-trigger__icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        border: 0;
        background: transparent;
    }

    .ks-filter-trigger__count {
        margin-left: auto;
    }

    .ks-filter-toolbar__meta {
        display: contents;
    }

    .ks-filter-result-count {
        grid-column: 1 / -1;
        grid-row: 1;
        padding: 1px 1px 3px;
    }

    .ks-filter-sort {
        grid-column: 2;
        grid-row: 2;
        display: block;
        min-width: 0;
        padding: 0;
        border: 0;
    }

    .ks-filter-sort__group {
        box-sizing: border-box;
        width: 100%;
        min-height: 44px;
        justify-content: center;
        gap: 1px;
        padding: 4px 10px 3px;
        border: 1px solid #bfc0c3;
        border-radius: var(--ks-filter-radius);
        background: var(--ks-filter-surface);
    }

    .ks-filter-sort label {
        font-size: 7px;
        letter-spacing: .1em;
    }

    .ks-filter-sort__select {
        display: block;
        width: 100%;
    }

    .ks-filter-sort__select::after {
        right: 3px;
    }

    .ks-filter-sort select {
        width: 100%;
        max-width: none;
        height: 24px;
        padding: 0 20px 0 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .02em;
        line-height: 24px;
    }

    .ks-filter-sort__submit {
        width: 100%;
        min-height: 40px;
        margin-top: 6px;
    }

    .ks-filter-toolbar__chips {
        grid-column: 1 / -1;
        grid-row: 3;
        width: auto;
    }

    .ks-filter-drawer {
        width: 100%;
        max-width: none;
        border-right: 0;
        box-shadow: none;
    }

    .ks-filter-drawer__header {
        padding: max(15px, env(safe-area-inset-top)) 17px 14px;
    }

    .ks-filter-drawer__kicker {
        margin-bottom: 7px;
        font-size: 7px;
    }

    .ks-filter-drawer__title-row h2 {
        font-size: 19px;
    }

    .ks-filter-drawer__status {
        margin-top: 9px;
    }

    .ks-filter-drawer__body {
        display: flex;
        padding-right: 17px;
        padding-left: 17px;
        flex-direction: column;
    }

    .ks-filter-drawer__body [data-ks-facet-key="voltage"] {
        order: 1;
    }

    .ks-filter-drawer__body [data-ks-facet-key="capacity"] {
        order: 2;
    }

    .ks-filter-drawer__body [data-ks-facet-key="starting_current"] {
        order: 3;
    }

    .ks-filter-drawer__body [data-ks-facet-key="brand"] {
        order: 4;
    }

    .ks-filter-drawer__body [data-ks-facet-key="polarity"] {
        order: 5;
    }

    .ks-filter-drawer__body [data-ks-facet-key="warranty"] {
        order: 6;
    }

    .ks-filter-drawer__body [data-ks-facet-key="stock"] {
        order: 7;
    }

    .ks-facet {
        padding: 20px 0;
    }

    .ks-facet--voltage .ks-facet-selector,
    .ks-facet--capacity .ks-facet-selector,
    .ks-facet--current .ks-facet-selector {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 359px) {
    .ks-filter-workspace {
        padding-right: 7px;
        padding-left: 7px;
    }

    .ks-filter-toolbar {
        gap: 6px;
    }

    .ks-filter-trigger,
    .ks-filter-sort select {
        font-size: 9px;
    }

    .ks-filter-drawer__header,
    .ks-filter-drawer__body {
        padding-right: 14px;
        padding-left: 14px;
    }

    .ks-filter-drawer__active-count {
        display: none;
    }

    .ks-facet-selector {
        gap: 5px;
    }

    .ks-facet-selector a,
    .ks-filter-selector-choice {
        padding-right: 3px;
        padding-left: 3px;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ks-filter-overlay,
    .ks-filter-drawer,
    .ks-facet-selector a,
    .ks-filter-selector-choice,
    #nasa-ajax-store .nasa-archive-product-warp {
        transition-duration: .01ms !important;
    }

    #nasa-ajax-store.ks-filter-is-loading .ks-filter-toolbar::after {
        animation: none;
        transform: none;
    }
}
