/* Tablet and desktop full-cart columns. Phone-width cart and all mini-cart/checkout pages are unchanged. */
#hc-selectable-cart .hc-cart-column-labels { display: none; }
@media (min-width: 768px) {
 #hc-selectable-cart { --hc-cart-head-tracks:24px 84px; --hc-cart-price-tracks:110px 132px 120px; --hc-cart-copy-min:160px; --hc-cart-delete-track:68px; --hc-desktop-cart-columns:var(--hc-cart-head-tracks) minmax(var(--hc-cart-copy-min),1fr) var(--hc-cart-price-tracks) var(--hc-cart-delete-track); --hc-desktop-cart-gap:12px; }
 #hc-selectable-cart .hc-cart-layout { display: block; }
 #hc-selectable-cart .hc-cart-list-heading { position: relative; border-bottom: 1px solid #e9ebee; }
 #hc-selectable-cart .hc-select-all { position: relative; z-index: 1; min-height: 48px; margin: 0; padding: 0; border: 0; width: 24px; overflow: hidden; white-space: nowrap; font-size: 0; gap: 0; }
 #hc-selectable-cart .hc-select-all > span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }
 #hc-selectable-cart .hc-select-all input { flex: 0 0 20px; }
 #hc-selectable-cart .hc-cart-column-labels { position: absolute; inset: 0; display: grid; grid-template-columns: var(--hc-desktop-cart-columns); column-gap: var(--hc-desktop-cart-gap); align-items: center; color: #777e87; font-size: 12px; font-weight: 400; pointer-events: none; }
 #hc-selectable-cart .hc-cart-column-labels > :first-child { grid-column: 2 / 4; text-align: left; color: #30353b; }
 #hc-selectable-cart .hc-cart-column-labels > :not(:first-child) { text-align: center; }
 #hc-selectable-cart .hc-cart-row.hc-swipe-row { display: grid; grid-template-columns: var(--hc-desktop-cart-columns); column-gap: var(--hc-desktop-cart-gap); align-items: center; padding: 12px 0; overflow: visible; --hc-cart-image-size:84px; }
 /* Keep each real wrapper as a grid box. No nested display:contents/subgrid flattening. */
 #hc-selectable-cart .hc-cart-row-content { display:grid; grid-column:1 / 7; grid-row:1; grid-template-columns:var(--hc-cart-head-tracks) minmax(var(--hc-cart-copy-min),1fr) var(--hc-cart-price-tracks); column-gap:var(--hc-desktop-cart-gap); align-items:center; min-width:0; padding:0; }
 #hc-selectable-cart .hc-cart-details { display:grid; grid-column:3 / 7; grid-row:1; grid-template-columns:minmax(var(--hc-cart-copy-min),1fr) var(--hc-cart-price-tracks); gap:0 var(--hc-desktop-cart-gap); grid-template-rows:auto; align-items:center; min-width:0; height:auto; min-height:0; }
 #hc-selectable-cart .hc-cart-item-bottom { display:grid; grid-column:2 / 5; grid-row:1; grid-template-columns:var(--hc-cart-price-tracks); gap:0 var(--hc-desktop-cart-gap); align-items:center; align-self:center; min-width:0; margin:0; }
 #hc-selectable-cart .hc-cart-prices { display:grid; grid-column:1 / -1; grid-row:1; grid-template-columns:var(--hc-cart-price-tracks); gap:0 var(--hc-desktop-cart-gap); align-items:center; align-self:center; min-width:0; margin:0; }
 #hc-selectable-cart .hc-cart-product-copy { display:block; }
 #hc-selectable-cart .hc-row-check { grid-column: 1; grid-row: 1; align-self: center; }
 #hc-selectable-cart .hc-cart-media { grid-column: 2; grid-row: 1; }
 #hc-selectable-cart .hc-cart-product-copy { grid-column: 1; grid-row: 1; min-width: 0; }
 #hc-selectable-cart .hc-cart-name,
 #hc-selectable-cart.hc-cart-direct-delete .hc-cart-name { min-height: 0; padding-right: 0; font-size: 13px; font-weight: 400; line-height: 19px; }
 #hc-selectable-cart .hc-cart-product-copy .variation { overflow-wrap: anywhere; }
 #hc-selectable-cart .hc-cart-product-copy .hc-variation-editor { margin-top: 4px; }
 #hc-selectable-cart .hc-unit-price { grid-column: 1; grid-row: 1; min-width: 0; min-height: 0; justify-content: center; align-items: baseline; font-size: 14px; font-weight: 400; line-height: 1.4; color: #30353b; text-align: center; }
 #hc-selectable-cart .hc-unit-price small { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }
 #hc-selectable-cart .hc-cart-item-bottom .hc-qty-controls { position:relative; z-index:1; grid-column: 2; grid-row: 1; justify-self: center; margin: 0; grid-template-columns: 30px minmax(36px,max(36px,calc(var(--hc-cart-qty-digits,2) * 1ch + 8px))) 30px; }
 #hc-selectable-cart .hc-cart-item-bottom .hc-qty-controls button[data-qty-step] { width: 30px; min-width: 30px; height: 32px; min-height: 32px; border: 1px solid #e2e5e9; border-radius: 0; background: #fff; font-size: 18px; }
 #hc-selectable-cart .hc-cart-item-bottom .hc-qty-controls .hc-item-qty { height: 32px; min-width: 36px; border-top: 1px solid #e2e5e9; border-bottom: 1px solid #e2e5e9; font-size: 14px!important; }
 #hc-selectable-cart .hc-line-total.screen-reader-text { position: static!important; grid-column: 3; grid-row: 1; width: auto!important; height: auto!important; min-height: 0; margin: 0!important; padding: 0!important; overflow: visible!important; clip: auto!important; clip-path: none!important; white-space: normal!important; color: #005bea; font-size: 14px; font-weight: 500; line-height: 1.4; text-align: center; overflow-wrap: anywhere; }
 #hc-selectable-cart .hc-cart-total-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }
 #hc-selectable-cart.hc-cart-direct-delete .hc-cart-delete-panel { position: static; grid-column: 7; grid-row: 1; width: auto; height: auto; min-height: 44px; background: transparent; }
 #hc-selectable-cart.hc-cart-direct-delete .hc-cart-delete { min-height: 44px; padding: 0; background: transparent; color: #626a74; font-size: 12px; font-weight: 400; }
 #hc-selectable-cart.hc-cart-direct-delete .hc-cart-delete:hover { color: #b52138; }
 #hc-selectable-cart .hc-cart-details > .hc-kept { grid-column: 1; grid-row: 2; margin-top: -4px; }
 #hc-selectable-cart .hc-cart-summary { display: grid; grid-template-columns: minmax(0,1fr) 380px; align-items: start; column-gap: 32px; margin-top: 20px; padding-top: 12px; border-top: 1px solid #e9ebee; }
 #hc-selectable-cart .hc-cart-summary .cart_totals { grid-column: 2; grid-row: 1; }
 #hc-selectable-cart .hc-cart-summary .hc-coupon { grid-column: 1; grid-row: 1; max-width: 340px; margin-top: 0; }
 #hc-selectable-cart .hc-cart-summary .hc-empty-total { grid-column: 2; margin: 0; }
 #hc-selectable-cart .hc-cart-summary > .button { grid-column: 2; }
}

/* Compact tablet canvas retains every desktop column, without horizontal page overflow. */
@media (min-width:768px) and (max-width:1023px) {
 #hc-selectable-cart { --hc-cart-head-tracks:44px 64px; --hc-cart-copy-min:0px; --hc-cart-delete-track:48px; --hc-desktop-cart-gap:8px; }
 #hc-selectable-cart .hc-cart-row.hc-swipe-row { --hc-cart-image-size:64px; }
 #hc-selectable-cart .hc-cart-summary { grid-template-columns:minmax(0,1fr) minmax(280px,45%); column-gap:24px; }
}
/* Tablet widths and large touch/hybrid screens keep full-size touch targets. */
@media (min-width:768px) and (max-width:1199px), (min-width:768px) and (any-pointer:coarse) {
 #hc-selectable-cart .hc-select-all { width:44px; min-width:44px; justify-content:center; }
 #hc-selectable-cart .hc-row-check { min-width:44px; min-height:44px; }
 #hc-selectable-cart .hc-cart-item-bottom .hc-qty-controls { grid-template-columns:44px minmax(44px,1fr) 44px; width:132px; max-width:100%; }
 #hc-selectable-cart .hc-cart-item-bottom .hc-qty-controls button[data-qty-step] { width:44px; min-width:44px; height:44px; min-height:44px; }
 #hc-selectable-cart .hc-cart-item-bottom .hc-qty-controls .hc-item-qty { min-width:44px; height:44px; font-size:16px!important; }
 #hc-selectable-cart.hc-cart-direct-delete .hc-cart-delete { min-width:44px; min-height:44px; }
 #hc-selectable-cart .hc-variation-toggle { min-height:44px; }
 #hc-selectable-cart .hc-cart-summary .checkout-button,
 #hc-selectable-cart .hc-cart-summary #hc-apply-coupon,
 #hc-selectable-cart .hc-cart-summary #hc-coupon-code { min-height:44px; }
}
@media (min-width:1024px) and (max-width:1199px), (min-width:1024px) and (any-pointer:coarse) {
 #hc-selectable-cart { --hc-cart-head-tracks:44px 84px; }
}
/* Match the desktop summary/checkout placement. Existing pending/disabled states remain authoritative. */
@media (min-width:768px) {
 body.woocommerce-cart { padding-bottom:0!important; }
 body.woocommerce-cart #hc-selectable-cart .hc-cart-order-bar { display:none; }
 body.woocommerce-cart #hc-selectable-cart .hc-cart-summary .wc-proceed-to-checkout,
 body.woocommerce-cart #hc-selectable-cart .hc-cart-summary .hc-mobile-selection-cta,
 body.woocommerce-cart #hc-selectable-cart .hc-cart-summary > .button:disabled { display:block!important; }
 #hc-selectable-cart .hc-cart-summary.hc-mobile-selection-pending .hc-mobile-selection-preview { grid-column:2; min-width:0; }
}

@media(min-width:768px) {
 #hc-selectable-cart .hc-cart-row:not(.is-selected) .hc-cart-prices { align-self:center; }
 #hc-selectable-cart .hc-cart-product-copy .hc-cart-price-note { position:static; width:auto; height:auto; overflow:visible; clip:auto; white-space:normal; }
 #hc-selectable-cart .hc-cart-product-copy .variation { max-height:none; overflow:visible; font-size:12px; }
}
