div.woocommerce,
.wp-block-woocommerce-cart {
	margin: 0 auto;
	/* margin-left: 20px !important; */
	max-width: var(--content-width-narrow);
	padding: 0 20px;
}

.wp-block-woocommerce-cart .wc-block-components-sidebar-layout {
	display: block;
}

.wp-block-woocommerce-cart
	.wc-block-components-sidebar-layout
	.wc-block-components-main {
	width: 100%;

	table.wc-block-cart-items {
		tbody tr:nth-child(odd) {
			background-color: var(--lighter-grey-bg);
		}
		tbody tr:nth-child(even) {
			background-color: var(--lighter-grey-bg);
		}
	}
}

.wp-block-woocommerce-cart
	.wc-block-components-sidebar-layout
	.wc-block-components-sidebar {
	padding-left: 0;
}

.wp-block-woocommerce-checkout {
	margin: 0 auto !important;
	max-width: var(--content-width-narrow);
	padding: 0 20px 0 20px;
}

.wp-block-woocommerce-checkout
	.wc-block-components-checkout-place-order-button {
	color: transparent;
	position: relative;
	border-radius: var(--radius);
}

.wp-block-woocommerce-checkout
	.wc-block-components-checkout-place-order-button::after {
	content: "Submit Enquiry";
	color: var(--light-blue);
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	background-color: white;
	border-radius: var(--radius);
	font-weight: bold;
	border: 1px solid var(--dark-blue);
}

.wp-block-woocommerce-checkout
	.wc-block-components-checkout-place-order-button:hover::after {
	background-color: var(--dark-blue);
	color: white;
}

.wp-block-woocommerce-checkout
	.wc-block-components-checkout-place-order-button.wc-block-components-button--loading::after {
	background-color: var(--dark-blue);
	color: white;
	content: "Submitting...";
}

.wc-block-components-sidebar .wc-block-cart__submit {
	/* margin-right: 20px; */
}

.woocommerce-account div.woocommerce:has(form.login) {
	margin: 0 auto 80px auto !important;
	max-width: 400px;
}

form.woocommerce-form-login {
	max-width: 400px;
}

/* Hide price in product row */
.wc-block-components-product-price,
.wc-block-formatted-money-amount,
.wc-block-components-formatted-money-amount,
.wc-block-cart-item__prices {
	display: none !important;
}

/* Hide subtotal and total rows/labels in sidebar */
.wc-block-components-totals-item__label,
.wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item {
	display: none !important;
}

/* Hide "Basket totals" heading */
.wc-block-cart__totals-title {
	display: none !important;
}

.wp-block-woocommerce-cart-order-summary-block {
	display: none !important;
}

/* Optionally, hide coupon form if you don't want it: */
.wp-block-woocommerce-cart-order-summary-coupon-form-block {
	display: none !important;
}

.is-large.wc-block-cart .wc-block-components-sidebar {
	margin-top: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.wc-block-checkout__billing-fields .wc-block-components-checkout-step__heading {
	display: none !important;
}

.wc-block-checkout__billing-fields
	.wc-block-components-checkout-step__description {
	display: none !important;
}

/* Hide Subtotal and Total rows on Thank You page and emails */
.woocommerce-order-received .woocommerce-table--order-details th,
.woocommerce-order-received .woocommerce-table--order-details td {
	/* Hide subtotal and total rows */
}
.woocommerce-order-received .woocommerce-table--order-details tr.order-total,
.woocommerce-order-received .woocommerce-table--order-details tr.cart-subtotal,
.woocommerce-order-received
	.woocommerce-table--order-details
	tr.woocommerce-table__line-item-total,
.woocommerce-order-received .woocommerce-table--order-details tfoot {
	display: none !important;
}

/* Hide Total and Payment Method summary at the top */
.woocommerce-order-overview__total,
.woocommerce-order-overview__payment-method {
	display: none !important;
}

.woocommerce-order-details .woocommerce-customer-details,
.woocommerce-customer-details {
	display: none !important;
}

/* Hide the 'Total' column in WooCommerce My Account > Orders */
.woocommerce-orders-table__header-order-total,
.woocommerce-orders-table__cell-order-total {
	display: none !important;
}

section.wc {
	margin-bottom: 80px;
	.section-inner {
		max-width: var(--content-width-narrow);
	}
	.wc-cols {
		display: flex;
	}

	.col-1 {
		flex: 1;
	}

	.col-2 {
		flex: 3;
	}

	.woocommerce-MyAccount-navigation {
		float: none;
		width: auto;
		margin-bottom: 20px;

		ul {
			padding-left: 15px;
		}
	}

	.woocommerce-MyAccount-content {
		float: none;
		width: auto;
	}

	@media (max-width: 1100px) {
		.wc-cols {
			display: block;
		}
	}
}

.wc-block-cart__submit-button {
	font-weight: bold;
	display: inline-block;
	border: 1px solid var(--dark-blue);
	border-radius: var(--radius);
	padding: 10px 20px;
	transition: all 0.3s ease;

	&:hover {
		background-color: var(--dark-blue);
		color: #fff;
	}
}
