/* filters — the groups and the chips of what is on. Where the filters stand (above the list, a sidebar) is the
   page's. */

/* The groups in one wrapping row: a list (the categories) is a row of its own that scrolls sideways when it does
   not fit, the toggles and the price stand after it. Everything in the row one height, so nothing moves when a
   group is not offered. */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-block-end: .5rem; }
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.filter--list { flex-basis: 100%; }
.filter__chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-block: .25rem; min-width: 0; max-width: 100%; }
.filter--list { min-width: 0; max-width: 100%; }
.filter__chips::-webkit-scrollbar { display: none; }
.filter__chips .chip { flex: none; white-space: nowrap; }
.filter .chip { display: inline-flex; align-items: center; height: 2.4rem; box-sizing: border-box; }
.chip--toggle.is-active::before { content: '✓'; margin-right: .35rem; }

/* The price: from – to as the site's fields, small; the browser's arrows off. */
.filter__range { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0; }
.filter__name { color: var(--muted); font-size: .85rem; margin-inline-end: .2rem; }
.filter__range input {
  width: 6.5rem; height: 2.4rem; box-sizing: border-box; padding: 0 .9rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink);
  font: inherit; font-size: .85rem; -moz-appearance: textfield; appearance: textfield;
}
.filter__range input::-webkit-inner-spin-button,
.filter__range input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.filter__range input:focus { outline: none; border-color: var(--mark, var(--primary)); }
.filter__range .btn { height: 2.4rem; box-sizing: border-box; }

@media (max-width: 560px) {
  .filter__range input { width: 5.5rem; }
}

.filters__active { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; flex-basis: 100%; margin: 0; }
.filters__reset { font-size: var(--text-sm); }
.chip.is-empty { opacity: .45; }

.auth-form .btn { width: 100%; }

@media (max-width: 900px) {
  .profile-card__foot .btn { padding: .45rem .9rem; }
}
