/* Digital Product BD theme 2.30.1 — phone / in-app polish for cart, checkout summary and the empty cart.
   Loaded only on cart & checkout. Everything sits inside max-width:768px (phones and the app), desktop is unchanged. */

/* ---------- Cart: every product is one compact card ---------- */
@media (max-width:768px){
	html body.woocommerce-cart table.shop_table.cart{border:0!important;background:transparent!important;box-shadow:none!important}
	html body.woocommerce-cart table.shop_table.cart thead{display:none!important}
	html body.woocommerce-cart table.shop_table.cart tbody{display:flex!important;flex-direction:column;gap:12px}
	html body.woocommerce-cart table.shop_table.cart tr.cart_item{
		display:grid!important;grid-template-columns:68px minmax(0,1fr) auto;
		grid-template-areas:"thumb name remove" "thumb price price" "qty qty sub";
		column-gap:12px;row-gap:6px;align-items:center;
		padding:14px!important;margin:0!important;background:#fff;border:1px solid var(--dpbd-line,#e4e7ec)!important;border-radius:18px;
		box-shadow:0 6px 20px -14px rgba(40,10,70,.35)
	}
	html body.woocommerce-cart table.shop_table.cart tr.cart_item td{display:block!important;padding:0!important;border:0!important;background:none!important;text-align:left!important;min-width:0}
	html body.woocommerce-cart table.shop_table.cart tr.cart_item td::before{display:none!important;content:none!important}
	html body.woocommerce-cart tr.cart_item td.product-thumbnail{grid-area:thumb;align-self:start}
	html body.woocommerce-cart tr.cart_item td.product-thumbnail img{width:68px!important;height:68px!important;max-width:none!important;object-fit:cover;border-radius:14px;display:block}
	html body.woocommerce-cart tr.cart_item td.product-name{grid-area:name;font-size:15px;font-weight:700;line-height:1.35}
	html body.woocommerce-cart tr.cart_item td.product-name a{color:var(--dpbd-ink,#14161c);text-decoration:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
	html body.woocommerce-cart tr.cart_item td.product-name dl.variation{margin:4px 0 0;font-size:12px;font-weight:500;color:var(--dpbd-ink-soft,#4b4f5b)}
	html body.woocommerce-cart tr.cart_item td.product-price{grid-area:price;font-size:13px;color:var(--dpbd-ink-soft,#4b4f5b)}
	html body.woocommerce-cart tr.cart_item td.product-remove{grid-area:remove;justify-self:end;align-self:start}
	html body.woocommerce-cart tr.cart_item td.product-remove a.remove{width:30px;height:30px;line-height:28px;font-size:20px;border-radius:50%;background:#fdeceb!important;color:#d63638!important;display:grid;place-items:center}
	html body.woocommerce-cart tr.cart_item td.product-quantity{grid-area:qty;padding-top:8px!important;border-top:1px dashed var(--dpbd-line,#e4e7ec)!important}
	html body.woocommerce-cart tr.cart_item td.product-quantity .quantity{margin:0!important}
	html body.woocommerce-cart tr.cart_item td.product-subtotal{grid-area:sub;justify-self:end;padding-top:8px!important;border-top:1px dashed var(--dpbd-line,#e4e7ec)!important;font-size:16px;font-weight:800;color:var(--dpbd-ink,#14161c)}
	html body.woocommerce-cart table.shop_table.cart tr:not(.cart_item){display:block!important;background:transparent!important}
	html body.woocommerce-cart table.shop_table.cart tr:not(.cart_item) td{display:block!important;border:0!important;padding:4px 0!important;background:transparent!important}
	html body.woocommerce-cart table.shop_table.cart tr:not(.cart_item) td::before{display:none!important}
	html body.woocommerce-cart .cart-collaterals .cart_totals{width:100%!important;float:none!important;margin-top:14px;padding:18px!important;border-radius:18px;background:#fff;border:1px solid var(--dpbd-line,#e4e7ec)}
	html body.woocommerce-cart .cart_totals h2{font-size:17px!important;margin:0 0 8px!important}
	html body.woocommerce-cart .cart_totals table.shop_table{border:0!important;margin:0 0 12px!important}
	html body.woocommerce-cart .cart_totals table.shop_table tr{display:flex!important;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid var(--dpbd-line,#e4e7ec)}
	html body.woocommerce-cart .cart_totals table.shop_table tr:last-child{border-bottom:0}
	html body.woocommerce-cart .cart_totals table.shop_table th,html body.woocommerce-cart .cart_totals table.shop_table td{display:block!important;border:0!important;padding:0!important;background:none!important;text-align:right}
	html body.woocommerce-cart .cart_totals table.shop_table th{text-align:left;font-weight:600;color:var(--dpbd-ink-soft,#4b4f5b)}
	html body.woocommerce-cart .cart_totals table.shop_table td::before{display:none!important}
	html body.woocommerce-cart .cart_totals tr.order-total td{font-size:20px;font-weight:800}
	html body.woocommerce-cart .wc-proceed-to-checkout{padding:0!important}
	html body.woocommerce-cart .wc-proceed-to-checkout .checkout-button{display:flex!important;width:100%;min-height:52px;align-items:center;justify-content:center;border-radius:16px!important;font-size:16px!important;font-weight:800!important;margin:0!important}

	/* ---------- Checkout: order summary rows line up ---------- */
	html body.woocommerce-checkout .woocommerce-checkout-review-order-table tr.cart_item td.product-name{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
	html body.woocommerce-checkout .woocommerce-checkout-review-order-table tr.cart_item td.product-name .dpbd-co__item{flex:1 1 auto;min-width:0}
	html body.woocommerce-checkout .woocommerce-checkout-review-order-table tr.cart_item td.product-name .product-quantity{flex:0 0 auto;font-size:12px;font-weight:700;color:var(--dpbd-ink-soft,#4b4f5b);background:#f3f1f7;border-radius:999px;padding:2px 8px;white-space:nowrap}
	html body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th{text-align:left!important}
	html body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td{text-align:right!important}
}

/* ---------- App only: app colours for the main buttons ---------- */
html.in-dp-app body.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
html.in-dp-app .dpbd-cart-empty .dpbd-btn:not(.dpbd-btn--ghost){background:linear-gradient(135deg,#8e2a86 0%,#5b2bd8 100%)!important;border-color:transparent!important;color:#fff!important;box-shadow:0 10px 22px -12px rgba(91,43,216,.8)}
html.in-dp-app body.woocommerce-cart,html.in-dp-app body.woocommerce-checkout{background:#f7f3fb}
html.in-dp-app.dp-dark body.woocommerce-cart table.shop_table.cart tr.cart_item,
html.in-dp-app.dp-dark body.woocommerce-cart .cart-collaterals .cart_totals,
html.in-dp-app.dp-dark .dpbd-cart-empty,html.in-dp-app.dp-dark .dpbd-pop__item{background:#1a1424!important;border-color:#2c2340!important;color:#ece6f6}
html.in-dp-app.dp-dark body.woocommerce-cart,html.in-dp-app.dp-dark body.woocommerce-checkout{background:#110d18}
