body.mpc-cart-enhanced .woocommerce-cart-form .update-cart-button,
body.mpc-cart-enhanced .woocommerce-cart-form button[name="update_cart"],
body.mpc-cart-enhanced .woocommerce-cart-form th.product-remove,
body.mpc-cart-enhanced .woocommerce-cart-form td.product-remove {
	display: none !important;
}

:is(#page, body.mpc-theme-astra) .woocommerce-cart-form th.product-quantity,
:is(#page, body.mpc-theme-astra) .woocommerce-cart-form td.product-quantity {
	text-align: center !important;
}

:is(#page, body.mpc-theme-astra) .woocommerce-cart-form th.product-quantity {
	padding-right: 10px !important;
}

.woocommerce-cart-form .mpc-cart-qty {
	display: inline-grid;
	grid-template-columns: 38px 44px 38px;
	width: max-content;
	height: 38px;
	border: 1px solid #dedede;
	background: #fff;
	box-sizing: content-box;
}

:is(#page, body.mpc-theme-astra) .woocommerce-cart-form .mpc-cart-qty button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	min-width: 38px;
	height: 38px;
	min-height: 38px;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #fff !important;
	box-shadow: none !important;
	color: #777 !important;
	cursor: pointer;
}

:is(#page, body.mpc-theme-astra) .woocommerce-cart-form .mpc-cart-qty button:hover {
	background: #f5f5f5 !important;
}

.mpc-cart-qty button:focus-visible,
.mpc-cart-qty__input:focus-visible {
	position: relative;
	z-index: 1;
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

.mpc-cart-qty button span {
	display: block;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}

.mpc-cart-qty__delete-icon {
	-webkit-mask-image: url("icons/delete.svg");
	mask-image: url("icons/delete.svg");
}

.mpc-cart-qty__remove-icon {
	-webkit-mask-image: url("icons/remove.svg");
	mask-image: url("icons/remove.svg");
}

.mpc-cart-qty__add-icon {
	-webkit-mask-image: url("icons/add.svg");
	mask-image: url("icons/add.svg");
}

.mpc-cart-qty:not(.is-single) .mpc-cart-qty__delete-icon,
.mpc-cart-qty.is-single .mpc-cart-qty__remove-icon {
	display: none;
}

:is(#page, body.mpc-theme-astra) .woocommerce-cart-form .mpc-cart-qty__input {
	display: block;
	width: 44px !important;
	min-width: 0;
	height: 38px !important;
	min-height: 38px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-right: 1px solid #dedede !important;
	border-left: 1px solid #dedede !important;
	border-radius: 0 !important;
	background: #fff !important;
	box-shadow: none !important;
	color: #666 !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 38px !important;
	text-align: center;
	appearance: none;
}

/* The classic cart uses the same four-column composition as the former theme.
   The template keeps WooCommerce's nonce, hooks and hidden update control. */
@media (min-width: 922px) {
	body.mpc-theme-astra.woocommerce-cart .mpc-cart-layout {
		display: grid;
		grid-template-columns: minmax(0, 45%) minmax(0, 50%);
		gap: 5%;
		align-items: start;
	}
	body.mpc-theme-astra.woocommerce-cart .mpc-cart-layout > .woocommerce-cart-form,
	body.mpc-theme-astra.woocommerce-cart .mpc-cart-layout > .cart-collaterals {
		float: none;
		width: 100%;
		min-width: 0;
		margin: 0;
	}
}

body.mpc-theme-astra.woocommerce-cart .mpc-cart-form table.shop_table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	border-radius: 0;
	background: transparent;
}
body.mpc-theme-astra.woocommerce-cart .mpc-cart-form thead,
body.mpc-theme-astra.woocommerce-cart .mpc-cart-form thead tr,
body.mpc-theme-astra.woocommerce-cart .mpc-cart-form thead th {
	background: transparent !important;
}
body.mpc-theme-astra.woocommerce-cart .mpc-cart-form tr {
	border-bottom: 1px solid #ddd;
}
body.mpc-theme-astra.woocommerce-cart .mpc-cart-form th,
body.mpc-theme-astra.woocommerce-cart .mpc-cart-form td {
	border: 0;
	background: transparent;
}
body.mpc-theme-astra.woocommerce-cart .mpc-cart-form thead th {
	padding: 0 8px 10px 0;
	color: #aaa;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	text-align: left;
	text-transform: none;
}
body.mpc-theme-astra.woocommerce-cart .mpc-cart-form thead .product-remove {
	display: none;
}
body.mpc-theme-astra.woocommerce-cart .mpc-cart-form :is(th,td).product-name {width: 42%;}
body.mpc-theme-astra.woocommerce-cart .mpc-cart-form :is(th,td).product-price {width: 16%;text-align: center!important;}
body.mpc-theme-astra.woocommerce-cart .mpc-cart-form :is(th,td).product-quantity {width: 26%;text-align: center!important;}
body.mpc-theme-astra.woocommerce-cart .mpc-cart-form :is(th,td).product-subtotal {width: 16%;padding-right: 0;text-align: right;}
body.mpc-theme-astra.woocommerce-cart .mpc-cart-form tbody td {
	padding: 38px 8px 38px 0;
	vertical-align: middle;
}
body.mpc-theme-astra.woocommerce-cart .mpc-cart-form .mpc-cart-product {
	display: flex;
	align-items: center;
	gap: 10px;
}
body.mpc-theme-astra.woocommerce-cart .mpc-cart-form .product-thumbnail {
	flex: 0 0 70px;
	width: 70px;
	line-height: 0;
}
body.mpc-theme-astra.woocommerce-cart .mpc-cart-form .product-thumbnail img {
	display: block;
	width: 70px;
	height: auto;
	max-width: 100%;
}
body.mpc-theme-astra.woocommerce-cart .mpc-cart-form .mpc-cart-product__name {min-width: 0;line-height: 1.5;}
body.mpc-theme-astra.woocommerce-cart .mpc-cart-form .product-name a {color: #333!important;text-decoration: none;}
body.mpc-theme-astra.woocommerce-cart .mpc-cart-form .product-name a:hover {color: #d73b37!important;}
body.mpc-cart-enhanced.mpc-theme-astra.woocommerce-cart .mpc-cart-form tr:has(>td.actions):not(:has(.coupon)) {display: none;}

body.mpc-theme-astra.woocommerce-cart .cart-collaterals {
	box-sizing: border-box;
	padding: 30px;
	background: rgba(91, 91, 91, .08);
}
body.mpc-theme-astra.woocommerce-cart .cart-collaterals .cart_totals {
	position: relative;
	float: none;
	width: 100%;
	margin: 0!important;
	padding: 0!important;
	border: 0!important;
	background: transparent!important;
	box-shadow: none!important;
}
body.mpc-theme-astra.woocommerce-cart .cart_totals > div[style*="float:right"] {
	position: absolute;
	top: 0;
	right: 0;
	float: none!important;
	margin: 0;
	background: transparent;
}
body.mpc-theme-astra.woocommerce-cart .cart_totals h2 {
	min-height: 0;
	margin: 0!important;
	padding: 0 100px 12px 0!important;
	border: 0!important;
	border-bottom: 1px solid #ddd!important;
	background: transparent!important;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.5;
}
body.mpc-theme-astra.woocommerce-cart .cart_totals table.shop_table,
body.mpc-theme-astra.woocommerce-cart .cart_totals table.shop_table :is(tbody,tr,th,td) {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}
body.mpc-theme-astra.woocommerce-cart .cart_totals table.shop_table {margin: 0 0 7px;}
body.mpc-theme-astra.woocommerce-cart .cart_totals table.shop_table tr {padding: 10px 0;border-top: 1px solid #ddd;}
body.mpc-theme-astra.woocommerce-cart .cart_totals table.shop_table tr:first-child {border-top: 0!important;}
body.mpc-theme-astra.woocommerce-cart .cart_totals table.shop_table th {color: #aaa;font-weight: 400;text-align: left;}
body.mpc-theme-astra.woocommerce-cart .cart_totals table.shop_table td {color: #333;font-weight: 600;text-align: left;}
body.mpc-theme-astra.woocommerce-cart .cart_totals .order-total .amount {font-weight: 700;}
body.mpc-theme-astra.woocommerce-cart .cart_totals table.shop_table td::before {display: none;}
body.mpc-theme-astra.woocommerce-cart .cart_totals .wc-proceed-to-checkout {padding: 0;}
body.mpc-theme-astra.woocommerce-cart .cart_totals .checkout-button {
	display: block;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 10px 18px;
	border-radius: 100px;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.3;
}

/* Use exactly the same currency dimensions as both product cards. */
body.mpc-theme-astra.woocommerce-cart .cart_totals .woocommerce-multi-currency.wmc-shortcode.plain-vertical,
body.mpc-theme-astra.woocommerce-cart .cart_totals .wmc-currency-wrapper {width: auto!important;max-width: none!important;}
body.mpc-theme-astra.woocommerce-cart .cart_totals .woocommerce-multi-currency.wmc-shortcode.plain-vertical {margin: 0;font-size: 14px;}
body.mpc-theme-astra.woocommerce-cart .cart_totals .woocommerce-multi-currency.wmc-shortcode.plain-vertical .wmc-currency-wrapper span.wmc-current-currency {
	box-sizing: content-box;
	width: calc(100% + 2px)!important;
	max-width: none!important;
	align-items: center;
	justify-content: flex-start;
	padding: 0 5px!important;
	background: transparent!important;
}
body.mpc-theme-astra.woocommerce-cart .cart_totals .wmc-current-flag,
body.mpc-theme-astra.woocommerce-cart .cart_totals .wmc-sub-currency .vi-flag-64,
body.mpc-theme-astra.woocommerce-cart .cart_totals .wmc-current-currency-code {flex: none;}
body.mpc-theme-astra.woocommerce-cart .cart_totals .wmc-sub-currency {box-sizing: content-box;width: calc(100% + 2px)!important;min-width: 0;}
body.mpc-theme-astra.woocommerce-cart .cart_totals .wmc-sub-currency .wmc-currency {padding: 0 5px!important;}
body.mpc-theme-astra.woocommerce-cart .cart_totals .wmc-sub-currency .wmc-currency a {justify-content: flex-start;gap: 0;}
body.mpc-theme-astra.woocommerce-cart .cart_totals .wmc-sub-currency-code {padding: 0 5px!important;}

@media (max-width: 921px) {
	body.mpc-theme-astra.woocommerce-cart .cart-collaterals {margin-top: 25px;}
	body.mpc-theme-astra.woocommerce-cart .mpc-cart-form table.shop_table,
	body.mpc-theme-astra.woocommerce-cart .mpc-cart-form table.shop_table tbody {display: block;width: 100%;}
	body.mpc-theme-astra.woocommerce-cart .mpc-cart-form thead {display: none;}
	body.mpc-theme-astra.woocommerce-cart .mpc-cart-form tr.cart_item {
		display: flex;
		flex-direction: column;
		align-items: center;
		width: 100%;
		padding: 24px 0;
	}
	body.mpc-theme-astra.woocommerce-cart .mpc-cart-form tr.cart_item td {
		box-sizing: border-box;
		display: flex;
		justify-content: center;
		width: 100%!important;
		padding: 7px 0!important;
		text-align: center!important;
	}
	body.mpc-theme-astra.woocommerce-cart .mpc-cart-form tr.cart_item td::before {display: none!important;}
	body.mpc-theme-astra.woocommerce-cart .mpc-cart-form tr.cart_item td.product-remove,
	body.mpc-theme-astra.woocommerce-cart .mpc-cart-form tr.cart_item td.product-price {display: none!important;}
	body.mpc-theme-astra.woocommerce-cart .mpc-cart-form .mpc-cart-product {
		flex-direction: column;
		align-items: center;
		gap: 10px;
	}
	body.mpc-theme-astra.woocommerce-cart .mpc-cart-form .mpc-cart-product__name {max-width: 100%;}
	body.mpc-theme-astra.woocommerce-cart .mpc-cart-form .product-thumbnail {width: 90px;flex-basis: auto;}
	body.mpc-theme-astra.woocommerce-cart .mpc-cart-form .product-thumbnail img {width: 90px;}
}
