.bido-search-form {
  position: relative;
  flex: 1 1 220px;
  min-width: 170px;
  display: flex;
  gap: 8px;
}

/* Search input with a leading glyph — left padding clears the icon. */
.bx .search-input {
  padding-left: 32px;
}

.bido-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

/* Search forms need room for their input; button_to forms are just buttons —
   inflating them to 220px pushed the next toolbar button past the viewport. */
.bido-toolbar form:not(.button_to) {
  min-width: min(100%, 220px);
}

.bido-toolbar .input {
  max-width: 100%;
}

.bido-warning-card {
  background: rgba(var(--bx-amber-rgb), 0.10);
  border-color: rgba(var(--bx-amber-rgb), 0.28);
}

.bido-warning-row {
  margin-top: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.bido-warning-copy {
  flex: 1;
  min-width: 0;
}

.bido-warning-title {
  font-size: var(--bx-text-md);
}

@supports (background: color-mix(in oklch, white 50%, black)) {
  .bido-warning-card {
    background: color-mix(in oklch, var(--bx-warn) 6%, white);
    border-color: color-mix(in oklch, var(--bx-warn) 25%, var(--bx-line));
  }
}

.bido-filter-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 10px 32px 0;
  background: var(--bx-paper);
}

.bido-filter-tokens-label {
  margin-right: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bido-filter-token {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 10px;
  border: 1px solid var(--bx-line);
  border-radius: var(--bx-r-pill);
  background: var(--bx-paper-2, var(--bx-paper));
  color: var(--bx-ink);
  font-size: var(--bx-text-sm);
  line-height: 1;
  text-decoration: none;
}

.bido-filter-token svg {
  color: var(--bx-ink-3);
}

.bido-filter-token-clear {
  border-style: dashed;
  color: var(--bx-ink-2);
}

.bido-filter-token:focus-visible {
  outline: 2px solid var(--bx-accent);
  outline-offset: 2px;
}

.search-glyph {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bx-ink-3);
  line-height: 0;
}

/* === Responsive — toolbars ===
   The shared .bido-toolbar (admin / vendor list headers) wraps below md so
   its search input + button group flow onto two rows instead of overflowing. */
@media (max-width: 48rem) {
  .bido-toolbar {
    margin-left: 0;
    width: 100%;
    flex-wrap: wrap;
  }
  .bido-toolbar form {
    flex: 1 1 220px;
  }
  .bido-search-form {
    flex: 1 1 220px;
  }
  .bido-toolbar .input {
    width: 100%;
  }
  .bido-filter-tokens {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (any-hover: hover) {
  .bido-filter-token:hover {
    border-color: var(--bx-ink);
  }
  .bido-filter-token:hover svg {
    color: var(--bx-ink);
  }
}

/* Touch — grow the filter-token tap target on a coarse pointer (Rule 7). */
@media (pointer: coarse) {
  .bido-filter-token {
    padding-block: 8px;
  }
}

