.pxc-quicksearch {
  --pxc-qs-primary: #1c69d4;
  --pxc-qs-text: #fff;
  --pxc-qs-field-bg: #fff;
  --pxc-qs-field-text: #262626;
  --pxc-qs-cta-text: var(--pxc-qs-text);
  --pxc-qs-field-border: #bbbbbb;
  --pxc-qs-field-gap: 1rem;
  --pxc-qs-radius: 0;
  font-family: inherit;
  box-sizing: border-box;
}

.pxc-quicksearch *,
.pxc-quicksearch *::before,
.pxc-quicksearch *::after {
  box-sizing: border-box;
}

.pxc-quicksearch--loading {
  opacity: 0.65;
  pointer-events: none;
}

.pxc-quicksearch__error {
  color: #c0392b;
  margin: 0;
  padding: 0.75rem 1rem;
  background: #fdecea;
  border-radius: var(--pxc-qs-radius);
}

.pxc-quicksearch__form {
  margin: 0;
}

.pxc-quicksearch__fields {
  display: grid;
  grid-template-columns: repeat(var(--pxc-qs-cols, 4), minmax(0, 1fr));
  align-items: end;
  gap: var(--pxc-qs-field-gap);
  margin-bottom: 1rem;
}

.pxc-quicksearch__field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pxc-quicksearch__label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
  color: var(--pxc-qs-text);
}

.pxc-quicksearch__label--sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pxc-quicksearch__select {
  border: none;
  border-radius: var(--pxc-qs-radius);
  padding: 0.45rem 0.5rem;
  font-size: 1rem;
  max-width: 100%;
  background: var(--pxc-qs-field-bg);
  color: var(--pxc-qs-field-text);
  border: 1px solid var(--pxc-qs-field-border);
}

.pxc-quicksearch__select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pxc-quicksearch__field--range,
.pxc-quicksearch__field--range-toggle {
  min-width: 0;
}

.pxc-quicksearch__range-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.pxc-quicksearch__range-value {
  font-weight: 700;
  color: var(--pxc-qs-text);
  font-size: 0.9rem;
}

.pxc-quicksearch__range {
  width: 100%;
  accent-color: var(--pxc-qs-primary);
  cursor: pointer;
}

.pxc-quicksearch__range:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pxc-quicksearch__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  margin-bottom: 0.5rem;
  user-select: none;
}

.pxc-quicksearch__toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pxc-quicksearch__toggle-ui {
  width: 42px;
  height: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.35);
  position: relative;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.pxc-quicksearch__toggle-ui::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}

.pxc-quicksearch__toggle-input:checked + .pxc-quicksearch__toggle-ui {
  background: var(--pxc-qs-primary);
}

.pxc-quicksearch__toggle-input:checked + .pxc-quicksearch__toggle-ui::after {
  transform: translateX(18px);
}

.pxc-quicksearch__toggle-text {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--pxc-qs-text);
}

.pxc-quicksearch__toggle-body.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* Kompakt: Kauf | Finanzierung | Leasing + Von/Bis-Slider (4. Spalte) */
.pxc-quicksearch__price-compact {
  min-width: 0;
}

.pxc-quicksearch__price-tabs {
  display: flex;
  width: 100%;
  gap: 0;
  margin-bottom: 0.65rem;
}

.pxc-quicksearch__price-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem 0.25rem;
  border: none;
  background: #5c636a;
  color: #fff;
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
  line-height: 1.2;
}

.pxc-quicksearch__price-tab.is-active {
  background: var(--pxc-qs-primary);
}

.pxc-quicksearch__price-tab-check {
  font-size: 0.85rem;
  line-height: 1;
}

.pxc-quicksearch__price-range-labels {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.pxc-quicksearch__price-bound {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin: 0;
  color: var(--pxc-qs-text);
}

.pxc-quicksearch__price-bound-prefix {
  font-size: 0.7rem;
  text-transform: lowercase;
  opacity: 0.75;
}

.pxc-quicksearch__price-bound output {
  font-weight: 700;
  font-size: 1rem;
}

.pxc-quicksearch__dual-range {
  position: relative;
  height: 32px;
  width: 100%;
}

.pxc-quicksearch__dual-range .pxc-quicksearch__range {
  position: absolute;
  left: 0;
  width: 100%;
  height: 8px;
  margin: 0;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  pointer-events: none;
}

.pxc-quicksearch__dual-range .pxc-quicksearch__range--max {
  pointer-events: auto;
  z-index: 2;
}

.pxc-quicksearch__dual-range .pxc-quicksearch__range--min {
  pointer-events: auto;
  z-index: 3;
}

.pxc-quicksearch__dual-range::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 6px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  z-index: 0;
}

.pxc-quicksearch__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.pxc-quicksearch__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.25rem;
  background: var(--pxc-qs-primary);
  color: var(--pxc-qs-cta-text);
  text-decoration: none;
  border-radius: var(--pxc-qs-radius);
  font-weight: 700;
  text-transform: uppercase;
  transition: filter 0.15s ease;
}

.pxc-quicksearch__cta:hover {
  filter: brightness(1.08);
  color: var(--pxc-qs-cta-text);
}

/* Theme: bar – kompakte Leiste wie Marketplace-Screenshot */
.pxc-quicksearch--theme-bar .pxc-quicksearch__fields--bar {
  align-items: stretch;
}

.pxc-quicksearch--theme-bar .pxc-quicksearch__field {
  justify-content: stretch;
}

.pxc-quicksearch--theme-bar .pxc-quicksearch__select {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 2rem 0.65rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  cursor: pointer;
}

.pxc-quicksearch--theme-bar .pxc-quicksearch__field--cta {
  display: flex;
}

.pxc-quicksearch--theme-bar .pxc-quicksearch__cta--inline {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  text-transform: none;
  white-space: nowrap;
}

.pxc-quicksearch--theme-bar .pxc-quicksearch__cta--inline:hover {
	text-decoration: none;
}

.pxc-quicksearch--theme-bar .pxc-quicksearch__cta-count {
  font-size: inherit;
  min-width: 0;
  text-align: inherit;
}

.pxc-quicksearch--theme-bar .pxc-quicksearch__cta-label,
.pxc-quicksearch--theme-bar .pxc-quicksearch__cta-verb {
  font-size: inherit;
  font-weight: 700;
}

.pxc-quicksearch--theme-bar .pxc-quicksearch__secondary {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
}

.pxc-quicksearch__cta-count {
  font-size: 1.5rem;
  line-height: 1;
  min-width: 2.5ch;
  text-align: right;
}

.pxc-quicksearch__cta-label {
  font-size: 1rem;
}

.pxc-quicksearch__secondary {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.pxc-quicksearch__reset,
.pxc-quicksearch__detail {
  background: none;
  border: none;
  padding: 0;
  color: var(--pxc-qs-text);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
}

.pxc-quicksearch__reset:hover,
.pxc-quicksearch__detail:hover {
  opacity: 0.85;
}

.pxc-quicksearch__debug {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--pxc-qs-radius);
  color: #e9ecef;
  font-size: 0.85rem;
  width: 100%;
}

.pxc-quicksearch__debug-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.pxc-quicksearch__debug-link {
  display: block;
  word-break: break-all;
  color: #9ee5d9;
  margin-bottom: 0.75rem;
}

.pxc-quicksearch__debug-pre {
  margin: 0 0 0.75rem;
  padding: 0.5rem;
  background: #2b2b2b;
  border-radius: 4px;
  overflow: auto;
  max-height: 220px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #dee2e6;
}

.pxc-quicksearch__debug-hint {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  opacity: 0.9;
}

@media (max-width: 900px) {
  .pxc-quicksearch__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pxc-quicksearch--theme-bar .pxc-quicksearch__fields--bar {
    grid-template-columns: 1fr 1fr;
  }

  .pxc-quicksearch--theme-bar .pxc-quicksearch__field--cta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .pxc-quicksearch__fields {
    grid-template-columns: 1fr;
  }

  .pxc-quicksearch__price-tab {
    font-size: 0.75rem;
    padding: 0.55rem 0.5rem;
  }

  .pxc-quicksearch__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pxc-quicksearch__cta {
    justify-content: center;
  }
}
