/**
 * WESHIPAC cart totals, provider-message and icon alignment repair — 0.9.42.
 * Keeps WooCommerce totals markup and values authoritative while ensuring
 * each price row uses the complete summary-card content width.
 */

body.woocommerce-cart .cart_totals table.shop_table {
	display: table !important;
	width: 100% !important;
	min-width: 100% !important;
	max-width: 100% !important;
	table-layout: fixed;
	border-collapse: separate;
	border-spacing: 0;
	box-sizing: border-box;
}

body.woocommerce-cart .cart_totals table.shop_table > tbody {
	display: table-row-group !important;
	width: 100% !important;
}

body.woocommerce-cart .cart_totals table.shop_table > tbody > tr {
	display: table-row !important;
	width: 100% !important;
}

body.woocommerce-cart .cart_totals table.shop_table > tbody > tr > th,
body.woocommerce-cart .cart_totals table.shop_table > tbody > tr > td {
	display: table-cell !important;
	box-sizing: border-box;
	vertical-align: middle;
}

body.woocommerce-cart .cart_totals table.shop_table > tbody > tr > th {
	width: 52% !important;
	text-align: left !important;
}

body.woocommerce-cart .cart_totals table.shop_table > tbody > tr > td {
	width: 48% !important;
	text-align: right !important;
}

body.woocommerce-cart .cart_totals table.shop_table > tbody > tr > td::before {
	display: none !important;
	content: none !important;
}

body.woocommerce-cart .cart_totals table.shop_table .woocommerce-Price-amount,
body.woocommerce-cart .cart_totals table.shop_table .amount {
	white-space: nowrap;
}

/* Keep provider financing compact and remove the old table-to-card dead gap. */
body.woocommerce-cart .cart_totals table.shop_table {
	margin-bottom: 10px !important;
}

body.woocommerce-cart .wsp-cart-financing.is-ready {
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	margin: 0 !important;
}

body.woocommerce-cart .wsp-cart-financing-mount,
body.woocommerce-cart .wsp-cart-financing-mount iframe {
	min-width: 0;
	max-width: 100%;
}

/*
 * Keep the assurance artwork optically centred inside its circular frame.
 * Explicit flex centring removes inline-SVG baseline drift and wins over the
 * older desktop/mobile cart layers without changing the three-column layout.
 */
body.woocommerce-cart .wsp-cart-assurance > .wsp-commerce-assurance-icon {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	justify-self: center;
	box-sizing: border-box;
	padding: 0 !important;
	line-height: 0 !important;
	text-align: center;
}

body.woocommerce-cart .wsp-cart-assurance > .wsp-commerce-assurance-icon > svg.aos-icon {
	display: block !important;
	flex: 0 0 auto;
	margin: 0 !important;
	vertical-align: middle;
	transform: none !important;
}

@media (max-width: 620px) {
	body.woocommerce-cart .wsp-cart-assurance > .wsp-commerce-assurance-icon {
		transform: translateX(-18px);
	}

	body.woocommerce-cart table.shop_table.cart tbody tr.cart_item .product-remove {
		top: 4px;
		right: 4px;
		display: flex;
		align-items: flex-start;
		justify-content: flex-end;
		width: 34px;
		height: 34px;
	}

	body.woocommerce-cart table.shop_table.cart tbody tr.cart_item .product-remove a.remove {
		display: grid;
		width: 30px;
		height: 30px;
		place-items: center;
		font-size: 18px;
		line-height: 1;
	}
}
