/******************************************************************
Site Name:
Author:

Stylesheet: Responsive WooCommerce Styles - Checkout & Order

Last reviewed with plugin Version 4.8.0.

******************************************************************/

//
// IMPORT THEME UTILITIES
//

@import "../../utilities/functions";
@import "../../utilities/variables";
@import "../../utilities/mixins";

//
// IMPORT WOO UTILITIES
//

@import "utilities/variables";
@import "utilities/mixins";

//
// IMPORT WOO ELEMENTS
//

@import "elements/password-strength";
@import "elements/payment";

.woocommerce {
	.checkout {
		.col-2 {
			h3#ship-to-different-address {
				float: left;
				clear: none;

				label {
					margin-bottom: 0;
				}
			}

			.notes {
				clear: left;
			}

			.form-row-first {
				clear: left;
			}
		}

		.create-account small {
			font-size: 11px;
			color: $subtext;
			font-weight: normal;
		}

		div.shipping-address {
			padding: 0;
			clear: left;
			width: 100%;
		}

		.shipping_address {
			clear: both;
		}
	}

	ul.order_details {
		margin: 2em 0 3em;
		list-style: none;

		li {
			text-transform: uppercase;
			font-size: 0.875em;
			line-height: 1;
			margin-left: 0;
			margin-bottom: 1em;
			padding-left: 0;
			list-style-type: none;

			strong {
				display: block;
				font-size: 1.125em;
				margin-top: 0.25em;
				text-transform: none;
			}
		}
	}
}

.woocommerce-billing-fields,
.woocommerce-shipping-fields {
	@include clearfix();
}

.woocommerce-checkout-review-order {
	margin-bottom: 1em;
}

.woocommerce-terms-and-conditions {
	border: 1px solid rgba(0, 0, 0, 0.2);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
	background: rgba(0, 0, 0, 0.05);
	margin-bottom: 1.618em;
	padding: 1.618em;
}

.woocommerce-invalid {
	#terms {
		outline: 2px solid red;
		outline-offset: 2px;
	}
}

.wc-bacs-bank-details-account-name {
	font-weight: bold;
}

.woocommerce-order-downloads,
.woocommerce-customer-details,
.woocommerce-order-details {
	margin-bottom: 2em;

	*:last-child {
		margin-bottom: 0;
	}
}

.woocommerce-customer-details {
	address {
		font-style: normal;
		margin-bottom: 0;
		text-align: left;
		width: 100%;
	}

	.woocommerce-customer-details--phone,
	.woocommerce-customer-details--email {
		margin-bottom: 0;
		padding-left: 1.5em;
	}

	.woocommerce-customer-details--phone:before {
		@include iconbefore( "\e037" );
		margin-left: -1.5em;
		line-height: 1.75;
		position: absolute;
	}

	.woocommerce-customer-details--email:before {
		@include iconbefore( "\e02d" );
		margin-left: -1.5em;
		line-height: 1.75;
		position: absolute;
	}
}

@include media-breakpoint-up('md') {

	.woocommerce {
		#payment {
			.wc-terms-and-conditions,
			.terms {
				text-align: left;
				padding: 0 1em 0 0;
				float: left;
			}
		}

		ul.order_details {
			display: flex;
			margin-left: -30px;
			margin-right: -30px;

			li {
				flex-basis: 0;
				flex-grow: 1;
				max-width: 100%;
				width: 100%;
				padding-left: 30px;
				padding-right: 30px;
			}
		}
	}

}
