/* Offer tables: shared desktop styling for catalog and article search.
   Mobile catalog cards keep their existing layout and interaction handlers. */
.delivery-status-order::before { content: 'ПОД ЗАКАЗ'; }
.search .search-table > table.table > tbody > tr:has(.search-name-type.type-1) > td:first-child { border-left: 3px solid #d83a42; }
.search .search-table > table.table > tbody > tr:has(.search-name-type.type-2) > td:first-child { border-left: 3px solid #27966c; }
.search .search-table > table.table > tbody > tr:has(.search-name-type.type-3) > td:first-child { border-left: 3px solid #1677b5; }
@media (min-width: 768px) {
  .search .search-table { border: 0; }
  .catalog-detail-item-table > table.table,
  .search .search-table > table.table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    border: 1px solid #cbdde9; border-radius: 6px;
    background: #fff; color: #29475b; font-size: 14px; line-height: 1.4;
    box-shadow: none; margin-bottom: 12px;
  }
  .catalog-detail-item-table > table.table > thead > tr > th,
  .search .search-table > table.table > thead > tr > th {
    background: #deedf7; color: #214d6c; font-size: 12px; font-weight: 600;
    line-height: 1.2; padding: 6px 8px; vertical-align: middle;
    border: 0; border-top: 2px solid #1675ae; border-bottom: 1px solid #bfd5e4; text-align: center;
  }
  .catalog-detail-item-table > table.table > thead > tr > th:first-child,
  .search .search-table > table.table > thead > tr > th:first-child {
    border-top-left-radius: 5px; text-align: left; padding-left: 10px;
  }
  .catalog-detail-item-table > table.table > thead > tr > th:last-child,
  .search .search-table > table.table > thead > tr > th:last-child { border-top-right-radius: 5px; }
  .search .search-table > table.table > thead > tr > th:nth-child(5) { min-width: 90px; white-space: nowrap; }
  .catalog-detail-item-table > table.table > tbody > tr > td,
  .search .search-table > table.table > tbody > tr > td {
    border: 0; border-bottom: 1px solid #e5edf3; padding: 4px 8px;
    vertical-align: middle; background-color: #fff; line-height: 1.3;
  }
  .catalog-detail-item-table > table.table > tbody:last-child > tr:last-child > td,
  .search .search-table > table.table > tbody:last-child > tr:last-child > td { border-bottom: 0; }
  .catalog-detail-item-table > table.table > tbody.list > tr.warning > td { background-color: #fffcf2; }
  .catalog-detail-item-table > table.table > tbody.list > tr:hover > td,
  .search .search-table > table.table > tbody > tr:hover > td { background-color: #f2f8fc; }
  .catalog-detail-item-table > table.table > tbody > tr.first > td {
    background: #f3f7fa; padding: 4px 8px; border-bottom: 1px solid #e5edf3;
  }
  .catalog-detail-item-table > table.table > tbody.color-red > tr > td:first-child { border-left: 3px solid #d83a42; }
  .catalog-detail-item-table > table.table > tbody.color-green > tr > td:first-child { border-left: 3px solid #27966c; }
  .catalog-detail-item-table > table.table > tbody.color-blue > tr > td:first-child { border-left: 3px solid #1677b5; }
  .catalog-detail-item-table .first-line-information .category-name { font-size: 14px; font-weight: 700; }
  .catalog-detail-item-table .articul-name { font-size: 12px; color: #6b8394; }
  .catalog-detail-item-table .first-line-information .help-item { width: 19px; height: 19px; font-size: 12px; line-height: 17px; margin-left: 6px; }
  .catalog-detail-item-table > table.table .default-image,
  .search .search-table > table.table .default-image {
    width: 48px; height: 48px; min-width: 48px; border-radius: 5px;
    border: 1px solid #dce7ee; background-color: #f0f5f8;
    background-size: 28px; background-position: center; background-repeat: no-repeat;
  }
  .catalog-detail-item-table > table.table .default-image img,
  .search .search-table > table.table .default-image img { width: 100%; height: 100%; object-fit: contain; border-radius: 7px; }
  .catalog-detail-item-table > table.table .default-image.no-image,
  .search .search-table > table.table .default-image.no-image { background-color: #8b9eac; }
  .catalog-detail-item-table > table.table td.item-name { padding-left: 12px; color: #125e92; font-size: 14px; }
  .catalog-detail-item-table > table.table td.sort_price,
  .search .search-table > table.table > tbody > tr > td:nth-child(7) {
    color: #163f5d; font-size: 17px; font-weight: 700;
    white-space: nowrap; font-variant-numeric: tabular-nums;
  }
  .catalog-detail-item-table > table.table td.sort_price::after,
  .search .search-table > table.table > tbody > tr > td:nth-child(7)::after { content: ' ₽'; font-size: 13px; font-weight: 500; }
  .catalog-detail-item-table > table.table > tbody.list > tr > td:nth-child(2),
  .search .search-table > table.table > tbody > tr > td:nth-child(5) { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .catalog-detail-item-table > table.table > tbody.list > tr > td:nth-child(3),
  .search .search-table > table.table > tbody > tr > td:nth-child(4) { min-width: 135px; font-size: 13px; white-space: nowrap; }
  .catalog-detail-item-table > table.table td.sort_time { min-width: 140px; }
  .catalog-detail-item-table > table.table .delivery-status,
  .search .search-table > table.table .delivery-status { font-size: 12px; padding: 0; line-height: 1.15; }
  .catalog-detail-item-table > table.table .delivery-status-order::before,
  .search .search-table > table.table .delivery-status-order::before { padding: 1px 7px; margin-bottom: 1px; font-size: 10px; line-height: 1.3; }
  .catalog-detail-item-table > table.table .delivery-status::after,
  .search .search-table > table.table .delivery-status::after { margin-top: 1px; font-size: 10px; line-height: 1.2; }
  .catalog-detail-item-table > table.table .delivery-status .not-in-stock,
  .search .search-table > table.table .delivery-status .not-in-stock { font-size: 13px; line-height: 1.2; }
  .catalog-detail-item-table > table.table .delivery-status .in-stock,
  .search .search-table > table.table .delivery-status .in-stock { padding: 2px 7px; font-size: 11px; }
  .catalog-detail-item-table > table.table .first-line-information { min-height: 0; line-height: 20px; }
  .catalog-detail-item-table > table.table .first-line-information .default-image { margin: 0; }
  .catalog-detail-item-table > table.table > tbody > tr.first > td:first-child { position: relative; height: 58px; }
  .catalog-detail-item-table > table.table .first-line-information { display: flex; align-items: center; gap: 5px; padding-right: 56px; }
  .catalog-detail-item-table > table.table .first-line-information .default-image { position: absolute; right: 8px; top: 5px; }
  .catalog-detail-item-table > table.table > thead > tr > th,
  .search .search-table > table.table > thead > tr > th { height: auto; }
  .catalog-detail-item-table > table.table .btn-cart,
  .search .search-table > table.table .btn-cart {
    width: 32px; height: 32px; min-width: 32px; padding: 0;
    border: 1px solid #b5d3e7; border-radius: 9px; background-color: #eff7fc;
    background-position: center; background-repeat: no-repeat; box-shadow: none;
  }
  .catalog-detail-item-table > table.table .btn-cart:hover,
  .search .search-table > table.table .btn-cart:hover { background-color: #dceef9; border-color: #3488bd; }
  .catalog-detail-item-table > table.table a:focus-visible,
  .search .search-table > table.table a:focus-visible { outline: 2px solid #1686c4; outline-offset: 3px; }
  .catalog-detail-item-table > table.table td.info { background-color: #f1f7fb; font-size: 12px; }
  .catalog-detail-item-table > table.table td.info p { margin: 0 0 4px; }
  .catalog-detail-item-table > table.table .kit-fit { font-weight: 600; }
  .catalog-detail-item-table > h2, .catalog-detail-item-table > h3 { margin: 20px 0 12px; color: #244d69; font-size: 20px; font-weight: 600; }
  .search .search-table > table.table .search-name { padding: 0; font-size: 14px; line-height: 1.45; }
  .search .search-table > table.table .search-name-type {
    position: static; display: table; width: auto; height: auto;
    margin-top: 5px; padding: 2px 8px; border-radius: 5px; font-size: 11px; line-height: 1.5;
  }
  .search .search-table > table.table > tbody > tr > td:nth-child(2) { font-size: 13px; color: #567084; }
  .search .search-table > table.table .default-image { width: 64px; height: 64px; min-width: 0; max-width: 100%; background-size: 32px; }
}
