/* A shelf's tools; notes in templates/shop_tires.html. */
.shelf-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: 8px 0 0; }
.shelf-tools .results-bar { flex: 1 1 150px; margin: 0; padding: 0; min-height: 0; }
.shelf-tools .sort-field { margin: 0; }
@supports selector(::details-content) {
  .shelf-filters { display: contents; }
  .shelf-filters::details-content { order: 2; flex-basis: 100%; }
}
@supports not selector(::details-content) {
  .shelf-filters[open] { flex-basis: 100%; order: 2; }
}
.shelf-filters > summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.shelf-filters > summary::-webkit-details-marker { display: none; }
.shelf-filters-body { padding: 8px 0 4px; }
.shelf-filters-body .chip-nav + .chip-nav { margin-top: 10px; }
.shelf-folded { margin: 18px 0 0; }
.tire-shelf .section-head { margin-bottom: 8px; }
.tire-shelf .section-head h1 { margin-bottom: 4px; }
.tire-shelf .truck-bar .btn { margin-bottom: 4px; }
.tire-shelf .row-list > .row-card:first-child { margin-top: 16px; }
.shelf-filters-body .chip-row { row-gap: 16px; }
@media (max-width: 620px) {
  .shelf-tools .sort-field { gap: 0; }
  .shelf-tools .results-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* A 360px phone with a filter on: "Filters · on" is 23px wider than "Filters", and the sort
   wrapped under the buttons (44px more above the first tire). The row gives back 24px instead. */
@media (max-width: 389px) {
  .shelf-tools { column-gap: 6px; }
  .shelf-tools .shelf-filters > summary { padding-left: 8px; padding-right: 8px; }
}
.row-card-unit { color: var(--text-2); }
.row-card-photo .tread-mark { width: auto; height: 78%; }
.tire-shelf .truck-bar-note { margin: 8px 0 0; }
@media (max-width: 767px) {
  .tire-shelf .shelf-lede { display: none; }
  .tire-shelf .shelf-tools { margin-top: 4px; }
  .tire-shelf .row-list { margin-top: 0; }
}
.tire-shelf .kind-line { margin: 8px 0 0; }
