.checkout-layout {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.checkout-left {
    flex: 1 1 60%;
}

.checkout-right {
    flex: 1 1 35%;
    position: sticky;
    top: 180px;
    align-self: flex-start;
}

.checkout-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

/* .order-summary {
	padding: 20px;
	border: 1px solid #ddd;
	background: #fafafa;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
} */
/* #place_order{
	width: 100%;
} */


ul#shipping_method .shipping_method_container:has(.shipping_method[type="hidden"]){
    padding-left: 3em;
}

body.woocommerce-checkout h1 {
    display: none;
}

.woocommerce form .form-row label.checkbox {
    line-height: 1.5;
    font-size: 15px;
    font-weight: 500;
}

body.woocommerce-checkout input[type="checkbox"] {
    opacity: 0 !important;
    position: absolute !important;
    appearance: none !important;
}

body.woocommerce-checkout label:has(input[type="checkbox"]) {
    font-family: "Livvic", Sans-serif;
    position: relative !important;
    left: 0 !important;
    top: 0!important;
    display: flex;
    align-items: center;
    gap: .4em;
    font-size: 15px;
    margin-left: 2px;
    font-weight: 500;
}

body.woocommerce-checkout label:has(input[type="checkbox"])::before {
    content: '✔';
    color:transparent;
    width: 1.6rem;
    height: 1.6rem;
    display: inline-block;
    border-radius: 5px;
    aspect-ratio: 1/1;
    background-color: white !important;
    border: 2px solid gray !important;
    display: inline-grid;
    place-content: center;

}

body.woocommerce-checkout label:has(input[type="checkbox"]:checked)::before {
    background-color: #ecb445 !important;
    border: 2px solid #ecb445 !important;
    content: '✔';
    color: #ffffff;
}

input[type="checkbox"]#woo_ml_subscribe:checked {
    background-color: #ecb445 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 2px solid #ecb445 !important;
}

input[type="checkbox"]#woo_ml_subscribe:checked::after {
    content: '✔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 16px;
}

form.checkout.woocommerce-checkout {
    margin-top: 4rem;
}

form[name="checkout"] .form-row {
    position: relative;
}

.woocommerce form .form-row label.checkbox {
    color: var(--e-global-color-text);
}

form[name="checkout"] .form-row>label {
    position: absolute;
    top: .75rem;
    left: 1.5rem;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Livvic';
    width: calc(100% - 3rem);
}
form[name="checkout"] p.form-row:has(input[type="text"]) label,
form[name="checkout"] p.form-row:has(input[type="email"]) label,
form[name="checkout"] p.form-row:has(input[type="tel"]) label,
form[name="checkout"] p.form-row:has(textarea) label{
    pointer-events: none;

}
form[name="checkout"] input::placeholder,
form[name="checkout"] textarea::placeholder {
    color: transparent !important;
    opacity: 0;
}

form[name="checkout"] input[type="text"],
form[name="checkout"] input[type="tel"],
form[name="checkout"] input[type="email"],
form[name="checkout"] textarea,
form[name="checkout"] .select2.select2-container .select2-selection .select2-selection__rendered {
    color: #646b3b !important;
    padding: .8rem 1rem !important;
    height: unset !important;
    border-radius: 1rem !important;
}

form[name="checkout"] .select2.select2-container .select2-selection {
    border-radius: 1rem !important;
    border-color: #dedede;
}

.woocommerce-form-coupon-toggle {
    margin-bottom: 1em;
}

.checkout-section {
    background-color: transparent;
    border: solid 2px #646b3b !important;
    border-radius: 1em;
    padding: 1.5em;
}

.checkout-section h3,
.checkout-right h3 {
    font-family: "Livvic", Sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--e-global-color-text);
    margin: 0px 0px 30px 0px;
    text-align: left;
}

ul#shipping_method,
ul.payment_methods {
    display: grid;
    gap: .5rem;
    padding: 0 !important;
}

.wc_payment_method label {
    font-weight: 600;
    color: var(--e-global-color-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
}

ul#shipping_method li,
ul.payment_methods li {
    border: 2px solid #eeeeee;
    border-radius: 1em;
    padding: 0;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    min-height: 3.5rem;
    justify-content: center;
    flex-wrap: nowrap!important;
}

ul.payment_methods li .wc_payment_method_container {
    display: flex;
    margin: .5rem 1rem;
    gap: 1rem;
    align-items: center;
}

.shipping_method_container {
    display: flex;
    align-items: center;
}

/* ul#shipping_method li:has(:checked),
ul.payment_methods li:has(:checked) {
    outline: solid 2px #646B3B;
} */

ul#shipping_method .shipping-method-description {
    flex-grow: 1;
    font-size: 13px;
    text-align: center;
}

ul.payment_methods li>label {
    display: flex;
    flex-grow: 1;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

div:has(>img.revolut-card-gateway-icon-visa) {
    text-align: right;
}

.p24-payment-container label {
    display: block !important;
}

#add_payment_method #payment,
.woocommerce-cart #payment,
.woocommerce-checkout #payment,
#shipping_method {
    background-color: transparent;
}

.order-summary {
    border-radius: 1em;
    border: solid 2px #646b3b;
    background: transparent;
    padding: 1.5em;

}

#order_review .product-image img {
    width: 100px;
}

ul.custom_checkout-products {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.custom_checkout-products li {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
}

.product-qt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .3em;
}

.product-name h5 {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
    margin-bottom: 15px;
}

.product-name h5 a {
    color: var(--e-global-color-text);
    text-decoration: none;
}

.woocommerce form.checkout .form-row {
    clear: right;
    margin: 0 0 1.2rem;
}

ul#shipping_method {
    color: var(--e-global-color-text);
    font-weight: 600;
    font-size: 16px;
}

button#place_order {
    margin-left: 0px;
    font-family: "Livvic", Sans-serif;
    font-weight: 600;
    color: #FFFFFF;
    background-color: var(--e-global-color-primary);
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: var(--e-global-color-primary);
    border-radius: 15px 15px 15px 15px;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin: auto;
    margin-top: 40px;
    padding: 20px 90px;
    color: #ffffff;
}

.woocommerce-privacy-policy-text {
    font-size: 14px;
    color: var(--e-global-color-primary);
    margin-top: 1.5rem;
}

ul.payment_methods {
    border-bottom: none !important;

}

.woocommerce ul#shipping_method li input {
    margin-left: 1rem;
    margin-right: 1rem;
}


.woocommerce ul#shipping_method li label {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.shipping-method-description {
    padding: 0.5rem !important;
}

#add_payment_method #payment div.payment_box,
.woocommerce-cart #payment div.payment_box,
.woocommerce-checkout #payment div.payment_box {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    padding: 30px 25px;
    margin: 0 !important;
    font-size: .92em;
    border-radius: 2px;
    line-height: 1.5;
    background-color: #f9f9f9;

}

.woocommerce-checkout #payment div.payment_box::before {
    display: none;

}

.custom_coupon {
    display: flex;
    gap: .3em;
}

.apply_coupon {
    color: #FFFFFF;
    background-color: var(--e-global-color-primary);
    font-family: "Livvic", Sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: var(--e-global-color-primary);
    border-radius: 15px 15px 15px 15px;
    padding: 13px 30px 13px 30px;
}

.custom_coupon p.form-row {
    margin: 0 !important;
}

.woocommerce-NoticeGroup {
    margin-bottom: 1em;
}

body>.select2-container.select2-container--open {
    width: unset !important;
}

.punkt-odbioru {
    width: 100%;
}

#shipping_country_field .select2-container {
    width: 100% !important;
}

h3.tdf {
    float: unset !important;
    width: unset !important;
}

/* abbr.required {
    display: none;
} */

.product-quantity {
    display: inline-flex;
    border-color: var(--e-global-color-secondary);
    border-radius: 15px 15px 15px 15px;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    background-color: #f7f8fa;
    overflow: hidden;
}

.cc-quantity-decrease,
.cc-quantity-increase {
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 .5em;
    cursor: pointer;
    border: none;
    outline: none;
    border-radius: 0;
    min-height: auto;
    color: #646B3B !important;
    text-decoration: none !important;
}

.product-quantity input.qty {
    border: none;
    padding: .1em;
    background-color: transparent;
}

.product-quantity input.qty::-webkit-outer-spin-button,
.product-quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-quantity input.qty[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

#shipping_method .select2-container {
    width: calc(100% - 2em) !important;
    display: flex;
}

#shipping_method .select2-container>.selection {
    flex-grow: 1;
}

.checkout-inline-error-message{
    position: absolute;
    z-index: 1;
    background-color: white;
}

#terms_description.checkout-inline-error-message{
    top: 120%;
}

.shop_table{
    border: none!important;
}
.shop_table td{
    text-align: right;
}
.custom_coupon button{
    margin: 3px 0;
}
@media screen and (max-width:1024px) {
    #content {
        width: 100%;
        max-width: 97%;
    }

    .checkout-layout {
        gap: 1.2rem;
    }
}

@media (max-width: 960px) {
    .checkout-layout {
        flex-direction: column;
        gap: 0;
    }

    .checkout-right {
        position: static;
        width: 100%;
        margin-top: 0;
        order: 1;
        margin-bottom: 40px;
    }

    .checkout-left {
        order: 2;
    }

    .button#place_order {
        width: 100%;
        padding: 11px 15px 11px 15px;
    }

    .woocommerce form .form-row-first,
    .woocommerce-page form .form-row-first {
        float: unset;
    }

    .woocommerce form .form-row-first,
    .woocommerce form .form-row-last,
    .woocommerce-page form .form-row-first,
    .woocommerce-page form .form-row-last {
        width: 100%
    }
}

@media screen and (max-width:405px){
    .custom_coupon{
        flex-direction: column;
    }
}
@media screen and (min-width:961px) and (max-width:1200px){
    .custom_coupon{
        flex-direction: column;
    }
}
.woocommerce table.shop_table td small {
    font-size: 14px!important;
}
.woocommerce table.shop_table tbody th, .woocommerce table.shop_table tfoot td, .woocommerce table.shop_table tfoot th {
    font-weight: 400;
    color:#646b3b;
    font-family: 'LIVVIC';
}
.order-total th {
    font-weight: 700!important;
}

a.js--choose-point-dpd {
    color: inherit;
    text-decoration: none;
}

  
.select2-container--default {
  .select2-selection--single {
    overflow: hidden;

    .select2-selection__rendered {
      word-wrap: break-word;
      word-break: break-all;
      text-overflow: inherit;
      white-space: normal;
    }
  }
  .select2-results > .select2-results__options {
    width: 100%;
    /* overflow: hidden; */
  }
}
.select2-selection__clear{
    float: unset!important;
    margin-right: .5em;
}
span.product-quantity-label {
    color: var(--e-global-color-text);
    font-weight: 500;
}
li.cart_item .product-total .woocommerce-Price-amount {
    color: var(--e-global-color-text);
    font-weight: 500;
}
li.cart_item input.qty {
    color: var(--e-global-color-text);
    font-size: 0.875em;
}
@media (max-width: 768px) {
	.woocommerce-shipping-methods label {
		font-size: 0.8em;
	}
}
@media screen and (max-width: 364px) {
    label[for="billing_address_2"],
    label[for="order_comments"] {
        font-size: 0.7em !important;
    }
}