.ncf-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px 16px 14px;
  margin: 0 0 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.ncf-mobile-toolbar,
.ncf-mobile-backdrop,
.ncf-mobile-head {
  display: none;
}

.ncf-section {
  border-bottom: 1px solid #eef2f7;
  padding: 0 0 12px;
  margin: 0 0 12px;
}

.ncf-section:last-of-type {
  border-bottom: 0;
}

.ncf-title {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}

.ncf-range-wrap {
  position: relative;
  height: 64px;
  margin: 2px 0 8px;
}

.ncf-range-rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 34px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #eeedf5 0%, #e4e6ee 100%);
  box-shadow: inset 0 1px 3px rgba(10, 20, 40, 0.12);
  z-index: 1;
}

.ncf-range-fill {
  position: absolute;
  top: 34px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--e-global-color-847ead2) 72%, #ffffff 28%) 0%,
    color-mix(in srgb, var(--e-global-color-847ead2) 82%, #ffffff 18%) 100%
  );
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--e-global-color-847ead2) 70%, #000 30%), 0 1px 1px rgba(0, 0, 0, 0.12);
  left: 0%;
  right: 0%;
  z-index: 2;
}

.ncf-range-wrap input[type='range'] {
  position: absolute;
  left: 0;
  right: 0;
  top: 29px;
  width: 100%;
  pointer-events: none;
  -webkit-appearance: none;
  background: transparent;
  margin: 0;
  z-index: 3;
}

.ncf-range-wrap input[type='range']::-webkit-slider-runnable-track {
  height: 14px;
  background: transparent;
  border: 0;
}

.ncf-range-wrap input[type='range']::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--e-global-color-847ead2) 55%, #ffffff 45%);
  background: color-mix(in srgb, var(--e-global-color-847ead2) 30%, #ffffff 70%);
  margin-top: -1px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.16), inset 0 1px 1px rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.ncf-range-wrap input[type='range']::-moz-range-track {
  height: 14px;
  background: transparent;
  border: 0;
}

.ncf-range-wrap input[type='range']::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--e-global-color-847ead2) 55%, #ffffff 45%);
  background: color-mix(in srgb, var(--e-global-color-847ead2) 30%, #ffffff 70%);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.16), inset 0 1px 1px rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.ncf-price-readout {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #0d857b;
  margin-top: 6px;
  white-space: nowrap;
}

.ncf-scroll {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 6px;
}

.ncf-list,
.ncf-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ncf-sublist {
  margin-left: 16px;
}

.ncf-list li {
  margin: 6px 0;
}

.ncf-list label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #111827;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
}

.ncf-list input[type='checkbox'] {
  width: 16px;
  height: 16px;
}

.ncf-actions {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.ncf-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.ncf-hidden-submit {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

.ncf-card.ncf-loading {
  opacity: 0.72;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

#ncf-page-spinner {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(1px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  z-index: 99999;
}

body.ncf-page-loading #ncf-page-spinner {
  opacity: 1;
  visibility: visible;
}

.ncf-spinner-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--e-global-color-847ead2) 28%, #ffffff 72%);
  border-top-color: var(--e-global-color-847ead2);
  animation: ncf-spin 0.8s linear infinite;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
}

@keyframes ncf-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 767px) {
  .ncf-hide-mobile-filter-trigger {
    display: none !important;
  }

  .ncf-mobile-toolbar {
    display: flex;
    position: relative;
    width: 100%;
    margin: 0 0 12px;
    z-index: 2;
    justify-content: flex-start;
  }

  .ncf-mobile-open {
    min-height: 44px;
    min-width: 140px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: #7f5c7f;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
  }

  .ncf-mobile-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 9997;
  }

  .ncf-mobile-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }

  .ncf-mobile-head h3 {
    margin: 0;
    font-size: 18px;
    color: #0f172a;
  }

  .ncf-mobile-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #e5e7eb;
    color: #0f172a;
    font-size: 24px;
    line-height: 1;
  }

  .ncf-card {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(94vw, 420px);
    max-width: min(94vw, 420px);
    margin: 0;
    padding: 14px 14px 24px;
    border-radius: 16px 0 0 16px;
    transform: translateX(110%);
    transition: transform 0.24s ease;
    z-index: 9999;
    overflow-y: auto;
  }

  .ncf-title {
    font-size: 16px;
  }

  .ncf-list label {
    font-size: 15px;
    line-height: 1.35;
  }

  .ncf-price-readout {
    font-size: 16px;
  }

  .ncf-scroll {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  body.ncf-mobile-open .ncf-card[data-ncf-filter] { transform: translateX(0); }
  body.ncf-mobile-open .ncf-mobile-backdrop { opacity: 1; visibility: visible; }
  body.ncf-mobile-open { overflow: hidden; }
}

@media (min-width: 1024px) {
  .ncf-card {
    min-width: 240px;
    margin-top: 44px;
  }
}
