/* Responsive catalogue and search. Desktop styling remains in main.css. */
/* Keep informational homepage headings compact within the three-column text. */
@media (min-width: 768px) {
  .home-about-desc h1 {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.3;
  }
  .home-about-desc h2 {
    margin: 22px 0 10px;
    font-size: 21px;
    line-height: 1.35;
  }
}
.mobile-offer-image { display: none; }
.mobile-shared-offer-photo, .mobile-shared-offer-note, .mobile-group-shared-note { display: none; }
.vin-car-summary__compact { display: none; }
.mobile-parts-more { display: none; }
.mobile-parts-more[hidden] { display: none !important; }
.sale-cart-label { display: none; }
.catalog-mobile-scrollbar { display: none; }
.catalog-mobile-scrollbar[hidden] { display: none !important; }
.catalog-mobile-vertical-scrollbar { display: none; }
.catalog-mobile-vertical-scrollbar[hidden] { display: none !important; }
.mobile-voice-trigger[hidden], .mobile-voice-toast[hidden] { display: none !important; }
.catalog-back { display: none; }
body.vin-model-modal-open { overflow: hidden; }
.vin-model-backdrop[hidden] { display: none !important; }
.vin-model-backdrop {
  position: fixed;
  z-index: 10050;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 25, 39, .62);
}

/* VIN car data correction dialog */
.vin-report-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 35, 51, .62);
  box-sizing: border-box;
}
.vin-report-dialog,
.vin-report-dialog * { box-sizing: border-box; }
.vin-report-dialog {
  width: min(100%, 640px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d8e7f0;
  border-top: 4px solid #0870b4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(6, 29, 48, .3);
  color: #193e5d;
}
.vin-report-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  padding: 18px 22px 13px;
  border-bottom: 1px solid #e2edf3;
}
.vin-report-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #086dac;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.vin-report-header h2 { margin: 0; color: #163f60; font-size: 22px; line-height: 1.25; font-weight: 700; }
.vin-report-close {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #d4e4ee;
  border-radius: 9px;
  background: #f7fbfd;
  color: #245a7c;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}
.vin-report-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 15px 22px 20px; }
.vin-report-intro { margin: 0 0 5px; color: #526f83; font-size: 14px; line-height: 1.4; }
.vin-report-car { margin: 0 0 14px; color: #163f60; font-size: 14px; font-weight: 600; line-height: 1.35; }
.vin-report-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 12px; }
.vin-report-field { display: block; min-width: 0; margin: 0; color: #375d76; font-size: 12px; font-weight: 600; line-height: 1.35; }
.vin-report-field--wide { grid-column: 1 / -1; }
.vin-report-field input,
.vin-report-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  height: 40px;
  margin: 5px 0 0;
  padding: 8px 11px;
  border: 1px solid #bed3e1;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: #1d4058;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 400;
  box-shadow: none;
}
.vin-report-field textarea { height: 76px; min-height: 76px; resize: vertical; }
.vin-report-field input:focus,
.vin-report-field textarea:focus { border-color: #0870b4; box-shadow: 0 0 0 3px rgba(8, 112, 180, .12); }
.vin-report-field input::placeholder,
.vin-report-field textarea::placeholder { color: #91a2af; }
.vin-report-field small { display: block; color: #c63d3d; font-size: 11px; font-weight: 400; }
.vin-report-field small:empty { display: none; }
.vin-report-field--error input,
.vin-report-field--error textarea { border-color: #c63d3d; }
.vin-report-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.vin-report-actions button,
.vin-report-done { min-height: 40px; padding: 8px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.vin-report-cancel { border: 1px solid #bdd3e2; background: #fff; color: #1e5d87; }
.vin-report-submit,
.vin-report-done { border: 1px solid #075a99; background: #075a99; color: #fff; }
.vin-report-submit:disabled { opacity: .65; cursor: wait; }
.vin-report-feedback { margin: 10px 0 0; color: #bc3636; font-size: 13px; }
.vin-report-success { padding: 12px 0 4px; color: #163f60; font-size: 16px; }
.vin-report-success p { margin: 7px 0 18px; color: #526f83; font-size: 14px; }
.vin-report-dialog [hidden] { display: none !important; }
.vin-report-dialog :focus-visible { outline: 2px solid #0870b4; outline-offset: 2px; }
@media (max-width: 600px) {
  .vin-report-overlay { padding: 10px; align-items: center; }
  .vin-report-dialog { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); border-radius: 13px; }
  .vin-report-header { padding: 13px 15px 10px; }
  .vin-report-header h2 { font-size: 19px; }
  .vin-report-body { padding: 12px 15px 16px; }
  .vin-report-fields { gap: 9px; }
  .vin-report-field input { height: 38px; }
  .vin-report-actions { position: sticky; bottom: -16px; z-index: 1; margin: 13px -15px -16px; padding: 10px 15px 12px; border-top: 1px solid #e2edf3; background: #fff; }
  .vin-report-actions button { flex: 1; }
}
@media (max-width: 390px) { .vin-report-fields { grid-template-columns: 1fr; } .vin-report-field--wide { grid-column: auto; } }
.vin-model-dialog {
  width: min(100%, 520px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  border: 1px solid #d5e5ef;
  border-top: 4px solid #0b68a8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(5, 25, 42, .28);
  color: #17364c;
}
.vin-model-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 19px 20px 14px; border-bottom: 1px solid #e5edf2; }
.vin-model-eyebrow { display: block; margin-bottom: 4px; color: #0b68a8; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.vin-model-header h2 { margin: 0; color: #173f60; font-size: 22px; font-weight: 700; line-height: 1.25; }
.vin-model-close { flex: 0 0 42px; width: 42px; height: 42px; margin: -5px -5px 0 0; border: 1px solid #d8e5ed; border-radius: 9px; background: #fff; color: #35627f; font-size: 30px; font-weight: 300; line-height: 1; cursor: pointer; }
.vin-model-close:hover, .vin-model-close:focus { background: #f3f8fb; }
.vin-model-body { padding: 17px 20px 20px; }
.vin-model-vin { margin: 0 0 10px; color: #597487; font-size: 13px; }
.vin-model-vin strong { color: #173f60; font-size: 14px; letter-spacing: .03em; }
.vin-model-intro { margin: 0 0 15px; color: #39576b; font-size: 15px; line-height: 1.45; }
.vin-model-example { display: flex; align-items: center; gap: 14px; margin-bottom: 17px; padding: 10px; border: 1px solid #dbe8ef; border-radius: 10px; background: #f6faff; }
.vin-model-image-trigger { position: relative; flex: 0 0 126px; width: 126px; padding: 0; overflow: hidden; border: 1px solid #c8dce9; border-radius: 7px; background: #fff; cursor: zoom-in; }
.vin-model-image-trigger:hover, .vin-model-image-trigger:focus { border-color: #0b68a8; box-shadow: 0 0 0 3px rgba(11, 104, 168, .13); }
.vin-model-image-trigger img { display: block; width: 100%; max-height: 105px; object-fit: contain; }
.vin-model-image-trigger span { position: absolute; right: 0; bottom: 0; left: 0; padding: 4px 5px; background: rgba(7, 68, 108, .86); color: #fff; font-size: 11px; font-weight: 700; text-align: center; }
.vin-model-example span { color: #49687c; font-size: 13px; line-height: 1.4; }
.vin-model-example .vin-model-image-trigger span { color: #fff; font-size: 11px; line-height: 1.2; }
.vin-model-lightbox[hidden] { display: none !important; }
.vin-model-lightbox { position: fixed; z-index: 10060; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(5, 20, 32, .86); }
.vin-model-lightbox-content { position: relative; display: flex; flex-direction: column; align-items: center; box-sizing: border-box; width: min(100%, 960px); min-width: 0; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 50px 16px 14px; border-radius: 12px; background: #fff; box-shadow: 0 22px 70px rgba(0, 0, 0, .35); }
.vin-model-lightbox-content img { display: block; min-width: 0; max-width: 100%; max-height: calc(100vh - 145px); max-height: calc(100dvh - 145px); object-fit: contain; touch-action: pinch-zoom; }
.vin-model-lightbox-content p { margin: 12px 0 0; color: #365b74; font-size: 14px; line-height: 1.4; text-align: center; }
.vin-model-lightbox-close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; padding: 0; border: 1px solid #d8e5ed; border-radius: 8px; background: #f5faff; color: #185580; font-size: 30px; line-height: 1; cursor: pointer; }
.vin-model-lightbox-close:hover, .vin-model-lightbox-close:focus { border-color: #0b68a8; background: #eaf4fa; }
.vin-model-form label { display: block; margin-bottom: 7px; color: #173f60; font-size: 14px; font-weight: 700; }
.vin-model-form input { display: block; width: 100%; height: 46px; padding: 0 13px; border: 1px solid #bcd1df; border-radius: 8px; color: #17364c; font-size: 16px; text-transform: uppercase; }
.vin-model-form input:focus { border-color: #0b68a8; box-shadow: 0 0 0 3px rgba(11, 104, 168, .13); }
.vin-model-form input[aria-invalid="true"] { border-color: #c52f3d; }
.vin-model-error { margin: 7px 0 0; color: #b52432; font-size: 13px; line-height: 1.4; }
.vin-model-error[hidden] { display: none !important; }
.vin-model-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 17px; }
.vin-model-actions button { min-height: 44px; padding: 0 16px; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; }
.vin-model-cancel { border: 1px solid #bfd2e0; background: #fff; color: #185580; }
.vin-model-cancel:hover, .vin-model-cancel:focus { background: #f2f7fa; }
.vin-model-submit { border: 1px solid #075c9c; background: #075c9c; color: #fff; }
.vin-model-submit:hover, .vin-model-submit:focus { background: #064d82; }
.vin-model-actions button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 520px) {
  .vin-model-backdrop { padding: 10px; }
  .vin-model-dialog { max-height: calc(100dvh - 20px); border-radius: 12px; }
  .vin-model-header { padding: 16px 15px 12px; }
  .vin-model-header h2 { font-size: 19px; }
  .vin-model-body { padding: 15px; }
  .vin-model-example { gap: 10px; }
  .vin-model-image-trigger { flex-basis: 100px; width: 100px; }
  .vin-model-actions button { flex: 1 1 0; padding: 0 9px; }
  .vin-model-lightbox { padding: 8px; }
  .vin-model-lightbox-content { max-height: calc(100dvh - 16px); padding: 44px 8px 12px; }
  .vin-model-lightbox-content img { max-height: calc(100dvh - 130px); }
}
.scheme-popover.popover {
  width: max-content;
  max-width: min(320px, calc(100vw - 24px));
  padding: 0;
  border: 1px solid #cbdde9;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(25, 65, 95, .16);
  color: #263e50;
  font-size: 13px;
}
body .scheme-popover .popover-content {
  padding: 9px 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.scheme-popover .popover-content > div > div + div { margin-top: 4px; }
.scheme-popover .popover-content b { color: #075a98; font-weight: 600; }
.scheme-popover.bottom > .arrow:after { border-bottom-color: #fff; }
.scheme-popover.top > .arrow:after { border-top-color: #fff; }
.scheme-popover.left > .arrow:after { border-left-color: #fff; }
.scheme-popover.right > .arrow:after { border-right-color: #fff; }

.catalog-detail-item-table-title.no-offers-title {
  min-height: 44px;
  padding: 8px 46px 6px 12px;
  line-height: 1.35;
}
.catalog-detail-item-table-title.no-offers-title + .catalog-no-offers {
  margin-top: 6px;
}
.catalog-detail-item-table .catalog-no-offers {
  margin: 18px 0 10px;
  padding: 14px 17px;
  border: 1px solid #d5e5ef;
  border-left: 4px solid #0b68a8;
  border-radius: 10px;
  background: #f5faff;
  color: #28475e;
  line-height: 1.45;
}
.catalog-no-offers strong { display: block; margin-bottom: 3px; color: #173f60; font-size: 16px; }
.catalog-no-offers span { display: block; font-size: 14px; }
.catalog-detail-item-table .catalog-unavailable-table {
  width: 100%;
  max-width: 760px;
  margin: 0;
  border: 1px solid #d7e5ee;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.catalog-unavailable-table th {
  padding: 8px 11px;
  background: #f1f6fa;
  color: #597284;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}
.catalog-unavailable-table td { padding: 9px 11px; border-top: 1px solid #e5edf2; color: #24465e; font-size: 13px; }
.catalog-unavailable-table th:first-child, .catalog-unavailable-table td:first-child { width: 55%; }
.catalog-unavailable-table th:not(:first-child), .catalog-unavailable-table td:not(:first-child) { text-align: center; }
.catalog-unavailable-part { display: flex; align-items: center; gap: 10px; min-width: 0; }
.catalog-unavailable-part .default-image,
.catalog-detail-item-table .catalog-unavailable-part .default-image {
  flex: 0 0 52px;
  float: none;
  width: 52px;
  height: 48px;
  margin: 0;
}
.catalog-unavailable-part .default-image img { width: 52px; height: 48px; object-fit: contain; }
.catalog-unavailable-part strong { display: block; color: #173f60; font-size: 14px; font-weight: 600; line-height: 1.3; }
.catalog-unavailable-part span { display: block; margin-top: 3px; color: #688093; font-size: 12px; overflow-wrap: anywhere; }
.catalog-unavailable-status { color: #805d25; font-weight: 600; white-space: nowrap; }
.catalog-unavailable-dash { color: #91a3af; }
.catalog-detail-item-table .catalog-search-form {
  width: 100%;
  max-width: 760px;
  margin: 12px 0 24px;
  padding: 16px 18px 18px;
  border: 1px solid #d7e5ee;
  border-radius: 10px;
  background: #fff;
}
.catalog-detail-item-table .catalog-search-form h3 {
  margin: 0 0 12px !important;
  color: #173f60;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
.catalog-detail-item-table .empty-search-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  width: 100%;
  margin: 0;
}
.catalog-detail-item-table .empty-search-form .form-group { min-width: 0; margin: 0; }
.catalog-detail-item-table .empty-search-form .form-control {
  height: 42px;
  border: 1px solid #cbdbe5;
  border-radius: 8px;
  background: #fff;
  color: #19374d;
  font-size: 15px;
}
.catalog-detail-item-table .empty-search-form .form-control:focus {
  border-color: #0b68a8;
  box-shadow: 0 0 0 3px rgba(11, 104, 168, .12);
}
.catalog-detail-item-table .empty-search-form .form-group .row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.catalog-detail-item-table .empty-search-form .form-group .row > .col-xs-6 {
  float: none;
  width: auto;
  padding: 0;
}
.catalog-detail-item-table .empty-search-form .form-group .row > .col-xs-6:first-child { flex: 1 1 auto; min-width: 0; }
.catalog-detail-item-table .empty-search-form .form-group .row > .col-xs-6:last-child { flex: 0 0 auto; }
.catalog-detail-item-table .empty-search-form .image img { display: block; max-width: 100%; border-radius: 6px; }
.catalog-detail-item-table .empty-search-form .buttons { display: flex; align-items: center; justify-content: flex-end; margin: 0; text-align: right !important; }
.catalog-detail-item-table .empty-search-form .buttons .btn { min-width: 138px; min-height: 42px; border-radius: 7px; }
.catalog-detail-item-table .catalog-search-form .empty-search-success { margin-top: 14px; color: #173f60; }
@media (max-width: 767px) {
  .catalog-detail-item-table .catalog-no-offers {
    margin: 6px 0 8px;
    padding: 7px 10px;
    border-radius: 8px;
    line-height: 1.25;
  }
  .catalog-detail-item-table .catalog-no-offers strong {
    margin-bottom: 2px;
    font-size: 14px;
    line-height: 1.25;
  }
  .catalog-detail-item-table .catalog-no-offers span {
    font-size: 12px;
    line-height: 1.3;
  }
  .catalog-detail-item-table .catalog-unavailable-table { max-width: 100%; }
  .catalog-unavailable-table thead { display: none; }
  .catalog-unavailable-table tbody, .catalog-unavailable-table tr, .catalog-unavailable-table td { display: block; width: 100%; }
  .catalog-unavailable-table td { border-top: 0; }
  .catalog-unavailable-table td:nth-child(n+3) { display: none; }
  .catalog-unavailable-table td:nth-child(2) { padding-top: 0; text-align: left; }
  .catalog-detail-item-table .catalog-search-form { max-width: 100%; margin: 10px 0 20px; padding: 15px; }
  .catalog-detail-item-table .catalog-search-form h3 { font-size: 17px; }
  .catalog-detail-item-table .empty-search-form { grid-template-columns: 1fr; }
  .catalog-detail-item-table .empty-search-form .form-group .row { align-items: stretch; flex-direction: column; gap: 9px; }
  .catalog-detail-item-table .empty-search-form .form-group .row > .col-xs-6 { width: 100%; }
  .catalog-detail-item-table .empty-search-form .buttons { justify-content: stretch; }
  .catalog-detail-item-table .empty-search-form .buttons .btn { width: 100%; }
}
.new-catalog__right-block .catalog-vin-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  width: calc(100% - 20px);
  margin: 10px 10px 14px;
  padding: 12px 14px;
  border: 1px solid #d4e3ee;
  border-left: 3px solid #0b68a8;
  border-radius: 10px;
  background: #f6faff;
}
.catalog-vin-prompt__copy { flex: 1 1 280px; color: #28445b; }
.catalog-vin-prompt__copy strong { display: block; margin-bottom: 3px; color: #153f62; font-size: 15px; line-height: 1.3; }
.catalog-vin-prompt__copy span { display: block; font-size: 13px; line-height: 1.35; }
.catalog-vin-prompt__form { display: flex; flex: 1 1 340px; align-items: end; gap: 8px; margin: 0; }
.catalog-vin-prompt__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.catalog-vin-prompt__input-wrap { position: relative; flex: 1 1 auto; min-width: 0; }
.catalog-vin-prompt__form input[name="query"] {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #bdd1e0;
  border-radius: 7px;
  background: #fff;
  color: #19374d;
  font-size: 16px;
  text-transform: uppercase;
}
.catalog-vin-prompt__form input[name="query"]:focus { border-color: #0b68a8; box-shadow: 0 0 0 3px rgba(11, 104, 168, .12); }
.catalog-vin-prompt__form button[type="submit"] {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #0b5d9d;
  border-radius: 7px;
  background: #0b5d9d;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.catalog-vin-prompt__form button[type="submit"]:hover, .catalog-vin-prompt__form button[type="submit"]:focus { background: #084d84; }
/* Keep the already-deployed VIN correction dialog when this stylesheet is updated. */
#chery-modal .modal-dialog { width: min(440px, calc(100vw - 28px)); max-width: calc(100vw - 28px); margin: 24px auto; }
#chery-modal .modal-content { display: flex; flex-direction: column; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow: hidden; border: 1px solid #d9e5ec; border-radius: 14px; box-shadow: 0 16px 50px rgba(13, 42, 64, .2); }
#chery-modal .modal-content::before { display: none; }
#chery-modal .modal-header { position: relative; flex: 0 0 auto; min-height: 66px; padding: 17px 62px 12px 22px; border-bottom: 1px solid #e4edf2; }
#chery-modal .modal-header h2 { margin: 0; color: #163f62; font-size: 21px; font-weight: 700; line-height: 1.3; }
#chery-modal .modal-header .close { position: absolute; top: 10px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid #dae5ec; border-radius: 9px; background: #fff; color: #245778; font-size: 28px; font-weight: 400; line-height: 1; opacity: 1; text-shadow: none; }
#chery-modal .modal-header .close:hover, #chery-modal .modal-header .close:focus { background: #f2f7fa; opacity: 1; }
#chery-modal .modal-body { flex: 1 1 auto; min-height: 0; padding: 18px 22px 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
#chery-modal .dealer-logo { display: none; }
#chery-modal .vin-error-modal__lead { margin: 0 0 9px; color: #2b4356; font-size: 15px; line-height: 1.48; }
#chery-modal .vin-error-modal__hint { margin: 0 0 17px; color: #687e8d; font-size: 13px; line-height: 1.4; }
#chery-modal .form-group { margin-bottom: 12px; }
#chery-modal .form-control { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cbdbe5; border-radius: 8px; box-shadow: none; font-size: 16px; }
#chery-modal textarea.form-control { height: 76px; min-height: 76px; resize: vertical; }
#chery-modal .form-control:focus { border-color: #1374b5; box-shadow: 0 0 0 3px rgba(19, 116, 181, .12); }
#chery-modal .help-block { margin: 4px 0 0; font-size: 12px; line-height: 1.35; }
#chery-modal .btn.btn-primary { min-width: 160px; min-height: 44px; border-radius: 8px; }
#chery-modal .vin-error-modal__later { display: block; min-height: 44px; margin: 1px auto 0; padding: 8px 12px; border: 0; background: transparent; color: #075c9c; font-size: 14px; text-decoration: underline; }
@media (max-width: 767px) {
  .mobile-voice-trigger,
  #search-form .kitai-search-field .mobile-voice-trigger,
  .vin-name-controls .mobile-voice-trigger,
  .catalog-vin-prompt__form .mobile-voice-trigger {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    min-width: 44px;
    height: 44px !important;
    min-height: 44px;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #c7d9e7 !important;
    border-radius: 8px !important;
    background: #f4f9fd !important;
    color: #12629b !important;
    box-shadow: none !important;
    cursor: pointer;
  }
  .mobile-voice-trigger svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-voice-trigger.is-listening { border-color: #d74949 !important; background: #fff1f1 !important; color: #c7252c !important; }
  .mobile-voice-trigger:focus-visible { outline: 2px solid #12629b; outline-offset: 2px; }
  .vin-name-controls #vin-part-name { flex: 1 1 150px; min-width: 0; }
  .mobile-voice-toast {
    position: fixed;
    z-index: 10050;
    right: 16px;
    bottom: 80px;
    left: 16px;
    max-width: 480px;
    margin: 0 auto;
    padding: 11px 14px;
    border-radius: 9px;
    background: #173f5e;
    color: #fff;
    box-shadow: 0 8px 24px rgba(19, 52, 77, .22);
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
  }
  .new-catalog__right-block .catalog-vin-prompt { width: 100%; margin: 0 0 8px; padding: 8px 9px; gap: 6px; }
  .catalog-vin-prompt__copy { flex-basis: 100%; }
  .catalog-vin-prompt__copy strong { margin-bottom: 1px; font-size: 14px; line-height: 1.22; }
  .catalog-vin-prompt__copy span { font-size: 12px; line-height: 1.25; }
  .catalog-vin-prompt__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; flex-basis: 100%; align-items: center; gap: 6px; }
  .catalog-vin-prompt__form input[name="query"] { height: 40px; padding: 0 41px 0 10px; font-size: 14px; }
  .catalog-vin-prompt__form button[type="submit"] { min-width: 108px; min-height: 40px; height: 40px; padding: 0 9px; font-size: 12px; }
  .catalog-vin-prompt__input-wrap .mobile-voice-trigger {
    position: absolute;
    top: 50%;
    right: 2px;
    display: inline-flex;
    width: 36px !important;
    min-width: 36px;
    height: 36px !important;
    min-height: 36px;
    border: 0 !important;
    background: transparent !important;
    transform: translateY(-50%);
  }
  #chery-modal .modal-dialog { margin: 14px auto; }
  #chery-modal .modal-content { max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); }
  #chery-modal .modal-header { min-height: 62px; padding: 15px 62px 11px 18px; }
  #chery-modal .modal-header h2 { font-size: 19px; }
  #chery-modal .modal-body { padding: 16px 18px 18px !important; }
  #chery-modal .btn.btn-primary { width: 100%; }
}
@media (max-width: 1279px) {
  html, body { min-width: 0; width: 100%; }
  .wrap, body.catalog-rep-part .wrap { width: 100%; max-width: 1250px; padding-left: 16px; padding-right: 16px; }
  .wrap .wrap { padding-left: 0; padding-right: 0; }
  .page { padding-bottom: 32px; }
  header { display: flex; flex-wrap: wrap; gap: 12px; padding: 8px 12px; }
  /* Use one regular two-row strip on touch widths. The desktop layout offsets
     later rows with highly specific nth-child rules, so reset those explicitly. */
  header .header-menu {
    float: none;
    position: relative;
    display: grid !important;
    grid-template-columns: 72px minmax(0,1fr);
    grid-template-rows: 92px;
    align-items: start;
    column-gap: 10px;
    width: 100% !important;
    max-width: none;
    height: 92px !important;
    min-height: 92px;
    overflow: hidden;
  }
  header .header-menu > .logo {
    position: relative !important;
    grid-column: 1;
    grid-row: 1;
    width: 72px !important;
    height: 72px !important;
    clip-path: none;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    background: #f3f7f9 !important;
    box-shadow: 0 3px 12px rgba(25,70,99,.09);
  }
  header .header-menu > .logo::after {
    top: 6px;
    left: 6px;
    width: 60px;
    height: 60px;
  }
  header .header-menu > ul {
    grid-column: 2;
    grid-row: 1;
    display: grid !important;
    grid-template-columns: none !important;
    grid-template-rows: repeat(2,44px);
    grid-auto-flow: column;
    grid-auto-columns: 92px;
    align-content: start;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    height: 92px;
    margin: 0 !important;
    padding: 0 10px 0 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  header .header-menu > ul::-webkit-scrollbar { display: none; }
  header .header-menu > ul > li,
  header .header-menu > ul > li:nth-child(n),
  header .header-menu > ul > li:nth-child(-n+8),
  header .header-menu > ul > li:nth-child(n+9):nth-child(-n+16),
  header .header-menu > ul > li:nth-child(n+17) {
    flex: none;
    width: 92px !important;
    height: 44px !important;
    margin: 0 !important;
    border: 1px solid #dfe6eb !important;
    border-radius: 8px !important;
    background: #fff;
    transform: none !important;
    scroll-snap-align: start;
  }
  header .header-menu > ul > li > a {
    width: 100% !important;
    height: 100% !important;
    border-radius: 7px !important;
  }
  header .header-menu > ul > li img {
    max-width: 66px !important;
    max-height: 24px !important;
    transform: none !important;
  }
  header .header-user { position: static !important; float: none; width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
  header .header-user .header-contact { position: static !important; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 !important; }
  header .header-contact .contact-max-icon { position: static; transform: none; display: inline-flex; vertical-align: middle; margin-right: 6px; }
  header .header-contact .contact-max-icon + .header-phone { display: inline-block; }
  header .header-account-block { width: 100%; max-width: 100%; min-width: 0; }
  header .header-user #menu-top { display: flex; flex-wrap: wrap; gap: 4px; overflow: visible; }
  header .header-user #menu-top > li { position: relative; margin: 0 !important; transform: none !important; }
  header .header-user #menu-top > li > a { padding: 0 8px !important; }
  header .header-user #menu-top > li a span { transform: none; }
  header .header-user #menu-top > li.header-user-signup { margin: 0 !important; }
  header .header-user #menu-top > li.basket:hover,
  header .header-user #menu-top > li.phone-call:hover,
  header .header-user #menu-top > li.mail-delivery:hover { width: 44px !important; }
  header .header-profile-car { max-width: 100%; margin: 8px 0 0 !important; overflow-wrap: anywhere; }
  .search-block .category-logo, .kitai-no-ad-head { max-width: 100%; height: auto !important; min-height: 0 !important; margin: 12px auto !important; }
  .category-logo img { max-width: 160px; max-height: 72px; object-fit: contain; }
  .kitai-ad-slot { max-width: 100%; overflow: auto; }
  #search-form.kitai-search { left: 0 !important; width: 100% !important; max-width: 830px !important; }
  .search-block .video-lessons { display: block; margin: 12px 0 20px; line-height: 1.5; }
  .breadcrumb { display: flex; flex-wrap: wrap; gap: 8px 0; overflow-wrap: anywhere; }
  .category-body { padding: 0; }
  .catalog-item { width: 25%; }
  .catalog-item-image img { max-width: 100%; object-fit: contain; }
  .new-catalog { display: flex; gap: 12px; }
  .new-catalog #left-block { flex: 0 0 160px; width: 160px; }
  .new-catalog .new-catalog__right-block { float: none; flex: 1; min-width: 0; width: auto; }
  .new-catalog .new-catalog__left-block img { max-width: 100%; }
  .catalog-detail-item-image { max-width: 100%; }
  .catalog-detail-item-content { min-width: 0; }
  .search-table { max-width: 100%; overflow-x: auto; }
  .search-table > table.table { min-width: 760px !important; }
  .search-table > table.search-offer-table-manager { min-width: 960px !important; }
  .catalog-description, .home-about, .ckeditor { overflow-wrap: anywhere; }
  .catalog-description img, .home-about img, .ckeditor img { max-width: 100%; height: auto; }
  .home-block .online-calc a img { max-width: 90%; height: auto; }
  .cookie, body .cookie { max-width: calc(100vw - 24px); }
  .cookie-settings { max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); overflow-y: auto; }
  footer { height: auto; margin-top: 0; padding-bottom: 64px; }
  footer .politics { position: static !important; line-height: 1.5 !important; }
  .footer-boot { padding-top: 16px; }
  .footer-boot .copyright { margin-left: 24px; }
  .menu { left: 12px; right: 12px; bottom: 8px; width: auto; }
  .menu > ul { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0 !important; }
  .menu ul li { display: none; margin: 0 !important; transform: none; border-radius: 8px; }
  .menu .menu-toggle { display: block; position: static; }
  .menu.open { padding: 8px; border: 1px solid #dadddf; border-radius: 10px; background: #fff; }
  .menu.open ul li { display: block; }
  .menu ul li a span { transform: none; }
  .menu ul li > a { min-height: 44px; height: auto !important; line-height: 44px !important; }
  .menu:not(.open) { right: auto; width: 48px; }
  .menu .menu-toggle {
    box-sizing: border-box;
    width: 48px;
    height: 48px;
  }
  .menu .menu-toggle > a {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 44px !important;
    height: 44px !important;
    min-height: 44px;
    padding: 0 !important;
    font-size: 0 !important;
  }
  .menu .menu-toggle > a > span {
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    width: 100%;
    height: 100%;
    font-size: 0;
  }
  .menu .menu-toggle .icon {
    width: 18px;
    height: 14px;
    margin: 0;
  }
  .menu .menu-toggle .icon i {
    width: 18px;
    height: 2px;
  }
}
@media (max-width: 767px) {
  .catalog-navigation { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 3px 0 9px; }
  .catalog-navigation .catalog-back {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid #c9deeb;
    border-radius: 8px;
    background: #f5faff;
    color: #075a97;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }
  .catalog-navigation .catalog-back:focus-visible { outline: 2px solid #075a97; outline-offset: 2px; }
  .catalog-navigation .breadcrumb {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 0;
    min-width: 0;
    margin: 0;
    padding: 6px 0;
    overflow-x: auto;
    overflow-y: hidden;
    color: #677d8f;
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .catalog-navigation .breadcrumb::-webkit-scrollbar { display: none; }
  .catalog-navigation .breadcrumb > li { display: block; flex: 0 0 auto; white-space: nowrap; }
  .catalog-navigation .breadcrumb > li:last-child { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
  .catalog-navigation .breadcrumb > li + li::before {
    content: '›';
    display: inline;
    margin: 0 7px;
    padding: 0;
    border: 0;
    color: #91a6b5;
  }
  body > .menu {
    position: fixed !important;
    top: auto !important;
    right: auto !important;
    bottom: 12px !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    left: 12px !important;
    left: calc(12px + env(safe-area-inset-left, 0px)) !important;
    box-sizing: border-box;
    width: 140px !important;
    max-width: calc(100vw - 24px);
    margin: 0 !important;
    z-index: 1200;
  }
  body > .menu.open {
    width: min(320px, calc(100vw - 24px)) !important;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
  }
  body { font-size: 16px; }
  header { padding: 10px 12px 12px; overflow: hidden; }
  header .header-menu {
    display: grid !important;
    grid-template-columns: 68px minmax(0,1fr);
    grid-template-rows: 82px;
    align-items: start;
    column-gap: 10px;
    min-height: 82px;
    overflow: hidden;
  }
  header .header-menu > .logo {
    position: relative !important;
    grid-column: 1;
    grid-row: 1;
    width: 68px !important;
    height: 68px !important;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    background: #f3f7f9 !important;
    box-shadow: 0 3px 12px rgba(25,70,99,.09);
  }
  header .header-menu > .logo::after {
    top: 6px;
    left: 6px;
    width: 56px;
    height: 56px;
  }
  header .header-menu > ul {
    grid-column: 2;
    grid-row: 1;
    display: grid !important;
    grid-template-columns: none !important;
    grid-template-rows: repeat(2,38px);
    grid-auto-flow: column;
    grid-auto-columns: 76px;
    align-content: start;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    height: 82px;
    margin: 0 !important;
    padding: 0 10px 4px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-padding-left: 0;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  header .header-menu > ul::-webkit-scrollbar { display: none; }
  header .header-menu > ul > li,
  header .header-menu > ul > li:nth-child(n),
  header .header-menu > ul > li:nth-child(-n+8),
  header .header-menu > ul > li:nth-child(n+9):nth-child(-n+16),
  header .header-menu > ul > li:nth-child(n+17) {
    flex: none;
    width: 76px !important;
    height: 38px !important;
    margin: 0 !important;
    border: 1px solid #dfe6eb !important;
    border-radius: 8px !important;
    background: #fff;
    transform: none !important;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }
  header .header-menu > ul > li > a {
    width: 100% !important;
    height: 100% !important;
    border-radius: 7px !important;
  }
  header .header-menu > ul > li img {
    max-width: 56px !important;
    max-height: 22px !important;
    transform: none !important;
  }
  header .header-user .header-contact {
    display: grid !important;
    grid-template-columns: max-content minmax(0,1fr);
    align-items: center;
    gap: 5px 12px;
    width: 100%;
    min-width: 0;
  }
  header .header-contact .contact-line {
    min-width: 0;
    font-size: 14px;
  }
  header .header-contact .contact-line:last-child {
    grid-column: 1 / -1;
  }
  header .header-contact .contact-line .header-phone {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  header .header-contact .contact-max-icon {
    width: 18px;
    height: 18px;
    margin-right: 4px;
  }
  header .header-contact .contact-max-icon img {
    width: 18px;
    height: 18px;
  }
  h1, .catalog-detail-title { font-size: 26px; line-height: 1.3; overflow-wrap: anywhere; }
  h2 { font-size: 23px; line-height: 1.35; }
  #search-form.kitai-search { display: grid !important; grid-template-columns: minmax(0,1fr) 90px; height: auto !important; gap: 8px !important; padding: 8px !important; }
  #search-form .kitai-search-field { grid-column: 1 / -1; border-bottom: 1px solid #e2e8ec; height: 46px; }
  #search-form .kitai-search-field input { font-size: 16px !important; }
  #search-form .kitai-search-modes { height: 44px; width: auto; }
  #search-form .kitai-search-modes label, #search-form .kitai-search-modes input:checked + label { height: 38px; top: 0; font-size: 14px; }
  #search-form .kitai-find { width: 90px !important; height: 44px !important; }
  #search-form .kitai-assistant-button { grid-column: 1 / -1; width: 100% !important; height: 44px !important; font-size: 12px !important; }
  .home-block > .row > .col-xs-3, .home-block > .row > .col-xs-6 { width: 100%; float: none; margin-bottom: 20px; padding-left: 0; padding-right: 0; }
  .home-block > .row { margin-left: 0; margin-right: 0; }
  .cityes-shop {
    min-height: 0;
    margin: 28px 0 24px;
    padding: 12px 0;
    overflow: visible;
  }
  .cityes-shop .wrap { padding-left: 12px; padding-right: 12px; }
  .cityes-shop table,
  .cityes-shop tbody,
  .cityes-shop tr,
  .cityes-shop td { display: block; width: 100% !important; height: auto !important; }
  .cityes-shop .begin {
    min-height: 0;
    margin: 0;
    padding: 0 4px 10px;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
  }
  .cityes-shop .after {
    max-height: 138px;
    padding: 12px 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #d5dde3;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    line-height: 1.55;
    text-align: left;
    overflow-wrap: anywhere;
    -webkit-overflow-scrolling: touch;
  }
  .cityes-shop:after { display: none; }
  .home-about {
    position: relative;
    z-index: 1;
    clear: both;
    height: auto !important;
    padding-top: 18px;
    overflow: visible !important;
    background: #fff;
    font-size: 16px;
    line-height: 1.6;
  }
  .home-about-desc {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    column-count: 1 !important;
    column-width: auto !important;
    column-gap: 0 !important;
  }
  .home-about-desc > * { max-width: 100%; break-inside: auto; }
  .home-about h1 {
    margin: 0 0 12px;
    font-size: 21px;
    line-height: 1.35;
  }
  .home-about h2 {
    margin: 22px 0 10px;
    font-size: 19px;
    line-height: 1.4;
  }
  .home-about h3 { font-size: 19px; line-height: 1.4; }
  .home-about p {
    margin: 0;
    text-indent: 0;
    line-height: 1.65;
  }
  .home-about p + p { margin-top: 14px; }
  .catalog-item { width: 50%; height: auto; min-height: 180px; padding: 0 6px; }
  .catalog-item-image img { height: 110px; }
  .catalog-item-name { font-size: 16px; line-height: 1.4; }
  /* Keep the equipment choices inside the opened model card on phones. */
  body.catalog-index .catalog-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 14px 8px;
  }
  body.catalog-index .catalog-items > .catalog-item {
    float: none;
    width: auto;
    min-width: 0;
    height: auto;
    margin: 0;
  }
  body.catalog-index .catalog-items > .catalog-item:has(.dropdown.open) {
    grid-column: 1 / -1;
    padding: 8px;
    border: 1px solid #c9deeb;
    border-radius: 12px;
    background: #f8fbfd;
  }
  body.catalog-index .catalog-item:has(.dropdown.open) .catalog-item-name .dropdown {
    display: block;
    width: 100%;
    max-width: none;
  }
  body.catalog-index .catalog-item:has(.dropdown.open) .catalog-equipment-toggle {
    width: 100%;
  }
  body.catalog-index .catalog-item-name .dropdown-menu {
    /* Bootstrap's touch backdrop is at z-index 990; keep links above it. */
    position: relative !important;
    top: auto;
    z-index: 1000;
    float: none;
    left: 0 !important;
    width: 100%;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
    margin: 8px 0 0 !important;
    transform: none;
  }
  body.catalog-index .catalog-item-name .dropdown-menu > li > a {
    min-height: 42px;
  }
  .catalog-detail-info table, .catalog-detail-info tbody, .catalog-detail-info tr, .catalog-detail-info table td { display: block; width: 100% !important; }
  .catalog-detail-info table td { padding: 12px !important; }
  .catalog-detail-info-vin { width: 100%; }
  .catalog-detail-info.vin-car-summary {
    margin: 18px 0 22px;
    padding: 12px;
    border: 1px solid #dbe6ed;
    border-radius: 12px;
    background: #fff;
  }
  .vin-car-summary > table { display: none !important; }
  .vin-car-summary .vin-car-summary__compact {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: center;
    gap: 8px 12px;
  }
  .vin-car-summary__compact > img {
    display: block;
    width: 104px;
    height: 82px;
    object-fit: contain;
  }
  .vin-car-summary__details {
    min-width: 0;
    color: #30495d;
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  .vin-car-summary__details strong {
    display: block;
    margin-bottom: 5px;
    color: #143f61;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
  }
  .vin-car-summary__details > div + div { margin-top: 3px; }
  .vin-car-summary__report {
    grid-column: 1 / -1;
    display: inline-block;
    width: fit-content;
    min-height: 32px;
    margin-top: 2px;
    padding: 6px 0;
    color: #075a97;
    font-size: 13px;
    line-height: 1.4;
  }
  .new-catalog { position: relative; flex-direction: column; padding-top: 10px; }
  .new-catalog #left-block { display: flex; flex: 0 0 auto; gap: 8px; width: 100%; height: auto !important; max-height: 134px; padding: 2px 0 4px; overflow: auto; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-inline: 0; -webkit-overflow-scrolling: touch; }
  .new-catalog #left-block::-webkit-scrollbar { display: none; }
  .new-catalog .catalog-mobile-scrollbar { display: block; position: relative; width: 100%; height: 16px; margin: 0 0 6px; border-radius: 8px; background: linear-gradient(#e3ecf3, #e3ecf3) center / 100% 8px no-repeat; cursor: pointer; touch-action: none; }
  .catalog-mobile-scrollbar__thumb { position: relative; top: 4px; display: block; height: 8px; border-radius: 5px; background: #0055a5; box-shadow: 0 1px 2px rgba(0, 55, 105, .18); }
  .catalog-mobile-scrollbar:focus-visible { outline: 2px solid #0055a5; outline-offset: 2px; }
  .new-catalog #left-block > div { flex: 0 0 calc((100% - 8px) / 2); scroll-snap-align: start; scroll-snap-stop: always; }
  .new-catalog #left-block > .new-catalog___catalog-detail-carousel-item,
  .new-catalog #left-block > .new-catalog___catalog-detail-carousel-item:not(:last-child) {
    box-sizing: border-box;
    height: 128px;
    overflow: hidden;
    border: 1px solid #d7e5ee !important;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
  }
  .new-catalog #left-block > .new-catalog___catalog-detail-carousel-item.active-block {
    border: 2px solid #0875b9 !important;
    background: transparent;
    box-shadow: none;
  }
  .new-catalog #left-block > .new-catalog___catalog-detail-carousel-item > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
  }
  .new-catalog #left-block > .new-catalog___catalog-detail-carousel-item img {
    box-sizing: border-box;
    flex: 1 1 auto;
    width: 100% !important;
    height: 88px;
    min-height: 0;
    padding: 4px 6px 0;
    object-fit: contain;
  }
  .new-catalog #left-block > .new-catalog___catalog-detail-carousel-item .new-catalog___catalog-detail-carousel-item-name {
    display: -webkit-box !important;
    position: static !important;
    flex: 0 0 32px;
    box-sizing: border-box;
    width: auto !important;
    height: 32px !important;
    margin: 0 3px 3px;
    padding: 0 4px !important;
    overflow: hidden;
    border-radius: 6px;
    background: transparent !important;
    color: #294960 !important;
    font-size: 11px;
    font-weight: 500;
    line-height: 15px;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .new-catalog #left-block > .new-catalog___catalog-detail-carousel-item.active-block .new-catalog___catalog-detail-carousel-item-name {
    background: transparent !important;
    color: #075a97 !important;
    font-weight: 700;
  }
  .new-catalog #left-block > .new-catalog___catalog-detail-carousel-item > a:focus-visible {
    outline: 2px solid #0875b9;
    outline-offset: -3px;
  }
  .new-catalog .new-catalog__right-block { width: 100%; height: auto; max-height: 600px; padding-right: 12px; scrollbar-width: none; }
  .new-catalog .new-catalog__right-block::-webkit-scrollbar { display: none; }
  .new-catalog .new-catalog__right-block.catalog-vin-layout { max-height: none; padding-right: 0; overflow: visible; }
  .new-catalog .catalog-vin-layout .new-catalog__container {
    max-height: 600px;
    padding-right: 12px;
    overflow-y: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .new-catalog .catalog-vin-layout .new-catalog__container::-webkit-scrollbar { display: none; }
  .new-catalog .catalog-mobile-vertical-scrollbar {
    display: block;
    position: absolute;
    right: 0;
    z-index: 2;
    width: 12px;
    border-radius: 8px;
    background: linear-gradient(#dce8f1, #dce8f1) center / 4px 100% no-repeat;
    cursor: pointer;
    touch-action: none;
  }
  .catalog-mobile-vertical-scrollbar__thumb {
    position: absolute;
    left: 3px;
    width: 6px;
    border-radius: 6px;
    background: #0055a5;
    box-shadow: 0 1px 3px rgba(0, 55, 105, .22);
  }
  .catalog-mobile-vertical-scrollbar:focus-visible { outline: 2px solid #0055a5; outline-offset: 2px; }
  .new-catalog .new-catalog__right-block .new-catalog__container .new-catalog__catalog-detail-carousel-item { width: 50%; }
  .new-catalog .new-catalog__right-block .new-catalog__container .new-catalog__catalog-detail-carousel-item img { width: 100%; height: 125px; object-fit: contain; }
  .new-catalog .new-catalog__right-block .new-catalog__container .new-catalog__catalog-detail-carousel-item .new-catalog___catalog-detail-carousel-item-name { display: block; position: static; height: auto; min-height: 48px; font-size: 13px; line-height: 1.35; }
  .catalog-detail-item { display: flex; flex-direction: column; }
  .catalog-detail-item-image, .catalog-detail-item-content { width: 100% !important; float: none !important; margin: 0 !important; }
  .catalog-detail-item-img { width: 100% !important; max-width: 100%; height: auto !important; min-height: 0 !important; overflow: hidden; }
  .catalog-detail-item-content { margin-top: 16px !important; }
  .catalog-detail-item-list { padding: 6px 12px 16px !important; }
  .catalog-detail-item-list ul { margin: 0; }
  .catalog-detail-item-list li { margin: 0; border-bottom: 1px solid #e4edf2; }
  .catalog-detail-item-list li.mobile-part-hidden { display: none; }
  .catalog-detail-item-list li a { display: flex; align-items: flex-start; gap: 10px; padding: 10px 2px; font-size: 14px; line-height: 1.35; }
  .catalog-detail-item-list .num { flex: 0 0 28px; float: none; width: 28px; height: 28px; margin: 0; line-height: 26px; }
  .catalog-detail-item-list .num + div { min-width: 0; margin: 0; padding: 3px 0 0; overflow-wrap: anywhere; }
  .mobile-parts-more { display: block; width: 100%; margin-top: 10px; padding: 11px 14px; border: 1px solid #bad0df; border-radius: 8px; background: #f5faff; color: #075494; font-size: 14px; font-weight: 600; text-align: center; }
  .mobile-parts-more:hover, .mobile-parts-more:focus { background: #e9f4fc; }
  /* Selected part: the diagram follows its image ratio instead of reserving 700 empty pixels. */
  .catalog-detail-item.has-product-results {
    margin-top: 8px;
    border: 0;
  }
  .has-product-results .catalog-detail-item-image {
    border: 1px solid #dbe5ec;
    border-radius: 12px;
    background: #fff;
  }
  .has-product-results .catalog-detail-item-img {
    height: auto !important;
    min-height: 0 !important;
  }
  .has-product-results .catalog-detail-item-extra { display: none !important; }
  .has-product-results .catalog-detail-item-table {
    padding: 0 12px 12px;
  }
  .has-product-results .catalog-detail-item-table-title {
    min-height: 0;
    padding: 6px 44px 4px 2px;
    color: #163f62;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
  .has-product-results .catalog-detail-item-table-title.has-shared-offer-photo {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 9px;
    row-gap: 1px;
  }
  .has-product-results .catalog-detail-item-table-title .mobile-shared-offer-photo {
    display: block;
    grid-column: 1;
    grid-row: 1 / 3;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border: 1px solid #dce7ee;
    border-radius: 7px;
    background: #f6f9fb;
  }
  .has-product-results .catalog-detail-item-table-title .mobile-shared-offer-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .has-product-results .catalog-detail-item-table-title.has-shared-offer-photo > span { grid-column: 2; grid-row: 1; min-width: 0; }
  .has-product-results .catalog-detail-item-table-title .mobile-shared-offer-note {
    display: block;
    grid-column: 2;
    grid-row: 2;
    color: #708696;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.2;
  }
  .has-product-results .catalog-detail-item-table-title .close {
    top: 50%;
    right: 7px;
    margin-top: 0;
    transform: translateY(-50%);
  }
  .has-product-results .catalog-detail-item-table h3 {
    margin: 20px 2px 12px;
    color: #173d5e;
    font-size: 19px;
  }
  .has-product-results .catalog-detail-item-table table.table,
  .has-product-results .catalog-detail-item-table table.table tbody {
    display: block;
    width: 100% !important;
    max-width: 100%;
    margin: 0;
    border: 0;
    background: transparent;
  }
  .has-product-results .catalog-detail-item-table table.table thead { display: none; }
  .has-product-results .catalog-detail-item-table table.table tbody tr.first {
    display: block;
    margin: 4px 0 3px;
  }
  .has-product-results .catalog-detail-item-table table.table tbody tr.first td {
    display: none;
  }
  .has-product-results .catalog-detail-item-table table.table tbody tr.first td:first-child {
    display: block;
    width: 100% !important;
    padding: 2px 0 3px !important;
    border: 0 !important;
    border-bottom: 1px solid #dce6ed !important;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }
  .has-product-results .catalog-detail-item-table .first-line-information { display: flex; align-items: center; gap: 6px; min-height: 24px; }
  .has-product-results .catalog-detail-item-table .category-name {
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
  }
  .has-product-results .catalog-detail-item-table .offer-count {
    min-width: 18px;
    padding: 1px 5px;
    border-radius: 9px;
    background: #eaf2f8;
    color: #426b89;
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
  }
  .has-product-results .catalog-detail-item-table .articul-name {
    display: block;
    margin-top: 0;
    color: #596d7b;
    font-size: 13px;
    overflow-wrap: anywhere;
  }
  .has-product-results .catalog-detail-item-table .primary-offers .articul-name { display: none; }
  .has-product-results .catalog-detail-item-table .first-line-information .default-image {
    display: none;
  }
  .has-product-results .catalog-detail-item-table .first-line-information.has-mobile-shared-photo .default-image {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin-left: 4px;
    overflow: hidden;
    border: 1px solid #dce7ee;
    border-radius: 5px;
    background: #f6f9fb;
  }
  .has-product-results .catalog-detail-item-table .first-line-information.has-mobile-shared-photo .default-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .has-product-results .catalog-detail-item-table .mobile-group-shared-note {
    display: inline;
    color: #718392;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.2;
  }
  .has-product-results .catalog-detail-item-table table.table tbody.list tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px 8px;
    margin: 0 0 7px;
    padding: 9px 11px 10px;
    border: 1px solid #dce6ed;
    border-left: 3px solid #aec4d3;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(23, 64, 99, .05);
  }
  .has-product-results .catalog-detail-item-table table.table tbody.list.color-red tr { border-left-color: #d83238; }
  .has-product-results .catalog-detail-item-table table.table tbody.list.color-green tr { border-left-color: #248d64; }
  .has-product-results .catalog-detail-item-table table.table tbody.list.color-blue tr { border-left-color: #1469a9; }
  .has-product-results .catalog-detail-item-table table.table tbody.list tr td {
    display: block;
    width: auto !important;
    min-width: 0;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #273d4f;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    overflow: visible !important;
    overflow-wrap: anywhere;
  }
  .has-product-results .catalog-detail-item-table table.table tbody.list tr td:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
    grid-column: 1 / -1;
    padding-right: 28px !important;
    color: #164e78;
    font-size: 15px;
    font-weight: 600;
  }
  .has-product-results .catalog-detail-item-table .item-name__hidden,
  .has-product-results .catalog-detail-item-table .item-name__hidden__show {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    white-space: normal !important;
    overflow: visible !important;
  }
  .has-product-results .catalog-detail-item-table .item-name__hidden { flex: 1 1 auto; min-width: 0; }
  .has-product-results .catalog-detail-item-table .mobile-offer-image {
    display: block;
    order: -1;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }
  .has-product-results .catalog-detail-item-table tbody.list .item-name .default-image {
    display: block;
    order: -1;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0 !important;
    float: none;
  }
  .has-product-results .catalog-detail-item-table tbody.list .item-name .default-image img { max-width: 44px; max-height: 44px; object-fit: contain; }
  .has-product-results .catalog-detail-item-table .mobile-offer-image .default-image { width: 44px; height: 44px; }
  .has-product-results .catalog-detail-item-table tbody.list .analog-image { order: -1; flex: 0 0 44px; width: 44px !important; margin: 0; float: none !important; }
  .has-product-results .catalog-detail-item-table tbody.list .analog-image .default-image { width: 44px; height: 44px; }
  .has-product-results .catalog-detail-item-table tbody.list td:nth-child(2)::before,
  .has-product-results .catalog-detail-item-table tbody.list td:nth-child(3)::before,
  .has-product-results .catalog-detail-item-table tbody.list td:nth-child(4)::before,
  .has-product-results .catalog-detail-item-table tbody.list td:nth-child(5)::before,
  .has-product-results .catalog-detail-item-table tbody.list td:nth-child(8)::before,
  .has-product-results .catalog-detail-item-table tbody.list td:nth-child(9)::before {
    display: block;
    margin-bottom: 2px;
    color: #718392;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.25;
  }
  .has-product-results .catalog-detail-item-table tbody.list td:nth-child(2)::before { content: 'Количество, шт.'; font-size: 11px; }
  .has-product-results .catalog-detail-item-table tbody.list td:nth-child(3)::before { content: 'Склад'; }
  .has-product-results .catalog-detail-item-table table.table tbody.list tr td:nth-child(3) { grid-column: 2 / 4; }
  .has-product-results .catalog-detail-item-table tbody.list td:nth-child(4)::before { display: none; }
  .has-product-results .catalog-detail-item-table tbody.list td:nth-child(5)::before { content: ''; display: none; }
  .has-product-results .catalog-detail-item-table tbody.list td:nth-child(8)::before { content: 'GEM'; }
  .has-product-results .catalog-detail-item-table tbody.list td:nth-child(9)::before { content: 'Место'; }
  .has-product-results .catalog-detail-item-table table.table tbody.list tr td:nth-child(4) { grid-column: 1 / -1; }
  /* Product rows are inserted by AJAX; do not depend on the desktop delivery stylesheet loading with them. */
  .has-product-results .catalog-detail-item-table .delivery-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px 8px;
    min-width: 0;
    padding: 0;
    text-align: left;
  }
  .has-product-results .catalog-detail-item-table .delivery-status-order::before {
    content: '◷ ПОД ЗАКАЗ';
    display: inline-flex;
    align-items: center;
    width: auto;
    margin: 0;
    padding: 3px 8px;
    border-radius: 12px;
    background: #ffe3b2;
    color: #a84609;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
  }
  .has-product-results .catalog-detail-item-table .delivery-status .not-in-stock {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #153558;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
  }
  .has-product-results .catalog-detail-item-table .delivery-status .not-in-stock::after { content: ' раб. дней'; }
  .has-product-results .catalog-detail-item-table .delivery-status .in-stock {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 3px 8px;
    border-radius: 12px;
    background: #268d4c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .has-product-results .catalog-detail-item-table .delivery-status .in-stock::before { content: '✓ '; }
  .has-product-results .catalog-detail-item-table .delivery-status::after {
    content: attr(data-note);
    display: inline;
    margin: 0;
    color: #607589;
    font-size: 11px;
    line-height: 1.25;
  }
  .has-product-results .catalog-detail-item-table table.table tbody.list tr td:nth-child(5) {
    grid-column: 1 / 2;
    align-self: end;
    color: #163f62;
    font-size: 19px;
    font-weight: 700;
    white-space: nowrap;
  }
  .has-product-results .catalog-detail-item-table table.table tbody.list tr td.sort_price::before {
    content: 'Цена';
    display: block;
    margin-bottom: 2px;
    color: #718392;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
  }
  .has-product-results .catalog-detail-item-table table.table tbody.list tr td.sort_price::after {
    content: ' ₽';
    color: #163f62;
    font-size: 16px;
    font-weight: 600;
  }
  .has-product-results .catalog-detail-item-table table.table tbody.list tr td:nth-child(6) {
    grid-column: 2 / 4;
    align-self: end;
    justify-self: end;
    width: 132px !important;
    max-width: 100%;
  }
  .has-product-results .catalog-detail-item-table .btn.btn-cart.add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100% !important;
    min-height: 44px;
    height: 44px !important;
    margin: 0;
    padding: 0 9px;
    border: 1px solid #0a5792;
    border-radius: 8px;
    background: #0a5792;
    color: #fff;
    box-shadow: none;
    text-decoration: none;
  }
  .has-product-results .catalog-detail-item-table .btn.btn-cart.add-to-cart::after {
    content: 'В корзину';
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
  }
  .has-product-results .catalog-detail-item-table table.table tbody.list tr td:nth-child(7) {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 24px !important;
    text-align: center;
  }
  .has-product-results .catalog-detail-item-table table.table tbody.list tr { position: relative; }
  .has-product-results .catalog-detail-item-table table.table tbody.list tr.mobile-empty-offer td:not(:first-child) { display: none; }
  .has-product-results .catalog-detail-item-table table.table tbody.list tr.mobile-empty-offer td:first-child { font-weight: 500; }
  .has-product-results .catalog-detail-item-table table.table tbody.list tr.offer-collapsed { display: none; }
  .has-product-results .catalog-detail-item-table table.table tbody.offer-more tr { display: block; margin: 0 0 10px; }
  .has-product-results .catalog-detail-item-table table.table tbody.offer-more td { display: block; width: 100%; padding: 0; border: 0; }
  .has-product-results .catalog-detail-item-table table.table tbody.offer-more button {
    width: 100%;
    min-height: 44px;
    border: 1px solid #b9d1e2;
    border-radius: 8px;
    background: #f5f9fc;
    color: #07558f;
    font-size: 14px;
    font-weight: 600;
  }
  /* The sale grid becomes readable product cards instead of a clipped wide table. */
  .sale-page { width: 100%; max-width: 100%; min-width: 0; }
  .sale-page h1 { margin: 12px 0 8px; font-size: 25px; line-height: 1.2; }
  .sale-page .search { min-width: 0; }
  .sale-page .summary { margin: 0 0 14px; color: #657785; font-size: 13px; }
  .sale-page .search-table { margin-top: 0; overflow: visible; border: 0; }
  .sale-page .search-table > table.table { display: block; width: 100%; min-width: 0 !important; margin: 0; border: 0; }
  .sale-page .search-table > table.table > thead { display: none; }
  .sale-page .search-table > table.table > tbody { display: block; }
  .sale-page .search-table > table.table > tbody > tr { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 5px 12px; margin: 0 0 12px; padding: 12px; border: 1px solid #d9e5ed; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(21, 58, 87, .05); }
  .sale-page .search-table > table.table > tbody > tr > td { display: block; width: auto !important; min-width: 0; padding: 0 !important; border: 0 !important; color: #263d50; text-align: left !important; overflow-wrap: anywhere; }
  .sale-page .search-table > table.table > tbody > tr > td[colspan] { grid-column: 1 / -1; }
  .sale-page .search-table > table.table > tbody > tr > td:nth-child(1) { grid-column: 2; grid-row: 1; font-size: 15px; font-weight: 600; line-height: 1.35; }
  .sale-page .search-table .search-name-type { position: static; display: table; width: auto; height: auto; margin: 5px 0 0; padding: 2px 7px; border-radius: 4px; font-size: 11px; font-weight: 600; line-height: 1.35; }
  .sale-page .search-table > table.table > tbody > tr > td:nth-child(2) { grid-column: 2; grid-row: 2; color: #637d8d; font-size: 12px; }
  .sale-page .search-table > table.table > tbody > tr > td:nth-child(2)::before { content: 'Артикул: '; }
  .sale-page .search-table > table.table > tbody > tr > td:nth-child(3) { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
  .sale-page .search-table .default-image, .sale-page .search-table .default-image img { width: 72px; height: 72px; border-radius: 8px; object-fit: contain; }
  .sale-page .search-table .default-image { border: 1px solid #e5edf2; background-color: #f5f8fa; }
  .sale-page .search-table > table.table > tbody > tr > td:nth-child(4), .sale-page .search-table > table.table > tbody > tr > td:nth-child(5) { grid-column: 1 / -1; font-size: 13px; }
  .sale-page .search-table > table.table > tbody > tr > td:nth-child(4)::before { content: 'Остаток: '; color: #697f90; }
  .sale-page .search-table > table.table > tbody > tr > td:nth-child(5)::before { content: 'Поставка: '; color: #697f90; }
  .sale-page .search-table > table.table > tbody > tr > td:nth-child(6) { grid-column: 1 / -1; align-self: center; padding-top: 7px !important; border-top: 1px solid #edf1f4 !important; color: #12578d; font-size: 18px; font-weight: 700; white-space: nowrap; }
  .sale-page .search-table > table.table > tbody > tr > td:nth-child(6)::before { content: 'Цена: '; color: #697f90; font-size: 13px; font-weight: 400; }
  .sale-page .search-table > table.table > tbody > tr > td:nth-child(6)::after { content: ' ₽'; }
  .sale-page .search-table > table.table > tbody > tr > td:nth-child(7) { grid-column: 1 / -1; }
  .sale-page .search-table .btn.btn-cart.add-to-cart { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 42px; padding: 0 12px; border: 0; border-radius: 8px; background: #075594; color: #fff; }
  .sale-page .sale-cart-label { display: inline; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
  .sale-page .search-table > table.table > tbody > tr > td:nth-child(n+8) { grid-column: 1 / -1; color: #637d8d; font-size: 12px; }
  .sale-page .pagination { display: flex; flex-wrap: wrap; gap: 5px; margin: 14px 0 24px; }
  /* Personal account: keep orders and personal data in separate mobile sections. */
  body.cabinet-index .cabinet-welcome, body.cabinet-old .cabinet-welcome { margin: 12px 0 16px; padding: 16px; font-size: 15px; line-height: 1.45; }
  body.cabinet-index .cabinet-content, body.cabinet-old .cabinet-content { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  body.cabinet-index .cabinet-content::after, body.cabinet-old .cabinet-content::after { display: none; }
  body.cabinet-index .cabinet-content > .order-list, body.cabinet-old .cabinet-content > .order-list,
  body.cabinet-index .cabinet-content > .user-info, body.cabinet-old .cabinet-content > .user-info { float: none; width: 100%; min-width: 0; margin: 0; border: 1px solid #dbe6ed; border-radius: 12px; }
  body.cabinet-index .cabinet-content > .order-list, body.cabinet-old .cabinet-content > .order-list { order: 1; }
  body.cabinet-index .cabinet-content > .user-info, body.cabinet-old .cabinet-content > .user-info { order: 2; }
  .cabinet-content .order-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; }
  .cabinet-content .order-list-title { font-size: 19px; font-weight: 600; }
  .cabinet-content .order-list-history { float: none; position: static; font-size: 13px; text-align: right; }
  .cabinet-content .user-info-title { padding: 16px; font-size: 19px; font-weight: 600; }
  .cabinet-content .user-info-list { padding: 0 16px 16px; overflow-wrap: anywhere; }
  .cabinet-content .user-info-list br { display: none; }
  .cabinet-content .user-info-list p { margin-bottom: 7px; }
  .cabinet-content .user-info-links { padding: 14px 16px; }
  .cabinet-content .user-info-links a { display: block; margin: 7px 0 0; }
  .cabinet-content .order-list .grid-view, .cabinet-content .order-list .table,
  .cabinet-content .order-list .table > tbody { display: block; width: 100%; max-width: 100%; min-width: 0; }
  .cabinet-content .order-list .table { margin: 0; border: 0; }
  .cabinet-content .order-list .table > thead { display: none; }
  .cabinet-content .order-list .table > tbody > tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; margin: 0 12px 12px; padding: 14px; border: 1px solid #dbe6ed; border-radius: 10px; background: #fff; }
  .cabinet-content .order-list .table > tbody > tr > td { display: block; width: auto; min-width: 0; padding: 0; border: 0; text-align: left !important; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
  .cabinet-content .order-list .table > tbody > tr > td::before { display: block; margin-bottom: 2px; color: #718392; font-size: 11px; }
  .cabinet-content .order-list .table > tbody > tr > td:nth-child(1) { font-size: 18px; font-weight: 700; }
  .cabinet-content .order-list .table > tbody > tr > td:nth-child(1)::before { content: 'Заказ'; }
  .cabinet-content .order-list .table > tbody > tr > td:nth-child(2)::before { content: 'Дата'; }
  .cabinet-content .order-list .table > tbody > tr > td:nth-child(3) { color: #164d78; font-weight: 700; }
  .cabinet-content .order-list .table > tbody > tr > td:nth-child(3)::before { content: 'Сумма'; }
  .cabinet-content .order-list .table > tbody > tr > td:nth-child(4)::before { content: 'Оплата'; }
  .cabinet-content .order-list .table > tbody > tr > td:nth-child(5) { grid-column: 1 / -1; }
  .cabinet-content .order-list .table > tbody > tr > td:nth-child(5)::before { content: 'Доставка'; }
  .cabinet-content .order-list .table > tbody > tr > td:nth-child(6)::before { content: 'Номер отправки'; }
  .cabinet-content .order-list .table > tbody > tr > td:nth-child(7)::before { content: 'Статус'; }
  .cabinet-content .order-list .table > tbody > tr > td:nth-child(8) { grid-column: 1 / -1; }
  .cabinet-content .order-list .table > tbody > tr > td:nth-child(8)::before { content: 'Запрос по заказу'; }
  .cabinet-content .order-list .table > tbody > tr > td[colspan] { grid-column: 1 / -1; }
  .cabinet-content .order-list .pagination { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px; }
  /* Cart: retain the existing form inputs and calculations, but show each row as a card. */
  body.cart-list .cart-message { margin: 12px 0 16px; padding: 14px; line-height: 1.45; }
  body.cart-list .cart-table { margin-top: 12px; border: 0; }
  body.cart-list .cart-table > table.table, body.cart-list .cart-table > table.table > tbody,
  body.cart-list .cart-table > table.table > tfoot { display: block; width: 100%; min-width: 0; margin: 0; }
  body.cart-list .cart-table > table.table > thead { display: none; }
  body.cart-list .cart-table > table.table > tbody.list > tr { display: grid; position: relative; grid-template-columns: 76px minmax(0, 1fr); gap: 8px 12px; margin-bottom: 12px; padding: 14px; border: 1px solid #dbe6ed; border-radius: 12px; background: #fff; }
  body.cart-list .cart-table > table.table > tbody.list > tr > td { display: block; width: auto; min-width: 0; max-width: none; padding: 0 !important; border: 0; text-align: left !important; font-size: 13px; overflow-wrap: anywhere; }
  body.cart-list .cart-table > table.table > tbody.list > tr > td::before { display: block; margin-bottom: 2px; color: #708391; font-size: 11px; font-weight: 400; }
  body.cart-list .cart-table > table.table > tbody.list > tr > td:nth-child(1) { position: absolute; top: 12px; right: 12px; width: 26px; }
  body.cart-list .cart-table > table.table > tbody.list > tr > td:nth-child(2) { grid-column: 1 / -1; padding-right: 36px !important; color: #173f60; font-size: 15px; font-weight: 600; }
  body.cart-list .cart-table > table.table > tbody.list > tr > td:nth-child(3) { grid-column: 2; grid-row: 2; }
  body.cart-list .cart-table .cart-name-type { display: inline-block; width: auto; min-width: 78px; padding: 0 6px; }
  body.cart-list .cart-table > table.table > tbody.list > tr > td:nth-child(4) { grid-column: 2; grid-row: 3; }
  body.cart-list .cart-table > table.table > tbody.list > tr > td:nth-child(4)::before { content: 'Артикул'; }
  body.cart-list .cart-table > table.table > tbody.list > tr > td:nth-child(5) { grid-column: 1; grid-row: 2 / span 2; }
  body.cart-list .cart-table > table.table > tbody.list > tr > td:nth-child(5) .default-image,
  body.cart-list .cart-table > table.table > tbody.list > tr > td:nth-child(5) img { display: block; width: 76px; height: 76px; object-fit: contain; }
  body.cart-list .cart-table > table.table > tbody.list > tr > td:nth-child(6) { grid-column: 1 / -1; }
  body.cart-list .cart-table > table.table > tbody.list > tr > td:nth-child(6)::before { content: 'Количество'; }
  body.cart-list .cart-table > table.table > tbody.list > tr > td:nth-child(7)::before { content: 'Цена, руб.'; }
  body.cart-list .cart-table > table.table > tbody.list > tr > td:nth-child(8)::before { content: 'НДС, руб.'; }
  body.cart-list .cart-table > table.table > tbody.list > tr > td:nth-child(9) { grid-column: 1 / -1; padding-top: 7px !important; border-top: 1px solid #e7edf2; color: #135a90; font-size: 18px; font-weight: 700; }
  body.cart-list .cart-table > table.table > tbody.list > tr > td:nth-child(9)::before { content: 'Стоимость, руб.'; }
  body.cart-list .cart-table > table.table > tbody.list > tr > td:nth-child(10)::before { content: 'Склад'; }
  body.cart-list .cart-table > table.table > tbody.list > tr > td:nth-child(11)::before { content: 'Наличие / поставка'; }
  body.cart-list .cart-table > table.table > tbody.list > tr > td:nth-child(12) { grid-column: 1 / -1; position: relative; padding-right: 34px !important; }
  body.cart-list .cart-table > table.table > tbody.list > tr > td:nth-child(12)::before { content: 'Комментарий'; }
  body.cart-list .cart-table .td-cart-comment .cart-comment .form-control { width: 100%; min-height: 44px; }
  body.cart-list .cart-table .td-cart-comment .cart-comment .form-control:focus { position: static; width: 100%; height: 88px; }
  body.cart-list .cart-table > table.table > tbody.list > tr > td:nth-child(13)::before { content: 'GEM'; }
  body.cart-list .cart-table > table.table > tbody.list > tr > td:nth-child(14)::before { content: 'Место'; }
  body.cart-list .cart-table > table.table > tfoot > tr, body.cart-list .cart-table > table.table > tfoot > tr > td { display: block; width: 100%; border: 0; }
  body.cart-list .cart-summary { padding: 16px 0 24px; }
  body.cart-list .cart-summary .flex { display: flex; flex-wrap: wrap; gap: 8px; }
  body.cart-list .cart-summary .btn { min-height: 42px; margin: 8px 0 0; }
  body.cart-list .cart-summary-btn { display: flex; flex-wrap: wrap; gap: 12px; position: static; margin-top: 20px; font-size: 13px; white-space: normal; }
  body.cart-list .cart-summary-btn a { margin: 0; }
  body.cart-list .cart-summary-btn a::before { display: none; }
  #login .modal-body { padding: 64px 24px 24px !important; }
  .bootbox-confirm .modal-body { padding: 70px 24px 18px !important; }
  .bootbox-confirm .modal-footer { flex-wrap: wrap; padding: 0 24px 24px !important; }
  .bootbox-confirm .modal-footer .btn { min-width: 0; width: 100%; }
  .cookie .cookie-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
}
