/* Form */
.woocommerce-checkout .page-wrapper {
	max-width: 100%;
	padding: 0;
	margin: 0;
}

.woocommerce-checkout .page-content {
	width: 100%;
	padding: 0;
	margin: 0;
}

.col2-set {
	display: flex;
	margin-bottom: -120px;
}

.woocommerce .col2-set .col-1,
.woocommerce-page .col2-set .col-1,
.woocommerce .col2-set .col-2,
.woocommerce-page .col2-set .col-2 {
	float: none;
	width: 100%;
}

.col {
	display: flex;
}

.col-1 {
	justify-content: flex-end;
	padding: 38px 50px 170px 50px;
}

.col-2 {
	background-color: #fff;
	justify-content: flex-start;
	padding: 70px 50px 170px 50px;
}

.col-inner {
	max-width: 575px;
	width: 100%;
}

.wc_payment_methods {
	display: none;
}

.checkout-h3 {
	font-size: 18px;
	margin-bottom: 20px;
}

.woocommerce-checkout-group {
	background-color: #fff;
	padding: 35px;
	border-radius: 5px;
	margin-bottom: 35px;
}

.woocommerce-checkout-group hr {
	width: 100%;
	height: 1px;
	border: none;
	background: #efefef;
	margin: 25px 0;
}

.woocommerce-checkout #payment {
	background-color: transparent;
	border-radius: 0;
	padding: 0;
}

.woocommerce-checkout #payment div.form-row {
	padding: 0;
	margin: 0;
}

/* Review table */
.woocommerce table.shop_table {
	position: relative;
	margin: 0;
	padding: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0 10px;
	z-index: 0;
}

.woocommerce table.shop_table thead {
	display: none;
}

.woocommerce table.shop_table tbody td {
	border: 0;
	padding: 0;
}

.woocommerce table.shop_table tbody .cart_item td {
	border: 1px solid #d3d3d3;
	padding: 10px 15px;
	border-radius: 5px;
	vertical-align: top;
	transition: border-color 0.2s ease;
}

.cart-item-flex {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 5px;
}

.cart-item-title {
	font-weight: bold;
	margin-bottom: 5px;
	font-size: 14px;
}

.cart-item-name {
	text-decoration: none;
}

.woocommerce table.shop_table tbody .cart_item td.product-total {
	text-align: right;
}

.woocommerce table.shop_table .product-data {
	flex: 1;
	width: 100%;
	padding: 10px;
}

.woocommerce .woocommerce-shipping-methods {
	font-weight: 400;
}

.woocommerce table.shop_table small {
	display: block;
	text-align: end;
}
.woocommerce table.shop_table small .amount {
	font-weight: 400 !important;
}

.product-name-flex {
	display: flex;
	align-items: center;
}

.product-name-flex .remove-item {
	align-self: flex-start;
	bottom: 1px;
	right: 6px;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.woocommerce table.shop_table tbody .cart_item:hover .remove-item {
	opacity: 1;
}

.woocommerce table.shop_table tbody .cart_item:hover td {
	border-color: #222222;
}

.product-name-flex .remove-item svg path {
	transition: all 0.2s ease;
}

.product-name-flex .remove-item:hover svg path {
	fill: var(--primary-color);
}

.product-name-flex .product-image {
	width: 100px;
	height: 100px;
}

.product-name-flex .product-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.woocommerce-checkout dd p,
.woocommerce-checkout dd,
.woocommerce-checkout dl,
.woocommerce-checkout dt {
	margin: 0;
	padding: 0;
	font-size: 12px;
	font-weight: inherit;
	opacity: 1;
}

.woocommerce-checkout dt {
	opacity: 0.6;
}

.woocommerce-checkout dt {
	font-weight: bold;
}

.woocommerce table.shop_table tfoot td,
.woocommerce table.shop_table tfoot th {
	padding: 0 0 10px 0;
	border: 0;
	border-bottom: 1px solid #f6f6f6;
}

.woocommerce table.shop_table tfoot td {
	text-align: right;
}

.default-address-label {
	border: 1px solid #ddd;
	padding: 15px 25px;
	border-radius: 5px;
	display: flex;
	align-items: center;
	gap: 25px;
	width: 100%;
	color: #aaa;
	transition: all 0.2s ease;
}

.default-address-label:before {
	content: "";
	width: 20px;
	height: 20px;
	border-radius: 100%;
	border: 1px solid #ddd;
	background-position: center;
	background-repeat: no-repeat;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.default-address-label:hover:before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7.789' height='5.809'%3E%3Cpath d='M2.646 5.695.114 3.163a.39.39 0 0 1 0-.551l.551-.551a.389.389 0 0 1 .551 0l1.705 1.706L6.574.114a.39.39 0 0 1 .551 0l.551.551a.39.39 0 0 1 0 .551L3.2 5.695a.389.389 0 0 1-.554 0Z' fill='%23ddd'/%3E%3C/svg%3E");
}

.default-address-label:hover {
	border-color: var(--primary-color);
}

.default-address-label .entity-name {
	font-weight: bold;
	color: #555;
}

input:checked + .default-address-label {
	border-color: var(--primary-color);
}

input:not(:checked) + .default-address-label {
	cursor: pointer;
}

input:checked + .default-address-label:before {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7.789' height='5.809'%3E%3Cpath d='M2.646 5.695.114 3.163a.39.39 0 0 1 0-.551l.551-.551a.389.389 0 0 1 .551 0l1.705 1.706L6.574.114a.39.39 0 0 1 .551 0l.551.551a.39.39 0 0 1 0 .551L3.2 5.695a.389.389 0 0 1-.554 0Z' fill='%23fff'/%3E%3C/svg%3E");
}

input[name="billing-address"],
input[name="shipping-address"] {
	display: none;
}

input:not(:checked) + .custom-address-label {
	cursor: pointer;
}

.custom-address-label {
	color: var(--primary-color);
	display: flex;
	justify-content: flex-end;
	margin-top: 10px;
	font-weight: bold;
}

.woocommerce-track-and-trace-fields__field-wrapper,
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 5px 20px;
}

.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
	margin-top: 25px;
	padding-top: 25px;
	border-top: 1px solid #efefef;
}
@media (max-width: 768px) {
	.woocommerce-track-and-trace-fields__field-wrapper,
	.woocommerce-billing-fields__field-wrapper,
	.woocommerce-shipping-fields__field-wrapper {
		grid-template-columns: repeat(1, 1fr);
	}
}

/* Input fields */
.form-row label {
	font-weight: 500;
}

.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="email"],
.form-row select {
	border: 1px solid #ddd;
	border-radius: 5px;
	height: 50px;
	padding: 0 15px;
	outline: 0;
}

.form-row input[type="text"]:not(:read-only):focus-within,
.form-row input[type="tel"]:not(:read-only):focus-within,
.form-row input[type="email"]:not(:read-only):focus-within,
.form-row select:focus {
	border-color: #4d90fe;
}

.woocommerce form .form-row.woocommerce-validated input[type="text"],
.woocommerce form .form-row.woocommerce-validated input[type="tel"],
.woocommerce form .form-row.woocommerce-validated input[type="email"],
.woocommerce form .form-row.woocommerce-validated select {
	border-color: var(--primary-color);
}

select {
	-webkit-appearance: none;
	-moz-appearance: none;
	background: transparent;
	background-image: url("data:image/svg+xml;utf8,<svg fill='%23aaa' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
	background-repeat: no-repeat;
	background-position: center right 5px;
	outline: 0;
}

button#place_order {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-color: var(--primary-color);
	background-color: var(--primary-color);
	height: 50px;
	border-radius: 5px;
	width: 190px;
	padding: 0 20px;
}

button#place_order:after {
	content: "";
	background: url("/wp-content/themes/zo24/images/shopping-cart.svg") no-repeat center;
	background-size: contain;
	width: 16px;
	height: 16px;
}

.woocommerce:not(.show-all-cart-items) table.shop_table tbody .cart_item.hidden {
	display: none;
}

.woocommerce:not(.show-all-cart-items) table.shop_table tbody .cart_item.last {
	position: relative;
}

.woocommerce:not(.show-all-cart-items) table.shop_table tbody .cart_item.last td:after {
	content: "";
	display: block;
	position: absolute;
	left: 0;
	top: -50px;
	width: 100%;
	height: calc(100% + 50px);
	pointer-events: none;
	background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 80%);
	z-index: 9;
}

.toggle-all-cart-items-tr {
	position: relative;
	color: #aaa;
}

.woocommerce:not(.show-all-cart-items) .toggle-all-cart-items {
	position: absolute;
	top: -70px;
	padding: 40px 0 0 0;
	width: 100%;
	z-index: 9999;
	cursor: pointer;
}

.woocommerce.show-all-cart-items .show-items,
.woocommerce:not(.show-all-cart-items) .hide-items {
	display: none;
}

.woocommerce:not(.show-all-cart-items) .show-items,
.woocommerce.show-all-cart-items .hide-items {
	display: block;
	text-align: center;
	cursor: pointer;
}

/* Coupon */
.toggle-discount-code {
	display: inline-block;
	color: var(--primary-color);
	cursor: pointer;
	padding: 10px 0;
}

.woocommerce-remove-coupon,
.woocommerce:not(.show-discount-code) .hide-discount-code,
.woocommerce.show-discount-code .show-discount-code {
	display: none;
}

.discount-code-flex {
	display: flex;
	align-items: center;
	gap: 15px;
}

.discount-code-form {
	padding: 15px;
	border: 1px solid #d3d3d3;
	border-radius: 5px;
	display: none;
}

.woocommerce.show-discount-code .discount-code-form {
	display: block;
}

.discount-code-headline {
	font-size: 14px;
	font-weight: 500;
	margin: 0 0 10px 0;
	padding: 0;
}

.discount-code-flex input {
	width: 100%;
	font-weight: normal;
}

.remove-discount-code {
	color: #d3d3d3;
	cursor: pointer;
	transition: color 0.2s ease;
}

.remove-discount-code:hover {
	color: inherit;
}

.apply-discount-code {
	color: var(--primary-color);
	cursor: pointer;
}

.discount-code-flex .discount-row {
	position: relative;
	width: 100%;
}

.discount-row {
	border: 1px solid #ddd;
	border-radius: 5px;
	height: 50px;
	padding: 0 15px;
	display: flex;
	overflow: hidden;
}

.discount-row input {
	border: 0;
	outline: 0;
	height: 50px;
}

.discount-row input:read-only {
	cursor: not-allowed;
	color: #d3d3d3;
}

.code-applied {
	font-weight: normal;
	color: var(--primary-color);
	display: flex;
	align-items: center;
	gap: 5px;
	padding-left: 10px;
	flex-shrink: 0;
}

.code-applied:after {
	content: "";
	width: 20px;
	height: 20px;
	border-radius: 100%;
	background-position: center;
	background-repeat: no-repeat;
	background-color: var(--primary-color);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7.789' height='5.809'%3E%3Cpath d='M2.646 5.695.114 3.163a.39.39 0 0 1 0-.551l.551-.551a.389.389 0 0 1 .551 0l1.705 1.706L6.574.114a.39.39 0 0 1 .551 0l.551.551a.39.39 0 0 1 0 .551L3.2 5.695a.389.389 0 0 1-.554 0Z' fill='%23fff'/%3E%3C/svg%3E");
}

@media (max-width: 1024px) {
	.checkout .col2-set {
		flex-direction: column-reverse;
		padding: 10px;
	}

	.checkout .col-inner {
		max-width: unset;
	}
	.checkout .col-2 {
		padding-bottom: 70px;
	}

	.checkout .remove-item {
		opacity: 1;
	}
}

@media (max-width: 600px) {
	.cart-item-flex {
		flex-direction: column;
	}
}

/* ORDER COMPLETED */

.thankyou-wrapper {
	margin: 50px auto 0;
	max-width: 650px;
	min-height: 400px;
	padding: 0 25px;
}

.thankyou-card {
	background-color: #fff;
	border-radius: 5px;
	margin-bottom: 35px;
}

.thankyou-card-header {
	height: 180px;
	background-color: var(--primary-color);
	border-radius: 5px 5px 0 0;

	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

.thankyou-card-header img {
	width: 32px;
	height: 32px;
	padding: 9px;
	background-color: #fff;
	border-radius: 100%;
}

.thankyou-card-header h1 {
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	line-height: 33px;
}

.thankyou-card-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	padding: 35px;

	font-size: 14px;
	line-height: 21px;
}

.thankyou-manager {
	color: var(--primary-color);
	font-size: 14px;
	line-height: 21px;
	font-weight: 700;
	padding: 0;

	display: flex;
	flex-direction: column;
	align-items: center;
}
.thankyou-manager-contact {
	color: #aaa;
	font-size: 12px;
	font-weight: 400;
	line-height: 18px;
}

.thankyou-card-body .btn {
	width: 150px;
	margin-top: 10px;
}

.thankyou-footer {
	color: #aaa;
	font-size: 12px;
	line-height: 18px;

	max-width: 530px;
	margin: 0 auto;
}

.thankyou-footer a {
	color: var(--primary-color);
	text-decoration: none;
}

.woocommerce-checkout .woocommerce-error {
	text-align: center;
	border: none;
	padding: 40px;
	color: #999;
	background: #fff;
	max-width: 1300px;
	margin-left: auto;
	margin-right: auto;
	margin-top: 40px;
}
.woocommerce-checkout .woocommerce-error::before {
	display: none;
}
.woocommerce-checkout .woocommerce-error a.wc-backward {
	display: inline-block;
	text-decoration: none;
	background: #222;
	color: #fff;
	padding: 10px 15px;
	border-radius: 4px;
	font-weight: bold;
	display: block;
	max-width: 150px;
	margin-left: auto;
	margin-right: auto;
	margin-top: 15px;
}

@media screen and (max-width: 768px) {
	.checkout .col-2 {
		padding: 20px;
	}
	.checkout .col-1 {
		padding: 25px 0px 170px 0px;
	}
	.checkout-h3 {
		font-size: 25px;
		margin-bottom: 5px;
		font-weight: bold;
	}
	.woocommerce-checkout table.shop_table tbody th,
	.woocommerce-checkout table.shop_table tfoot td,
	.woocommerce-checkout table.shop_table tfoot th {
		font-weight: 400;
		font-size: 12px;
	}
	.woocommerce-checkout ul#shipping_method .amount {
		font-weight: 400;
	}
	.woocommerce-checkout table.shop_table tfoot tr.order-total th {
		font-weight: 700;
	}
	.woocommerce-checkout table.shop_table tfoot td,
	.woocommerce-checkout table.shop_table tfoot th {
		padding: 0 0 5px 0;
	}
	.woocommerce-checkout-group {
		padding: 25px 20px;
		border-radius: 0;
		margin-bottom: 25px;
	}
	.woocommerce #payment #place_order,
	.woocommerce-page #payment #place_order {
		width: calc(100% - 20px);
		margin-left: auto;
		margin-right: auto;
	}
	.toggle-discount-code {
		font-weight: 600;
	}
	.custom-address-label {
		justify-content: center;
		margin-top: 10px;
		font-weight: 600;
		margin-top: 20px;
	}
}
