/* Cart + checkout layout for the plain Astra templates (customer view). */

/* Centre the content column (it was stuck to the left edge). */
body.woocommerce-checkout #content .ast-container,
body.woocommerce-cart #content .ast-container {
	display: block;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding: 24px 20px 40px;
}

/* Floated columns must be contained, or the footer strip slides up behind them. */
.woocommerce-checkout form.checkout,
.woocommerce-cart .woocommerce {
	display: flow-root;
}

.woocommerce-checkout form.checkout_coupon {
	width: 100%;
}

/* Readable form fields. */
.woocommerce-checkout .woocommerce-input-wrapper {
	display: block;
	width: 100%;
}

.woocommerce-checkout form .form-row label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	color: #111;
}

.woocommerce-checkout form .form-row input.input-text,
.woocommerce-checkout form .form-row textarea,
.woocommerce-checkout form .form-row select {
	width: 100%;
	padding: 10px 12px;
	font-size: 15px;
	color: #111;
	background: #fff;
	border: 1px solid #c3c9bd;
	border-radius: 4px;
}

/* Order panel: neutral instead of bright yellow (!important beats Astra's customizer rule). */
.woocommerce-checkout form #order_review,
.woocommerce-checkout .ast-mobile-order-review-wrap {
	background-color: #f6f7f3 !important;
	color: #111 !important;
	border-color: #d5dacf !important;
}

.woocommerce-checkout form #order_review_heading {
	background-color: #f6f7f3 !important;
	color: #111 !important;
	border-color: #d5dacf !important;
}

.woocommerce-checkout #payment div.payment_box,
.woocommerce-page.woocommerce-checkout #payment div.payment_box {
	background-color: #e8f1e1;
	color: #111;
}

.woocommerce-page.woocommerce-checkout #payment div.payment_box::before {
	border-bottom-color: #e8f1e1;
}

.woocommerce-checkout #payment ul.payment_methods {
	list-style: none;
	margin: 0 0 1em;
	padding: 0;
}

.woocommerce-checkout #order_review table.shop_table {
	width: 100%;
}

/* Stack the two columns on tablets and phones. */
@media (max-width: 921px) {
	.woocommerce.woocommerce-checkout form #customer_details.col2-set,
	.woocommerce-page.woocommerce-checkout form #customer_details.col2-set,
	.woocommerce.woocommerce-checkout form #order_review,
	.woocommerce.woocommerce-checkout form #order_review_heading,
	.woocommerce-page.woocommerce-checkout form #order_review,
	.woocommerce-page.woocommerce-checkout form #order_review_heading {
		float: none;
		width: 100%;
		margin-right: 0;
	}
}
