/* CHECKOUT */
.checkout-title {
	gap: 1rem;
	height: 2.5rem;
	margin-bottom: 1.5rem;
}

.checkout-nav {
	gap: 2.5rem;
	justify-content: center;
	margin-bottom: 1.5rem;
}
.checkout-nav .step {
	align-items: center;
	font-size: 0.88rem;
}
.checkout-nav .step .nr {
	width: 1.5rem;
	height: 1.5rem;
	border: 1px solid var(--purple);
	background-color: var(--white);
	margin-right: 0.75rem;
	color: var(--purple);
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 36px;
	font-weight: 500;
}
.checkout-nav .step.active .nr {
	background-color: var(--purple);
	color: var(--white);
}

.checkout-details .custom-select {
	border-radius: 4px;
	max-width: 24rem;
}

.checkout-details select, .checkout-details input[type="text"], .checkout-details input[type="date"], .checkout-details input[type="email"], .checkout-details input[type="tel"] {
	border-radius: 4px;
	color: var(--grey-500);
	padding-right: 1rem;
}

#customer_details .col-1, #customer_details .col-2 {
	width: 100%;
}

#customer_details .background, .background.gray-wrap {
	background-color: var(--grey-200);
	border-radius: 16px;
	padding: 1.5rem 0;
}
#customer_details .wrap, .background.gray-wrap .wrap {
	max-width: 49.5rem;
	width: 100%;
	margin: 0 auto;
}
#customer_details .optional {
	font-weight: 400;
	color: var(--grey-600);
}
.woocommerce-billing-fields__field-wrapper {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	column-gap: 0.75rem;
}
.woocommerce-billing-fields > h3 {
	display: none;
}
#customer_details #warehouse_field{
	width: 100%;
	order: 3;
}

.destination-pending-message {
	display: none;
}

.woocommerce-shipping-totals {
	font-weight: 600;
    font-size: 0.88rem;
    margin-top: 0.5rem;
}

#customer_details #warehouse_field .optional {
	display: none;
}

#customer_details #warehouse_field .custom-select {
	max-width: 24rem;
}

#customer_details .woocommerce-input-wrapper {
	display: flex;
}
#delivery_method_field {
	padding: 0;
	margin: 0;
	border: none;
	width: 100%;
}
#delivery_method_field .custom-radio-wrapper, .payment-option {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-weight: normal;
	height: 1.5rem;
}
#delivery_method_field > label {
	font-weight: 600;
	font-size: 0.88rem;
	height: 2rem;
	display: flex;
	align-items: center;
}
#delivery_method_field .custom-radio-wrapper label {
	font-weight: normal;
	height: 1.5rem;
}

#customer_details .form-row {
	display: block;
}
.business-user #customer_details .form-row {
	display: none;
}
#customer_details #billing_country_field {
	width: 100%;
}
#company_name_custom_field, #company_regcode_custom_field, #company_vat_custom_field {
	order: 4;
}
#customer_details #shipping_destination_field {
	width: 100%;
	display: block;
	max-width: 24rem;
	order: 2;
}
#customer_details .shipping-destination-info .wrap {
	padding: 0.5rem 1rem;
	gap: 0.5rem;
	display: flex;
	align-items: center;
}
#customer_details #delivery_date_field, #customer_details #order_comments_field, #customer_details #delivery_method_field {
	display: block;
	order: 3;
}
#customer_details #delivery_method_field {
	order: 1;
}
.dummy-row {
	order: 2;
	width: 100%;
}
.dummy-destination .input-wrap {
	gap: 0.88rem;
}
#shipping-destination-info {
	display: none !important;
}
#customer_details .form-row, #delivery_date_field, #order_comments_field {
	width: calc(50% - 0.75rem);
	margin-bottom: 0.5rem;
}
.payment-selection {
	border-top: 1px solid var(--grey-300);
	padding-top: 1.5rem;
	margin-top: 1rem;
}
#order_review {
	padding: 2.5rem 0;
}
.step-2 {
	display: none;
}
#order_review .product-image img {
	width: 4rem;
	height: 4rem;
	object-fit: contain;
}
#order_review table {
	border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--grey-300);
}
#order_review table th {
	border: none;
}
#order_review table tr td {
	border: none;
	border-bottom: 1px solid var(--grey-300);
}
#payment .wc_payment_methods {
	display: none;
}

.woocommerce-order-received section.simple-content {
	padding-top: 0;
}
#cancel-order {
	margin-right: auto;
    margin-left: 1rem;
}

#order_review .actions {
	align-items: flex-end;
}

.form-row.place-order {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

.form-row.place-order .buttons {
	display: flex;
	gap: 1rem;
}

.woocommerce-form__label-for-checkbox {
	position: relative;
	padding-left: 1.5rem;
}

.woocommerce .woocommerce-error {
	background-color: #FADDDF;
	color: var(--purple);
	padding: 0.5rem 1rem;
	list-style: none;
	text-align: center;
	margin-bottom: 0;
}
.woocommerce .woocommerce-error a {
	color: var(--purple);
}
.woocommerce .woocommerce-error li {
	margin-bottom: 0;
}

/* Dummy shipping destination field */

.dummy-destination input {
	background-color: #fff;
	width: calc(50% - 0.75rem);
	cursor: progress;
}

.destination-pending-message.message.error {
	margin-top: 0.5rem;
	font-size: 0.88rem;
	color: var(--purple);
}

/* Date picker */
body .ui-state-disabled {
	opacity: 1;
	color: var(--grey-500);
}
body .ui-datepicker .ui-datepicker-header {
	padding: 1rem 0;
	margin-bottom: 0;
}
body .ui-datepicker .ui-datepicker-title {
	line-height: normal;
	height: 1.5rem;
	line-height: 1.5rem;
}
body .ui-datepicker-month {
	text-transform: capitalize;
}

/* Select */

.select2-container--default .select2-selection--single {
	outline: 0;
    border: 1px solid var(--grey-300);
    border-radius: 4px;
    height: 2.5rem;
    width: 100%;
    max-width: 100%;
    padding-left: 1rem;
	border-radius: 4px;
    color: var(--grey-500);
    padding-right: 1rem;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
	height: 100%;
    line-height: 2.5rem;
    padding: 0;
	color: var(--grey-500);
}
.select2-container--open .select2-dropdown--below {
	border: 1px solid var(--grey-300);
}
.select2-container--default .select2-search--dropdown .select2-search__field {
	border: 1px solid var(--grey-300);
}
.select2-results__option {
	margin-bottom: 0;
	border-bottom: 1px solid var(--grey-300);
	color: var(--black);
	padding: 0.5rem 1rem;
}
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] {
	background-color: var(--grey-200);
	color: var(--black);
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
	font-size: 0;
    height: 100%;
    width: 2rem;
    display: flex;
    top: 0;
    align-items: center;
    justify-content: center;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
	display: none;
}
.select2-container--default .select2-selection--single .select2-selection__arrow:after {
    content: '';
	background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="12" height="7" viewBox="0 0 12 7" fill="none"%3E%3Cpath d="M5.53516 6.71558L0.285156 1.46558C0.0117188 1.21948 0.0117188 0.809326 0.285156 0.535889C0.53125 0.289795 0.941406 0.289795 1.21484 0.535889L6 5.34839L10.7852 0.563232C11.0312 0.289795 11.4414 0.289795 11.7148 0.563232C11.9609 0.809326 11.9609 1.21948 11.7148 1.46558L6.4375 6.71558C6.19141 6.98901 5.78125 6.98901 5.53516 6.71558Z" fill="%23181818"%3E%3C/path%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 7px;
    width: 12px;
    height: 7px;
    margin-left: 1rem;
	display: flex;
	margin: 0;
}
.select2-container--open .select2-selection__arrow:after {
	transform: rotate(180deg);
}


/* Container styling */
body .ui-datepicker {
    background: #fff;
	width: auto;
    border: none;
    border-radius: 8px;
    box-shadow: 0px 4px 15px 5px #0000000D;
    padding: 0.5rem;
	margin-top: 1rem;
	min-width: 344px;
}

/* Month and year navigation styling */
body .ui-datepicker-header {
    background: transparent;
    border: none;
    text-align: center;
    margin-bottom: 0.5rem
}

body .ui-datepicker-prev, .ui-datepicker-next {
    font-size: 20px;
    color: #999;
    cursor: pointer;
}

body .ui-datepicker-title select {
    border: none;
    font-size: 16px;
    font-weight: bold;
    color: #444;
    background: none;
}

/* Weekday names */
body .ui-datepicker th {
    color: var(--grey-400);
    font-weight: 500;
    font-size: 14px;
    padding: 5px 0;
}

/* Dates */
body .ui-datepicker td {
    padding: 0;
}

body .ui-datepicker .ui-state-default {
    background: #fff;
    border: none;
    color: var(--black);
    padding: 0;
	width: 2.5rem;
	height: 2.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-size: 1rem;
}

body .ui-widget.ui-widget-content {
	border-color: transparent;
}

body .ui-datepicker thead {
	background-color: transparent;
}

/* Hover effect */
body .ui-datepicker .ui-state-hover {
    background: var(--grey-200);
	border: none;
}

/* Selected date */
body .ui-datepicker .ui-state-active {
    background: var(--grey-200);
    color: var(--purple);
}

/* Disable other month days */
body .ui-datepicker .ui-datepicker-other-month {
    visibility: hidden;
}

body .ui-datepicker .ui-datepicker-next, body .ui-datepicker .ui-datepicker-prev {
	background-image: url(../../assets/img/arrow.svg);
	background-repeat: no-repeat;
    background-position: center;
	top: 0.5rem;
	width: 2.5rem;
    height: 2.5rem;
}
body .ui-datepicker .ui-datepicker-next {
	transform:rotate(180deg);
}
body .ui-datepicker .ui-datepicker-prev span, body .ui-datepicker .ui-datepicker-next span {
	display: none;
}

.status.success {
	
	margin-bottom: 2.5rem;
}

/* Cart message popup */
#cartMsg {
	position: fixed;
	top: 20px;
	right: 20px;
	padding: 1rem 1.5rem;
	border-radius: 4px;
	font-weight: 500;
	z-index: 9999;
	opacity: 0;
	transform: translateX(400px);
	transition: all 0.3s ease;
	pointer-events: none;
	max-width: 400px;
}

#cartMsg.visible {
	opacity: 1;
	transform: translateX(0);
	pointer-events: auto;
}

#cartMsg.success {
	background-color: #5CB85C;
	color: white;
}

#cartMsg.error {
	background-color: #e2401c;
	color: white;
}
#place_order:before {
	content: '';
	width: 16px;
    height: 15px;
	background-image: url(../../assets/img/check-green.svg);
	background-size: contain;
    background-repeat: no-repeat;
	display: inline-flex;
	margin-right: 0.5rem;
}

.checkout ul {
	list-style: none;
	padding-left: 0;
}
.checkout ul li {
	display: flex;
	align-items: center;
	margin-bottom: 0;
	gap: 0.5rem;
}

@media (max-width: 767px) {
	.back-wrap {
		position: fixed;
		padding: 1.25rem 1rem;
		background-color: #fff;
		width: 100%;
		left: 0;
		bottom: 0;
		z-index: 10;
	}
	.back-wrap .button {
		width: 100%;
		justify-content: center;
	}
	.status.success {
		width: 100vw;
		margin-left: -1rem;
	}
	.status.success svg {
		flex-shrink: 0;
	}
	.actions {
		position: fixed;
        bottom: 0;
        background-color: #fff;
        align-items: center;
        width: 100%;
        text-align: center;
		padding: 1.25rem 1rem;
		gap: 1rem;
		left: 0;
		justify-content: center !important;
		z-index: 10;
	}
	.actions #cancel-order {
		margin: 0;
		background-color: #fff;
		color: #CC1F2E;
	}
	.actions #back-order {
		display: none;
	}
	.payment-selection {
		margin-bottom: 1.5rem;
	}
	#customer_details .optional {
		display: none;
	}
	.checkout-nav {
		gap: 0;
		margin-bottom: 1rem;
		padding-bottom: 1rem;
		border-bottom:1px solid var(--grey-200);
	}
	.checkout-nav .step {
		flex-direction: column;
		justify-content: center;
		text-align: center;
		justify-content: flex-start;
		width: 33.33%;
		position: relative;
    }
	
	#customer_details .wrap, .background.gray-wrap .wrap {
		padding: 0 1rem;
	}
	.checkout-nav .step .nr {
		margin: 0;
		margin-bottom: 0.25rem;
		position: relative;
		z-index: 2;
	}
	.checkout-nav .step:before {
		content: '';
		position: absolute;
		height: 4px;
		width: 100%;
		top: 10px;
		margin: auto;
		background-color: var(--grey-200);
	}
	.checkout-nav #step-1:before {
		width: 50%;
		right: 0;
	}
	.checkout-nav #step-3:before {
		width: 50%;
		left: 0;
	}
	#customer_details .form-row, #delivery_date_field, #order_comments_field {
		width: 100%;
	}
}