.woocommerce-checkout .page-hero h1{
	font-size: 1.875rem;
    line-height: 2.375rem;
	margin-bottom: 16px;
	font-weight: 600;
}

/* Checkout structure */
.woocommerce-checkout .woocommerce{
	position: relative;
}

@media screen and (min-width: 993px) {
	#customer_details {
		-webkit-box-flex: 0;
		-ms-flex: 0 0 50%;
		flex: 0 0 50%;
		max-width: 50%;
        width: 100%;
		float: left;
	}
	.woocommerce-checkout-details-wrapper {
		-webkit-box-flex: 0;
		-ms-flex: 0 0 44%;
		flex: 0 0 44%;
		max-width: 44%;
		padding: 0px 15px 15px 15px;
		float: right;
	}
	.woocommerce-checkout .woocommerce:after{
		content: '';
		display: table;
		clear: both;
	}
}

@media screen and (min-width: 1200px){
	.woocommerce-checkout-details-wrapper {
		-webkit-box-flex: 0;
		-ms-flex: 0 0 33%;
		flex: 0 0 33%;
		max-width: 33%;
	}
}

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

/* 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;
}

.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 */
#order_review_heading,
#customer_details h3:not(#ship-to-different-address){
	margin-top: 0;
	position: relative;
    font-size: 1.25rem;
    line-height: 1.563rem;
    color: var(--color-gray);
    font-weight: normal;
    display: inline-flex;
    align-items: center;
}

#order_review_heading:before,
#customer_details h3:not(#ship-to-different-address):before{
	content: '';
	display: block;
	width: 24px;
	height: 2px;
	background-color: var(--color-gray);
	margin-right: 12px;
}

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

/* User logging info */
.user-logging-info{
	display: flex;
    justify-content: space-between;
    align-items: flex-start;
	margin-bottom: 44px;
}

.user-logging-info p{
	margin: 0;
}

.user-logging-button-wrapper{
	display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 600;
    color: var(--color-text-gray);
    font-size: 1.25rem;
}

.showlogin.button{
	gap: 20px;
}

.showlogin.button:after{
	content: '';
	display: inline-block;
	-webkit-mask-image: url('../../../icons/arrow-right-white.svg');
	mask-image: url('../../../icons/arrow-right-white.svg');
	mask-repeat: no-repeat;
	-webkit-mask-repeat: no-repeat;
	mask-size: contain;
	-webkit-mask-size: contain;
	background-color: currentColor;
	width: 20px;
	height: 20px;
}

.user-logging-info a:not(.button){
	text-decoration: underline;
	color: var(--color-text-gray);
}
/* Checkout form */
#billing_country_field,
#shipping_country_field {
	display: none;
}

#billing_purchase_type_field .woocommerce-input-wrapper{
	display: flex;
    gap: 62px;
    margin-left: 38px;
	margin-bottom: 25px;
}

#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: 20px;
	position: relative;
}

.woocommerce form .form-row.place-order{
	margin: 0;
}

.woocommerce-checkout p.woocommerce-invalid-required-field span.error{
	position: absolute;
	top: 100%;
    left: 16px;
	font-size: 0.85rem;
    line-height: 1rem;
	display: block !important;
	color: var(--color-red);
}

.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 {
	margin-block: 40px;
	padding-left: 38px;
}

/* 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);
}

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

/* Order Review */
#order_review .cart_totals-item-count{
	margin-bottom: 0;
}

#order_review table{
	border-radius: 0;
    border-block: unset;
	border-collapse: collapse;
	border-width: 2px;
}

#order_review table thead{
	display: none;
}

#order_review table tbody{
	background-color: var(--color-background-blue);
}

#order_review table tbody .cart_item:last-of-type td{
	padding-bottom: 16px;
}

.woocommerce #order_review td{
	padding-block: 5px;
}

.woocommerce #order_review td.product-name {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 0.75rem;
	font-weight: 600;
}

#order_review .product-name img {
    width: 56px;
    height: 56px;
    background-color: #fff;
    border-radius: 10px;
}

.woocommerce #order_review td.product-name .product-quantity{
	font-weight: normal;
	color: var(--color-text-gray);
}

.woocommerce #order_review td.product-total .woocommerce-Price-amount{
	font-size: 0.75rem;
    line-height: 1rem;
    font-weight: normal;
}

.woocommerce #order_review tfoot td .woocommerce-Price-amount .price-decimal,
.woocommerce #order_review td.product-total .woocommerce-Price-amount .price-decimal{
	font-size: 0.5rem;
}

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

.woocommerce #order_review tfoot th,
.woocommerce #order_review tfoot td,
.woocommerce #order_review tfoot td .woocommerce-Price-amount{
	border-top: unset;
	font-size: 0.875rem;
    line-height: 1rem;
    font-weight: 500;
    color: var(--color-text-gray);
}

.woocommerce #order_review .cart-subtotal th,
.woocommerce #order_review .cart-subtotal td{
	padding-top: 16px;
}

.woocommerce #order_review .cart-tax-info th,
.woocommerce #order_review .cart-tax-info td{
	padding-bottom: 16px;
}

/* Shipping */
.woocommerce #order_review tfoot tr.shipping td{
    border-block: 2px solid var(--color-background-blue);
}

/* Coupon */
.woocommerce-form-coupon-toggle{
	display: none;
}

.woocommerce form.checkout_coupon{
	margin: 0;
    padding: 0;
    border: unset;
	display: flex !important;
    flex-direction: row;
    align-items: center;
    border-radius: 48px;
	max-width: 32%;
    margin-left: auto;
    margin-bottom: 20px;
	position: relative !important;
}

.woocommerce form.checkout_coupon p.form-row-first{
	flex-grow: 1;
	width: 100%;
	padding: 0;
	margin: 0;
}

#coupon_code{
	padding-block: 20px;
    padding-left: 40px;
	padding-right: 100px;
    background-color: var(--color-background-blue);
    font-weight: 600;
    border: unset;
	font-family: inherit;
	border-radius: 48px;
}

#coupon_code::-webkit-input-placeholder{
	font-weight: 600;
    color: var(--color-text-gray);
}

.woocommerce form.checkout_coupon p.form-row-last{
	display: inline-flex;
    width: auto;
	position: absolute;
    right: 8px;
    top: 7px;
    padding: 0;
	margin: 0;
}

.woocommerce form.checkout_coupon button{
	padding-block: 16px;
    background-color: var(--color-text);
	font-weight: normal;
}

.woocommerce form.checkout_coupon button:hover{
	background-color: var(--color-primary);
}

.woocommerce form.checkout_coupon button:after{
	content: '';
	display: inline-block;
	-webkit-mask-image: url('../../../icons/plus-icon.svg');
	mask-image: url('../../../icons/plus-icon.svg');
	mask-repeat: no-repeat;
	-webkit-mask-repeat: no-repeat;
	mask-size: contain;
	-webkit-mask-size: contain;
	background-color: currentColor;
	width: 12px;
    height: 12px;
    margin-left: 18px;
}

.woocommerce-remove-coupon{
	vertical-align: bottom;
}

.woocommerce form.checkout_coupon .coupon-error-notice{
	padding-left: 40px;
    line-height: 1rem;
}

/* Order total */
.woocommerce #order_review tfoot .order-total th,
.woocommerce #order_review tfoot .order-total td{
	padding-bottom: 24px;
}

.woocommerce #order_review tfoot .order-total th,
.woocommerce #order_review tfoot .order-total .woocommerce-Price-amount{
	font-size: 1.125rem;
    color: var(--color-text);
    font-weight: 600;
}

.woocommerce #order_review tfoot .order-total .woocommerce-Price-amount .price-decimal{
	font-size: 0.75rem;
}
/* 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;
	display: flex;
    padding-block: 16px;
    gap: 33px;
	border-bottom: 2px solid var(--color-background-blue);
	font-size: 0.875rem;
    line-height: 1rem;
    font-weight: 500;
}

.woocommerce-checkout #payment ul.payment_methods:before{
	content: 'Płatność';
	font: inherit;
	padding-top: 8px;
}

.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-checkout #payment .woocommerce-privacy-policy-checkbox-text,
.woocommerce-checkout #payment .woocommerce-terms-and-conditions-checkbox-text{
	font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 300;
	padding-left: 30px;
}

.woocommerce-checkout #payment input[type=checkbox]+*:before{
	border-width: 1px;
    border-radius: 4px;
	width: 16px;
    height: 16px;
}

.woocommerce-checkout #payment input[type=checkbox]+*:after{
	width: 18px;
    height: 18px;
	top: 0px;
    left: 0px;
	transform: none;
}

/* Place Order */
.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order{
	float: none;
    width: 100%;
    margin-block: 16px;
    padding-block: 16px;
	background: var(--color-gradient);
}

.woocommerce-page #payment #place_order:hover{
	opacity: var(--hover-opacity);
}

.woocommerce-page #payment #place_order:before{
	content: '';
	display: inline-block;
	-webkit-mask-image: url('../../../icons/checkout-cart-icon.svg');
	mask-image: url('../../../icons/checkout-cart-icon.svg');
	mask-repeat: no-repeat;
	-webkit-mask-repeat: no-repeat;
	mask-size: contain;
	-webkit-mask-size: contain;
	background-color: currentColor;
	width: 20px;
	height: 20px;
	margin-right: 16px;
}

.place-order-info{
	max-width: 305px;
    font-size: 0.75rem;
    line-height: 1rem;
	font-weight: 300;
	text-align: center;
    color: var(--color-gray);
    margin-inline: auto;
	margin-bottom: 0;
}

/* Messages */
.woocommerce-checkout .checkout .checkout-inline-error-message{
	line-height: 1rem;
}
/* Mobile */
@media screen and (max-width: 1199px){
	.woocommerce form.checkout_coupon{
		max-width: 43%;
	}
}

@media screen and (max-width: 992px){
	.woocommerce form.checkout_coupon{
		max-width: unset;
	}
}
@media screen and (min-width: 782px){
	.woocommerce-additional-fields__field-wrapper{
		flex-basis: 100%;
		width: 100%;
	}
	#customer_details .sw-logo-section{
		flex-shrink: 0;
	}
}

@media screen and (max-width: 781px){
	#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;
	}
	.user-logging-info p{
		font-size: 1.625rem;
   		max-width: 194px;
	}
	.user-logging-button-wrapper{
		flex-wrap: wrap;
		row-gap: 4px;
        max-width: 180px;
        text-align: center;
        justify-content: center;
	}
	.user-logging-button-wrapper button{
		width: 100%;
	}
}

@media screen and (max-width: 480px){
	.get_gus{
		text-align: left;
		position: relative;
		inset: unset;
	}
	#billing_purchase_type_field .woocommerce-input-wrapper{
		margin-left: 0;
		gap: 24px;
	}
	#ship-to-different-address{
		padding-left: 0;
		margin-block: 12px 24px;
	}
	.woocommerce #order_review .coupon-form td{
		padding-block: 12px 24px;
	}
	#coupon_code{
		padding-left: 24px;
	}
	.woocommerce #order_review .coupon-form td p.form-row-last{
		top: 22px;
	}
	.woocommerce #order_review .coupon-form button{
		padding-block: 12px;
	}
	.woocommerce form.checkout_coupon .coupon-error-notice{
		padding-left: 24px;
	}
}
