/* Checkout structure */
.woocommerce-checkout .page-content{
	padding-block: 20px;
}

form.woocommerce-checkout {
	display: flex;
	flex-wrap: wrap;
}

.woocommerce-checkout-details-wrapper{
	background: #f6f6f6;
}

@media screen and (min-width: 992px) {
	#customer_details {
		-webkit-box-flex: 0;
		-ms-flex: 0 0 66.66667%;
		flex: 0 0 66.66667%;
		max-width: 66.66667%;
		padding-right: 30px;
	}
	.woocommerce-checkout-details-wrapper {
		-webkit-box-flex: 0;
		-ms-flex: 0 0 33.33333%;
		flex: 0 0 33.33333%;
		max-width: 33.33333%;
		padding: 0px 15px 15px 15px;
	}
}

@media screen and (max-width: 992px) {
	#customer_details {
		width: 100%;
		margin-bottom: 32px;
	}
}

/* Checkout mode */
.checkout-mode{
	margin-bottom: 32px;
    text-align: center;
    display: flex;
	flex-direction: column;
	justify-content: center;
	row-gap: 10px;
}

.checkout-mode h3{
	margin-right: auto;
	width: 100%;
	margin-bottom: 10px;
}

.checkout-mode__options{
	display: flex;
	justify-content: center;
}

.checkout-mode label{
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    margin-inline: 15px;
	cursor: pointer;
}

.checkout-mode img{
	aspect-ratio: 4/2;
    height: 60px;
	width: 80px;
	object-fit: contain;
}

form .checkout-mode input[type=radio]+*{
	padding-left: 0;
}

form .checkout-mode input[type=radio] + img{
	border: 2px solid transparent;
	border-radius: var(--border-radius);
	transition: var(--transition);
}

form .checkout-mode input[type=radio]:hover + img{
	border-color: var(--border-color);
	box-shadow: var(--box-shadow);
}

form .checkout-mode input[type=radio]:checked + img{
	border-color: var(--color-primary);
	box-shadow: var(--box-shadow);
}

form .checkout-mode input[type=radio]:checked ~ span{
	color: var(--color-primary);
}

/* Logo update */
.sw-logo-wrapper {
	position: relative;
}

input[type="file" i]::-webkit-file-upload-button, input::file-selector-button{
	background-color: var(--color-primary);
    font-size: 13px;
    text-transform: uppercase;
    color: #ffffff;
    padding: 8px 16px;
    height: 100%;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 2px;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
}

.sw-logo-section span.small{
	font-size: 0.6rem;
    line-height: 1rem;
    color: #a4a4a4;
}

.sw-logo-wrapper input[type="file"]{
	display: block;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
	right: 45px;
}

.sw-logo-wrapper label[for="sw_logo"] a{
	visibility: hidden;
}

/* Customer Login */
.woocommerce-form-login .form-row:not(.form-row-last, .form-row-first){
	display: flex;
    flex-wrap: wrap;
}

.woocommerce-form-login__rememberme{
	width: 100%;
    margin-bottom: 16px;
}

.woocommerce-form-login input.input-text{
	background-color: var(--color-background);
    border-color: var(--color-background);
}

.woocommerce form.woocommerce-form-login .form-row label{
	line-height: 1.2rem;
    padding-bottom: 12px;
}

.woocommerce-form-login__submit{
	position: relative;
	width: 200px;
}

.woocommerce-form-login__submit:before{
	content:'';
    display: block;
    width: 16px;
    height: 16px; 
	margin-right: 10px;
	-webkit-mask-image: url('../../../icons/enter-outline.svg');
	mask-image: url('../../../icons/enter-outline.svg');
	background-color: currentColor;
}

.woocommerce form.login .form-row-last{
	margin-left: 0;
}

@media screen and (max-width: 768px){
	.woocommerce .woocommerce-form-login .woocommerce-form-login__submit{
		width: 100%;
    	margin-right: 0;
	}
	.checkout-mode label{
		margin-inline: 8px;
	}
}

/* Customer details */
#customer_details h3:not(#ship-to-different-address){
	font-size: clamp(1rem, 3vw, 1.3rem);
	padding-left: 3px;
}

#customer_details .woocommerce-shipping-fields {
	padding: 0 3px;
}

.user-logging-info{
	padding-left: 3px;
    margin-bottom: 12px;
    display: block;
}

#billing_country_field,
#shipping_country_field {
	display: none;
}

#customer_details div.create-account{
	padding-bottom: 32px;
}
/* Checkout form */
#customer_details .sw-logo-section,
.woocommerce-additional-fields__field-wrapper,
.woocommerce form .form-row-first,
.woocommerce-page form .form-row-first,
.woocommerce form .form-row-last,
.woocommerce-page form .form-row-last {
	width: calc(50% - 6px);
}

.woocommerce form .form-row{
	margin-bottom: 15px;
	position: relative;
}

.woocommerce-checkout p.woocommerce-invalid-required-field span.error{
	position: absolute;
    top: 100%;
    left: 3px;
}

.woocommerce form .form-row-last,
.woocommerce-page form .form-row-last .woocommerce form .form-row-half+.form-row-half {
	margin-left: 12px;
}

.form-row-half {
	width: calc(50% - 10px);
	display: inline-block;
}

#ship-to-different-address {
	font-size: 15px;
	margin-bottom: 10px;
	margin-top: 0;
	letter-spacing: normal;
	font-weight: 500;
}

#customer_details .sw-logo-section #sw_logo_list{
	position: absolute;
    right: 5px;
    top: 0;
    width: 40px;
    height: 100%;
}

#customer_details .sw-logo-section #sw_logo_list img{
	height: 100%;
    object-fit: contain;
}

/* GUS */
.get_gus {
    text-align: right;
    font-size: 12px;
    margin-top: 0px;
	position: absolute;
    right: 4px;
    bottom: -13px;
}

div#response{
	margin: 0;
}

/* Checkout validation for fields */
.woocommerce form .form-row.woocommerce-validated input.input-text,
.woocommerce-page form .form-row.woocommerce-validated input.input-text {
	background-repeat: no-repeat;
	background-size: 18px;
	background-position: calc(100% - 15px) center;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='25.009' height='18' viewBox='0 0 25.009 18'%3E%3Cpath d='M44.4,30.794,31.329,43.868l-5.785-5.785a1.836,1.836,0,1,0-2.6,2.6l7.061,7.061a1.8,1.8,0,0,0,1.276.547,1.724,1.724,0,0,0,1.276-.547l14.3-14.3a1.815,1.815,0,0,0,0-2.6A1.692,1.692,0,0,0,44.4,30.794Z' transform='translate(-22.4 -30.287)' fill='%2300b579'/%3E%3C/svg%3E%0A");
	transition: none;
}

.form-row.woocommerce-validated .nice-select{
	border-color: #6dc22e;
}

.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid-required-field input.input-text,
.woocommerce form .form-row.woocommerce-invalid select,
.form-row.woocommerce-invalid-required-field .nice-select {
	border-color: var(--color-red);
}

.woocommerce-checkout p.woocommerce-invalid-required-field span.error {
	display: block !important;
	color: var(--color-red);
	font-size: 12px;
}

#customer_details .woocommerce-additional-fields {
	display: flex;
    align-items: stretch;
    justify-content: space-between;
	margin-bottom: 20px;
}

/* Order Review */
#order_review_heading{
	font-size: clamp(1rem, 3vw, 1.3rem);
    text-align: center;
}

.woocommerce #order_review table.shop_table{
    padding: 12px;
}

.woocommerce #order_review table.shop_table th,
.woocommerce #order_review table.shop_table td{
	padding-inline: 0;
}

.woocommerce #order_review table.shop_table tbody td.product-name {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	padding-left: 60px;
	position: relative;
	gap: 8px;
	min-height: 70px;
}

#order_review .product-name img {
	position: absolute;
	left: 0;
	top: 12px;
	width: 50px;
}

#order_review table.shop_table tr th:nth-child(2),
#order_review table.shop_table tr td:nth-child(2) {
	text-align: right;
}

/* Variation */
.woocommerce td.product-name dl.variation{
	display: flex;
    align-items: center;
    gap: 4px;
	margin-top: 0px;
	width: 100%;
}

.woocommerce td.product-name dl.variation p{
	margin: 0;
}

/* Payu banks */
.payu-bank input[type=checkbox]+*:before,
.payu-bank input[type=radio]+*:before {
	display: none;
}

.payu-bank input[type=checkbox]+*,
.payu-bank input[type=radio]+* {
	padding-left: 0;
}

.payu-bank input[type=checkbox]:checked+*:after,
.payu-bank input[type=radio]:checked+*:after {
	visibility: hidden;
}

.pbl-container .payu-list-banks li.payu-bank:not(.payu-inactive) label:hover,
.pbl-container .payu-list-banks li.payu-bank label.active {
	border-color: var(--color-primary);
}

/* Paymanet */
.woocommerce-checkout #payment .woocommerce-info{
	margin-bottom: 0;
}

.woocommerce-checkout #payment ul.payment_methods {
	border-bottom: unset;
	position: relative;
	padding-bottom: 0;
	padding-top: 0;
}

.woocommerce-checkout #payment ul.payment_methods:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	background-color: var(--color-background);
	width: 93%;
	height: 1px;
}

.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order{
	float: none;
    width: 100%;
    margin-block: 8px;
    text-transform: uppercase;
    box-shadow: var(--box-shadow);
}

.payment_box p{
	margin-top: 0;
}

.woocommerce-terms-and-conditions-wrapper{
	margin-bottom: 20px;
}

.woocommerce-terms-and-conditions-wrapper span > a{
	text-decoration: underline;
}

.woocommerce-privacy-policy-text p{
	margin-top: 0;
}

.woocommerce-privacy-policy-checkbox-text,
.woocommerce-terms-and-conditions-checkbox-text{
	line-height: 1rem;
    display: block;
}

/* Mobile */
@media screen and (min-width: 769px){
	.woocommerce-additional-fields__field-wrapper{
		flex-basis: 100%;
	}
	#customer_details .sw-logo-section{
		flex-shrink: 0;
	}
}
@media screen and (max-width: 768px){
	#customer_details .sw-logo-section,
	.woocommerce-additional-fields__field-wrapper,
	.woocommerce form .form-row-first,
	.woocommerce-page form .form-row-first,
	.woocommerce form .form-row-last,
	.woocommerce-page form .form-row-last{
		width: 100%;
	}
	#customer_details .woocommerce-additional-fields{
		flex-direction: column;
	}
	#customer_details .sw-logo-section{
		margin-left: 0;
	}
}

@media screen and (max-width: 480px){
	.get_gus{
		text-align: left;
		position: relative;
		inset: unset;
	}
}

@media screen and (max-width: 360px){
	.woocommerce #order_review table.shop_table{
		font-size: 0.85rem;
		line-height: 1rem;
		padding: 8px;
	}
}