/* ===== Cart: remove button, auto-update feedback ===== */
body.woocommerce-cart .shop_table.cart td.product-remove a.remove {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	border: 1px solid transparent;
	background: transparent;
	color: transparent !important;
	font-size: 0 !important;
	position: relative;
	transition: background-color .15s, border-color .15s;
}
body.woocommerce-cart .shop_table.cart td.product-remove a.remove::before {
	content: "";
	width: 20px;
	height: 20px;
	background: #9aa3b8;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg 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'><path d='M3 6h18M8 6V4h8v2M19 6l-1 14H6L5 6M10 11v6M14 11v6'/></svg>") center/contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg 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'><path d='M3 6h18M8 6V4h8v2M19 6l-1 14H6L5 6M10 11v6M14 11v6'/></svg>") center/contain no-repeat;
}
body.woocommerce-cart .shop_table.cart td.product-remove a.remove:hover { background: rgba(229, 72, 77, .12); border-color: rgba(229, 72, 77, .45); }
body.woocommerce-cart .shop_table.cart td.product-remove a.remove:hover::before { background: #ff6b6b; }

/* Auto-update replaces the manual button. */
body.woocommerce-cart .cart-actions button[name="update_cart"] { display: none !important; }

/* Loading feedback while the cart refreshes */
body.woocommerce-cart .woocommerce-cart-form.lona-updating .shop_table { opacity: .55; pointer-events: none; transition: opacity .15s; }
body.woocommerce-cart .woocommerce-cart-form.lona-updating .quantity { position: relative; }
body.woocommerce-cart .woocommerce-cart-form.lona-updating .quantity::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 20px;
	height: 20px;
	border: 2px solid rgba(255, 255, 255, .25);
	border-top-color: var(--lona-accent);
	border-radius: 50%;
	animation: lona-spin .7s linear infinite;
}
@keyframes lona-spin { to { transform: rotate(360deg); } }

/* ===== Cross-sells ("دیگران خریده‌اند"): same dark card as the shop loop (bg #141414, radius 25px, same shadow) ===== */
body.woocommerce-cart .wd-products-with-bg,
body.woocommerce-cart .wd-products-with-bg .wd-product { --wd-prod-bg: #141414; }
body.woocommerce-cart .wd-products-with-bg:not(.products-bordered-grid) .product-wrapper {
	background-color: #141414;
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 25px;
	box-shadow: 0 6px 22px 0 rgba(0, 0, 0, .4);
}
body.woocommerce-cart .wd-products-with-bg .wd-carousel-wrap { padding-block: 8px 22px; }

/* ===== Desktop table ===== */
@media (min-width: 769px) {
	body.woocommerce-cart .shop_table.cart td { vertical-align: middle; }
	body.woocommerce-cart .shop_table.cart td.product-quantity { width: 170px; }
}

/* ===== Mobile: each line is a clean card ===== */
@media (max-width: 768px) {
	body.woocommerce-cart .shop_table.cart .quantity { width: 100%; max-width: 160px; }
}
