/* United checkout style rules.

	* Table of contents

	- Checkout block titles
	- Items
	- User info
	TODO: Remove menu point if theme NOT use gift card.
	- Gift-card form
	- Shipping
	TODO: Remove menu point if theme NOT use departments or local pickup.
	- Local pickup
	- Coupon
	TODO: Remove menu point if theme NOT use birthday module.
	- Clubmember
	- Summary

 */
.woocommerce-order-pay .woocommerce {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}
.woocommerce-form-coupon-toggle {
	display: none;
}

.cart-title {
	margin-bottom: 0;
}

.woocommerce-checkout #payment {
	-webkit-border-radius: 0;
	-moz-border-radius: 0;
	border-radius: 0;
}

@media screen and ( min-width: 768px ) {
	.checkout-column {
		padding: 30px;
		border: 1px solid var( --ct-color-middle-gray );
	}
}

@media screen and ( min-width: 1280px ) {
	form.woocommerce-checkout {
		max-width: unset;
	}
}

/* Checkout block titles
------------------------------------------------------------------------------------------------- */

.woocommerce .woocommerce-billing-fields::after,
.woocommerce .woocommerce-billing-fields::before,
.woocommerce .woocommerce-shipping-fields::after,
.woocommerce .woocommerce-shipping-fields::before {
	display: none;
}

/* TODO: Remove rule if theme NOT use Steps on Checkout page or USE Separated checkout. */
body.woocommerce-checkout {
	counter-reset: checkout-step;
}

.checkout-title__container {
	display: flex;
	column-gap: 10px;
	align-items: center;
	margin-top: 30px;
	margin-bottom: 20px;
}

/* TODO: Remove rule if theme NOT use Steps on Checkout page or USE Separated checkout. */
.checkout-title__number {
	counter-increment: checkout-step;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 27px;
	height: 27px;
	border: 2px solid var( --ct-color-green );
	border-radius: 50%;
	color: var( --ct-color-green );
	line-height: 1;
}

/* TODO: Remove rule if theme NOT use Steps on Checkout page or USE Separated checkout. */
.checkout-title__number::before {
	content: counter( checkout-step );
}

.checkout-title__title {
	font-weight: 500;
	font-size: 2rem;
}

@media screen and ( min-width: 1024px ) {
	.checkout-title__container {
		margin-top: 60px;
		margin-bottom: 30px;
	}

	/* TODO: Remove rules in comment if theme NOT use Steps on United checkout OR uncomment it otherwise. */
	/*.checkout-column__2 {
		max-width: 600px;
	}*/
}

/* Items
------------------------------------------------------------------------------------------------- */

form.woocommerce-cart-form {
	position: relative;
}

.woocommerce-checkout form.woocommerce-cart-form {
	margin-bottom: 30px;
}

.cart_item {
	display: grid;
	gap: 15px;
	grid-template-columns: 100px 1fr;
	padding: 15px;
	border: 1px solid var( --ct-color-middle-gray );
}

.woocommerce-checkout .woocommerce-cart-form:not( .view-all ) .cart_item:nth-child( n + 4 ) {
	display: none;
}

.cart_item .product-thumbnail a {
	display: block;
}

.cart_item .product-thumbnail img {
	width: 100%;
}

.cart_item .product-info {
	/*position: relative;*/
	display: grid;
	gap: 15px;
}

.cart_item .product-name {
	/* exclude remove button width */
	width: calc( 100% - 1.5rem );
	font-size: 1.8rem;
	font-weight: 500;
	line-height: 1.5;
}

.cart_item .product-attr {
	display: flex;
	column-gap: 10px;
	gap: 10px;
	align-items: center;
	color: var( --ct-color-dark-gray );
	font-size: 1.3rem;
}

.checkout-product-attr__separator {
	display: block;
	width: 4px;
	height: 4px;
	background-color: var( --ct-color-dark-gray );
	border-radius: 50%;
}

.cart_item .product-price {
	display: flex;
	column-gap: 10px;
	gap: 10px;
	align-items: center;
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1;
}

.cart_item .product-price del {
	color: var( --ct-color-dark-gray );
	font-size: 1.4rem;
}

.cart_item .quantity {
	position: relative;
	display: inline-block;
}

.cart_item .product-quantity .input-text,
.cart_item .product-quantity button {
	display: inline-block;
	width: 22px;
	height: 28px;
	background-color: var( --ct-color-white );
	border: 1px solid var( --ct-color-middle-gray );
	border-radius: var( --ct-bd-radius );
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
}

.cart_item .product-quantity .input-text {
	width: 90px;
	padding-right: 22px;
	padding-left: 22px;
}

.cart_item .product-quantity button {
	position: absolute;
}

.cart_item .product-quantity .plus {
	right: 0;
	z-index: 2;
}

.cart_item .product-quantity .minus {
	left: 0;
}

.cart_item .product-remove {
	position: absolute;
	top: 0;
	right: 0;
}

.woocommerce a.remove:hover {
	background-color: unset;
}

.cart_item .product-remove svg {
	vertical-align: middle;
}

a.remove:hover svg {
	-webkit-animation: spin .35s linear 1;
	-moz-animation: spin .35s linear 1;
	animation: spin .35s linear 1;
}

.cart_item .product-remove svg path {
	stroke: var( --ct-color-dark-gray );
}

.checkout-cart__actions:not( :empty ) {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 30px;
}

.checkout-cart__actions .btn {
	font-size: 1.4rem;
	line-height: 3rem;
}

.cart__preloader {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var( --ct-color-white-alfa );
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s, visibility .3s;
}

.cart__preloader.active {
	opacity: 1;
	visibility: visible;
}

@media screen and ( min-width: 1024px ) {
	.cart_item {
		position: relative;
		gap: 25px;
		padding: 25px;
	}

	.cart_item .product-info {
		position: unset;
	}

	.cart_item .product-name {
		width: 100%;
	}

	.cart_item .product-quantity .input-text {
		width: 90px;
		margin-right: 0;
		margin-left: 0;
	}
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* User info
------------------------------------------------------------------------------------------------- */

.woocommerce-NoticeGroup,
.woocommerce form .form-row .optional,
.woocommerce-additional-fields,
#billing_country_field,
#shipping_country_field {
	display: none;
}

.block-tumbler {
	display: flex;
	align-items: center;
	column-gap: 5px;
}

.block-tumbler h4 {
	margin-bottom: 0;
	margin-right: 10px;
	font-size: 1.6rem;
}

.block-tumbler .btn.btn_glass,
.custom-register-form--inner .btn.send-password {
	min-width: 70px;
	line-height: 30px;
}

.block-tumbler .btn.btn_glass {
	font-size: 1.6rem;
	line-height: 1.2;
}

.woocommerce form .custom-register-form--inner .form-row-first,
.woocommerce form .custom-register-form--inner .form-row-last {
	float: unset;
	clear: both;
	width: 100%;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
}

.custom-register-form--inner .btn.send-password {
	font-size: 1.4rem;
}

.custom-register-form--inner .lost_password {
	text-align: center;
	font-size: 1.2rem;
}

#ship-to-different-address span {
	color: var( --ct-color-dark-gray );
	font-size: 1.4rem;
	font-weight: 400;
	line-height: 1.5;
}

@media screen and ( min-width: 1024px ) {
	.custom-register-form {
		position: relative;
	}

	.woocommerce-billing-fields__field-wrapper,
	.woocommerce-shipping-fields__field-wrapper {
		grid-template-columns: repeat( 2, 1fr );
	}

	.woocommerce-billing-fields .form-row-wide,
	.woocommerce-shipping-fields .form-row-wide {
		grid-column: span 1;
	}
}

/* TODO: Remove block if theme NOT use gift card. */
/* Gift-card form
------------------------------------------------------------------------------------------------- */

.checkout__gift-card h3 {
	display: none;
}

.checkout__gift-card .clearfix,
.checkout__gift-card .third-col {
	display: grid;
	gap: 20px;
	align-items: start;
}

.form-row-giftcard {
	margin-top: 30px;
	margin-bottom: 0;
}

@media screen and ( min-width: 1024px ) {
	.checkout__gift-card .clearfix {
		grid-template-columns: repeat( 2, 1fr );
	}

	.checkout__gift-card .third-col:last-of-type {
		grid-column: span 2;
	}
}

@media screen and ( min-width: 1280px ) {
	.checkout__gift-card .clearfix {
		grid-template-columns: repeat( 3, 1fr );
	}

	.checkout__gift-card .third-col:last-of-type {
		grid-column: span 1;
	}
}

/* Shipping
------------------------------------------------------------------------------------------------- */

.checkout__shipping-table {
	width: 100%;
}

.checkout__shipping-table .local-pickup-wrap {
	display: none;
}

.checkout__shipping-table tr ~ .local-pickup-wrap {
	display: initial;
}

.woocommerce ul#shipping_method li {
	position: relative;
	margin-bottom: 15px;
}

.woocommerce ul#shipping_method li:last-child {
	margin-bottom: 0;
}

.woocommerce ul#shipping_method li input {
	height: 1.5em;
	margin: 0;
}

.woocommerce ul#shipping_method li label {
	display: flex;
	column-gap: 10px;
	align-items: center;
	font-weight: 400;
	line-height: 1.5;
}

.woocommerce ul#shipping_method .amount {
	justify-self: end;
	margin-left: auto;
}

/* TODO: Remove media rule and content if theme NOT use SEPARATED checkout */
@media screen and ( max-width: 768px ) {
	.woocommerce table.shop_table_responsive tr td,
	.woocommerce-page table.shop_table_responsive tr td {
		clear: both;
	}
}

/* TODO: Remove block if theme NOT use departments or local pickup. */
/* Local pickup
------------------------------------------------------------------------------------------------- */

.popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(1, 1, 1, 0.7);
	/* 1001 to be over checkout loading block */
	z-index: 1001;
	display: none;
	transition: opacity 0.3s , visibility 0.3s;
	-ms-transition: opacity 0.3s , visibility 0.3s;
	-moz-transition: opacity 0.3s , visibility 0.3s;
	-o-transition: opacity 0.3s , visibility 0.3s;
	-webkit-transition: opacity 0.3s , visibility 0.3s;
}

.local-pickup-options-container {
	position: absolute;
	top: 50%;
	left: 50%;
	-o-transform: translate(-50%,-50%);
	-moz-transform: translate(-50%,-50%);
	-webkit-transform: translate(-50%,-50%);
	transform: translate(-50%,-50%);
	max-width: 500px;
	min-height: 480px;
	width: 100%;
	padding: 25px 15px;
	background-color: #fff;
}

.local-pickup-close {
	cursor: pointer;
}

.local-pickup-title {
	display: block;
	max-width: 300px;
	margin: 0 auto 40px;
	font-size: 3rem;
	text-align: center;
}

.local-pickup-select-container {
	display: block;
	max-width: 300px;
	margin: 0 auto;
	width: 100%;
}

#local_pickup {
	-webkit-transition: all 0.2s;
	-o-transition: all 0.2s;
	-moz-transition: all 0.2s;
	transition: all 0.2s;
}

#local_pickup, #local_pickup.visible {
	visibility: visible;
	opacity: 1;
	width: 100%;
	max-width: 300px;
}

.local-pickup-options-container .department-container {
	position: relative;
	width: 100%;
	max-width: 300px;
	margin: 30px auto 0;
}

.department-info {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	visibility: hidden;
	opacity: 0;
	font-weight: 600;
	-webkit-transition: all 0.2s;
	-o-transition: all 0.2s;
	-moz-transition: all 0.2s;
	transition: all 0.2s;
}

.department-info.show {
	visibility: visible;
	opacity: 1;
}

.department-info label:not(:last-child) {
	display: block;
	margin-bottom: 8px;
}

.department-info input.department-radio {
	display: none;
}

.local-pickup-wrap td {
	display: flex;
	justify-content: space-between;
	padding-top: 30px;
}

.local-pickup-wrap .local-pickup-title {
	margin: 0;
	font-size: 1.6rem;
}

/* Coupon
------------------------------------------------------------------------------------------------- */

.coupon_custom {
	margin-bottom: 20px;
}
.checkout-payment__block.checkout-payment__coupon-wrap {
    position: relative;
}
.woocommerce form .form-row.coupon_custom input.input-text {
	width: 100%;
	padding-right: 40px;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	outline: none;
}

.coupon_code_custom_btn {
	position: absolute;
	top: 50%;
	right: 0;
	width: 30px;
	transform: translateY( -50% );
}

.coupon_code_custom_btn,
.coupon_code_custom_btn:hover,
.coupon_code_custom_btn:focus {
	border: none;
	background: transparent;
}

@media screen and ( min-width: 1024px ) {
	.coupon_code_custom_btn {
		height: 40px;
	}

	.form-row.coupon_custom .form-row__error-msg {
		bottom: -20px;
		font-size: 1.4rem;
	}
}

@media screen and ( min-width: 1280px ) {
	.form-row.coupon_custom .form-row__error-msg {
		bottom: -25px;
		font-size: 1.6rem;
	}
}

/* TODO: Remove block if theme NOT use birthday module. */
/* Clubmember
------------------------------------------------------------------------------------------------- */

.check-if-clubmember .fields {
	margin-bottom: 20px;
}

.check-if-clubmember .form-row {
	display: none;
}

/* Summary
------------------------------------------------------------------------------------------------- */

#add_payment_method #payment,
.woocommerce-cart #payment,
.woocommerce-checkout #payment {
	background-color: var( --ct-color-white );
}

/* TODO: Remove rule if theme NOT use Steps on United checkout OR uncomment it otherwise and unite w/ previous rule. */
/*#add_payment_method #payment,
.woocommerce-cart #payment,
.woocommerce-checkout #payment {
	width: calc( 100% + 20px );
	margin-right: -10px;
	margin-left: -10px;
	border: 1px solid var( --ct-color-middle-gray );
	border-radius: 0;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
}*/

/* TODO: Remove rules in comment if theme NOT use Steps on United checkout OR uncomment it otherwise. */
/*.checkout-payment__block {
	padding: 20px 10px;
}

.checkout-payment__block:not( :last-child ) {
	border-bottom: 1px solid var( --ct-color-middle-gray );
}*/

#add_payment_method #payment ul.payment_methods,
.woocommerce-cart #payment ul.payment_methods,
.woocommerce-checkout #payment ul.payment_methods {
	padding: 0;
	border-bottom: none;
}

#add_payment_method #payment ul.payment_methods li input,
.woocommerce-cart #payment ul.payment_methods li input,
.woocommerce-checkout #payment ul.payment_methods li input {
	margin-right: 10px;
}

ul.payment_methods li label {
	line-height: 1.5;
}

#add_payment_method #payment div.payment_box,
.woocommerce-cart #payment div.payment_box,
.woocommerce-checkout #payment div.payment_box {
	/* .wrap side paddings ( 10px each ) */
	width: calc( 100% + 20px );
	padding: 3px 30px;
	margin: 10px -10px;
	background-color: var( --ct-color-light-gray );
}

#add_payment_method #payment div.payment_box::before,
.woocommerce-cart #payment div.payment_box::before,
.woocommerce-checkout #payment div.payment_box::before {
	content: unset;
}

.woocommerce table.shop_table {
	margin-bottom: 15px;
	border: none;
}

.woocommerce table.shop_table tbody th,
.woocommerce table.shop_table tfoot td,
.woocommerce table.shop_table tfoot th {
	border-top: none;
	font-weight: 400;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 15px 0;
}

.cart-sum__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
}

.cart-sum__title {
	font-size: 1.6rem;
}

.order-total .cart-sum__title {
	font-weight: 500;
	font-size: 2rem;
}

.cart-sum__sum {
	font-size: 1.4rem;
	color: var( --ct-color-dark-gray );
}

.order-total .cart-sum__sum {
	font-size: 2rem;
	text-align: right;
	color: var( --ct-color-black );
}

.order-comments__title {
	margin-bottom: 15px;
	font-weight: 600;
	font-size: 1.6rem;
	line-height: 1.5;
}

.order-comments__text {
	width: 100%;
	height: 1.5em;
	padding: 10px 0;
	border-width: 0 0 1px;
	border-color: var( --ct-color-middle-gray );
	font-size: 1.4rem;
	line-height: 1.5;
	resize: none;
}

.order-comments__subtext {
	font-size: 1rem;
	color: var( --ct-color-dark-gray );
}

#add_payment_method #payment div.form-row,
.woocommerce-cart #payment div.form-row,
.woocommerce-checkout #payment div.form-row {
	padding: 0;
	margin-top: 0;
	margin-bottom: 0;
}

.woocommerce-privacy-policy-text {
	font-size: 1.2rem;
	line-height: 1.5;
}

.woocommerce-terms-and-conditions-checkbox-text {
	font-size: 1.2rem;
	line-height: 1.5;
}

.woocommerce #payment #place_order, 
.woocommerce-page #payment #place_order {
    height: 40px;
    font-size: 1.6rem;
    width: 100%;
}

@media screen and ( min-width: 1024px ) {
	/* TODO: Remove rules in comment if theme NOT use Steps on United checkout OR uncomment it otherwise. */
	/*#add_payment_method #payment,
	.woocommerce-cart #payment,
	.woocommerce-checkout #payment {
		display: grid;
		grid-template-columns: 1fr 1fr;
		width: 100%;
		padding: 0;
		margin-right: 0;
		margin-left: 0;
	}

	.checkout-payment__block {
		padding: 30px;
	}

	.checkout-payment__block:nth-child( 1 ),
	.checkout-payment__block:nth-child( 3 ) {
		border-right: 1px solid var( --ct-color-middle-gray );
	}

	.checkout-payment__block:nth-last-child( 2 ) {
		border-bottom: none;
	}*/

	.form-row input.clubmember-number {
		max-width: 350px;
	}

	#add_payment_method #payment div.payment_box,
	.woocommerce-cart #payment div.payment_box,
	.woocommerce-checkout #payment div.payment_box {
		/* column side paddings width (each 15px) */
		width: calc( 100% + 30px );
		margin-right: -15px;
		margin-left: -15px;
	}

	.woocommerce table.shop_table .order-total th,
	.woocommerce table.shop_table .order-total td {
		padding-bottom: 0;
	}

	.woocommerce form .place-order .form-row {
		margin-bottom: 15px;
	}

	.woocommerce form .place-order .form-row label {
		line-height: 1;
	}

	.woocommerce #payment #place_order,
	.woocommerce-page #payment #place_order {
		width: 100%;
	}
}