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

form.woocommerce-checkout {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 64px;
	gap: 32px;
}

form.woocommerce-checkout .woocommerce-NoticeGroup{
	width: 100%;
}

.woocommerce-checkout-details-wrapper{
    background-color: transparent;
    border: 2px solid var(--color-text);
    border-radius: var(--border-radius);
}

#order_review .apaczka-parcel-machine-label{
	display: contents;
}

.woocommerce #order_review table.shop_table td.apaczka-parcel-machine-select{
	padding-left: 30px;
}

#order_review .button.alt.apaczka_pl_geowidget_classic, #order_review #apaczka_pl_geowidget_classic{
	margin-inline: 0;
}

/* Coupon */
#order_review .coupon-form{
	background-color: var(--color-background-orange);
}

.woocommerce-form-coupon-toggle .woocommerce-info{
	border-color: transparent;
    background-color: var(--color-background-orange);
    margin-bottom: 0;
	padding-left: 0;
	padding-block: 8px;
}

.showcoupon{
	font-weight: 600;
    text-decoration: underline;
}

.woocommerce-form-coupon-toggle .woocommerce-info:before{
	content: unset;
}

#order_review .checkout_coupon{
	border: unset;
    margin: 0;
    padding: 0;
	display: flex;
	flex-direction: row;
    align-items: center;
	padding-block: 16px;
}

#order_review .checkout_coupon .button{
	background-color: var(--color-text);
    color: #fff;
    margin-left: auto;
    height: 51px;
	line-height: 1rem;
}

#order_review .coupon-form p.form-row,
#order_review form.checkout_coupon p.form-row{
	padding: 0;
    margin: 0;
	display: inline-flex;
    width: auto;
}

#order_review .coupon-form p.form-row input[type="text"],
#order_review form.checkout_coupon p input[type="text"]{
	background-color: #fff;
	border: unset;
}

/* Customer Login */
.showlogin{
	text-transform: capitalize;
    margin-left: 4px;
    font-weight: 600;
    text-decoration: underline;
}

.woocommerce form.checkout_coupon, .woocommerce form.login, .woocommerce form.register{
	border: 2px solid var(--color-text);
    border-radius: var(--border-radius);
    max-width: 950px;
    padding: 32px;
    margin-top: 0;
	display: flex;
    flex-direction: column;
    align-items: center;
}

.woocommerce form.login p,
.woocommerce form.login p.form-row{
	width: 100%;
    max-width: 536px;
	float: none;
}

.woocommerce form.login p:first-child{
	margin-top: 0;
	max-width: 536px;
    margin-inline: auto;
}

.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 .woocommerce-form-login .woocommerce-form-login__rememberme{
	margin-left: 20px;
}

.woocommerce .woocommerce-form-login .woocommerce-form-login__submit{
	position: relative;
	width: 100%;
    margin: 0;
    background-color: var(--color-text);
    color: #fff;
    font-size: 1rem;
}

.woocommerce-form-login__submit:before{
	content:'';
    display: block;
    width: 20px;
    height: 20px; 
	margin-right: 12px;
	-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;
}

.lost_password{
	margin: 0;
	text-decoration: underline;
    text-align: center;
}

/* Customer type */
#billing_purchase_type_field{
	padding: 20px;
    border-radius: 30px;
    background-color: var(--color-background);
    font-weight: 600;
}

#billing_purchase_type_field .woocommerce-input-wrapper{
	display: flex;
	justify-content: space-around;
    max-width: 429px;
	gap: 12px;
    margin-inline: auto;
}

.woocommerce form #billing_purchase_type_field label{
	display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1rem;
    padding: 0;
}

.woocommerce form #billing_purchase_type_field input[type=radio]+*:before{
	border: 2px solid var(--color-text);
    height: 32px;
    width: 32px;
	border-radius: 50%;
    position: relative;
    inset: unset;
    transform: none;
	background-color: #fff;
}

.woocommerce form #billing_purchase_type_field input[type=radio]:checked+*:before{
	border-color: #FFA927;
}

.woocommerce form #billing_purchase_type_field input[type=radio]:hover+*:before{
	background-color: var(--color-background);
}

.woocommerce form #billing_purchase_type_field input[type=radio]+*:after{
	background-image: unset;
    background-color: #FFA927;
    border-radius: 50%;
    left: 8px;
}

.woocommerce form #billing_purchase_type_field label .required{
	display: none;
}

/* Customer details */
#customer_details h3:not(#ship-to-different-address){
	font-size: 1.25rem;
    line-height: 1.563rem;
    position: relative;
	margin-top: 0;
}

#customer_details h3:not(#ship-to-different-address):before{
	content: '1.';
	font: inherit;
	color: var(--color-secondary);
	margin-right: 16px;
}

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

#billing_country_field,
#shipping_country_field {
	display: none;
}

/* Checkout form */
#customer_details .sw-logo-section,
.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{
	display: block !important;
	color: var(--color-red);
	font-size: 12px;
	position: absolute;
   	top: 100%;
    left: 32px;
}

/* Retain the theme fallback until WooCommerce supplies an inline error. */
.woocommerce-checkout .form-row:has(.checkout-inline-error-message) span.error{
	display: none !important;
}

.woocommerce-checkout .checkout-inline-error-message{
	margin-left: 30px;
    margin-top: 5px;
}

.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;
}

/*  */
.woocommerce-account-fields,
#ship-to-different-address {
	font-weight: 600;
    margin-left: 24px;
    margin-block: 24px 32px;
}

.woocommerce-account-fields + .woocommerce-shipping-fields #ship-to-different-address{
	margin-top: 4px;
}

.woocommerce-account-fields input[type=checkbox]+*,
#ship-to-different-address span{
	font-size: 1rem;
	padding-left: 50px;
}

.woocommerce-account-fields input[type=checkbox]+*:before,
#ship-to-different-address input[type=checkbox]+*:before{
	height: 20px;
    width: 20px;
}

.woocommerce-account-fields input[type=checkbox]:checked+*:before,
#ship-to-different-address input[type=checkbox]:checked+*:before{
	border-color: #FFA927;
}

.woocommerce-account-fields input[type=checkbox]+*:after,
#ship-to-different-address input[type=checkbox]+*:after{
	width: 20px;
    height: 20px;
    background-color: #FFA927;
    border: 1px solid #FFA927;
    border-radius: 6px;
    left: 0;
	top: 50%;
}

/* Create account fields */
.woocommerce-account-fields{
	margin-bottom: 12px;
    margin-top: 20px;
}

.woocommerce form .woocommerce-account-fields .form-row{
	padding: 0;
}

.woocommerce-account-fields .create-account{
	margin-left: -20px;
}

.woocommerce-account-fields .create-account p.form-row{
	margin: 0;
    padding-block: 12px 8px;
}

/* 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: block;
	padding: 24px 24px 0;
}

#customer_details .woocommerce-additional-fields > h3:not(#ship-to-different-address)::before {
	content: none;
}

#customer_details .woocommerce-additional-fields__field-wrapper {
	width: 100%;
}

.woocommerce-billing-fields > label[data-automation-id="woo-commerce-subscription-opt-in"] {
	display: block;
	margin: 20px 24px 0;
}

/* This row contains only MailPoet's hidden submission marker. */
.woocommerce form #mailpoet_woocommerce_checkout_optin_present_field {
	display: none;
}

.woocommerce-billing-fields > label[data-automation-id="woo-commerce-subscription-opt-in"] > span {
	display: block;
	line-height: 1.5;
}

@media screen and (max-width: 480px) {
	#customer_details .woocommerce-additional-fields {
		padding-inline: 16px;
	}
	.woocommerce-billing-fields > label[data-automation-id="woo-commerce-subscription-opt-in"] {
		margin-inline: 16px;
	}
}

/* Order Review */
#order_review_heading{
	font-size: 1.25rem;
    line-height: 1.563rem;
    position: relative;
	padding-inline: 32px;
    margin-top: 32px;
	margin-bottom: 32px;
}

#order_review_heading:before{
	content: '2.';
	font: inherit;
	color: var(--color-secondary);
	margin-right: 16px;
}

.woocommerce #order_review table.shop_table{
    padding: 0;
}

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

.woocommerce #order_review table.shop_table .coupon-form td{
	padding-left: 32px;
}

.woocommerce #order_review table.shop_table tbody td.product-name {
	display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding-left: 100px;
    position: relative;
    min-height: 70px;
    font-size: 0.875rem;
    line-height: 1.125rem;
    font-weight: 500;
	padding-block: 6px;
}

#order_review .product-name img {
	position: absolute;
    left: 0;
    top: 2px;
    width: 94px;
    height: 64px;
	padding-left: 16px;
}

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

#order_review .woocommerce-Price-amount{
	font-size: 1rem;
    line-height: 1rem;
	font-weight: 700;
}

#order_review .price-decimal{
	font-size: 0.75rem;
    line-height: 1rem;
}

#order_review .product-quantity-wrapper{
	font-size: 0.75rem;
    line-height: 0.625rem;
	color: #676973;
	width: 100%;
	font-weight: 400;
}

.woocommerce table.shop_table td.product-total{
	vertical-align: text-top;
}

#order_review table.shop_table,
#order_review table.shop_table tbody{
	position: relative;
}

#order_review table.shop_table tbody:after{
	content: '';
	position: absolute;
	top: -16px;
	left: 6px;
    width: calc(100% - 16px);
	height: calc(100% + 24px);
	border: 2px solid var(--color-background);
	border-radius: var(--border-radius);
	z-index: -1;
}

/* Table tfoot */
.woocommerce #order_review table.shop_table tfoot th{
	padding-left: 32px;
}

.woocommerce #order_review table.shop_table tfoot th,
.woocommerce #order_review table.shop_table tfoot td{
	font-size: 1rem;
	font-weight: 500;
	padding-block: 6px;
}

.woocommerce #order_review table.shop_table tfoot tr:first-child td,
.woocommerce #order_review table.shop_table tfoot tr:first-child th{
	padding-top: 26px;
	padding-bottom: 16px;
}

/* Coupon */
#order_review table.shop_table .cart-discount,
#order_review table.shop_table .cart-discount .amount{
	color: #FFA927;
}

#order_review table.shop_table .cart-discount td{
	display: inline-table;
}

.cart-discount .woocommerce-remove-coupon{
	margin-left: 5px;
    color: #676973;
}

/* Total */
.woocommerce #order_review table.shop_table tfoot .order-total th{
	font-weight: 700;
    font-size: 1.25rem;
}

#order_review .order-total td .amount{
	font-size: 1.625rem;
}

#order_review .order-total td .price-decimal{
	font-size: 1rem;
}

/* Variation */
.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{
	background-color: transparent;
    border-radius: 0;
}

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

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

.woocommerce ul.payment_methods li{
	padding-block: 10px;
    margin: 0;
    position: relative;
    cursor: pointer;
	background-color: var(--color-background);
    border-radius: 27px;
    padding: 20px;
}

.woocommerce-checkout #payment ul.payment_methods li + li{
	margin-top: 10px;
}

#payment ul.payment_methods input[type=radio]+*:before{
	border-radius: 50%;
    border: 2px solid var(--color-text);
    background-color: #fff;
    width: 32px;
    height: 32px;
}

#payment ul.payment_methods input[type=radio]+*:after{
	width: 16px;
    height: 16px;
    background-image: none;
    border-radius: 50%;
    background-color: #FFA927;
    left: 10px;
}

#payment ul.payment_methods li label:not(.p24-payment-container label){
	padding-left: 52px;
    font-size: 1rem;
    font-weight: 700;
}

#payment ul.payment_methods input[type=radio]:checked+*:before{
	border-color: #FFA927;
}

.woocommerce-checkout #payment div.payment_box{
	margin-bottom: 0;
    padding-bottom: 0;
    padding-top: 8px;
    font-size: 0.8rem;
    line-height: 1rem;
	background-color: var(--color-background);
}

.woocommerce-checkout #payment div.payment_box::before{
	display: none;
}

.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order{
	float: none;
    width: calc(100% - 32px);
	background-color: var(--color-text);
	color: #fff;
	position: relative;
	font-size: 1.5rem;
	font-weight: 500;
	justify-content: space-between;
    padding-inline: 36px;
}

.woocommerce #payment #place_order:hover,
.woocommerce-page #payment #place_order:hover{
	background-color: var(--color-primary);
	color: var(--color-text);
}	

.woocommerce #payment #place_order{
	font-size: 0;
}

.woocommerce #payment #place_order:before{
	content: 'Kupuję i płacę';
	font: inherit;
	font-size: 1.5rem;
}

.woocommerce #payment #place_order:after{
	content: '';
	display: inline-block;
	-webkit-mask-image: url('../../../icons/checkout-icon.svg');
	mask-image: url('../../../icons/checkout-icon.svg');
	mask-repeat: no-repeat;
	-webkit-mask-repeat: no-repeat;
	mask-size: contain;
	-webkit-mask-size: contain;
	background-color: currentColor;
	width: 31px;
	height: 24px;
}

.payment_box p{
	margin-top: 0;
}

.woocommerce-checkout #payment ul.payment_methods li .p24-online-payments .checkbox{
	font-weight: 500;
    line-height: 1.2rem;
}

.woocommerce-checkout #payment ul.payment_methods li .p24-online-payments .checkbox a{
	text-decoration: underline;
}

.woocommerce-checkout #payment ul.payment_methods li .p24-online-payments .checkbox input{
	margin-right: 5px;
	vertical-align: -2px;
}

/* Place order */
.woocommerce-checkout #payment .place-order{
    margin: 0;
	text-align: center;
}

.woocommerce-checkout #payment .place-order .form-row{
	padding: 0;
}

.woocommerce form .form-row label.checkbox.woocommerce-form__label-for-checkbox{
	margin: 0;
    background-color: var(--color-background-orange);
    padding-block: 24px 12px;
    margin-bottom: 16px;
    margin-inline: -16px;
    padding-inline: 32px;
    font-size: 0.875rem;
    font-weight: 500;
    display: block;
	margin-bottom: 0;
}

.woocommerce form .woocommerce-terms-and-conditions-wrapper label.checkbox.woocommerce-form__label-for-checkbox{
	padding-top: 8px;
    padding-bottom: 24px;
}

.woocommerce-terms-and-conditions-wrapper input[type=checkbox]:not(#p24-online-payments-regulation-checkbox_0)+*:before{
	top: 0px;
	transform: unset;
}

.woocommerce-terms-and-conditions-wrapper input[type=checkbox]+*:after{
	top: 1px;
	transform: unset;
}

.woocommerce-terms-and-conditions-wrapper .checkout-inline-error-message{
	margin-left: 39px;
    text-align: left;
}

.place_order .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: 992px) {
	#customer_details {
		-webkit-box-flex: 0;
		-ms-flex: 0 0 58.66667%;
		flex: 0 0 58.66667%;
		max-width: 58.66667%;
	}
	.woocommerce-checkout-details-wrapper {
		-webkit-box-flex: 0;
		-ms-flex: 0 0 33.33333%;
		flex: 0 0 33.33333%;
		max-width: 33.33333%;
	}
}

@media screen and (max-width: 992px) {
	#customer_details {
		width: 100%;
	}
	#order_review table.shop_table tbody:after{
		display: none;
	}
}

@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;
	}
	.woocommerce .woocommerce-form-login .woocommerce-form-login__submit{
		width: 100%;
    	margin-right: 0;
	}
	.checkout-mode label{
		margin-inline: 8px;
	}
}

@media screen and (min-width: 481px){
	#order_review form.checkout_coupon p input[type="text"]{
		border-top-right-radius: 0;
    	border-bottom-right-radius: 0;
	}
	#order_review .coupon-form p.form-row.form-row-first,
	#order_review form.checkout_coupon p.form-row:first-child{
		flex-grow: 1;
		margin-right: -40px;
	}
}

@media screen and (max-width: 480px){
	.get_gus{
		text-align: left;
		position: relative;
		inset: unset;
	}
	#order_review .checkout_coupon{
		flex-direction: column;
   		gap: 12px;
	}
	#order_review form.checkout_coupon p.form-row{
		width: 100%;
	}
	.woocommerce form.checkout_coupon, .woocommerce form.login, .woocommerce form.register{
		padding: 20px;
	}
	#order_review_heading{
		padding-inline: 16px;
    	margin-top: 16px;
	}
	.woocommerce #order_review table.shop_table th,
	.woocommerce #order_review table.shop_table td{
		padding-inline: 0px 16px;
	}
	.woocommerce #order_review table.shop_table tbody td.product-name{
		padding-right: 8px;
	}
	#order_review .checkout_coupon,
	.woocommerce #order_review table.shop_table tfoot th{
		padding-left: 16px;
	}
	.woocommerce-form-coupon-toggle .woocommerce-info{
		padding-left: 16px;
    	padding-right: 0;
	}
	.woocommerce-terms-and-conditions-wrapper,
	.woocommerce-checkout #payment ul.payment_methods{
		padding-inline: 16px;
	}
	.woocommerce #payment #place_order, .woocommerce-page #payment #place_order{
		width: calc(100% - 16px);
		margin-bottom: 0;
	}
	.woocommerce-account-fields,
	#ship-to-different-address{
		margin-left: 16px;
	}
}