/* Keep the shared sale tabs inside their own horizontal scroller on every
   sale view, including sub-pages that do not load sale-details.css. */
.sale-subnav,
.sale-subnav > .d-flex,
.sale-subnav > .d-flex > .ms-auto {
  min-width: 0;
  max-width: 100%;
}

.sale-subnav-tabs {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.sale-subnav-tabs-group {
  display: inline-flex;
  flex-wrap: nowrap;
  width: max-content;
  min-width: max-content;
}

.sale-subnav-tabs .btn {
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 2.5rem;
}

@media (max-width: 991.98px) {
  .sale-subnav-tabs .d-none.d-lg-inline { display: inline !important; }
}

@media (max-width: 767.98px) {
  .sale-subnav > .d-flex {
    display: block !important;
  }

  .sale-subnav > .d-flex > .ms-auto {
    width: 100%;
    margin-left: 0 !important;
  }

  .sale-subnav-tabs {
    margin-top: 0.65rem;
    padding-bottom: 0.2rem;
  }

  .sale-subnav-tabs .d-none.d-lg-inline {
    display: inline !important;
  }
}
