/*
Theme Name: lulua woocommerce
Author: LxD
Description: WooCommerce cart/checkout/my-account
Version: 1.0.0
Tested up to: 8.1
Requires PHP: 7.4
*/

/*split*/
.u-columns.col2-set {
	display: flex;
	justify-content: space-between;
	gap: var(--gap-m);
}
.u-columns.col2-set > * {
	flex-basis: 100%;
}
@media (max-width: 767px) {
	.u-columns.col2-set {
		flex-wrap: wrap;
	}
}
@media (min-width: 768px) {
	#customer_login.u-columns.col2-set > * {
		flex-basis: 50%;
	}
	#myaccount_wrapper > nav {
		flex-basis: 30%;
	}
	#myaccount_wrapper > div {
		flex-basis: 70%;
	}
	#cart_wrapper.u-columns.col2-set > div {
		flex-basis: 30%;
	}
	#checkout_wrapper.u-columns.col2-set {
		display: flex;
		justify-content: space-between;
	}
	#checkout_wrapper.u-columns.col2-set > div#customer_details {
		flex-basis: 50%;
	}
	#checkout_wrapper.u-columns.col2-set > div#order_summary {
		flex-basis: 30%;
	}
	.login-coupon-wrapper {
		width: 50%;
	}
}

/*checkout*/
#cart {
	border-bottom: var(--border-black-alpha01);
}
#cart .top-header h2 {
	font-size: var(--font-xxxl);
}
@media (min-width: 1200px) {
	#cart .wrapper,
	#checkout .wrapper {
		padding: var(--spacing-universal);
	}
	#cart .wrapper > .woocommerce {
		flex: 1 0 50%;
	}
	#cart .wrapper > header {
		flex: 1 0 30%;
	}
}
#checkout .wrapper {
	flex-direction: column;
}
#checkout .woocommerce {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
@media (max-width: 1199px) {
	#cart .wrapper {
		flex-direction: column;
	}
}
.woocommerce-billing-fields {
	display: flex;
	flex-direction: column;
}
.woocommerce-billing-fields,
#order_summary {
	gap: var(--gap-m);
}
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
	display: flex;
	gap: var(--gap-m);
}
.woocommerce-billing-fields__field-wrapper {
	flex-wrap: wrap;
}
.woocommerce-shipping-fields__field-wrapper {
	flex-direction: column;
}
/*login coupon*/
.login-coupon-wrapper {
	display: flex;
	flex-direction: column;
	gap: var(--gap-m);
	margin: 1rem 0;
}
/*coupon*/
.woocommerce-form-coupon {
	
}

/*shipping/payment methods*/
.woocommerce-checkout-payment,
.form-row.place-order {
	display: flex;
	flex-direction: column;
	gap: var(--gap-m);
}
ul.woocommerce-shipping-methods,
ul.payment_methods {
	display: flex;
	flex-direction: column;
	width: 100%;
	gap: var(--gap-m);
}
input#ship-to-different-address-checkbox,
ul.woocommerce-shipping-methods input,
ul.payment_methods input {
	appearance: none;
	display: none;
	position: fixed;
	left: -999vmax;
}
ul.woocommerce-shipping-methods label,
ul.payment_methods label {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	padding: var(--spacing-universal-x-small-y);
	border-radius: var(--rad-s);
	border: var(--border-black-alpha01);
}
ul.woocommerce-shipping-methods label,
ul.payment_methods label {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	transition-duration: 0.5s;
}
ul.woocommerce-shipping-methods label:hover,
ul.payment_methods label:hover {
	border: var(--border-invisible);
	box-shadow: var(--shadow-elevation-medium);
}
ul.payment_methods .payment_box {
	position: relative;
	padding: var(--spacing-universal);
	margin-top: var(--gap-m);
	border-radius: var(--rad-s);
	background: var(--col-base-slightly-darker);
}
ul.woocommerce-shipping-methods input:checked+label,
ul.payment_methods input:checked+label {
	color: var(--col-base);
	background: var(--col-base-opposite);
	border: var(--border-invisible);
}
ul.woocommerce-shipping-methods input:checked+label:hover,
ul.payment_methods input:checked+label:hover {
	box-shadow: none;
}
ul.payment_methods .payment_box::before {
	content: '';
	display: block;
	height: 10px;
	width: 10px;
	transform: rotate(45deg);
	position: absolute;
	top: -5px; left: 1rem;
	background: inherit;
}
/*ship to different address*/
#checkout .col-2 {
	display: flex;
	flex-direction: column;
}
#ship-to-different-address * {
	display: flex;
	flex: 1;
}
#ship-to-different-address,
.woocommerce-account-fields .create-account,
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper  {
	margin-bottom: var(--spacing-universal);
}
/*checkout points*/
.woocommerce-billing-fields h3,
h3#ship-to-different-address span,
h3#order_review_heading,
.woocommerce-shipping-totals.shipping th,
.woocommerce-checkout-payment h3 {
	display: flex;
	align-items: center;
	gap: var(--gap-m);
}
.woocommerce-billing-fields h3::before {
	content: '1';
}
h3#ship-to-different-address span::before {
	content: '1A';
}
h3#order_review_heading::before {
	content: '2';
}
.woocommerce-shipping-totals.shipping th::before {
	content: '3';
}
.woocommerce-checkout-payment h3::before {
	content: '4';
}
.woocommerce-billing-fields h3::before,
h3#ship-to-different-address span::before,
h3#order_review_heading::before,
.woocommerce-shipping-totals.shipping th::before,
.woocommerce-checkout-payment h3::before {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	width: 42px;
	border-radius: 50%;
	color: var(--col-base);
	background: var(--col-base-opposite);
}
h3#ship-to-different-address span::before {
	color: var(--col-base-opposite);
	background: var(--col-base);
	border: var(--border-black-alpha01);
	transition-duration: 0.5s;
}
input#ship-to-different-address-checkbox:checked + span::before {
	border: var(--border-invisible);
	color: var(--col-base);
	background: var(--col-base-opposite);
}
.woocommerce-terms-and-conditions-wrapper {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

/*cart*/
.woocommerce-cart-form__contents thead {
	display: none;
}
/*cart item container*/
#cart table.cart tbody {
	flex-direction: row;
	flex-wrap: wrap;
	row-gap: var(--spacing-universal);
}
#cart tr.cart_item {
	flex: 0 0 50%;
	position: relative;
	padding: 0.5rem 1.5rem 0.5rem calc(var(--thumb-size-cart-checkout) + var(--gap-s));
}
@media (max-width: 599px) {
	#cart tr.cart_item {
		flex: 1 1 100%;
	}
}
td.product-remove {
	display: flex;
	position: relative;
}
td.product-remove a.remove {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 22px;
	width: 22px;
	border-radius: 50%;
	color: var(--col-base);
	background: var(--col-red);
	z-index: 2;
}
@media (hover: hover) {
	td.product-remove a.remove {
		color: var(--col-inactive);
		transform: scale(0);
		opacity: 0;
	}
	tr.cart_item:hover a.remove {
		transform: scale(1);
		opacity: 1;
	}
	a.remove:hover {
		background: var(--col-red);
	}
}
td.product-thumbnail {
	position: absolute;
	left: 0;
}
td.product-thumbnail,
td.product-thumbnail img {
	max-height: var(--thumb-size-cart-checkout);
	max-width: var(--thumb-size-cart-checkout);
}
td.product-name a {
	font-weight: var(--font-thicker);
	margin-bottom: 0.5rem;
}

/*account - not logged in*/
.account-wrap > .woocommerce {
	display: flex;
	flex-direction: column;
	justify-content: center;
}
#customer_login .col-1,
#customer_login .col-2 {
	padding: var(--spacing-universal);
	gap: var(--gap-m);
}
#customer_details form {
	gap: var(--gap-m);
}
/*account - logged in*/
#myaccount_wrapper {
	flex: 1;
}
.woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-content {
	padding: var(--spacing-universal);
}
.woocommerce-MyAccount-navigation * {
	display: flex;
}
.woocommerce-MyAccount-navigation ul {
	flex-direction: column;
}
.woocommerce-MyAccount-navigation li a {
	flex: 1 0 100%;
	align-items: center;
	min-height: var(--min-hw-b);
	gap: var(--gap-s);
	padding: var(--spacing-universal-x-small-y);
	border-radius: var(--rad-s);
}
/*icons*/
.woocommerce-MyAccount-navigation li a::before {
	font-family: var(--font-i);
}
li.woocommerce-MyAccount-navigation-link--dashboard a::before {
	content: '\f800';
}
li.woocommerce-MyAccount-navigation-link--orders a::before {
	content: '\f22f';
}
li.woocommerce-MyAccount-navigation-link--downloads a::before {
	content: '\f4af';
}
li.woocommerce-MyAccount-navigation-link--edit-address a::before {
	content: '\f112';
}
li.woocommerce-MyAccount-navigation-link--edit-account a::before {
	content: '\f98a';
}
li.woocommerce-MyAccount-navigation-link--customer-logout a::before {
	content: '\f41e';
}
span.password-input {
	display: flex;
	flex-direction: column;
}
span.password-input > div,
span.password-input > small {
	margin-top: 0.5rem;
}
/*don't stretch*/
body.woocommerce-account .site-content {
	min-height: 100%;
}