/* The native modal is moved to body when opened; never scope it to the catalogue. */
.mainstream-theme #nav-filters.ms-filter-panel {
  position: fixed;
  z-index: 20000;
  inset: 16px 16px auto auto;
  width: min(440px, calc(100% - 32px));
  height: auto;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #2c302b;
  background: #f8f7f3;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgb(20 32 24 / 20%), 0 2px 12px rgb(20 32 24 / 8%);
  opacity: 0;
  transform: translateX(28px);
  visibility: hidden;
  transition: transform 280ms cubic-bezier(.22,.68,.25,1), opacity 220ms ease, visibility 280ms;
}
.mainstream-theme #nav-filters.modal-show {
  opacity: 1;
  transform: none;
  visibility: visible;
}
.mainstream-theme .ms-filter-overlay {
  z-index: 19999;
  background: rgb(20 28 22 / 42%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
#nav-filters .ms-filter-shell {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
}
#nav-filters .ms-filter-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 24px 22px;
}
#nav-filters .ms-filter-context {
  margin: 0 0 7px;
  color: #687366;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
#nav-filters #ms-filter-title {
  margin: 0;
  font-family: Gelasio, Georgia, serif;
  font-size: 27px;
  line-height: 1.16;
  font-weight: 400;
  letter-spacing: -.035em;
}
#nav-filters .ms-filter-close {
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eeeee7;
  color: #405247;
  cursor: pointer;
}
#nav-filters .ms-filter-body {
  position: relative;
  min-height: 0;
  padding: 0 24px 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
#nav-filters .ms-filter-sort { margin: 0 0 24px; }
#nav-filters .ms-filter-sort-ready .radio-button-container,
#nav-filters .ms-filter-sort-ready .ms-filter-sort-label { display: none; }
#nav-filters .ms-filter-sort-field { display: block; margin: 0; }
#nav-filters .ms-filter-sort-field > span,
#nav-filters .ms-filter-sort-label,
#nav-filters [data-store="filters-group"] > .font-small,
#nav-filters .price-filter-container form > .font-small {
  display: block;
  width: 100%;
  margin: 0 0 10px !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}
#nav-filters .ms-filter-sort-field select {
  width: 100%;
  height: 48px;
  padding: 0 42px 0 14px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgb(64 82 71 / 16%);
  border-radius: 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none'%3E%3Cpath d='m6 8 4 4 4-4' stroke='%23405247' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 13px center;
  color: #2c302b;
  font: 400 16px 'DM Sans', sans-serif;
}
#nav-filters [data-store="filters-group"] {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px !important;
  padding: 0 !important;
}
#nav-filters [data-store="filters-group"] > .font-small { margin-bottom: 2px !important; }
#nav-filters .checkbox-container { display: inline-flex; position: relative; margin: 0; max-width: 100%; }
#nav-filters .checkbox-container input {
  display: block;
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
#nav-filters .checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  width: 100%;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid rgb(64 82 71 / 15%);
  border-radius: 12px;
  background: rgb(255 255 255 / 68%);
  color: #405247;
  font-size: 14px;
  line-height: 1.45;
  transition: background-color 160ms, color 160ms, border-color 160ms;
}
#nav-filters .checkbox-icon {
  position: relative;
  flex: 0 0 16px;
  order: 2;
  top: auto;
  left: auto;
  width: 16px;
  height: 16px;
  border: 1px solid rgb(64 82 71 / 35%);
  border-radius: 5px;
  background: transparent;
}
#nav-filters .checkbox-icon::after { top: 1px; left: 5px; width: 4px; height: 9px; border-color: #fff; }
#nav-filters .checkbox-text.with-color { display: flex; align-items: center; gap: 7px; flex: 1; padding: 0; font-size: 14px; }
#nav-filters .checkbox-text > span { margin: 0 !important; color: #687366; font-size: 11px; }
#nav-filters input:checked ~ .checkbox { background: #405247; color: #fff; border-color: #405247; }
#nav-filters input:checked ~ .checkbox .checkbox-icon { border-color: rgb(255 255 255 / 40%); }
#nav-filters input:checked ~ .checkbox .checkbox-text > span { color: #e1e7dc; }
#nav-filters [data-component-value="Volume"] > .checkbox-container { flex: 1 1 110px; }
#nav-filters [data-component="list.filter-brand"] > .checkbox-container { width: 100%; }
#nav-filters .js-accordion-content { width: 100%; }
#nav-filters .js-accordion-content .checkbox-container { margin: 0 6px 8px 0; }
#nav-filters .js-accordion-toggle { margin: 4px 0 0 !important; }
#nav-filters .price-filter-container form { width: 100%; margin: 0; }
#nav-filters [data-store="filters-group"]:last-child { margin-bottom: 10px !important; }
#nav-filters .price-filter-container .form-group { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; margin: 0; }
#nav-filters .filter-input-price-container { display: block; width: auto; min-width: 0; margin: 0; }
#nav-filters .filter-input-price-container .form-label { margin: 0 0 7px; color: #687366; font-size: 12px; font-weight: 400; }
#nav-filters .filter-input-price {
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgb(64 82 71 / 16%);
  border-radius: 12px;
  background: #fff;
  color: #2c302b;
  font-size: 16px;
  line-height: 1.4;
}
#nav-filters .filter-input-price::placeholder { color: #808779; opacity: 1; }
#nav-filters .js-price-filter-btn {
  grid-column: 1 / -1;
  min-height: 44px;
  margin: 0;
  border: 1px solid rgb(64 82 71 / 30%);
  border-radius: 12px;
  background: transparent;
  color: #405247;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
#nav-filters .js-price-filter-btn:disabled { border-color: transparent; background: #eeeee7; color: #687366; opacity: .7; }
#nav-filters .ms-filter-footer { flex: 0 0 auto; padding: 16px 24px 24px; background: #f8f7f3; }
#nav-filters .ms-filter-done {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border: 0;
  border-radius: 14px;
  background: #405247;
  color: #fff;
  font: 500 15px 'DM Sans', sans-serif;
  cursor: pointer;
}
#nav-filters .ms-filter-done span { font-size: 24px; line-height: 1; }
#nav-filters .chip { margin: 0 6px 8px 0; padding: 8px 11px; border-radius: 9px; background: #e4e9df; color: #405247; font-size: 12px; }
#nav-filters .js-remove-all-filters { margin: 4px 0 8px; color: #405247; font-size: 12px; }
#nav-filters :is(button, a, select, .form-control):focus-visible,
#nav-filters input:focus-visible ~ .checkbox { outline: 2px solid #405247; outline-offset: 3px; }
#nav-filters .filters-overlay { position: absolute; inset: 0; width: 100%; height: 100%; background: rgb(248 247 243 / 94%); }
@media (max-width: 767px) {
  .mainstream-theme #nav-filters.ms-filter-panel {
    inset: auto 8px 8px;
    width: calc(100% - 16px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    transform: translateY(28px);
  }
  .mainstream-theme #nav-filters.modal-show { transform: none; }
  #nav-filters .ms-filter-shell { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  #nav-filters .ms-filter-header { padding: 22px 20px; }
  #nav-filters #ms-filter-title { font-size: 26px; }
  #nav-filters .ms-filter-body { padding: 0 20px 0; }
  #nav-filters .ms-filter-footer { padding: 14px 20px max(18px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .mainstream-theme #nav-filters.ms-filter-panel, #nav-filters .checkbox { transition: none; }
}
