/* Cart-only layout; shared Woo notices load separately before this file. */
body.woocommerce-cart .woocommerce .cart_totals table.shop_table{width:100%;margin:16px 0 0;border:0;border-collapse:collapse;border-radius:0;background:transparent;box-shadow:none}
body.woocommerce-cart .woocommerce .cart_totals table.shop_table th{width:45%;font-weight:500;color:var(--dg-muted)}
body.woocommerce-cart .woocommerce .cart_totals table.shop_table :is(th,td){padding:12px 0;vertical-align:top}
body.woocommerce-cart .woocommerce .cart_totals table.shop_table td{text-align:right}
/* Totals remain a two-column summary, not Woo's <=768px stacked data table. */
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table{display:table;table-layout:fixed}
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tbody{display:table-row-group}
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr{display:table-row}
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table :is(th,td){display:table-cell;width:auto}
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table th{width:45%;text-align:left}
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table td::before{display:none}
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr:nth-child(2n) :is(th,td){background:transparent}
body.woocommerce-cart .woocommerce .cart_totals table.shop_table .order-total :is(th,td){padding-top:16px;color:var(--dg-ink);font-weight:600}
body.woocommerce-cart .woocommerce .cart_totals .wc-proceed-to-checkout{padding:20px 0 0}
body.woocommerce-cart .woocommerce .cart_totals .wc-proceed-to-checkout a{display:flex;justify-content:center;align-items:center;width:100%;box-sizing:border-box}
body.woocommerce-cart .woocommerce .woocommerce-cart-form table.cart a.remove{color:var(--dg-muted)!important;background:#faf9ff;border:1px solid var(--dg-border);font-weight:400}
body.woocommerce-cart .woocommerce .woocommerce-cart-form table.cart a.remove:hover{color:#b42318!important;background:#fff1f0;border-color:#f5c7c2}
body.woocommerce-cart .woocommerce .woocommerce-cart-form table.cart dl.variation{color:var(--dg-muted);font-size:12px;line-height:1.5}
body.woocommerce-cart .woocommerce .woocommerce-cart-form table.cart dl.variation :is(dt,dd){overflow-wrap:anywhere}
body.woocommerce-cart .woocommerce .woocommerce-cart-form table.cart dl.variation dt{font-weight:500}
/* Keep Woo's table/form/remove selectors for native AJAX, presented as React-style cards. */
body.woocommerce-cart .woocommerce .dg-cart-continue{margin:0 0 20px;font-size:14px;font-weight:500}
body.woocommerce-cart .woocommerce .dg-cart-continue a{color:var(--dg-primary);text-decoration:none}
body.woocommerce-cart .woocommerce .dg-cart-cards table.cart{display:block;width:100%;margin:0;border:0;background:transparent;box-shadow:none}
body.woocommerce-cart .woocommerce .dg-cart-cards table.cart thead,
body.woocommerce-cart .woocommerce .dg-cart-cards table.cart td.product-price{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap!important}
body.woocommerce-cart .woocommerce .dg-cart-cards table.cart tbody{display:block;width:100%}
body.woocommerce-cart .woocommerce .dg-cart-cards table.cart tr.cart_item{position:relative;display:grid;grid-template-columns:56px max-content minmax(0,1fr) max-content;grid-template-rows:auto auto;gap:12px 16px;margin:0 0 12px;padding:16px;border:1px solid var(--dg-border);border-radius:16px;background:#fff;box-shadow:var(--dg-customer-shadow)}
body.woocommerce-cart .woocommerce .dg-cart-cards table.cart tr.cart_item td{display:block;min-width:0;width:auto;padding:0;border:0;background:transparent;text-align:left;white-space:normal}
body.woocommerce-cart .woocommerce .dg-cart-cards table.cart tr.cart_item td::before{display:none}
body.woocommerce-cart .woocommerce .dg-cart-cards table.cart td.product-thumbnail{grid-column:1;grid-row:1 / 3;align-self:start}
body.woocommerce-cart .woocommerce .dg-cart-cards table.cart td.product-thumbnail :is(img,.dg-cart-artwork){display:block;width:56px;height:56px;max-width:56px;border-radius:12px;object-fit:contain;overflow:hidden}
body.woocommerce-cart .woocommerce .dg-cart-cards table.cart td.product-name{grid-column:2 / 4;grid-row:1;line-height:1.5}
body.woocommerce-cart .woocommerce .dg-cart-cards table.cart td.product-name>a{font-size:16px;font-weight:600;text-decoration:none}
body.woocommerce-cart .woocommerce .dg-cart-cards table.cart td.product-subtotal{grid-column:4;grid-row:1 / 3;align-self:start;justify-self:end;font-size:16px;font-weight:600;color:var(--dg-primary);text-align:right;font-variant-numeric:tabular-nums}
body.woocommerce-cart .woocommerce .dg-cart-cards table.cart td.product-quantity{grid-column:2;grid-row:2;align-self:center;display:flex;align-items:center;gap:8px}
body.woocommerce-cart .woocommerce .dg-cart-cards table.cart td.product-remove{grid-column:3;grid-row:2;align-self:center}
body.woocommerce-cart .woocommerce .dg-cart-cards table.cart a.remove{display:inline-flex;align-items:center;justify-content:center;gap:5px;width:auto;height:auto;min-height:44px;min-width:44px;padding:0 4px;border:0;border-radius:8px;background:transparent;font-family:inherit;font-size:12px;line-height:1.4;font-weight:400;white-space:nowrap;text-decoration:none}
body.woocommerce-cart .woocommerce .dg-cart-cards table.cart a.remove>span{font-size:20px}
body.woocommerce-cart .woocommerce .dg-cart-cards .quantity .qty{width:72px;min-height:44px;padding:8px 10px;border-radius:999px;text-align:center}
body.woocommerce-cart .woocommerce .dg-cart-cards .dg-cart-single{display:inline-block;padding:7px 12px;border-radius:999px;background:#f3edff;color:var(--dg-primary);font-size:12px;font-weight:500}
body.woocommerce-cart .woocommerce .dg-cart-cards .dg-cart-catalog-meta{display:flex;flex-wrap:wrap;gap:3px 8px;margin:4px 0 0;color:var(--dg-muted);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
body.woocommerce-cart .woocommerce .dg-cart-cards .dg-cart-catalog-meta>span+span::before{content:"·";margin-right:8px}
body.woocommerce-cart .woocommerce .dg-cart-cards dl.variation{margin:4px 0 0;font-size:12px}
body.woocommerce-cart .woocommerce .dg-cart-cards dl.variation :is(dt,dd){margin-bottom:2px}
body.woocommerce-cart .woocommerce .dg-cart-cards dl.variation dd p{margin:0}
body.woocommerce-cart .woocommerce .dg-cart-cards table.cart tr:not(.cart_item){display:block}
body.woocommerce-cart .woocommerce .dg-cart-cards table.cart td.actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;width:100%;box-sizing:border-box;padding:16px;border:1px solid var(--dg-border);border-radius:16px;background:#fff}
body.woocommerce-cart .woocommerce .dg-cart-cards table.cart td.actions .coupon{float:none;display:flex;flex:1 1 280px;flex-wrap:wrap;gap:8px;padding:0;margin:0}
body.woocommerce-cart .woocommerce .dg-cart-cards table.cart td.actions .coupon input.input-text{flex:1 1 120px;min-width:0;width:auto;margin:0}
body.woocommerce-cart .woocommerce .dg-cart-cards table.cart td.actions .coupon .button{float:none;width:auto;margin:0}
body.woocommerce-cart .woocommerce .dg-cart-cards table.cart td.actions>button{float:none;margin:0}
/* Woo responsive table cells use right!important; neutralize only owned cards. */
@media(max-width:768px){
 body.woocommerce-cart .woocommerce .dg-cart-cards table.cart tr.cart_item td{text-align:left!important}
 body.woocommerce-cart .woocommerce .dg-cart-cards table.cart tr.cart_item td.product-subtotal{text-align:right!important}
}
@media(max-width:600px){
 /* Stack semantic delivery labels/values; keep the full product-text width. */
 body.woocommerce-cart .woocommerce .dg-cart-cards table.cart td.product-name dl.variation{display:grid;grid-template-columns:minmax(0,1fr);width:100%;min-width:0;text-align:left}
 body.woocommerce-cart .woocommerce .dg-cart-cards table.cart td.product-name dl.variation :is(dt,dd){display:block;float:none;clear:none;width:100%;min-width:0;margin:0 0 3px;padding:0;white-space:normal;overflow-wrap:anywhere;text-align:left}
 body.woocommerce-cart .woocommerce .dg-cart-cards table.cart td.product-name dl.variation dd p{max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:left}
 body.woocommerce-cart .woocommerce .dg-cart-cards table.cart tr.cart_item{grid-template-columns:56px minmax(0,1fr) auto;gap:10px 12px}
 body.woocommerce-cart .woocommerce .dg-cart-cards table.cart td.product-thumbnail{grid-row:1}
 body.woocommerce-cart .woocommerce .dg-cart-cards table.cart td.product-name{grid-column:2 / 4}
 body.woocommerce-cart .woocommerce .dg-cart-cards table.cart td.product-quantity{grid-column:1 / 3;grid-row:2}
 body.woocommerce-cart .woocommerce .dg-cart-cards table.cart td.product-remove{grid-column:3;grid-row:2;justify-self:end}
 body.woocommerce-cart .woocommerce .dg-cart-cards table.cart td.product-subtotal{grid-column:1 / -1;grid-row:3}
 body.woocommerce-cart .woocommerce .dg-cart-cards table.cart td.actions>button{width:100%}
}
