body.archive .nsspf-wrapper {
  position: relative;
}

body.archive .nsspf-mobile-sticky-btn {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: none;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  padding: 11px 14px;
  font-weight: 600;
}

body.archive .nsspf-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 9998;
}

body.archive .nsspf-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

body.archive .nsspf-panel {
  background: #fff;
  border: 1px solid #f0f1f4;
  border-radius: 10px;
  padding: 14px 16px;
}

body.archive .nsspf-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

body.archive .nsspf-panel-head strong {
  font-size: 16px;
  letter-spacing: 0;
}

body.archive .nsspf-panel-head button {
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

body.archive .nsspf-form {
  display: grid;
  gap: 0;
}

body.archive .nsspf-group {
  border-bottom: 1px solid #eee;
  padding: 14px 0;
}

body.archive .nsspf-group-header {
  appearance: none;
  border: 0;
  background: transparent;
  width: 100%;
  padding: 0;
  cursor: pointer;
  font-weight: 600;
  color: #111827;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

body.archive .nsspf-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid #111827;
  border-bottom: 2px solid #111827;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-right: 2px;
}

body.archive .nsspf-group.is-open .nsspf-chevron {
  transform: rotate(45deg);
}

body.archive .nsspf-group:not(.is-open) .nsspf-chevron {
  transform: rotate(-135deg);
}

body.archive .nsspf-group-content {
  max-height: 1200px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.28s ease, opacity 0.22s ease;
  margin-top: 10px;
}

body.archive .nsspf-group:not(.is-open) .nsspf-group-content {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

body.archive .nsspf-list,
body.archive .nsspf-pills,
body.archive .nsspf-swatches {
  display: grid;
  gap: 10px;
}

body.archive .nsspf-list {
  grid-template-columns: 1fr;
}

body.archive .nsspf-pills,
body.archive .nsspf-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.archive .nsspf-option,
body.archive .nsspf-pill,
body.archive .nsspf-swatch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
  line-height: 1.2;
}

body.archive .nsspf-option {
  width: 100%;
}

body.archive .nsspf-option input[type="checkbox"],
body.archive .nsspf-option input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #111827;
  border: 1px solid #d0d5dd;
}

body.archive .nsspf-option-label {
  flex: 1 1 auto;
  color: #101828;
}

body.archive .nsspf-option-count {
  flex: 0 0 auto;
  color: #6b7280;
  font-size: 14px;
}

body.archive .nsspf-pill,
body.archive .nsspf-swatch {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 12px;
  background: #fff;
  min-height: 34px;
}

body.archive .nsspf-pill input[type="checkbox"],
body.archive .nsspf-pill input[type="radio"],
body.archive .nsspf-swatch input[type="checkbox"] {
  display: none;
}

body.archive .nsspf-pill .nsspf-option-count,
body.archive .nsspf-swatch .nsspf-option-count {
  display: none;
}

body.archive .nsspf-pill:has(input:checked) {
  background: #111;
  border-color: #111;
}

body.archive .nsspf-pill:has(input:checked) .nsspf-option-label {
  color: #fff;
}

body.archive .nsspf-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  padding: 0;
  justify-content: center;
}

body.archive .nsspf-swatch .nsspf-option-label {
  display: none;
}

body.archive .nsspf-swatch-chip {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #d7dbe3;
}

body.archive .nsspf-swatch:has(input:checked) {
  border: 2px solid #000;
}

body.archive .nsspf-option.is-disabled,
body.archive .nsspf-pill.is-disabled,
body.archive .nsspf-swatch.is-disabled {
  opacity: 0.45;
}

body.archive .nsspf-hidden-option {
  display: none !important;
}

body.archive .nsspf-price {
  display: grid;
  gap: 10px;
}

body.archive .nsspf-price input[type="number"] {
  display: none;
}

body.archive .nsspf-range-wrap {
  position: relative;
  height: 20px;
}

body.archive .nsspf-range-wrap input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  background: transparent;
  accent-color: #111;
}

body.archive .nsspf-price-caption {
  font-size: 14px;
  color: #111;
}

body.archive .nsspf-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 14px;
}

body.archive .nsspf-btn {
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  background: #fff;
  color: #111827;
  font-size: 14px;
}

body.archive .nsspf-btn-primary {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

body.archive .nsspf-status {
  margin-top: 10px;
  font-size: 12px;
  color: #6b7280;
}

body.archive .nsspf-empty {
  color: #64748b;
  margin: 4px 0 0;
  font-size: 13px;
}

body.archive .nsspf-grid-loading {
  opacity: 0.55;
}

body.archive .nsspf-hidden-item {
  display: none !important;
}

body.archive .nsspf-hidden-section {
  display: none !important;
}

body.archive .nsspf-no-scroll {
  overflow: hidden;
}

@media (max-width: 991px) {
  body.archive .nsspf-mobile-sticky-btn {
    display: block;
    margin-bottom: 10px;
  }

  body.archive .nsspf-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 94vw);
    height: 100dvh;
    overflow: auto;
    border-radius: 0;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.24s ease;
  }

  body.archive .nsspf-panel.is-open {
    transform: translateX(0);
  }

  body.archive .nsspf-group-header {
    font-size: 17px;
  }
}
