/* OIL STORE — the new cart page (п.202): the styles of the agreed prototype price-service-audits/cart-checkout-prototype-20261017-r43,
   screen «Корзина» (r5–r9 + r43), moved here with the «oc-» prefix inside #oilstore-cart-page so that Bootstrap and the theme are not
   touched. Fonts — the theme's own faces (catalog/view/theme/oct_techstore/stylesheet/fonts.css), as in the prototype. */
#oilstore-cart-page {
  --ink: #333333; --ink-hover: #474747; --text: #2b2b2b; --muted: #6b6f73; --meta-ink: #565d63;
  --line: #d6d6d3; --line-soft: #e8e8e5; --ground: #f5f5f3; --card: #ffffff;
  --yellow: #ffc72c; --yellow-pale: #fff2cf;
  --ok: #2f7d4f; --ok-pale: #e9f4ec; --info: #34566f; --info-pale: #eaf1f6;
  --warn: #8a5a00; --err: #b42318; --err-pale: #fdecea;
  --brand-red: #e30613; --brand-red-hover: #c8101e;
  --sale: #f70909; --was: #9aa2a8;   /* discounts: the theme's .price-new / .oct-discount-item red and the carousels' .price-old grey */
  --r-card: 23px; --r-ctrl: 12px;
}
/* no own ground (visual fixes, п.202): the page stands in the theme's content panel (.content-row) like the other pages of the site */
#oilstore-cart-page .oc-root { color: var(--text); font: 400 15px/1.5 "OpenSansRegular", "Open Sans", Arial, sans-serif; padding: 0 0 24px; }
#oilstore-cart-page [hidden] { display: none !important; }
/* the outer white panel of the theme frame rounded as the large blocks of the home page (custom.css, «.oct-product-tab .owl-carousel
   .item { border-radius: 10px }»; .oct-brands-box 10px too) — on the new cart only */
#oilstore-cart-page > .content-row { border-radius: 10px; }
#oilstore-cart-page .oc-root *, #oilstore-cart-page .oc-root *::before, #oilstore-cart-page .oc-root *::after { box-sizing: border-box; }
#oilstore-cart-page .oc-root h1, #oilstore-cart-page .oc-root h2 { margin: 0; color: var(--ink); font-family: "OpenSansBold", "Open Sans", Arial, sans-serif; font-weight: normal; text-wrap: balance; }
#oilstore-cart-page .oc-root h1 { font-size: 26px; line-height: 1.25; }
#oilstore-cart-page .oc-root h2 { font-size: 19px; line-height: 1.3; }
#oilstore-cart-page .oc-root a:not(.oc-btn) { color: var(--ink); }
#oilstore-cart-page .oc-root :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
#oilstore-cart-page .oc-num { font-variant-numeric: tabular-nums; }
#oilstore-cart-page .oc-pricefont { font-family: "OilStorePrice", "OpenSansBold", Arial, sans-serif; font-weight: 700; }   /* the theme declares 400 and 700; the prototype uses the bold */
#oilstore-cart-page .oc-muted { color: var(--muted); }
#oilstore-cart-page .oc-small { font-size: 13px; }
#oilstore-cart-page .oc-tiny { font-size: 12px; }

#oilstore-cart-page .oc-head { margin-bottom: 16px; }
#oilstore-cart-page .oc-messages { display: grid; gap: 8px; margin-bottom: 16px; }
#oilstore-cart-page .oc-notice { margin: 0; border: 0; border-radius: 14px; padding: 10px 12px; font-size: 13px; background: var(--yellow-pale); color: var(--ink); }
#oilstore-cart-page .oc-notice-danger, #oilstore-cart-page .oc-notice-warning { background: var(--err-pale); color: #7a1a12; }
#oilstore-cart-page .oc-notice-success { background: var(--ok-pale); color: var(--ok); }

#oilstore-cart-page .oc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
#oilstore-cart-page .oc-grid-empty { grid-template-columns: minmax(0, 1fr); }
#oilstore-cart-page .oc-stack { display: grid; gap: 16px; min-width: 0; }
#oilstore-cart-page .oc-card { background: var(--card); border-radius: var(--r-card); padding: 20px; border: 1px solid var(--line-soft); }
#oilstore-cart-page #oilstore-cart-card { padding-bottom: 16px; }

/* buttons: the brand red of the site (stylesheet.css «Кнопки „В корзину“: утверждённый вариант») */
#oilstore-cart-page .oc-btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: var(--r-ctrl); border: 1px solid var(--ink); background: var(--ink); color: #fff; font-family: "OpenSansSemibold", "Open Sans", Arial, sans-serif; font-weight: normal; font-size: 15px; cursor: pointer; text-decoration: none; }
#oilstore-cart-page .oc-btn:hover { background: var(--ink-hover); color: #fff; text-decoration: none; }
#oilstore-cart-page .oc-btn-red { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }
#oilstore-cart-page .oc-btn-red:hover, #oilstore-cart-page .oc-btn-red:focus-visible { background: var(--brand-red-hover); border-color: var(--brand-red-hover); color: #fff; }
#oilstore-cart-page .oc-btn.oc-wait { opacity: .6; cursor: progress; }   /* «Перейти к оформлению» while a change of the page is not confirmed by the server (22.10.2026) */
#oilstore-cart-page .oc-btn:disabled { opacity: .45; cursor: not-allowed; }
#oilstore-cart-page .oc-btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
#oilstore-cart-page .oc-btn-ghost:hover { background: var(--card); color: var(--ink); border-color: #aaa9a5; }
#oilstore-cart-page .oc-btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
#oilstore-cart-page .oc-block { width: 100%; }
#oilstore-cart-page .oc-linkbtn { border: 0; background: none; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; font-size: 13px; }

/* sign-in line */
#oilstore-cart-page .oc-login { padding: 10px 14px; border: 1px solid var(--line-soft); border-radius: 16px; background: var(--card); font-size: 14px; }
#oilstore-cart-page .oc-loginline { display: flex; justify-content: space-between; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
#oilstore-cart-page .oc-login-copy { display: grid; flex: 1 1 235px; min-width: 0; gap: 2px; }
#oilstore-cart-page .oc-login-copy strong { color: var(--ink); font-family: "OpenSansSemibold", "Open Sans", Arial, sans-serif; font-weight: normal; }
#oilstore-cart-page .oc-login-copy span { color: var(--meta-ink); font-size: 13px; }
#oilstore-cart-page .oc-logout { display: inline; margin: 0; }   /* «Выйти»: a POST of block 3 (23.10.2026), drawn as the former link */
/* signed in (23.10.2026, as the checkout form): the name left, «Выйти» right in the same row; when the row is short «Выйти» goes under
   the name, still right; a long name breaks inside the line */
#oilstore-cart-page .oc-logged { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
#oilstore-cart-page .oc-logged > span { flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; }
#oilstore-cart-page .oc-logged > .oc-logout { margin-left: auto; white-space: nowrap; }
#oilstore-cart-page .oc-logout .oc-linkbtn { font-size: inherit; }


/* «Выбрать все» and «Удалить выбранные» */
#oilstore-cart-page .oc-selall { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; }
#oilstore-cart-page .oc-selleft { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#oilstore-cart-page .oc-check { margin: 0; }
#oilstore-cart-page .oc-check label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-family: "OpenSansSemibold", "Open Sans", Arial, sans-serif; font-weight: normal; font-size: 15px; color: var(--ink); cursor: pointer; }
#oilstore-cart-page .oc-selall input[type=checkbox], #oilstore-cart-page .oc-cbox input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--ink); cursor: pointer; margin: 0; }
#oilstore-cart-page .oc-selall form { margin: 0; }
#oilstore-cart-page .oc-delsel { border: 0; background: none; display: inline-flex; gap: 6px; align-items: center; color: var(--ink); cursor: pointer; font-size: 14px; padding: 6px 4px; min-height: 36px; border-radius: 8px; }
#oilstore-cart-page .oc-delsel:not(:disabled):is(:hover, :focus-visible) { color: var(--brand-red-hover); }
#oilstore-cart-page .oc-delsel:disabled { color: var(--muted); opacity: .5; cursor: not-allowed; }

/* a line: image with the mark on it, description, price block, quantity */
#oilstore-cart-page .oc-line { display: grid; grid-template-columns: 80px minmax(0, 1fr) 120px auto; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line-soft); align-items: start; }
#oilstore-cart-page .oc-line:first-child { border-top: 0; }
#oilstore-cart-page .oc-line:last-child { padding-bottom: 0; }
#oilstore-cart-page .oc-unsel .oc-thumb, #oilstore-cart-page .oc-unsel .oc-info, #oilstore-cart-page .oc-unsel .oc-price { opacity: .55; }
#oilstore-cart-page .oc-thumbwrap { position: relative; width: 80px; height: 80px; flex: none; }
#oilstore-cart-page .oc-thumb { width: 80px; height: 80px; border-radius: 16px; background: var(--ground); display: grid; place-items: center; overflow: hidden; }
#oilstore-cart-page .oc-thumb img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }   /* white of the photo = the tile */
#oilstore-cart-page .oc-thumb svg { width: 40px; height: 40px; }
#oilstore-cart-page .oc-cbox { position: absolute; top: 6px; left: 6px; width: 18px; height: 18px; display: grid; place-items: center; background: #fff; border-radius: 4px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); cursor: pointer; z-index: 1; margin: 0; }
#oilstore-cart-page .oc-cbox::after { content: ""; position: absolute; inset: -5px; z-index: -1; }   /* desktop click area 28 px, behind the box */
#oilstore-cart-page .oc-info { min-width: 0; }
#oilstore-cart-page .oc-name { display: block; font-family: "OpenSansSemibold", "Open Sans", Arial, sans-serif; color: var(--ink); text-decoration: none; }
#oilstore-cart-page .oc-name:hover { text-decoration: underline; color: var(--ink); }
#oilstore-cart-page :is(#oilstore-cart-selection, .oc-kg) { color: var(--meta-ink); }
#oilstore-cart-page .oc-meta { color: var(--meta-ink); font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
#oilstore-cart-page .oc-skuwrap { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
#oilstore-cart-page .oc-sku { user-select: text; color: var(--text); }
#oilstore-cart-page .oc-skucopy { position: relative; display: inline-flex; align-items: center; gap: 4px; min-width: 28px; min-height: 28px; padding: 0 4px; cursor: pointer; color: var(--text); border-radius: 4px; }
#oilstore-cart-page .oc-skucopy svg { width: 14px; height: 14px; color: var(--meta-ink); flex: none; }
#oilstore-cart-page .oc-skucopy:hover .oc-sku, #oilstore-cart-page .oc-skucopy:focus-visible .oc-sku, #oilstore-cart-page .oc-skucopy:hover svg, #oilstore-cart-page .oc-skucopy:focus-visible svg { color: var(--brand-red-hover); }
#oilstore-cart-page .oc-skucopy:hover .oc-sku, #oilstore-cart-page .oc-skucopy:focus-visible .oc-sku { text-decoration: underline; text-underline-offset: 2px; }
#oilstore-cart-page .oc-tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 5; }
#oilstore-cart-page .oc-skucopy:hover .oc-tip, #oilstore-cart-page .oc-skucopy:focus-visible .oc-tip, #oilstore-cart-page .oc-skucopy.oc-show .oc-tip { opacity: 1; }
#oilstore-cart-page .oc-skucopy.oc-fail .oc-tip { background: var(--err); }
#oilstore-cart-page .oc-skucopy.oc-quiet .oc-tip { opacity: 0 !important; }
#oilstore-cart-page .oc-kg { margin-top: 2px; }
#oilstore-cart-page .oc-acts { display: flex; gap: 12px; margin-top: 5px; flex-wrap: wrap; align-items: center; }
#oilstore-cart-page .oc-acts form { margin: 0; }
#oilstore-cart-page .oc-delicon { position: relative; width: 36px; height: 36px; border: 0; background: none; padding: 0; margin-left: -6px; display: inline-grid; place-items: start center; color: var(--meta-ink); cursor: pointer; border-radius: 8px; }
#oilstore-cart-page .oc-delicon:not(:disabled):is(:hover, :focus-visible) { color: var(--brand-red-hover); }
#oilstore-cart-page .oc-delicon .oc-tip { bottom: calc(100% + 4px); }
#oilstore-cart-page .oc-delicon:hover .oc-tip, #oilstore-cart-page .oc-delicon:focus-visible .oc-tip { opacity: 1; }
#oilstore-cart-page .oc-cap { font-size: 12px; color: var(--muted); margin-top: 6px; }
#oilstore-cart-page .oc-issue { color: var(--err); }
#oilstore-cart-page .oc-price { display: grid; justify-items: end; gap: 2px; padding-top: 2px; text-align: right; }
#oilstore-cart-page .oc-sum { font-size: 18px; color: var(--ink); }
/* discounts (21.10.2026), the visual language of the theme (custom.css carousels, dynamic_stylesheet.css): the sum charged red, the sum
   without the special grey and struck through — both for the same quantity — and the red «−N%»; only on a line the cart charges at a special */
#oilstore-cart-page .oc-sumrow { justify-self: stretch; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 2px 6px; }
#oilstore-cart-page .oc-sumrow .oc-sum { flex: 0 0 100%; text-align: right; }
#oilstore-cart-page .oc-was { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 2px 6px; min-width: 0; }   /* the old sum and «−N%» */
#oilstore-cart-page .oc-sum-new { color: var(--sale); }
#oilstore-cart-page .oc-old { color: var(--was); font-size: 13px; line-height: 1.4; text-decoration: line-through; white-space: nowrap; }
#oilstore-cart-page .oc-off { flex: none; background: var(--sale); color: #fff; border-radius: 4px; padding: 2px 8px; font-family: "OpenSansBold", "Open Sans", Arial, sans-serif; font-weight: normal; font-size: 12px; line-height: 1.4; white-space: nowrap; }
#oilstore-cart-page .oc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* п.258 (22.11.2026): the availability centred on the block of the prices (the wide line; on the phone it stays under the photo), 12 px; a longer status wraps inside the block */
#oilstore-cart-page .oc-avail { margin-top: 6px; display: grid; justify-self: center; justify-items: center; gap: 2px; text-align: center; max-width: 100%; min-width: 0; }
#oilstore-cart-page .oc-badge { display: inline-flex; gap: 6px; align-items: center; justify-content: center; max-width: 100%; overflow-wrap: anywhere; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--ground); }
#oilstore-cart-page .oc-badge-stock { background: var(--info-pale); color: var(--info); }
#oilstore-cart-page .oc-badge-own-stock { background: var(--ok-pale); color: #286f45; }
#oilstore-cart-page .oc-badge-preorder { background: var(--yellow-pale); color: var(--warn); }
/* The current sum and the stock badge share a column. The old sum and the per-unit price
   span both columns so they can be wider without shifting the badge. */
@media (min-width: 601px) {
  #oilstore-cart-page .oc-price { grid-template-columns: minmax(0, 1fr) auto; justify-self: end; max-width: 100%; }
  #oilstore-cart-page .oc-sumrow { display: contents; }
  #oilstore-cart-page .oc-sum, #oilstore-cart-page .oc-price > .oc-tiny:first-child, #oilstore-cart-page .oc-avail { grid-column: 2; }
  #oilstore-cart-page .oc-was, #oilstore-cart-page .oc-price > .oc-tiny:not(:first-child) { grid-column: 1 / -1; }
  #oilstore-cart-page .oc-avail { display: flex; justify-content: center; width: 0; max-width: none; }
  #oilstore-cart-page .oc-avail .oc-badge { flex: none; max-width: 120px; white-space: normal; }
}
#oilstore-cart-page .oc-qtywrap { margin-left: 16px; }   /* 14 + 16 = 30 px from the price block */
/* п.256 (22.11.2026): the removal of the line under − / quantity / +, centred on it, 6 px under it; its hint opens under the bin (never over the quantity) */
#oilstore-cart-page .oc-qtywrap { display: inline-flex; flex-direction: column; align-items: center; }
#oilstore-cart-page .oc-qtywrap > .oc-acts-qty { margin-top: 6px; justify-content: center; }
#oilstore-cart-page .oc-qtywrap .oc-delicon { margin: 0; place-items: start center; }
#oilstore-cart-page .oc-qtywrap .oc-delicon .oc-tip { bottom: auto; top: calc(100% + 4px); }
#oilstore-cart-page .oc-pq { display: contents; }   /* the price block and the quantity: two cells of the desktop line; one wrapping row on the phone */
#oilstore-cart-page .oc-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
#oilstore-cart-page .oc-qty form { display: flex; margin: 0; }
#oilstore-cart-page .oc-qty button { width: 28px; height: 28px; border: 0; background: var(--card); cursor: pointer; font-size: 15px; padding: 0; color: var(--ink); }
#oilstore-cart-page .oc-qty button:disabled { color: #bbb; cursor: default; }
#oilstore-cart-page .oc-qty input { width: 32px; height: 28px; font-size: 13px; padding: 0; border: 0; border-left: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); text-align: center; background: var(--card); color: var(--text); }
/* 21.10.2026: the box clips what is outside its buttons and field (overflow: hidden) — the page's outline 2 px outside was cut to
   one dark bar at the side; drawn inside here, the whole outline stays visible (keyboard focus on «−», the field, «+») */
#oilstore-cart-page .oc-qty :focus-visible { outline-offset: -2px; }
/* 22.10.2026: the quantity field in focus draws no ring of its own (a black rectangle inside the box); the box − / quantity / + shows
   it instead — its border darker (3.2 : 1 on white) and a soft halo. The caret, the selected number and the keyboard ring of − / + stay */
#oilstore-cart-page .oc-qty input[name=quantity]:focus, #oilstore-cart-page .oc-qty input[name=quantity]:focus-visible { outline: none; }
#oilstore-cart-page .oc-qty:has(input[name=quantity]:focus) { border-color: #8f9296; box-shadow: 0 0 0 3px rgba(51, 51, 51, .1); }
#oilstore-cart-page .oc-undo { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-ctrl); background: var(--ground); margin-top: 8px; font-size: 14px; }
#oilstore-cart-page .oc-undo form { margin: 0; }
#oilstore-cart-page .oc-undo-acts { display: flex; align-items: center; gap: 12px; flex: none; }
/* × of the notice (21.10.2026): no timer hides it; 32 × 32 px to tap, the focus visible */
#oilstore-cart-page .oc-undo-x { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
#oilstore-cart-page .oc-undo-x:hover { background: var(--line-soft); }
/* the answer to a change of a line, under it across the whole line (21.10.2026) */
#oilstore-cart-page .oc-line-msg { grid-column: 1 / -1; display: grid; gap: 6px; }
#oilstore-cart-page .oc-gone { margin: 12px 0; }   /* the answer about a line the server no longer has, in its place (review) */
/* a quantity being saved without leaving the page (21.10.2026): shown only if the answer takes longer than 300 ms (no blink on a fast
   answer); the controls of the line do not react meanwhile */
#oilstore-cart-page .oilstore-cart-line.oc-busy-show .oc-qty { opacity: .55; cursor: progress; }
#oilstore-cart-page .oilstore-cart-line[aria-busy="true"] .oc-qty button { cursor: progress; }
#oilstore-cart-page .oc-empty { margin: 0; }

/* «Ваш заказ» */
#oilstore-cart-page .oc-summary { position: sticky; top: 16px; display: grid; gap: 4px; }
#oilstore-cart-page .oc-cmeta { font-size: 14px; color: var(--meta-ink); }
#oilstore-cart-page .oc-srow { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; align-items: baseline; }
#oilstore-cart-page .oc-srow .oc-num { text-align: right; white-space: nowrap; }
#oilstore-cart-page .oc-discount { color: var(--ok); }
#oilstore-cart-page .oc-delivery-note { margin: 0; font-size: 13px; color: var(--meta-ink); }
#oilstore-cart-page .oc-total { border-top: 1px solid var(--line-soft); margin-top: 6px; padding-top: 12px; font-size: 18px; }
#oilstore-cart-page .oc-total .oc-l { color: var(--ink); font-family: "OpenSansSemibold", "Open Sans", Arial, sans-serif; }
#oilstore-cart-page #oilstore-cart-selected-total { font-size: 21px; color: var(--ink); }
#oilstore-cart-page .oc-hint { font-size: 13px; color: var(--warn); margin: 8px 0 0; }
#oilstore-cart-page .oc-go { margin-top: 12px; }

/* the phone bar */
#oilstore-cart-page .oc-bar { display: none; }

@media (max-width: 1000px) {
  #oilstore-cart-page .oc-grid { grid-template-columns: 1fr; }
  #oilstore-cart-page .oc-summary { position: static; }
}
@media (max-width: 600px) {
  #oilstore-cart-page .oc-root { font-size: 14px; padding: 0 0 100px; }
  #oilstore-cart-page .oc-root h1 { font-size: 22px; }
  #oilstore-cart-page .oc-card { padding: 16px; border-radius: 18px; }
  #oilstore-cart-page .oc-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line-soft); padding: 10px 12px; gap: 12px; align-items: center; justify-content: space-between; z-index: 1000; }
  #oilstore-cart-page .oc-bar-t { font-size: 12px; color: var(--meta-ink); }
  #oilstore-cart-page .oc-bar-v { font-size: 20px; color: var(--ink); }
  #oilstore-cart-page .oc-bar > div { min-width: 0; overflow-wrap: anywhere; }
  #oilstore-cart-page .oc-bar .oc-btn { flex-shrink: 0; font-size: 14px; padding-inline: 12px; text-align: center; }
  #oilstore-cart-page .oc-summary .oc-go { display: none; }
  /* the phone line (21.10.2026): the photo left, the name (14 px) and the details (12 px) right of it with small gaps; the removal on
     the row of the weight; the availability under the photo (22.10.2026); one row across the WHOLE line — under the photo too — for
     the price block (sum 16 px, per unit under it) and − / quantity / + (the quantity goes to the next line only when the width is short). Long names,
     articles and prices wrap inside the line. − / quantity / + about 98 × 34 px: − / + 32 × 32 px, the field 32 px, symbols and the
     number 14 px — the decision of the owner (22.10.2026, before: 36 px); the removal keeps a 40 × 40 px tap area. The desktop line
     is not touched. */
  /* 22.10.2026: one grid for the whole line — the photo with the availability under it (left), the details (right), then across the
     line the price parts and − / quantity / +; the price block and its row give their parts to it (display: contents), so the
     availability stays under the photo after a quantity change too (the script redraws the price block, its place comes from here) */
  /* the buying block (second pass, 22.10.2026): 8 px under the photo column or the details, whichever ends lower — nothing else is
     kept above it; left the struck sum with «−N%» and 4 px under it the sum, − / quantity / + right, at the bottom of that group (it
     spans both rows, so it never pulls the two sums apart), per unit right under the quantity */
  #oilstore-cart-page .oc-line { grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-rows: auto 8px; grid-template-areas: "th info info" ". . ." "was was qty" "sum sum qty" "per per per" "msg msg msg"; column-gap: 10px; row-gap: 0; padding: 12px 0; }
  #oilstore-cart-page .oc-line > .oc-thumbwrap { grid-area: th; }
  #oilstore-cart-page .oc-line > .oc-info { grid-area: info; }
  #oilstore-cart-page .oc-line > .oc-line-msg { grid-area: msg; margin-top: 8px; }
  #oilstore-cart-page .oc-qtywrap { margin-left: 0; }
  #oilstore-cart-page .oc-thumbwrap, #oilstore-cart-page .oc-thumb { width: 76px; height: 76px; }
  #oilstore-cart-page .oc-cbox::after { inset: -11px; }   /* tap target 40 px, the visible box stays 18 px */
  #oilstore-cart-page .oc-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; row-gap: 2px; align-content: start; }
  #oilstore-cart-page .oc-info > * { grid-column: 1 / -1; margin: 0; }
  /* the weight and the removal 5 px under the article (2 px row gap + 3 px) */
  #oilstore-cart-page .oc-info > .oc-kg { grid-column: 1; align-self: start; margin-top: 3px; }
  #oilstore-cart-page .oc-info > .oc-acts { grid-column: 2; align-self: start; margin-top: 3px; }
  #oilstore-cart-page .oc-name { font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
  #oilstore-cart-page .oc-meta { display: block; font-size: 12px; line-height: 1.35; }
  /* the article on a line of its own after the brand, without «арт.» and «·» (second pass, 22.10.2026): «<brand>» / «<article> ⧉»;
     without a brand only the article line, without an article only the brand — no empty line either way */
  #oilstore-cart-page .oc-meta .oc-sep, #oilstore-cart-page .oc-meta .oc-skulabel { display: none; }
  /* Keep the copy action large enough to tap and allow a long SKU to wrap inside it. */
  #oilstore-cart-page .oc-skuwrap { display: block; white-space: normal; min-width: 0; text-wrap: balance; }
  #oilstore-cart-page .oc-skucopy { display: inline-block; min-width: 44px; max-width: 100%; min-height: 44px; padding: 13px 6px 12px; vertical-align: top; white-space: normal; }
  /* the copy icon goes with the end of the article (22.10.2026): the room for it is the end padding of the article — it cannot be
     parted from the last letters — and the icon is put in that room, never alone on a new line */
  #oilstore-cart-page .oc-sku { overflow-wrap: normal; word-break: break-all; padding-right: 18px; }
  #oilstore-cart-page .oc-skucopy svg { position: absolute; margin: 1px 0 0 -14px; }
  #oilstore-cart-page .oc-kg, #oilstore-cart-page .oc-cap { line-height: 1.35; }
  /* the removal (second pass, 22.10.2026): a 40 × 40 px tap area — square: a radius would cut its corners out of it — with the bin
     (18 px) on the line of the weight; 17 px of it above that line (5 px gap + 12 px into the right end of the line above, kept free:
     the 44 px end padding of that line) and 7 px under it (into the 8 px before the buying block, 1 px left above − / quantity / +).
     In the layout it counts only as high as the weight line, so it adds no height to the details */
  #oilstore-cart-page .oc-delicon { width: 40px; height: 40px; margin: -17px 0 -7px; padding: 16px 0 0; place-items: start center; border-radius: 0; }
  /* the line above the weight (or above the removal when there is no weight; never the weight itself) keeps its right 44 px free:
     the article line by a 44 px room glued to its last letter (a word joiner, U+2060: a long article takes some of its letters to the
     next line with it, no empty line; the room is not part of the copy, so the two tap areas never meet), any other line by its end
     padding */
  /* п.256 (22.11.2026): the removal is under the quantity now — the details keep no room for it at the right end of their lines */
  #oilstore-cart-page .oc-acts form { display: flex; }   /* no line box around the button: the form is exactly as high as it counts (16 px), not 22 */
  /* the price parts and the quantity (21.10.2026, in the grid of the line since 22.10.2026): the old sum and «−N%» on top (only on a
     line with a discount: the row is empty and takes no height otherwise), 4 px under them the sum; − / quantity / + right of both,
     at their bottom; per unit under the quantity, right-aligned, 4 px; a long sum wraps inside its own columns, never under the
     quantity. The availability goes under the photo */
  #oilstore-cart-page .oc-line .oc-pq, #oilstore-cart-page .oc-line .oc-price, #oilstore-cart-page .oc-line .oc-sumrow { display: contents; }
  #oilstore-cart-page .oc-line .oc-was { grid-area: was; justify-content: flex-start; justify-self: start; align-self: end; margin-bottom: 4px; }
  #oilstore-cart-page .oc-line .oc-sum { grid-area: sum; justify-self: start; align-self: center; text-align: left; min-width: 0; max-width: 100%; }
  #oilstore-cart-page .oc-line .oc-price > .oc-tiny { grid-area: per; justify-self: end; margin-top: 4px; text-align: right; }
  /* the availability under the photo (22.10.2026): in the cell of the photo, 6 px under it (76 + 6); a longer label wraps inside the
     76 px column and makes the cell taller — it never reaches the details */
  #oilstore-cart-page .oc-line .oc-avail { grid-area: th; align-self: start; justify-self: start; justify-items: start; margin-top: 82px; max-width: 100%; min-width: 0; text-align: left; }
  #oilstore-cart-page .oc-line .oc-avail .oc-badge { max-width: 100%; white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
  #oilstore-cart-page .oc-unsel .oc-was, #oilstore-cart-page .oc-unsel .oc-sum, #oilstore-cart-page .oc-unsel .oc-price > .oc-tiny, #oilstore-cart-page .oc-unsel .oc-avail { opacity: .55; }   /* the price block itself has no box here */
  #oilstore-cart-page .oc-sum { font-size: 16px; line-height: 1.25; overflow-wrap: break-word; }
  #oilstore-cart-page .oc-old { font-size: 12px; line-height: 1.35; }
  #oilstore-cart-page .oc-off { font-size: 11px; line-height: 1.3; padding: 1px 5px; border-radius: 3px; }
  #oilstore-cart-page .oc-price .oc-tiny { line-height: 1.35; overflow-wrap: break-word; }
  #back-top { display: none !important; }   /* the theme's «наверх» button: hidden on the phone in the new cart only (this file is loaded by this page only) */
  #oilstore-cart-page .oc-badge { font-size: 12px; padding: 1px 8px; }
  /* − / quantity / + at the bottom of the two sums (per unit then 4 px under both); without an old sum it is the row of the sum alone,
     the sum centred on it */
  #oilstore-cart-page .oc-line .oc-qtywrap { grid-area: qty; justify-self: end; align-self: end; margin-left: 2px; }   /* 10 + 2 = 12 px from the sum, as before */
  #oilstore-cart-page .oc-line:not(:has(.oc-was)) .oc-qtywrap { grid-row: sum; grid-column: 3; }   /* no old sum: only the row of the sum, the empty row above gets no height from the quantity */
  #oilstore-cart-page .oc-qty button { width: 32px; height: 32px; font-size: 14px; }
  #oilstore-cart-page .oc-qty input { width: 32px; height: 32px; font-size: 14px; }
  #oilstore-cart-page .oc-qtywrap > .oc-acts-qty { margin-top: 2px; }
  #oilstore-cart-page .oc-qtywrap .oc-delicon { width: 44px; height: 44px; margin: 0; padding: 4px 0 0; place-items: start center; }
  #oilstore-cart-page .oc-selall { flex-wrap: wrap; }
  #oilstore-cart-page .oc-delsel { min-height: 44px; }
  #oilstore-cart-page .oc-login { font-size: 13px; }
  #oilstore-cart-page .oc-loginline .oc-btn { padding-inline: 9px; font-size: 13px; }
  #oilstore-cart-page .oc-total .oc-l { font-size: 16px; }
}
@media (prefers-reduced-motion: no-preference) { #oilstore-cart-page .oc-btn { transition: background-color .15s, border-color .15s; } #oilstore-cart-page .oc-qty { transition: border-color .15s, box-shadow .15s; } }
/* п.249 (17.11.2026): the theme's «наверх» (#back-top, fixed at the right) stood over «Перейти к оформлению» at 1024 px too — hidden on this page
   wherever no free margin is right of it (the phone rule above stays); a wide screen keeps it */
@media (max-width: 1339px) {
  body:has(#oilstore-cart-page) #back-top { display: none !important; }
}
