/* Product lists on phones. Desktop, tablet and print keep their existing table layout. */
/* 14.11: the group caption is created for phones only */
.dkmt-cards-caption { display: none; }
@media screen and (max-width: 680px) {
  .dkmt-bar[hidden] { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; font-size: 14px; color: #5F6876; }
  .dkmt-bar button, .dkmt-more button { min-height: 44px; padding: 0 2px; font: inherit; font-weight: 700; color: #3A6593; cursor: pointer; }
  .dkmt-bar button:focus-visible, .dkmt-more button:focus-visible { outline: 2px solid #3A6593; outline-offset: 2px; }
  :is(.dkmt-list,.single_table:has(.dkmt-server)):not(:has(.dkmt-mode input:checked)).single_table { overflow: visible; }
  .single_table:is(.dkmt-list,.single_table:has(.dkmt-server)):not(:has(.dkmt-mode input:checked)) .single_table_scroll { min-width: 0 !important; max-width: none !important; overflow: visible !important; padding-bottom: 0; }
  :is(.dkmt-list,.single_table:has(.dkmt-server)):not(:has(.dkmt-mode input:checked)) .single_table_grid, :is(.dkmt-list,.single_table:has(.dkmt-server)):not(:has(.dkmt-mode input:checked)) .single_table_grid tbody { display: block; width: 100%; }
  :is(.dkmt-list,.single_table:has(.dkmt-server)):not(:has(.dkmt-mode input:checked)) .single_table_grid thead, :is(.dkmt-list,.single_table:has(.dkmt-server)):not(:has(.dkmt-mode input:checked)) .single_table_grid colgroup { display: none; }
  :is(.dkmt-list,.single_table:has(.dkmt-server)):not(:has(.dkmt-mode input:checked)) .single_table_grid tbody { border-top: 2px solid #6AC6DD; }
  :is(.dkmt-list,.single_table:has(.dkmt-server)):not(:has(.dkmt-mode input:checked)) .single_table_grid tr.dkmt-row:nth-child(n) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; align-items: start; padding: 14px 0 6px; border-bottom: 1px solid #D3D8DF; background: none; }
  :is(.dkmt-list,.single_table:has(.dkmt-server)):not(:has(.dkmt-mode input:checked)) .single_table_grid tr.dkmt-flat { padding-bottom: 14px; }
  :is(.dkmt-list,.single_table:has(.dkmt-server)):not(:has(.dkmt-mode input:checked)) .single_table_grid .dkmt-row > td { display: block; border: 0; padding: 0; text-align: left; grid-column: 1; min-width: 0; }
  :is(.dkmt-list,.single_table:has(.dkmt-server)):not(:has(.dkmt-mode input:checked)) .dkmt-row td.dkmt-title { order: 0; font-size: 17px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; padding-bottom: 4px; }
  :is(.dkmt-list,.single_table:has(.dkmt-server)):not(:has(.dkmt-mode input:checked)) td.dkmt-title a { display: inline; color: #3A6593; }
  :is(.dkmt-list,.single_table:has(.dkmt-server)):not(:has(.dkmt-mode input:checked)) td.dkmt-title a span { min-width: 0; }
  :is(.dkmt-list,.single_table:has(.dkmt-server)):not(:has(.dkmt-mode input:checked)) .dkmt-row td.dkmt-key { order: 1; font-size: 15px; line-height: 1.45; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
  :is(.dkmt-list,.single_table:has(.dkmt-server)):not(:has(.dkmt-mode input:checked)) td.dkmt-key::before { content: attr(data-label); font-weight: 400; color: #5F6876; margin-right: 6px; }
  :is(.dkmt-list,.single_table:has(.dkmt-server)):not(:has(.dkmt-mode input:checked)) td[data-unit]::after { content: '\00a0' attr(data-unit); }
  :is(.dkmt-list,.single_table:has(.dkmt-server)):not(:has(.dkmt-mode input:checked)) .single_table_grid .dkmt-row td.dkmt-actions { grid-column: 2; grid-row: 1 / span 3; order: 0; position: static; width: auto; background: none; box-shadow: none; border: 0; padding: 0; }
  :is(.dkmt-list,.single_table:has(.dkmt-server)):not(:has(.dkmt-mode input:checked)) .single_table_grid td.dkmt-actions::before { content: none; }
  :is(.dkmt-list,.single_table:has(.dkmt-server)):not(:has(.dkmt-mode input:checked)) .single_table_btn, :is(.dkmt-wide,.single_table:has(.dkmt-mode input:checked)) .single_table_btn { min-height: 44px; color: #02182F !important; background: #6AC6DD; }
  :is(.dkmt-list,.single_table:has(.dkmt-server)):not(:has(.dkmt-mode input:checked)) .single_table_btn { padding: 10px 16px; align-items: center; font-weight: 700; }
  :is(.dkmt-list,.single_table:has(.dkmt-server)):not(:has(.dkmt-mode input:checked)) .single_table_btn:hover, :is(.dkmt-wide,.single_table:has(.dkmt-mode input:checked)) .single_table_btn:hover,
  :is(.dkmt-list,.single_table:has(.dkmt-server)):not(:has(.dkmt-mode input:checked)) .single_table_btn:focus-visible, :is(.dkmt-wide,.single_table:has(.dkmt-mode input:checked)) .single_table_btn:focus-visible,
  :is(.dkmt-list,.single_table:has(.dkmt-server)):not(:has(.dkmt-mode input:checked)) .single_table_btn:active, :is(.dkmt-wide,.single_table:has(.dkmt-mode input:checked)) .single_table_btn:active { color: #fff !important; background: #3A6593; }
  :is(.dkmt-list,.single_table:has(.dkmt-server)):not(:has(.dkmt-mode input:checked)) .single_table_btn:focus-visible, :is(.dkmt-wide,.single_table:has(.dkmt-mode input:checked)) .single_table_btn:focus-visible { outline: 2px solid #02182F; outline-offset: 2px; }
  :is(.dkmt-list,.single_table:has(.dkmt-server)):not(:has(.dkmt-mode input:checked)) .dkmt-row td.dkmt-more[hidden] { display: block; order: 2; }
  :is(.dkmt-list,.single_table:has(.dkmt-server)):not(:has(.dkmt-mode input:checked)) .dkmt-row td.dkmt-rest { order: 3; grid-column: 1 / -1; display: none; }
  :is(.dkmt-list,.single_table:has(.dkmt-server)):not(:has(.dkmt-mode input:checked)) .dkmt-row:is(.is-open,:has(.dkmt-detail input:checked)) td.dkmt-rest { display: flow-root; padding: 8px 12px; background: #F5F7FA; border-bottom: 1px solid #E4E8EE; font-size: 15px; line-height: 1.4; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
  :is(.dkmt-list,.single_table:has(.dkmt-server)):not(:has(.dkmt-mode input:checked)) tr:is(.is-open,:has(.dkmt-detail input:checked)) td.dkmt-rest::before { content: attr(data-label); float: left; max-width: 60%; padding-right: 12px; font-weight: 400; color: #5F6876; text-align: left; }
  :is(.dkmt-wide,.single_table:has(.dkmt-mode input:checked)).single_table { overflow: visible; }
  .single_table:is(.dkmt-wide,.single_table:has(.dkmt-mode input:checked)) .single_table_scroll { min-width: 0 !important; max-width: 100% !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  .single_table:is(.dkmt-wide,.single_table:has(.dkmt-mode input:checked)) .single_table_scroll > .single_table_grid { min-width: 650px; }
  :is(.dkmt-wide,.single_table:has(.dkmt-mode input:checked)) .single_table_grid td.dkmt-title, :is(.dkmt-wide,.single_table:has(.dkmt-mode input:checked)) .single_table_grid th.dkmt-title { position: sticky; left: 0; z-index: 2; background: #fff; box-shadow: inset -1px 0 0 #D3D8DF; }
  :is(.dkmt-wide,.single_table:has(.dkmt-mode input:checked)) .dkmt-offset-title .dkmt-leading { padding-left: calc(var(--dkmt-title-space) + var(--dkmt-leading-padding)); }
  :is(.dkmt-wide,.single_table:has(.dkmt-mode input:checked)) .dkmt-offset-title td.dkmt-title, :is(.dkmt-wide,.single_table:has(.dkmt-mode input:checked)) .dkmt-offset-title th.dkmt-title { right: 100%; }
  :is(.dkmt-wide,.single_table:has(.dkmt-mode input:checked)) .single_table_grid tr:nth-child(even) td.dkmt-title { background: #F8F8F8; }
  :is(.dkmt-wide,.single_table:has(.dkmt-mode input:checked)) td.dkmt-title a span { min-width: 0; }
  :is(.dkmt-wide,.single_table:has(.dkmt-mode input:checked)) .single_table_grid th.dkmt-actions, :is(.dkmt-wide,.single_table:has(.dkmt-mode input:checked)) .single_table_grid td.dkmt-actions { position: static; box-shadow: none; border: 1px solid #D3D8DF; }
  :is(.dkmt-wide,.single_table:has(.dkmt-mode input:checked)) .single_table_grid .dkmt-actions::before { content: none; }
  /* Native controls exist in the first response, with no deferred insertion. */
  .single_table:has(.dkmt-server-toolbar) { position: relative; padding-top: 48px; }
  .single_table .single_table_grid .dkmt-server-toolbar[hidden] { display: block; position: absolute; top: 0; right: 0; width: auto; height: 44px; border: 0; padding: 0; background: transparent; }
  .dkmt-server label { display: block; min-height: 44px; padding: 10px 2px; box-sizing: border-box; list-style: none; font: inherit; font-weight: 700; color: #3A6593; cursor: pointer; }
  .dkmt-server label:has(input:focus-visible) { outline: 2px solid #3A6593; outline-offset: 2px; }
  .dkmt-mode .dkmt-to-list, .dkmt-mode:has(input:checked) .dkmt-to-table { display: none; }
  .dkmt-mode:has(input:checked) .dkmt-to-list { display: inline; }
  .dkmt-server label { position: relative; margin: 0; }
  .dkmt-server label input { position: absolute; width: 1px; height: 1px; margin: 0; clip-path: inset(50%); overflow: hidden; }
  .dkmt-server .dkmt-detail { font-size: 15px; }
  td[data-unit]:has(> span[style*="#ccc"])::after { content: none; }
  /* 14.11: open state shown the same way in every list */
  .dkmt-more button::after, .dkmt-detail span::after { content: '\00a0\25BE'; display: inline-block; }
  .dkmt-row.is-open .dkmt-more button::after, .dkmt-detail:has(input:checked) span::after { content: '\00a0\25B4'; }
  /* 14.11: the theme's "to top" arrow sat over the «Купить» column; on pages with a product list it moves to the bottom centre */
  body:has(.dkmt-row) .scroll_top { right: auto; left: calc(50% - 22px); width: 44px; height: 44px; padding: 6px; box-sizing: border-box; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 6px rgba(2, 24, 47, .18); }
  /* 14.11: server rows keep the template's whitespace before the unit, so no extra space there */
  tr.dkmt-server td[data-unit]:not(:has(> span[style*="#ccc"]))::after { content: attr(data-unit) !important; }
}
@media screen and (max-width: 680px) {
  /* 14.11: comparison tables of series and simple text tables as cards (JS marks them .dkmt-cards) */
  .dkmt-cards, .single_table.dkmt-cards, .category_table.dkmt-cards { overflow: visible !important; }
  .dkmt-cards .single_table_scroll, .dkmt-cards .category_table_scroll { min-width: 0 !important; max-width: none !important; overflow: visible !important; padding-bottom: 0; }
  .dkmt-cards table, .dkmt-cards tbody { display: block; width: 100% !important; min-width: 0 !important; }
  .dkmt-cards thead, .dkmt-cards colgroup { display: none; }
  .dkmt-cards tbody { border-top: 2px solid #6AC6DD; }
  .dkmt-cards tbody tr, .dkmt-cards tbody tr:nth-child(n) { display: block; padding: 12px 0 10px; border-bottom: 1px solid #D3D8DF; background: none !important; }
  .dkmt-cards tbody td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: auto !important; border: 0 !important; padding: 3px 0 !important; background: none !important; text-align: right; font-size: 15px; line-height: 1.4; font-weight: 600; font-variant-numeric: tabular-nums; }
  .dkmt-cards tbody td::before { content: attr(data-label); flex: 0 1 60%; font-weight: 400; color: #5F6876; text-align: left; }
  .dkmt-cards tbody td.dkmt-card-title { display: block; padding-bottom: 6px !important; text-align: left; font-size: 17px; font-weight: 700; }
  .dkmt-cards tbody td.dkmt-card-title::before { content: none; }
  .dkmt-cards tbody td.dkmt-card-title a { color: #3A6593; }
  .dkmt-cards .dkmt-cards-caption { display: block; margin: 0 0 8px; font-size: 17px; font-weight: 700; color: #02182F; }
}
@media screen and (max-width: 680px) {
  /* 14.11: cart rows as cards on phones (miniShop3 markup unchanged): photo | name + remove; price; quantity + sum */
  .ms-cart { overflow: visible !important; }
  .ms-cart .cart_table { display: block; width: 100% !important; min-width: 0 !important; border: 0; }
  .ms-cart .cart_table thead { display: none; }
  .ms-cart .cart_table tbody { display: block; border-top: 2px solid #6AC6DD; }
  .ms-cart .cart_table tbody tr { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 6px; align-items: center; padding: 12px 0; border-bottom: 1px solid #D3D8DF; background: none !important; }
  .ms-cart .cart_table tbody td { display: block; width: auto !important; border: 0 !important; padding: 0 !important; background: none !important; text-align: left; }
  .ms-cart .cart_table tbody td:nth-child(1) { grid-column: 1; grid-row: 1 / span 3; align-self: start; }
  .ms-cart .cart_table tbody td:nth-child(1) .cart_table_photo { display: block; width: 64px; height: 64px; }
  .ms-cart .cart_table tbody td:nth-child(2) { grid-column: 2; grid-row: 1; font-weight: 700; overflow-wrap: anywhere; }
  .ms-cart .cart_table tbody td:nth-child(6) { grid-column: 3; grid-row: 1; justify-self: end; }
  .ms-cart .cart_table tbody td:nth-child(6) .cart_table_remove { min-width: 44px; min-height: 44px; }
  .ms-cart .cart_table tbody td:nth-child(3) { grid-column: 2 / span 2; grid-row: 2; color: #5F6876; }
  .ms-cart .cart_table tbody td:nth-child(3)::before { content: 'Цена: '; }
  .ms-cart .cart_table tbody td:nth-child(4) { grid-column: 2; grid-row: 3; }
  .ms-cart .cart_table tbody td:nth-child(5) { grid-column: 3; grid-row: 3; justify-self: end; font-weight: 700; text-align: right; }
}
@media screen and (min-width: 481px) and (max-width: 680px) {
  /* 14.11: phone turned sideways - keep a list row and its «Купить» close together */
  :is(.dkmt-list,.single_table:has(.dkmt-server)):not(:has(.dkmt-mode input:checked)) .single_table_grid tbody, .dkmt-cards tbody, .ms-cart .cart_table tbody { max-width: 520px; }
}
@media screen and (max-width: 360px) {
  /* 14.11: long Liftline articles stay on one line next to «Купить» */
  :is(.dkmt-list,.single_table:has(.dkmt-server)):not(:has(.dkmt-mode input:checked)) .dkmt-row td.dkmt-title { font-size: 15px; letter-spacing: -0.01em; }
  :is(.dkmt-list,.single_table:has(.dkmt-server)):not(:has(.dkmt-mode input:checked)) .single_table_btn { padding: 10px 12px; }
}
