/*
Theme Name: lulua woocommerce
Author: LxD
Description: WooCommerce styles override
Version: 1.0.1
Tested up to: 8.1
Requires PHP: 7.4
*/

/*tables*/
table.shop_table_responsive thead,
table.shop_table_responsive tbody th,
table.woocommerce-table thead,
table.woocommerce-checkout-review-order-table thead,
table.woocommerce-checkout-review-order-table tbody th,
div.coupon label,
span.eh_spinner {
	display: none;
}
table.shop_table_responsive,
table.shop_table_responsive tbody,
table.shop_table_responsive tr,
table.shop_table_responsive tr.woocommerce-shipping-totals.shipping td {
	display: flex;
	flex-direction: column;
}

table.shop_table_responsive tr td {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
table.shop_table_responsive tr td:not(.product-remove, .product-thumbnail, .product-name, .actions)::before {
	content: attr(data-title) ": ";
	flex-grow: 1;
	font-weight: 300;
	padding-right: 10px;
}
table.shop_table_responsive tr td.product-remove {
	position: absolute;
	top: 0; right: 0;
	z-index: 2;
}
table.shop_table_responsive tr td.product-remove a {
	-webkit-tap-highlight-color: #c41e3a;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 25px;
	min-width: 25px;
	border-radius: 50%;
	color: #fff;
	background: var(--col-red);
}
table.shop_table_responsive tr td.product-price {
	flex-wrap: wrap;
}
table.shop_table_responsive tr td.product-subtotal {
	font-weight: 400;
}
table.shop_table_responsive td.actions,
.wc-proceed-to-checkout	{
	display: flex;
	justify-content: flex-end;
}
table.shop_table_responsive tr.cart_item {
	justify-content: center;
	min-height: var(--thumb-size-cart-checkout);
	position: relative;
}
table.shop_table.woocommerce-checkout-review-order-table tbody {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-small);
}
table.shop_table_responsive tr.woocommerce-shipping-totals td {
	align-items: flex-start;
}
table.woocommerce-checkout-review-order-table {
	width: 100%;
}
table.woocommerce-checkout-review-order-table tr {
	display: flex;
	justify-content: space-between;
	width: 100%;
}
table.woocommerce-checkout-review-order-table tr.cart-subtotal,
table.woocommerce-checkout-review-order-table tr.order-total {
	padding: var(--spacing-universal-top-bottom);
}
table.woocommerce-checkout-review-order-table th {
	font-weight: 300;
}
table.woocommerce-checkout-review-order-table .cart-subtotal th::after {
	content: ': ';
}
table.woocommerce-checkout-review-order-table .woocommerce-shipping-totals.shipping th {
	font-size: var(--font-xl);
	font-weight: var(--font-thick);
	text-align: left;
	margin-bottom: var(--spacing-universal);
}
table.woocommerce-checkout-review-order-table tfoot,
tfoot tr.woocommerce-shipping-totals {
	display: flex;
	flex-direction: column;
}
/*forms*/
/*button*/
.added_to_cart.wc-forward {
	display: none !important;
}
/*form row*/
p.form-row {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}
@media (max-width: 599px) {
	p.form-row {
		flex-basis: 100%;
	}
}
p.form-row > span:not(.select2) {
	display: flex;
	flex-grow: 1;
}
p.form-row label {
	display: flex;
	font-size: 12px;
}
p.form-row label,
p.form-row input[type="email"],
p.form-row input[type="password"],
p.form-row input[type="search"],
p.form-row input[type="tel"],
p.form-row input[type="text"],
p.form-row input[type="textarea"],
p.form-row textarea,
p.form-row > span {
	flex-basis: 100%;
}
p.form-row label.woocommerce-form__label-for-checkbox {
	flex-basis: auto;
}
p.form-row label.woocommerce-form__label-for-checkbox span {
	margin-left: 0.5rem;
}
p.form-row textarea {
	min-height: 100px;
	max-width: 100%;
}
/*split*/
body:not(.woocommerce-checkout, .home) .u-columns.col2-set {
	display: flex;
	justify-content: space-between;
}
.u-columns.col2-set > *,
/*login/register/coupon*/
form.woocommerce-form-coupon,
form.login,
form.register {
	display: flex;
	flex-direction: column;
	gap: var(--gap-s);
}
/*account/cart/checkout*/
body.woocommerce-account .woocommerce,
body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce {
	justify-content: center;
}
/*center*/
p.woocommerce-info,
body.woocommerce-cart div.woocommerce-info,
body.woocommerce-cart p.return-to-shop {
	text-align: center;
}
/*thank you*/
ul.woocommerce-thankyou-order-details {
	display: flex;
}
.woocommerce-thankyou-order-details li {
	display: flex;
	align-items: space-between;
}
section.woocommerce-order-details td.product-total,
section.woocommerce-order-details tfoot td {
	text-align: right;
}
section.woocommerce-order-details tfoot th {
	font-weight: 300;
	text-align: left;
}
body.woocommerce-checkout .woocommerce-order {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-evenly;
}
body.woocommerce-checkout .woocommerce-order > p,
body.woocommerce-checkout .woocommerce-order > ul {
	display: flex;
	flex-basis: 100%;
	flex-direction: column;
	align-items: center;
	
}
@media (min-width: 600px) {
	.woocommerce-billing-fields__field-wrapper > * {
		flex-basis: 100%;
		flex-grow: 0 !important;
	}
	p#billing_first_name_field,
	p#billing_last_name_field,
	p#billing_phone_field,
	p#billing_email_field,
	p#billing_postcode_field,
	p#billing_city_field {
		flex-basis: calc(50% - 0.5rem);
	}
	p#billing_country_field > span,
	p#billing_state_field > span {
		flex-basis: 30%;
		flex-grow: 0;
	}
}
span.select2 {
	display: block;
}
.select2-dropdown {
	border: 1px solid #ccc;
}
.select2-container--default .select2-selection--single {
	border: 1px solid #ccc;
}
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] {
	background: #222;
}
/*notices*/
.woocommerce-notices-wrapper:not(:empty),
.woocommerce-NoticeGroup:not(:empty) {
	padding: 1rem;
	padding-bottom: 0;
}
@media (max-width: 599px) {
	.woocommerce-notices-wrapper:not(:empty),
	.woocommerce-NoticeGroup:not(:empty) {
		padding: 1.5rem;
		padding-bottom: 0;
	}
}
.woocommerce-notices-wrapper:empty,
.woocommerce-NoticeGroup:empty {
	padding: 0;
	margin: 0;
}
.woocommerce-notices-wrapper,
.woocommerce-NoticeGroup {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
.woocommerce-notices-wrapper > *,
.woocommerce-NoticeGroup > *,
.woocommerce-error {
	position: relative;
	padding: 0.5rem;
	padding-left: 20px;
	padding-right: 15px;
	border-radius: 10px;
}
.woocommerce-message {
	border: 1px solid #eee;
	background: #fefefe;
}
.woocommerce-error {
	background: #d63638;
	color: #fff;
}
#coupon_wrapper .woocommerce-error {
	margin: 1rem; 
	margin-top: 1.25rem;
	margin-bottom: 0.5rem;
}
.woocommerce-error li:first-of-type:last-of-type {
	text-align: center;
}
.woocommerce-error li:not(:first-of-type:last-of-type) {
	margin-bottom: 0.5rem;
}
.woocommerce-error li:first-of-type:not(:last-of-type) {
	margin-top: 0.5rem;
}
.woocommerce-message::before,
.woocommerce-error::before {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 30px;
	width: 30px;
	font-size: 18px;
	position: absolute;
	top: -15px;
	left: -15px;
	border-radius: 50%;
	box-shadow: 5px 5px 10px rgba(0,0,0,0.1);
}
.woocommerce-message::before {
	content: 'i';
	background: #fefefe;
}
.woocommerce-error::before {
	content: '!';
	background: var(--col-red);
	color: var(--col-base);
}
/*sizing*/
body.woocommerce-lost-password form {
	padding: 1.5rem;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}
@media (max-width: 599px) {
	#cart,
	#checkout {
		padding: var(--spacing-universal);
		overflow: hidden;
	}
	.woocommerce,
	#cart_wrapper,
	#cart_wrapper > *,
	form.woocommerce-cart-form {
		max-width: 100vw;
		width: 100%;
	}
}
/*icons*/
/*animation*/
#order_comments_field textarea {
	transition-duration: 0s !important;
}
table.shop_table_responsive tr td.product-remove a,
label.change {
	transition-duration: 0.5s;
}
table.variations td.value label {
	transition-duration: 0.35s;
}
/*page-cart*/
body.woocommerce-cart .wrapper {
	flex-direction: column;
}