/* Compact public rental filters, TZ 29.10.2026. */
.b-filter.js-section {
  margin-bottom: 28px;
}
.b-filter.js-section > .b-container > .sect-gray {
  padding: 10px 0 0;
}
.b-filter.js-section .filter-parametr .parametrs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px;
  border: 1px solid #eb9a1f;
  border-radius: 15px;
}
.b-filter.js-section .filter-parametr .parametrs.catalog-filter_has-type {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.b-filter.js-section .filter-parametr .info_lease {
  display: none;
}
.b-filter.js-section .filter-parametr .parametrs-item__title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.b-filter.js-section .filter-parametr .parametrs > .parametrs-item {
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  order: initial;
}
.b-filter.js-section .filter-parametr .parametrs-item_date {
  display: block;
}
.b-filter.js-section .filter-parametr .parametrs-item__data {
  width: 100%;
  min-width: 0;
  padding: 0;
}
.b-filter.js-section .filter-parametr .parametrs-item_type {
  order: 4;
}
.b-filter.js-section .filter-parametr .parametrs-item.hidden {
  display: none;
}
.b-filter.js-section .filter-parametr .chosen-container {
  min-width: 0;
  max-width: 100%;
}
.b-filter.js-section .filter-parametr .date-range {
  box-sizing: border-box;
}
.b-result.js-ajax-result > .b-container > .result.sect-gray {
  padding-top: 20px;
}
.b-result.js-ajax-result .rbike-wrap {
  margin-top: 20px;
}
@media (min-width: 640px) {
  .b-filter.js-section .filter-parametr:not(.city_show) .parametrs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .b-filter.js-section .filter-parametr:not(.city_show) .parametrs.catalog-filter_has-type {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) and (min-width: 640px) {
  .b-filter.js-section .filter-parametr .parametrs {
    gap: 10px;
  }
  .b-filter.js-section .filter-parametr .date-range,
  .b-filter.js-section .filter-parametr .chosen-single {
    font-size: 14px;
  }
}
@media (max-width: 639px) {
  .b-filter.js-section {
    margin-bottom: 24px;
  }
  .b-filter.js-section > .b-container > .sect-gray {
    padding-top: 6px;
  }
  .b-filter.js-section .filter-parametr .parametrs,
  .b-filter.js-section .filter-parametr .parametrs.catalog-filter_has-type {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 12px;
  }
  .b-filter.js-section .filter-parametr .date-range,
  .b-filter.js-section .filter-parametr .chosen-container-single .chosen-single {
    height: 52px;
    padding: 0 20px;
    font-size: 15px;
    line-height: 50px;
  }
  .b-filter.js-section .filter-parametr .parametrs-item__range:after {
    top: 18px;
  }
  .b-filter.js-section .filter-parametr .chosen-container-single .chosen-single:after {
    top: 18px;
  }
  .b-result.js-ajax-result > .b-container > .result.sect-gray {
    padding-top: 0;
  }
}

/* Keep product photos centered after WebP picture wrapping. */
.rbike-item .rbike-item__img > picture {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}


/* Sizing table beside the bicycle catalogue's editorial text. */
.bicycle-size-table {
  width: 100%;
  max-width: 550px;
  margin: 24px 0;
}
.bicycle-size-table :is(.t-size, .t-size_mobile) {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}
.bicycle-size-table .t-size {
  display: table;
}
.bicycle-size-table .t-size_mobile {
  display: none;
}
.bicycle-size-table :is(.t-size, .t-size_mobile) :is(th, td) {
  padding: 8px;
  border: 1px solid #d9dce4;
  color: #14233d;
  font-size: 14px;
  line-height: 1.45;
  text-align: start;
}
.bicycle-size-table :is(.t-size, .t-size_mobile) :is(thead, tbody:first-child > tr:first-child) :is(th, td) {
  background-color: #f2f4f7;
  font-weight: 600;
}
@media (max-width: 639px) {
  .bicycle-size-table .t-size {
    display: none;
  }
  .bicycle-size-table .t-size_mobile {
    display: table;
    table-layout: fixed;
  }
}

/* Price sorting is shared by every rental catalogue, with optional type/city. */
/* Long translated options must fit their own rental filter dropdown. */
.b-filter.js-section .filter-parametr .chosen-container .chosen-drop {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.b-filter.js-section .filter-parametr .chosen-container .chosen-results li {
  height: auto;
  min-height: 60px;
  white-space: normal;
  overflow-wrap: break-word;
}
@media (min-width: 640px) {
  .b-filter.js-section .filter-parametr:not(.city_show) .parametrs.catalog-filter_has-sort {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .b-filter.js-section .filter-parametr.city_show .parametrs.catalog-filter_has-sort {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .b-filter.js-section .filter-parametr:not(.city_show) .parametrs.catalog-filter_has-sort.catalog-filter_has-type {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .b-filter.js-section .filter-parametr.city_show .parametrs.catalog-filter_has-sort.catalog-filter_has-type {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Each rental endpoint owns one single-date calendar. */
.b-filter.js-section .filter-parametr .parametrs-item_date.rental-date-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-column: 1 / -1;
  gap: 12px;
}
.b-filter.js-section .filter-parametr .rental-date-fields .parametrs-item__data {
  display: block;
  min-width: 0;
  width: 100%;
  padding: 0;
}
.b-filter.js-section .filter-parametr .rental-date-fields .parametrs-item__title {
  display: block;
  position: static;
  width: auto;
  height: auto;
  margin: 0 0 4px;
  overflow: visible;
  clip: auto;
  white-space: normal;
  font-size: 13px;
  line-height: 1.4;
  text-transform: none;
}
.date-picker-wrapper.rental-single-date-picker {
  width: 320px;
  max-width: min(320px, calc(100% - 16px));
}
.rental-single-date-picker .month-wrapper table.month1 {
  display: table;
  table-layout: fixed;
  width: 100%;
}
.date-picker-wrapper.rental-single-date-picker .month-wrapper th,
.date-picker-wrapper.rental-single-date-picker .month-wrapper td {
  width: auto;
}
@media (max-width: 639px) {
  .b-filter.js-section .filter-parametr .parametrs-item_date.rental-date-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Keep every visible rental control on one desktop row, including both dates. */
@media (min-width: 1100px) {
  body .b-filter.js-section .filter-parametr form.parametrs.js-catalog-filter-form {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 8px;
  }
  body .b-filter.js-section .filter-parametr form.parametrs.js-catalog-filter-form > .rental-date-fields {
    display: contents;
  }
  body .b-filter.js-section .filter-parametr form.parametrs.js-catalog-filter-form .rental-date-fields > .parametrs-item__data {
    flex: 0 0 144px;
    width: 144px;
    min-width: 0;
  }
  body .b-filter.js-section .filter-parametr form.parametrs.js-catalog-filter-form > .parametrs-item:not(.rental-date-fields) {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
  }
  body .b-filter.js-section .filter-parametr form.parametrs.js-catalog-filter-form .date-range,
  body .b-filter.js-section .filter-parametr form.parametrs.js-catalog-filter-form .chosen-single {
    padding-inline: 12px 32px;
    font-size: 15px;
  }
}
