/* ED Design · עדן חותמות · עמוד העגלה (ed-cart) v1.0.1 · 20.10.2026 */
body.woocommerce-cart {
  --ct-ink: #111318;
  --ct-graphite: #1C1F26;
  --ct-red: #CB1817;
  --ct-red-d: #A91311;
  --ct-red-soft: #FBEDEC;
  --ct-paper: #FBFAF7;
  --ct-paper-2: #F3F0E8;
  --ct-text: #15171C;
  --ct-muted: #5B606B;
  --ct-line: #E5E2D9;
  --ct-line-2: #D3CDBF;
  --ct-ok: #0F7A42;
  --ct-h: "Rubik", "Assistant", Arial, sans-serif;
  --ct-b: "Assistant", Arial, sans-serif;
  --ct-sh: 0 1px 0 rgba(17, 19, 24, .04), 0 10px 30px rgba(17, 19, 24, .07);
  background: var(--ct-paper) !important;
}

/* =====================================================================
   1. THE PAGE AND ITS TOP (Flatsome's focused layout: logo + the order steps)
   ===================================================================== */
/* millimetre paper under the top, then plain paper down to the footer (a short cart no longer leaves a black screen) */
body.woocommerce-cart #main-content, body.woocommerce-cart #main { background-color: transparent !important; }
body.woocommerce-cart #main {
  min-height: calc(100vh - 92px);
  background-image: linear-gradient(180deg, rgba(251, 250, 247, 0) 0, var(--ct-paper) 360px),
    linear-gradient(rgba(17, 19, 24, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(17, 19, 24, .05) 1px, transparent 1px) !important;
  background-size: auto, 24px 24px, 24px 24px !important;
  font-family: var(--ct-b);
  color: var(--ct-text);
}
body.woocommerce-cart #content { padding: 0 0 clamp(30px, 4vw, 60px) !important; }
body.woocommerce-cart #content > .container { max-width: 1230px !important; }
body.woocommerce-cart #main :focus-visible, body.woocommerce-cart .ed-ct-bar :focus-visible { outline: 3px solid var(--ct-red) !important; outline-offset: 3px; }

body.woocommerce-cart .cart-header { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; margin: 0 !important; padding: clamp(14px, 2vw, 22px) 0 !important; border-bottom: 1px solid var(--ct-line); text-align: start !important; }
body.woocommerce-cart .cart-header #logo { flex: none; width: auto !important; margin: 0 !important; }
body.woocommerce-cart .cart-header #logo img.header_logo { display: block; width: auto !important; height: 70px !important; max-height: none !important; }

/* the steps: three round seals on a dashed line (Flatsome's own links; only the look changes) */
body.woocommerce-cart .cart-header .checkout-breadcrumbs { display: flex !important; flex: 0 1 auto !important; flex-wrap: nowrap; align-items: center; gap: 0; width: auto !important; margin: 0 !important; padding: 0 !important; counter-reset: edst; }
body.woocommerce-cart .checkout-breadcrumbs .divider i { display: none !important; }
body.woocommerce-cart .checkout-breadcrumbs > i { display: none !important; }
body.woocommerce-cart .cart-header .checkout-breadcrumbs > a,
body.woocommerce-cart .cart-header .checkout-breadcrumbs > a.hide-for-small { counter-increment: edst; display: inline-flex !important; align-items: center; gap: 9px; min-height: 40px; margin: 0 !important; padding: 0 !important; font: 700 15px/1.2 var(--ct-h) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--ct-muted) !important; text-decoration: none !important; white-space: nowrap; opacity: 1 !important; }
body.woocommerce-cart .checkout-breadcrumbs > a::before { content: counter(edst); flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ct-line-2), inset 0 0 0 4px #fff, inset 0 0 0 5px var(--ct-line-2); font: 800 13.5px/1 var(--ct-h); color: var(--ct-muted); }
body.woocommerce-cart .checkout-breadcrumbs > a.current { color: var(--ct-ink) !important; }
body.woocommerce-cart .checkout-breadcrumbs > a.current::before { background: var(--ct-red); color: #fff; box-shadow: inset 0 0 0 2px var(--ct-red), inset 0 0 0 4px #fff, inset 0 0 0 5.5px var(--ct-red); }
body.woocommerce-cart .checkout-breadcrumbs > a.no-click { pointer-events: none; }
body.woocommerce-cart .cart-header .checkout-breadcrumbs > .divider,
body.woocommerce-cart .cart-header .checkout-breadcrumbs > .divider.hide-for-small { display: inline-block !important; flex: none; width: 36px; height: 0; margin: 0 10px !important; border-top: 2px dashed var(--ct-line-2); opacity: 1 !important; }

/* the heading (printed by PHP) */
body.woocommerce-cart .ed-ct-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 24px; margin: clamp(20px, 2.8vw, 34px) 0 clamp(16px, 2vw, 24px); }
body.woocommerce-cart .ed-ct-h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 !important; padding: 0 !important; font: 800 clamp(30px, 3.2vw, 42px)/1.1 var(--ct-h) !important; letter-spacing: -.01em; text-transform: none !important; color: var(--ct-ink) !important; }
/* the number of items: a small rubber-stamp label */
body.woocommerce-cart .ed-ct-n { display: inline-flex; align-items: center; min-height: 30px; padding: 0 11px; border: 2px solid var(--ct-red); border-radius: 7px; background: rgba(255, 255, 255, .75); font: 800 14px/1 var(--ct-h); letter-spacing: 0; color: var(--ct-red-d); transform: rotate(-3deg); }
body.woocommerce-cart .ed-ct-sub { margin: 0 !important; max-width: 520px; font: 500 16px/1.55 var(--ct-b); color: var(--ct-muted); }
body.woocommerce-cart .woocommerce:has(.wc-empty-cart-message) .ed-ct-n,
body.woocommerce-cart .woocommerce:has(.wc-empty-cart-message) .ed-ct-sub { display: none; }

/* =====================================================================
   2. THE ITEMS (the table stays for WooCommerce; it only looks like cards)
   ===================================================================== */
body.woocommerce-cart .woocommerce > .row.row-large { margin-top: 0 !important; }
body.woocommerce-cart .row-divided > .col + .col:not(.large-12) { border-left: 0 !important; border-right: 0 !important; }
@media (min-width: 850px) {
  body.woocommerce-cart .woocommerce > .row.row-large > .col.large-7 { flex-basis: 61% !important; max-width: 61% !important; }
  body.woocommerce-cart .woocommerce > .row.row-large > .cart-collaterals.large-5 { flex-basis: 39% !important; max-width: 39% !important; }
}
body.woocommerce-cart .cart-wrapper { overflow: visible !important; }
body.woocommerce-cart table.shop_table.cart { width: 100%; margin: 0 !important; border: 0 !important; border-collapse: separate !important; border-spacing: 0 !important; background: none !important; }
body.woocommerce-cart table.shop_table.cart thead { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
body.woocommerce-cart table.shop_table.cart tbody { display: grid; gap: 16px; }
body.woocommerce-cart table.shop_table.cart tr.cart_item { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; grid-template-areas: "thumb name rm" "thumb qty sub"; align-items: center; gap: 12px 20px; padding: 20px !important; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--ct-line), var(--ct-sh); }
body.woocommerce-cart table.shop_table.cart tr.cart_item > td { display: block; width: auto !important; min-width: 0; padding: 0 !important; border: 0 !important; background: none !important; text-align: start !important; }
body.woocommerce-cart table.shop_table.cart tr.cart_item > td::before { display: none !important; }

/* the photo in a sign frame */
body.woocommerce-cart tr.cart_item td.product-thumbnail { grid-area: thumb; align-self: start; min-width: 0 !important; max-width: none !important; }
body.woocommerce-cart tr.cart_item td.product-thumbnail a { position: relative; display: block; width: 100% !important; max-width: none !important; overflow: hidden; aspect-ratio: 1; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--ct-line); }
body.woocommerce-cart tr.cart_item td.product-thumbnail a::after { content: ""; position: absolute; inset: 5px; border: 1px dashed rgba(17, 19, 24, .16); border-radius: 10px; pointer-events: none; }
/* pinned to the square: Safari leaves a percentage height unresolved in a box sized by aspect-ratio */
body.woocommerce-cart tr.cart_item td.product-thumbnail img { position: absolute; inset: 0; display: block; width: 100% !important; max-width: none !important; height: 100% !important; margin: 0 !important; padding: 9px; object-fit: contain; background: #fff; }

/* the name, its details, the price of one */
body.woocommerce-cart tr.cart_item td.product-name { grid-area: name; align-self: start; }
body.woocommerce-cart tr.cart_item td.product-name > a { display: block; font: 800 18px/1.3 var(--ct-h) !important; letter-spacing: 0 !important; color: var(--ct-ink) !important; text-decoration: none !important; }
body.woocommerce-cart tr.cart_item td.product-name .mobile-product-price { display: block !important; margin: 6px 0 0; font: 600 14px/1.4 var(--ct-b); color: var(--ct-muted); }
body.woocommerce-cart tr.cart_item td.product-name .mobile-product-price .amount { font-weight: 700; color: var(--ct-muted); }
body.woocommerce-cart tr.cart_item td.product-price { display: none !important; }
body.woocommerce-cart tr.cart_item.ed-ct-q1 td.product-name .mobile-product-price { display: none !important; }
body.woocommerce-cart tr.cart_item td.product-name .backorder_notification { margin: 6px 0 0 !important; font: 700 13.5px/1.4 var(--ct-b); color: var(--ct-red-d); }

/* WCPA's details: size, ink, the customer's text and files */
body.woocommerce-cart tr.cart_item .wcpa_cart_meta { display: grid; gap: 6px; margin: 10px 0 0 !important; padding: 0 !important; list-style: none !important; }
body.woocommerce-cart tr.cart_item .wcpa_cart_meta_item { display: flex !important; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; width: auto !important; margin: 0 !important; padding: 0 !important; list-style: none !important; }
body.woocommerce-cart tr.cart_item .wcpa_cart_meta_item-label { width: auto !important; margin: 0 !important; padding: 0 !important; font: 600 14px/1.5 var(--ct-b) !important; color: var(--ct-muted) !important; }
body.woocommerce-cart tr.cart_item .wcpa_cart_meta_item-value,
body.woocommerce-cart tr.cart_item .wcpa_cart_meta_item-value p { width: auto !important; margin: 0 !important; padding: 0 !important; font: 700 14.5px/1.5 var(--ct-b) !important; color: var(--ct-ink) !important; overflow-wrap: break-word; }
body.woocommerce-cart tr.cart_item .wcpa_cart_meta :is(li, p, div, span) { min-height: 0 !important; }
body.woocommerce-cart tr.cart_item .wcpa-block-addon-val:empty { display: none !important; }
body.woocommerce-cart tr.cart_item .wcpa_cart_meta_item-value img { display: block; width: 64px !important; height: 64px !important; margin: 4px 0 0 !important; border-radius: 10px; object-fit: contain; background: #fff; box-shadow: inset 0 0 0 1px var(--ct-line); }
/* WooCommerce's own list for products without WCPA */
body.woocommerce-cart tr.cart_item dl.variation { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; margin: 10px 0 0 !important; padding: 0 !important; border: 0 !important; }
body.woocommerce-cart tr.cart_item dl.variation :is(dt, dd) { margin: 0 !important; padding: 0 !important; border: 0 !important; float: none !important; font: 600 14px/1.5 var(--ct-b) !important; color: var(--ct-muted) !important; }
body.woocommerce-cart tr.cart_item dl.variation dd, body.woocommerce-cart tr.cart_item dl.variation dd p { margin: 0 !important; font-weight: 700 !important; color: var(--ct-ink) !important; }
/* an ink colour gets its dot */
body.woocommerce-cart .ed-ct-ink { display: inline-flex; align-items: center; gap: 7px; }
body.woocommerce-cart .ed-ct-ink::before { content: ""; flex: none; width: 13px; height: 13px; border-radius: 50%; background: var(--ink-c, var(--ct-ink)); box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(17, 19, 24, .18); }
/* a size gets a dimension tag */
body.woocommerce-cart .ed-ct-dim { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: 2px; padding: 1px 8px 1px 9px; border-radius: 6px; background: var(--ct-paper-2); box-shadow: inset 0 0 0 1px var(--ct-line); font: 700 13.5px/1.6 var(--ct-h); color: var(--ct-text); white-space: nowrap; }
body.woocommerce-cart .ed-ct-dim::before { content: ""; flex: none; width: 16px; height: 10px; background: currentColor; opacity: .7; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 7h20'/%3E%3Cpath d='M2 2v10M22 2v10'/%3E%3Cpath d='M5.5 4.5L3 7l2.5 2.5M18.5 4.5L21 7l-2.5 2.5'/%3E%3C/svg%3E") 50% 50% / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 7h20'/%3E%3Cpath d='M2 2v10M22 2v10'/%3E%3Cpath d='M5.5 4.5L3 7l2.5 2.5M18.5 4.5L21 7l-2.5 2.5'/%3E%3C/svg%3E") 50% 50% / contain no-repeat; }
/* the customer's own text: a stamp impression */
body.woocommerce-cart tr.cart_item .ed-ct-imp { display: block !important; margin: 4px 0 0 !important; padding: 10px 14px 12px !important; border: 1.5px dashed rgba(203, 24, 23, .55); border-radius: 12px; background: #fff; list-style: none !important; }
body.woocommerce-cart .ed-ct-imp__t { display: flex; align-items: center; gap: 7px; margin: 0 0 6px; font: 800 13px/1.2 var(--ct-h); color: var(--ct-red-d); }
body.woocommerce-cart .ed-ct-imp__t::before { content: ""; flex: none; width: 15px; height: 15px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.5 3.5h5v4.2l1.6 2.6H7.9l1.6-2.6z'/%3E%3Cpath d='M5 12.8h14v3.4H5z'/%3E%3Cpath d='M4 20h16'/%3E%3C/svg%3E") 50% 50% / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.5 3.5h5v4.2l1.6 2.6H7.9l1.6-2.6z'/%3E%3Cpath d='M5 12.8h14v3.4H5z'/%3E%3Cpath d='M4 20h16'/%3E%3C/svg%3E") 50% 50% / contain no-repeat; }
body.woocommerce-cart tr.cart_item .ed-ct-imp > ul { display: grid; gap: 4px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
body.woocommerce-cart tr.cart_item .ed-ct-imp .wcpa_cart_meta_item { display: grid !important; grid-template-columns: minmax(0, auto) minmax(0, 1fr); align-items: baseline; gap: 0 10px; }
body.woocommerce-cart tr.cart_item .ed-ct-imp .wcpa_cart_meta_item-label { font-size: 13px !important; }
body.woocommerce-cart tr.cart_item .ed-ct-imp .wcpa_cart_meta_item-value,
body.woocommerce-cart tr.cart_item .ed-ct-imp .wcpa_cart_meta_item-value p { font: 600 16.5px/1.45 var(--ct-h) !important; color: var(--ct-red-d) !important; text-align: right; unicode-bidi: plaintext; }
/* "בעיצוב אישי": a stamp on the card's edge, never over the product */
body.woocommerce-cart .ed-ct-tag { position: absolute; top: -11px; right: 22px; z-index: 2; padding: 4px 9px; border: 2px solid var(--ct-red); border-radius: 6px; background: #fff; font: 800 12px/1 var(--ct-h); letter-spacing: 0; color: var(--ct-red-d); transform: rotate(-4deg); pointer-events: none; }

/* quantity: a pill stepper (Flatsome's buttons, bigger) */
body.woocommerce-cart tr.cart_item td.product-quantity { grid-area: qty; justify-self: start; }
body.woocommerce-cart tr.cart_item .quantity { display: inline-flex !important; align-items: center; height: 48px; margin: 0 !important; padding: 3px; border-radius: 999px; background: var(--ct-paper); box-shadow: inset 0 0 0 1.5px var(--ct-line-2); }
body.woocommerce-cart tr.cart_item .quantity .button.minus,
body.woocommerce-cart tr.cart_item .quantity .button.plus { width: 42px !important; height: 42px !important; min-width: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: #fff !important; box-shadow: 0 1px 3px rgba(17, 19, 24, .16) !important; font: 700 21px/1 var(--ct-h) !important; color: var(--ct-ink) !important; opacity: 1 !important; cursor: pointer; }
body.woocommerce-cart tr.cart_item .quantity input.qty { width: 46px !important; height: 42px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; font: 800 17px/1 var(--ct-h) !important; color: var(--ct-ink) !important; text-align: center; -moz-appearance: textfield; }
body.woocommerce-cart tr.cart_item .quantity input.qty::-webkit-inner-spin-button,
body.woocommerce-cart tr.cart_item .quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* the line total and the remove button */
body.woocommerce-cart tr.cart_item td.product-subtotal { grid-area: sub; justify-self: end; font: 800 20px/1.2 var(--ct-h); color: var(--ct-ink); text-align: end !important; white-space: nowrap; }
body.woocommerce-cart tr.cart_item td.product-subtotal .amount { font-weight: 800; color: var(--ct-ink); }
body.woocommerce-cart tr.cart_item td.product-subtotal small { display: block; font: 600 12.5px/1.3 var(--ct-b); color: var(--ct-muted); }
body.woocommerce-cart tr.cart_item td.product-remove { grid-area: rm; align-self: start; justify-self: end; line-height: 0; }
body.woocommerce-cart tr.cart_item td.product-remove a.remove { position: static !important; inset: auto !important; display: inline-grid !important; place-items: center; width: 40px !important; height: 40px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: var(--ct-paper) !important; box-shadow: inset 0 0 0 1px var(--ct-line-2); font: 400 23px/1 Arial, sans-serif !important; color: var(--ct-muted) !important; opacity: 1 !important; text-decoration: none !important; }

/* under the items: keep shopping (the update button stays hidden: the cart refreshes by itself) */
body.woocommerce-cart table.shop_table.cart tr:not(.cart_item) { display: block; }
body.woocommerce-cart table.shop_table.cart td.actions { display: flex !important; flex-wrap: wrap; align-items: center; gap: 10px; padding: 4px 0 0 !important; border: 0 !important; background: none !important; }
body.woocommerce-cart table.shop_table.cart td.actions .continue-shopping { float: none !important; margin: 0 !important; }
body.woocommerce-cart .button-continue-shopping { display: inline-flex !important; align-items: center; gap: 6px; min-height: 46px; margin: 0 !important; padding: 0 20px !important; border: 1.5px solid var(--ct-line-2) !important; border-radius: 999px !important; background: #fff !important; box-shadow: none !important; font: 700 15.5px/1 var(--ct-h) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--ct-ink) !important; }

/* =====================================================================
   3. THE SUMMARY: a docket with a perforated edge and the house seal
   ===================================================================== */
body.woocommerce-cart .cart-collaterals { padding-top: 0 !important; }
body.woocommerce-cart .cart-sidebar.col-inner { position: relative; overflow: hidden; padding: 28px 24px 24px !important; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--ct-line), var(--ct-sh); }
body.woocommerce-cart .cart-sidebar.col-inner::before { content: ""; position: absolute; top: -1px; right: 0; left: 0; height: 12px; background: radial-gradient(circle at 10px 0, var(--ct-paper) 6px, transparent 6.5px) 0 0 / 20px 12px repeat-x; pointer-events: none; }
body.woocommerce-cart .cart-sidebar.col-inner::after { content: ""; position: absolute; top: -30px; left: -30px; width: 160px; height: 160px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23CB1817'%3E%3Ccircle cx='60' cy='60' r='55' stroke-width='5'/%3E%3Ccircle cx='60' cy='60' r='46' stroke-width='1.6'/%3E%3Ccircle cx='60' cy='60' r='38' stroke-width='1.6' stroke-dasharray='3 4'/%3E%3C/g%3E%3Cpath fill='%23CB1817' d='M60 40l5.9 12 13.2 1.9-9.6 9.3 2.3 13.1L60 70.1l-11.8 6.2 2.3-13.1-9.6-9.3 13.2-1.9z'/%3E%3C/svg%3E") 50% 50% / contain no-repeat; opacity: .055; transform: rotate(-14deg); pointer-events: none; }
body.woocommerce-cart .cart_totals { position: relative; z-index: 1; margin: 0 !important; }
body.woocommerce-cart .cart_totals > table:first-child { margin: 0 0 6px !important; border: 0 !important; }
body.woocommerce-cart .cart_totals > table:first-child th { display: flex; align-items: center; gap: 11px; padding: 0 0 12px !important; border: 0 !important; font: 800 22px/1.25 var(--ct-h) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--ct-ink) !important; text-align: start !important; }
body.woocommerce-cart .cart_totals > table:first-child th::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ct-red); box-shadow: 0 0 0 4px rgba(203, 24, 23, .14); }
body.woocommerce-cart .cart_totals > h2 { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
body.woocommerce-cart .cart_totals table.shop_table { margin: 0 !important; border: 0 !important; }
body.woocommerce-cart .cart_totals table.shop_table > tbody > tr > :is(th, td) { padding: 14px 0 !important; border: 0 !important; border-top: 1px dashed var(--ct-line-2) !important; background: none !important; font: 600 16px/1.4 var(--ct-b) !important; color: var(--ct-text) !important; text-transform: none !important; letter-spacing: 0 !important; vertical-align: middle; }
body.woocommerce-cart .cart_totals table.shop_table > tbody > tr > td { font-weight: 700 !important; text-align: end !important; color: var(--ct-ink) !important; }
body.woocommerce-cart .cart_totals table.shop_table > tbody > tr > td::before { display: none !important; }
body.woocommerce-cart .cart_totals table.shop_table > tbody > tr.order-total > :is(th, td) { padding-top: 16px !important; border-top: 2px solid var(--ct-ink) !important; font: 800 23px/1.2 var(--ct-h) !important; color: var(--ct-ink) !important; }
body.woocommerce-cart .cart_totals tr.order-total .amount { font-weight: 800; }
body.woocommerce-cart .cart_totals tr.order-total small, body.woocommerce-cart .cart_totals tr.order-total .includes_tax { display: block; font: 600 13px/1.4 var(--ct-b); color: var(--ct-muted); }
body.woocommerce-cart .cart_totals table.shop_table > tbody > tr.cart-discount > :is(th, td) { color: var(--ct-ok) !important; }
body.woocommerce-cart .cart_totals tr.cart-discount a { font: 700 13.5px/1.4 var(--ct-b); color: var(--ct-muted) !important; text-decoration: underline !important; text-underline-offset: 3px; }

/* shipping: two clear choices */
body.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals > td { text-align: start !important; }
body.woocommerce-cart .cart_totals .shipping__table { width: 100%; margin: 0 !important; border: 0 !important; }
body.woocommerce-cart .cart_totals .shipping__table :is(tbody, tr, th, td) { display: block; width: auto !important; padding: 0 !important; border: 0 !important; background: none !important; text-align: start !important; }
body.woocommerce-cart .cart_totals .shipping__table th { margin: 0 0 10px !important; font: 600 16px/1.4 var(--ct-b) !important; color: var(--ct-text) !important; text-transform: none !important; letter-spacing: 0 !important; }
body.woocommerce-cart .cart_totals .shipping__table td::before { display: none !important; }
body.woocommerce-cart #shipping_method { display: grid; gap: 8px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
body.woocommerce-cart #shipping_method li { position: relative; display: flex !important; align-items: center; gap: 10px; margin: 0 !important; padding: 13px 14px !important; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ct-line-2); list-style: none !important; }
body.woocommerce-cart #shipping_method li:has(input:checked), body.woocommerce-cart #shipping_method li.ed-sh--on { background: var(--ct-red-soft); box-shadow: inset 0 0 0 2px var(--ct-red); }
body.woocommerce-cart #shipping_method li input { flex: none; width: 19px !important; height: 19px !important; margin: 0 !important; accent-color: var(--ct-red); }
body.woocommerce-cart #shipping_method li label { flex: 1 1 auto; margin: 0 !important; font: 700 15.5px/1.45 var(--ct-b) !important; color: var(--ct-ink) !important; cursor: pointer; }
body.woocommerce-cart #shipping_method li label .amount { font-weight: 800; white-space: nowrap; }
body.woocommerce-cart #shipping_method li label::after { content: ""; position: absolute; inset: 0; }
body.woocommerce-cart #shipping_method li.ed-sh::after { content: ""; flex: none; width: 24px; height: 24px; background: var(--ct-muted); -webkit-mask: var(--ed-sh-i) 50% 50% / contain no-repeat; mask: var(--ed-sh-i) 50% 50% / contain no-repeat; }
body.woocommerce-cart #shipping_method li.ed-sh--home { --ed-sh-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h11v9H3z'/%3E%3Cpath d='M14 10h4l3 3v3h-7'/%3E%3Ccircle cx='7' cy='17.5' r='1.8'/%3E%3Ccircle cx='17' cy='17.5' r='1.8'/%3E%3C/svg%3E"); }
body.woocommerce-cart #shipping_method li.ed-sh--pick { --ed-sh-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
body.woocommerce-cart #shipping_method li.ed-sh--on::after, body.woocommerce-cart #shipping_method li:has(input:checked)::after { background: var(--ct-red-d); }
body.woocommerce-cart .woocommerce-shipping-destination, body.woocommerce-cart .shipping-calculator-button { display: inline-block; margin: 8px 0 0 !important; font: 700 13.5px/1.4 var(--ct-b) !important; color: var(--ct-muted) !important; }

/* the way to pay */
body.woocommerce-cart .wc-proceed-to-checkout { margin: 0 !important; padding: 18px 0 0 !important; }
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button { display: flex !important; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; margin: 0 !important; padding: 0 22px !important; border: 0 !important; border-radius: 999px !important; background: var(--ct-red) !important; background-image: none !important; box-shadow: 0 10px 24px rgba(203, 24, 23, .28) !important; font: 800 19px/1 var(--ct-h) !important; letter-spacing: 0 !important; text-transform: none !important; color: #fff !important; text-decoration: none !important; }
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button::before { content: ""; flex: none; width: 19px; height: 19px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") 50% 50% / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") 50% 50% / contain no-repeat; }
/* the payment and help lines (printed by PHP inside .wc-proceed-to-checkout) */
body.woocommerce-cart .ed-ct-trust { display: grid; gap: 10px; margin: 16px 0 0 !important; padding: 14px 0 0 !important; border-top: 1px dashed var(--ct-line-2); list-style: none !important; }
body.woocommerce-cart .ed-ct-trust li { display: flex !important; align-items: flex-start; gap: 10px; margin: 0 !important; padding: 0 !important; font: 600 15px/1.5 var(--ct-b); color: var(--ct-text); list-style: none !important; }
body.woocommerce-cart .ed-ct-trust svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--ct-red-d); }
body.woocommerce-cart .ed-ct-trust a { font-weight: 800; color: var(--ct-ink) !important; text-decoration: underline !important; text-decoration-color: var(--ct-red) !important; text-underline-offset: 3px; }
body.woocommerce-cart .ed-ct-trust a[href^="tel:"] { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }

/* the coupon: behind a button (the script folds it; without the script it simply shows) */
body.woocommerce-cart form.ux-cart-coupon { position: relative; z-index: 1; margin: 16px 0 0 !important; padding: 14px 0 0 !important; border-top: 1px dashed var(--ct-line-2); }
body.woocommerce-cart form.ux-cart-coupon .widget-title { display: none !important; }
body.woocommerce-cart form.ux-cart-coupon .coupon { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin: 0 !important; padding: 0 !important; border: 0 !important; }
body.woocommerce-cart form.ux-cart-coupon.ed-ct-closed .coupon { display: none !important; }
body.woocommerce-cart form.ux-cart-coupon input#coupon_code { width: 100% !important; height: 50px !important; margin: 0 !important; padding: 0 14px !important; border: 1.5px solid var(--ct-line-2) !important; border-radius: 14px !important; background: #fff !important; box-shadow: none !important; font: 700 16.5px/1 var(--ct-b) !important; color: var(--ct-ink) !important; }
body.woocommerce-cart form.ux-cart-coupon input#coupon_code::placeholder { color: #767B85; opacity: 1; }
body.woocommerce-cart form.ux-cart-coupon input#coupon_code:focus { border-color: var(--ct-ink) !important; }
body.woocommerce-cart form.ux-cart-coupon button[name="apply_coupon"] { width: auto !important; height: 50px !important; min-height: 0 !important; margin: 0 !important; padding: 0 22px !important; border: 0 !important; border-radius: 999px !important; background: var(--ct-ink) !important; box-shadow: none !important; font: 800 15.5px/1 var(--ct-h) !important; letter-spacing: 0 !important; text-transform: none !important; color: #fff !important; }
body.woocommerce-cart .ed-ct-coupon-toggle { display: inline-flex !important; align-items: center; gap: 8px; min-height: 40px; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; font: 800 15.5px/1.2 var(--ct-h) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--ct-red-d) !important; text-decoration: underline !important; text-underline-offset: 4px; cursor: pointer; }
body.woocommerce-cart .ed-ct-coupon-toggle::before { content: ""; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4l-7.2 7.2a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E") 50% 50% / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4l-7.2 7.2a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E") 50% 50% / contain no-repeat; }
body.woocommerce-cart form.ux-cart-coupon:not(.ed-ct-closed) .ed-ct-coupon-toggle { margin-bottom: 10px !important; }

/* =====================================================================
   4. MESSAGES (added, removed with "undo", coupon, errors)
   ===================================================================== */
body.woocommerce-cart #main .message-wrapper { margin: 0 0 12px !important; padding: 14px 18px !important; border: 0 !important; border-radius: 14px; background: #fff !important; box-shadow: inset -4px 0 0 var(--ct-ink), inset 0 0 0 1px var(--ct-line), var(--ct-sh); list-style: none !important; }
body.woocommerce-cart #main .message-wrapper.woocommerce-message { box-shadow: inset -4px 0 0 var(--ct-ok), inset 0 0 0 1px var(--ct-line), var(--ct-sh); }
body.woocommerce-cart #main .message-wrapper.woocommerce-error { box-shadow: inset -4px 0 0 var(--ct-red), inset 0 0 0 1px var(--ct-line), var(--ct-sh); }
body.woocommerce-cart #main .message-wrapper li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
body.woocommerce-cart #main .message-wrapper .message-container { display: flex !important; align-items: flex-start; gap: 10px; max-width: none !important; margin: 0 !important; padding: 0 !important; font: 700 15.5px/1.5 var(--ct-b) !important; color: var(--ct-ink) !important; text-align: start !important; }
body.woocommerce-cart #main .message-wrapper .message-container > i { display: none !important; }
body.woocommerce-cart #main .message-wrapper .message-container::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; background: var(--ct-ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5.5'/%3E%3Cpath d='M12 7.6v.1'/%3E%3C/svg%3E") 50% 50% / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5.5'/%3E%3Cpath d='M12 7.6v.1'/%3E%3C/svg%3E") 50% 50% / contain no-repeat; }
body.woocommerce-cart #main .woocommerce-message .message-container::before { background: var(--ct-ok); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.4l2.7 2.7 5.5-5.5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.4l2.7 2.7 5.5-5.5'/%3E%3C/svg%3E"); }
body.woocommerce-cart #main .woocommerce-error .message-container::before { background: var(--ct-red); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5V13'/%3E%3Cpath d='M12 16.6v.1'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5V13'/%3E%3Cpath d='M12 16.6v.1'/%3E%3C/svg%3E"); }
body.woocommerce-cart #main .message-wrapper a:not(.button) { margin-inline-start: 4px; font-weight: 800; color: var(--ct-ink) !important; text-decoration: underline !important; text-decoration-color: var(--ct-red) !important; text-underline-offset: 3px; }
body.woocommerce-cart #main .message-wrapper .button { float: none !important; order: 2; min-height: 36px; margin: 0 0 0 0 !important; margin-inline-start: auto !important; padding: 0 14px !important; border-radius: 999px !important; font: 800 14px/36px var(--ct-h) !important; text-transform: none !important; letter-spacing: 0 !important; }

/* =====================================================================
   5. AN EMPTY CART: the house seal, where to start, help
   ===================================================================== */
body.woocommerce-cart .woocommerce > .text-center.pt.pb { padding: 0 0 clamp(36px, 6vw, 70px) !important; text-align: center !important; }
body.woocommerce-cart .woocommerce > .text-center.pt.pb > .ed-ct-head { justify-content: center; text-align: center; }
body.woocommerce-cart .wc-empty-cart-message { padding: 0 !important; }
body.woocommerce-cart #main .wc-empty-cart-message .message-wrapper { margin: 0 auto 6px !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
body.woocommerce-cart #main .wc-empty-cart-message .message-container { display: block !important; font: 700 clamp(19px, 2.2vw, 23px)/1.4 var(--ct-h) !important; color: var(--ct-text) !important; text-align: center !important; }
body.woocommerce-cart #main .wc-empty-cart-message .message-container::before { display: block; width: 132px; height: 132px; margin: 0 auto 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23CB1817'%3E%3Ccircle cx='60' cy='60' r='55' stroke-width='5'/%3E%3Ccircle cx='60' cy='60' r='46.5' stroke-width='1.6'/%3E%3Ccircle cx='60' cy='60' r='39' stroke-width='1.6' stroke-dasharray='3 4'/%3E%3Cg stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M37 42h7l6.4 27h25.4l5.2-19H47'/%3E%3Ccircle cx='54' cy='78' r='3.4'/%3E%3Ccircle cx='72' cy='78' r='3.4'/%3E%3C/g%3E%3C/g%3E%3Ccircle cx='9' cy='60' r='2.6' fill='%23CB1817'/%3E%3Ccircle cx='111' cy='60' r='2.6' fill='%23CB1817'/%3E%3C/svg%3E") 50% 50% / contain no-repeat !important; -webkit-mask: none !important; mask: none !important; transform: rotate(-8deg); }
body.woocommerce-cart .ed-ct-empty { max-width: 980px; margin: clamp(22px, 3vw, 34px) auto 0; text-align: center; }
body.woocommerce-cart .ed-ct-empty__t { margin: 0 0 14px !important; font: 800 clamp(20px, 2.2vw, 26px)/1.25 var(--ct-h); color: var(--ct-ink); }
body.woocommerce-cart .ed-ct-empty__cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
body.woocommerce-cart .ed-ct-empty__cats li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
body.woocommerce-cart .ed-ct-empty__cats a { display: grid; gap: 10px; height: 100%; padding: 12px 12px 14px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--ct-line), var(--ct-sh); font: 800 17px/1.2 var(--ct-h); color: var(--ct-ink) !important; text-decoration: none !important; }
body.woocommerce-cart .ed-ct-empty__ph { position: relative; display: block; overflow: hidden; aspect-ratio: 1; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--ct-line); }
body.woocommerce-cart .ed-ct-empty__ph img { position: absolute; inset: 0; display: block; width: 100% !important; height: 100% !important; max-width: none !important; padding: 8px; object-fit: contain; }
body.woocommerce-cart .ed-ct-empty__help { margin: 18px 0 0 !important; font: 600 16px/1.5 var(--ct-b); color: var(--ct-muted); }
body.woocommerce-cart .ed-ct-empty__help a { font-weight: 800; color: var(--ct-ink) !important; text-decoration: underline !important; text-decoration-color: var(--ct-red) !important; text-underline-offset: 3px; }
body.woocommerce-cart .return-to-shop { margin: 20px 0 0 !important; text-align: center; }
body.woocommerce-cart .return-to-shop .button { display: inline-flex !important; align-items: center; justify-content: center; min-height: 54px; margin: 0 !important; padding: 0 30px !important; border: 0 !important; border-radius: 999px !important; background: var(--ct-red) !important; box-shadow: 0 10px 24px rgba(203, 24, 23, .28) !important; font: 800 17px/1 var(--ct-h) !important; letter-spacing: 0 !important; text-transform: none !important; color: #fff !important; }

/* =====================================================================
   6. THE FOOTER of the focused layout: ink, the site map and the rights line.
   Its payment icons go: they showed a bank transfer the store doesn't take (the summary names the real ways).
   ===================================================================== */
body.woocommerce-cart .focused-checkout-footer .absolute-footer { padding: 20px 0 calc(20px + env(safe-area-inset-bottom, 0px)) !important; background: var(--ct-ink) !important; font: 500 14.5px/1.6 var(--ct-b) !important; color: #AEB4C2 !important; }
body.woocommerce-cart .focused-checkout-footer .payment-icons { display: none !important; }
body.woocommerce-cart .focused-checkout-footer .footer-secondary { display: none !important; }
body.woocommerce-cart .focused-checkout-footer .footer-primary { float: none !important; width: 100%; text-align: center !important; }
body.woocommerce-cart .focused-checkout-footer .copyright-footer { color: #AEB4C2 !important; }
body.woocommerce-cart .focused-checkout-footer a { color: #fff !important; text-decoration: underline !important; text-underline-offset: 3px; }

/* =====================================================================
   7. PHONES: the order bar (the script shows it while the checkout button is out of view)
   ===================================================================== */
body.woocommerce-cart .ed-ct-bar { position: fixed; right: 0; left: 0; bottom: 0; z-index: 985; display: flex; align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .97); box-shadow: 0 -1px 0 var(--ct-line), 0 -10px 30px rgba(17, 19, 24, .10); font-family: var(--ct-b); transform: translateY(110%); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; }
body.woocommerce-cart .ed-ct-bar.is-on { transform: none; visibility: visible; transition: transform .22s ease; }
body.woocommerce-cart .ed-ct-bar__txt { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; }
body.woocommerce-cart .ed-ct-bar__label { font: 600 13px/1.3 var(--ct-b); color: var(--ct-muted); }
body.woocommerce-cart .ed-ct-bar__total { font: 800 20px/1.2 var(--ct-h); color: var(--ct-ink); }
body.woocommerce-cart .ed-ct-bar__btn { flex: none; display: inline-flex !important; align-items: center; gap: 8px; min-height: 50px; margin: 0 !important; padding: 0 20px !important; border-radius: 999px !important; background: var(--ct-red) !important; box-shadow: 0 8px 18px rgba(203, 24, 23, .26) !important; font: 800 16.5px/1 var(--ct-h) !important; color: #fff !important; text-decoration: none !important; }
body.woocommerce-cart .ed-ct-bar__btn::before { content: ""; flex: none; width: 17px; height: 17px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") 50% 50% / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") 50% 50% / contain no-repeat; }
@media (min-width: 850px) { body.woocommerce-cart .ed-ct-bar { display: none !important; } }
/* while the bar shows: the accessibility button steps up, WhatsApp's float steps away (the summary has its WhatsApp line) */
body.woocommerce-cart.ed-ct-bar-on .il-a11y-toolbar { transform: translateY(calc(-72px - env(safe-area-inset-bottom, 0px))); transition: transform .22s ease; }
body.woocommerce-cart.ed-ct-bar-on .joinchat { visibility: hidden !important; pointer-events: none !important; }
body.woocommerce-cart.ed-ct-has-bar .focused-checkout-footer { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); background: var(--ct-ink); }

/* =====================================================================
   8. A MOUSE (never on touch: a tap would leave the hover stuck)
   ===================================================================== */
@media (hover: hover) and (pointer: fine) {
  body.woocommerce-cart .checkout-breadcrumbs > a[href]:not(.current):not(.no-click):hover { color: var(--ct-ink) !important; }
  body.woocommerce-cart tr.cart_item td.product-name > a:hover { color: var(--ct-red-d) !important; }
  body.woocommerce-cart tr.cart_item td.product-remove a.remove:hover { background: var(--ct-red-soft) !important; box-shadow: inset 0 0 0 1px rgba(203, 24, 23, .45); color: var(--ct-red-d) !important; }
  body.woocommerce-cart tr.cart_item .quantity .button.minus:hover, body.woocommerce-cart tr.cart_item .quantity .button.plus:hover { background: var(--ct-paper-2) !important; }
  body.woocommerce-cart .button-continue-shopping:hover { border-color: var(--ct-ink) !important; }
  body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover, body.woocommerce-cart .return-to-shop .button:hover, body.woocommerce-cart .ed-ct-bar__btn:hover { background: var(--ct-red-d) !important; }
  body.woocommerce-cart #shipping_method li:not(.ed-sh--on):not(:has(input:checked)):hover { box-shadow: inset 0 0 0 1.5px var(--ct-ink); }
  body.woocommerce-cart form.ux-cart-coupon button[name="apply_coupon"]:hover { background: var(--ct-graphite) !important; }
  body.woocommerce-cart .ed-ct-empty__cats a:hover { box-shadow: inset 0 0 0 1.5px var(--ct-red), var(--ct-sh); }
  body.woocommerce-cart .ed-ct-coupon-toggle:hover, body.woocommerce-cart .ed-ct-trust a:hover, body.woocommerce-cart .ed-ct-empty__help a:hover { color: var(--ct-red-d) !important; }
}

/* =====================================================================
   9. NARROWER SCREENS
   ===================================================================== */
@media (max-width: 849px) {
  body.woocommerce-cart .cart-header { gap: 10px 16px; }
  body.woocommerce-cart .cart-header #logo img.header_logo { height: 56px !important; }
  body.woocommerce-cart .cart-collaterals { margin-top: 20px; }
  body.woocommerce-cart.ed-ct-has-bar #main { min-height: calc(100vh - 92px); }
}
@media (max-width: 640px) {
  /* the steps: numbers only, the current one keeps its name (the names stay for screen readers) */
  body.woocommerce-cart .cart-header .checkout-breadcrumbs > a:not(.current) { gap: 0; font-size: 0 !important; }
  body.woocommerce-cart .cart-header .checkout-breadcrumbs > .divider, body.woocommerce-cart .cart-header .checkout-breadcrumbs > .divider.hide-for-small { width: 16px; margin: 0 6px !important; }
  body.woocommerce-cart .checkout-breadcrumbs > a::before { width: 30px; height: 30px; font-size: 13px; }
  body.woocommerce-cart .ed-ct-head { margin-top: 18px; }
  body.woocommerce-cart .ed-ct-sub { font-size: 15px; }
  /* the card: the name and its details beside the photo; quantity and the line total underneath */
  body.woocommerce-cart table.shop_table.cart tr.cart_item { grid-template-columns: 84px minmax(0, 1fr) auto; grid-template-areas: "thumb name name" "rm qty sub"; gap: 12px 12px; padding: 16px !important; border-radius: 18px; }
  body.woocommerce-cart tr.cart_item td.product-remove { align-self: center; justify-self: center; }
  body.woocommerce-cart tr.cart_item .ed-ct-imp .wcpa_cart_meta_item { grid-template-columns: minmax(0, 1fr); gap: 0; }
  body.woocommerce-cart tr.cart_item td.product-name > a { font-size: 16.5px !important; }
  body.woocommerce-cart tr.cart_item td.product-subtotal { align-self: center; font-size: 19px; }
  body.woocommerce-cart .ed-ct-tag { right: 16px; }
  body.woocommerce-cart .cart-sidebar.col-inner { padding: 26px 18px 20px !important; }
  body.woocommerce-cart .ed-ct-empty__cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.woocommerce-cart .ed-ct-empty__cats a { font-size: 15.5px; }
}

/* =====================================================================
   10. LESS MOTION (the system setting, or il-a11y's "stop motion")
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  body.woocommerce-cart .ed-ct-bar, body.woocommerce-cart .ed-ct-bar.is-on, body.woocommerce-cart.ed-ct-bar-on .il-a11y-toolbar { transition: none !important; }
}
html.il-a11y-stop-motion body.woocommerce-cart .ed-ct-bar, html.il-a11y-stop-motion body.woocommerce-cart.ed-ct-bar-on .il-a11y-toolbar { transition: none !important; }
