.smpf-filter-panel {
  color: #2d3b40;
  font-size: 16px;
}

.smpf-filter-heading,
.smpf-drawer-panel > header {
  align-items: center;
  border-bottom: 1px solid rgba(38, 50, 56, 0.14);
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  padding-bottom: 14px;
}

.smpf-filter-heading h2,
.smpf-drawer-panel h2 {
  font-size: 20px;
  line-height: 1.25;
  margin: 0;
}

.smpf-filter-heading a,
.smpf-reset {
  color: inherit;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.smpf-facet {
  border: 0;
  border-bottom: 1px solid rgba(38, 50, 56, 0.12);
  margin: 0;
  padding: 22px 0;
}

.smpf-facet legend {
  color: inherit;
  float: left;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
  padding: 0;
  width: 100%;
}

.smpf-options {
  clear: both;
  display: grid;
  gap: 11px;
}

.smpf-options label,
.smpf-stock {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  line-height: 1.5;
  margin: 0;
}

.smpf-options input,
.smpf-stock input {
  accent-color: var(--theme-palette-color-1, #00a9a5);
  height: 18px;
  margin: 0;
  width: 18px;
}

.smpf-option-count {
  color: #53636a;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.smpf-category-nav {
  border-bottom: 1px solid rgba(38, 50, 56, 0.12);
  padding: 22px 0;
}

.smpf-category-nav h3 {
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 12px;
}

.smpf-category-nav ul {
  display: grid;
  gap: 11px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.smpf-category-nav a {
  align-items: center;
  color: inherit;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  line-height: 1.5;
  text-decoration: none;
}

.smpf-category-nav a:hover span:first-child,
.smpf-category-nav a:focus-visible span:first-child {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.smpf-price-note {
  clear: both;
  color: #53636a;
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 12px;
}

.smpf-price-inputs {
  clear: both;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.smpf-price-inputs label {
  display: grid;
  font-size: 13px;
  gap: 6px;
}

.smpf-price-inputs input {
  border: 1px solid rgba(38, 50, 56, 0.25);
  border-radius: 2px;
  color: #2d3b40;
  font-size: 16px;
  min-height: 44px;
  padding: 8px 10px;
  width: 100%;
}

.smpf-apply-price {
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 2px;
  color: inherit;
  font-size: 13px;
  margin-top: 10px;
  min-height: 40px;
  padding: 7px 12px;
  width: 100%;
}

.smpf-help {
  background: rgba(0, 169, 165, 0.08);
  border-left: 3px solid var(--theme-palette-color-1, #00a9a5);
  margin-top: 20px;
  padding: 16px;
}

.smpf-help h3 {
  font-size: 15px;
  line-height: 1.4;
  margin: 0 0 7px;
}

.smpf-help p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 9px;
}

.smpf-help a {
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.smpf-toolbar {
  margin-bottom: 16px;
  width: 100%;
}

.smpf-mobile-toggle {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(38, 50, 56, 0.22);
  border-radius: 2px;
  color: inherit;
  display: none;
  font-weight: 700;
  justify-content: space-between;
  min-height: 48px;
  padding: 10px 14px;
  width: 100%;
}

.smpf-mobile-total {
  color: #66757c;
  font-size: 13px;
  font-weight: 500;
}

.smpf-active {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.smpf-chip {
  align-items: center;
  background: rgba(0, 169, 165, 0.1);
  border: 1px solid rgba(0, 169, 165, 0.35);
  border-radius: 2px;
  color: inherit;
  display: inline-flex;
  font-size: 13px;
  gap: 8px;
  min-height: 34px;
  padding: 5px 9px;
  text-decoration: none;
}

.smpf-result-count {
  font-size: 14px;
  text-transform: none;
}

.smpf-no-results {
  border-top: 1px solid rgba(38, 50, 56, 0.15);
  padding: 28px 0;
}

.smpf-no-results h2 {
  font-size: 22px;
}

.smpf-drawer {
  inset: 0;
  position: fixed;
  z-index: 999999;
}

.smpf-drawer[hidden] {
  display: none;
}

.smpf-drawer-backdrop {
  background: rgba(16, 24, 28, 0.52);
  inset: 0;
  position: absolute;
}

.smpf-drawer-panel {
  background: #fff;
  bottom: 0;
  box-shadow: -8px 0 32px rgba(16, 24, 28, 0.18);
  max-width: 430px;
  overflow-y: auto;
  padding: 20px;
  position: absolute;
  right: 0;
  top: 0;
  width: min(92vw, 430px);
}

.smpf-drawer-close {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  display: inline-flex;
  font-size: 30px;
  height: 44px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 44px;
}

.smpf-is-loading .products,
.smpf-is-loading .smpf-result-count {
  opacity: 0.48;
  transition: opacity 120ms ease;
}

.smpf-filter-form :focus-visible,
.smpf-mobile-toggle:focus-visible,
.smpf-drawer-close:focus-visible,
.smpf-chip:focus-visible {
  outline: 3px solid var(--theme-palette-color-1, #00a9a5);
  outline-offset: 2px;
}

@media (max-width: 999px) {
  .smpf-mobile-toggle {
    display: flex;
  }

  .smpf-active {
    margin-top: 10px;
  }

  .smpf-filter-panel--desktop {
    display: none;
  }
}

@media (min-width: 1000px) {
  .smpf-filter-panel--mobile,
  .smpf-drawer {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smpf-is-loading .products,
  .smpf-is-loading .smpf-result-count {
    transition: none;
  }
}
