/* Woocommerce */
.woocommerce-checkout .woocommerce {
    padding: 0 40px;
}

.checkout.woocommerce-checkout {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 50px;
    justify-content: space-between;
}

.woocommerce-checkout #customer_details {
    display: flex;
    flex-wrap: wrap;
    width: 65%
}

.woocommerce-checkout .review-order {
    width: 27%;
    padding: 20px 20px 60px;
    background-color: #e5e1dd;
    height: 100%;
    position: sticky;
    top: 180px
}

.woocommerce .col2-set .col-1, .woocommerce-page .col2-set .col-1 {
    width: 100%;
    float: none
}

.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea {
    border: none;
    border-bottom: 1px solid #000;
    padding: 10px 0
}

.woocommerce-billing-fields__field-wrapper, 
.woocommerce-shipping-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    padding-left: 6%;
    padding-top: 20px;
    justify-content: space-between;
}

.woocommerce-shipping-fields__field-wrapper {
    padding-top: 0;
    padding-left: 0;
}

.woocommerce-billing-fields__field-wrapper #billing_first_name_field, .woocommerce-billing-fields__field-wrapper #billing_last_name_field, .woocommerce-billing-fields__field-wrapper #billing_country_field, .woocommerce-billing-fields__field-wrapper #billing_state_field, .woocommerce-billing-fields__field-wrapper #billing_email_field, .woocommerce-billing-fields__field-wrapper #billing_phone_field, .woocommerce-billing-fields__field-wrapper #billing_vat_field, .woocommerce-billing-fields__field-wrapper #billing_irs_field, .woocommerce-billing-fields__field-wrapper #billing_store_field, .woocommerce-billing-fields__field-wrapper #billing_company_field, .woocommerce-shipping-fields__field-wrapper #shipping_country_field, .woocommerce-shipping-fields__field-wrapper #shipping_city_field {
    width: 47.9%
}

.woocommerce-billing-fields__field-wrapper #billing_city_field, .woocommerce-billing-fields__field-wrapper #billing_address_1_field, .woocommerce-shipping-fields__field-wrapper #shipping_address_1_field, .woocommerce-shipping-fields__field-wrapper #shipping_state_field {
    width: 36%
}

.woocommerce-billing-fields__field-wrapper #billing_postcode_field, .woocommerce-shipping-fields__field-wrapper #shipping_postcode_field {
    width: 20%
}

.woocommerce-billing-fields__field-wrapper #billing_timologio_field {
    width: 100%
}

.woocommerce form .form-row .select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    background: 0 0;
    border: none;
    border-bottom: 1px solid #000;
    border-radius: 0
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0
}

.select2-container .select2-selection--single {
    height: 35px
}

.woocommerce-billing-fields__field-wrapper .form-row, .woocommerce-shipping-fields__field-wrapper .form-row {
    display: grid;
    margin-bottom: 25px !important
}

.woocommerce-billing-fields__field-wrapper .form-row label, .woocommerce-shipping-fields__field-wrapper .form-row label {
    text-transform: uppercase;
    font-size: 11px;
    margin-top: 5px;
    margin-bottom: 0;
    order: 2
}

.woocommerce .col2-set .col-2, .woocommerce-page .col2-set .col-2 {
    float: none;
    width: 100%
}

.woocommerce form .form-row textarea {
    border: 1px solid #000;
    padding: 8px;
    height: 88px
}

.woocommerce-checkout .checkout .col-5 .notes {
    display: grid
}

.woocommerce-checkout .checkout .col-5 .notes label {
    order: 2
}

.woocommerce-checkout .col2-set .col-3, .woocommerce-checkout .col2-set .col-4, .woocommerce-checkout .col2-set .col-5 {
    width: 100%
}

.woocommerce-checkout .col2-set .col-1 h3, .woocommerce-checkout .col2-set .col-2>h3, .woocommerce-checkout .col2-set .col-3>h3, .woocommerce-checkout .col2-set .col-4>h3 {
    border-bottom: 1px solid #000;
    padding: 0 0 10px
}

.woocommerce-checkout .col2-set .col-5>div {
    padding-left: 6%;
    padding-top: 15px
}

.woocommerce-checkout .woocommerce-shipping-totals.shipping, 
.woocommerce-checkout #payment ul.payment_methods, 
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    display: none
}

.shipping-alert {
    color: #ff0000;
}

.woocommerce-page .col2-set .col-2>div {
    padding-left: 6%
}

#checkout-payment-methods {
    padding-left: 6%;
    padding-top: 15px
}

#checkout-payment-methods .wc_payment_methods {
    display: flex;
    flex-wrap: wrap;
    gap: 5%
}

#checkout-payment-methods .wc_payment_methods>li {
    width: 47%
}

#checkout-shipping-methods {
    padding-left: 6%;
    padding-top: 15px
}

#checkout-shipping-methods ul {
    display: flex;
    flex-wrap: wrap;
    gap: 5%;
    background: #fff;
    margin-top: -22px !important;
    position: relative
}

#checkout-shipping-methods ul>li {
    width: 47%
}

.woocommerce #payment #place_order, .woocommerce-page #payment #place_order {
    float: none;
    margin: 0 auto;
    display: block;
    background: 0 0;
    max-width: 288px;
    width: 100%;
    height: 40px;
    border: 1px solid #000;
    color: #000;
    text-transform: uppercase;
    font-size: 13px;
    border-radius: 0;
    font-weight: 700
}

.woocommerce .back-btn {
    margin: 0 auto 20px;
    display: block;
    background: 0 0;
    max-width: 288px;
    width: 100%;
    height: 40px;
    border: 1px solid #000;
    color: #000;
    text-transform: uppercase;
    font-size: 13px;
    border-radius: 0;
    text-align: center;
    line-height: 35px;
    font-weight: 700;
    position: relative
}

#add_payment_method #payment, .woocommerce-cart #payment, .woocommerce-checkout #payment {
    background: 0 0;
    border-radius: 0
}

.woocommerce table.shop_table tfoot tr:first-child th, .woocommerce table.shop_table tfoot tr:first-child td {
    border-bottom: 1px solid #000;
    font-size: 25px
}

.woocommerce #order_review table.shop_table {
    border: none;
    display: block;
    max-width: 300px;
    margin: 0 auto
}

.woocommerce table.shop_table tfoot th {
    font-size: 20px;
    font-weight: 300;
    max-width: 200px;
    width: 100%;
    padding: 0
}

.woocommerce table.shop_table tfoot tr:first-child {
    border-bottom: 1px solid #000
}

.woocommerce table.shop_table tfoot .order-shipping th {
    padding: 15px 0 5px
}

.woocommerce-form-coupon-toggle {
    width: 65%
}

.woocommerce table.shop_table tfoot td {
    text-align: right;
    font-size: 20px;
    font-weight: 700;
    padding: 0
}

.woocommerce-NoticeGroup-checkout {
    width: 100%;
}

#order_review_heading {
    text-align: center;
    font-size: 47px;
    font-weight: 300;
    margin-bottom: 0
}

.review-order #subheading {
    text-align: center;
    margin-top: 20px;
    font-size: 16px;
    margin-bottom: 40px
}

.cards-logos {
    text-align: center;
    filter: grayscale(1);
    margin-top: 50px
}

.extra-links {
    text-align: center;
    margin-bottom: 50px
}

.extra-links a {
    letter-spacing: .3px;
    font-size: 13px;
    color: #000;
    font-family: 'Averta';
}

.long-arrow-left {
    display: block;
    margin: 13px auto;
    width: 10px;
    height: 10px;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    position: absolute;
    left: 20px
}

.long-arrow-left {
    transform: rotate(-45deg)
}

.long-arrow-left::after {
    content: "";
    display: block;
    width: 1px;
    height: 21px;
    background-color: #000;
    transform: rotate(-45deg) translate(7px, 2px);
    left: 0;
    top: 0
}

.woocommerce form.checkout_coupon, .woocommerce form.login, .woocommerce form.register {
    max-width: 62.7%;
}

.page-template-page-cart .woocommerce-cart-form {
    width: 70%;
}

.page-template-page-cart .woocommerce-cart-form>h3 {
    font-size: 30pt;
    font-weight: 100;
}

.page-template-page-cart .custom-table-container {
    height: 50vh;
    overflow-y: scroll;
    width: 80%;
    margin-left: 120px;
    margin-bottom: 50px;
}

.page-template-page-cart .woocommerce table.shop_table {
    border: none;
    margin: 0;
}

.page-template-page-cart .woocommerce table.shop_table td {
    position: relative;
    border-top: 1px solid #000;
    padding: 40px 0;
}

/* .page-template-page-cart .woocommerce table.shop_table tr:first-child td {
    padding-top: 0px;
} */
.page-template-page-cart .woocommerce table.shop_table tr:last-child td {
    padding-bottom: 0px;
}

.woocommerce .cart-collaterals, .woocommerce-page .cart-collaterals {
    width: 30%;
    background-color: #e5e1dd;
}

.page-template-page-cart .cart-collaterals .cart_totals h2 {
    text-align: center;
    font-size: 44px;
    font-family: 'Averta-Extrathin';
    margin: 0;
}

.page-template-page-cart .woocommerce table.shop_table td.product-thumbnail {
    width: 200px;
}

.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals {
    width: 100%;
    padding: 0 0 50px;
}

.page-template-page-cart .order-total-div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 350px;
    border-bottom: 1px solid black;
    margin-top: 4em;
    margin-left: 12em;
    margin-bottom: 2em;
    margin: 50px auto 30px;
}

.page-template-page-cart .order-total-div p {
    font-size: 30pt;
    margin: 0 0 10px;
}

.page-template-page-cart .order-total-div p:last-child {
    font-size: 25pt;
}

.page-template-page-cart .woocommerce table.shop_table td.product-name a {
    font-size: 30pt;
    line-height: normal;
}

.page-template-page-cart .woocommerce table.shop_table td.product-name .product-subtotal {
    font-size: 25pt;
    font-weight: bold;
    margin-top: 20px;
    font-family: Averta;
}

.page-template-page-cart .woocommerce table.shop_table .image-container-cart {
    width: 175px;
    height: 175px;
}

.page-template-page-cart .woocommerce table.shop_table td.product-name .variation dt {
    display: none;
}

.page-template-page-cart .woocommerce table.shop_table td.product-name .variation dd p {
    margin: 0;
    font-size: 15px;
    padding: 0;
    font-weight: 500;
    font-family: 'Averta';
}

.page-template-page-cart .woocommerce table.shop_table td.product-name .variation {
    margin: 5px 0;
}

.page-template-page-cart .woocommerce table.shop_table {
    position: relative;
}

.page-template-page-cart .woocommerce table.shop_table td.product-name a.remove {
    position: absolute;
    right: 0;
    top: 40px;
    margin: 0;
    padding: 0;
    font-size: 10pt;
}

.page-template-page-cart .woocommerce table.shop_table {
    position: relative;
}

.page-template-page-cart .woocommerce table.shop_table td.product-remove {
    position: relative;
}

.page-template-page-cart .woocommerce .product-quantity {
    position: absolute;
    right: 0;
    bottom: 50px;
}

.page-template-page-cart .qib-button-wrapper .minus.qib-button {
    order: 3;
}

.page-template-page-cart .qib-button-wrapper {
    margin-right: 0;
}

.page-template-page-cart .qib-button-wrapper div.quantity.wqpmb_quantity {
    order: 2;
}

.page-template-page-cart .qib-button-wrapper .quantity input.input-text.qty.text {
    padding: 0;
    width: 35px;
    text-align: center;
    font-size: 15pt;
    outline: none;
}

body .qib-button-wrapper .minus.qib-button, body .qib-button-wrapper .plus.qib-button {
    position: relative;
    width: 20px;
    padding: 0;
    font-size: 15pt;
    outline: none;
}

/* Pure checkboxes & radios */
input[type=checkbox], input[type=radio] {
    position: absolute;
    opacity: 0;
    z-index: -1
}

input[type=radio]~label, input[type=checkbox]~label, input[type=checkbox]~span {
    position: relative;
    display: inline-block;
    line-height: 1.5em;
    padding: 0 0 0 2em;
    cursor: pointer
}

input[type=checkbox]~span {
    line-height: 18px;
    padding-left: 30px;
    font-size: 15px
}

input[type=radio]~label::before, input[type=radio]~label::after, input[type=checkbox]~label::before, input[type=checkbox]~label::after, input[type=checkbox]~span::before, input[type=checkbox]~span::after {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 18px;
    height: 18px;
}

input[type=radio]~label::before, input[type=checkbox]~label::before, input[type=checkbox]~span::before {
    content: " ";
    border: 2px solid #bdc3c7;
    border-radius: 20%
}

input[type=checkbox]+label::after, input[type=checkbox]+span::after {
    content: "\2714";
    color: #2c3e50;
    line-height: 1.5;
    text-align: center
}

input[type=radio]+label::before {
    border-radius: 50%
}

input[type=radio]+label::after {
    content: " ";
    top: 7px;
    left: 7px;
    width: 4px;
    height: 4px;
    border: 2px solid #2c3e50;
    border-radius: 50%
}

input[type=checkbox]:checked+label::before, input[type=checkbox]:checked+span::before, input[type=radio]:checked+label::before {
    border-color: #000
}

input[type=checkbox]+label::after, input[type=checkbox]+span::after, input[type=radio]+label::after {
    -webkit-transform: scale(0);
    -ms-transform: scale(0);
    -o-transform: scale(0);
    transform: scale(0)
}

input[type=checkbox]:checked+label::after, input[type=radio]:checked+label::after {
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1)
}

input[type=checkbox]:checked+span::after {
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(.8);
    line-height: 25px;
    left: 2px;
}

input[type=radio]~label::before, input[type=radio]~label::after, input[type=checkbox]~label::before, input[type=checkbox]~label::after, input[type=checkbox]~span::before, input[type=checkbox]~span::after {
    -webkit-transition: .25s all ease;
    -o-transition: .25s all ease;
    transition: .25s all ease
}

@media all and (max-width: 1536px) {
    .woocommerce-checkout #customer_details {
        display: flex;
        flex-wrap: wrap;
        width: 64%;
    }

    .woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 2%;
        padding-left: 6%;
        padding-top: 20px
    }

    .page-template-page-cart .woocommerce-cart-form {
        width: 60%;
    }

    .woocommerce .cart-collaterals, .woocommerce-page .cart-collaterals {
        width: 40%;
    }

    .page-template-page-cart .custom-table-container {
        margin-left: 40px;
    }

    #order_review_heading {
        font-size: 37px;
    }

    .woocommerce-checkout .review-order {
        width: 28%;
    }
}

@media all and (max-width: 1366px) {
    .page-template-page-cart .woocommerce-cart-form>h3, .page-template-page-cart .woocommerce table.shop_table td.product-name a {
        font-size: 30px;
    }
    
    .page-template-page-cart .woocommerce table.shop_table td.product-name .variation dd p {
        font-size: 12px;
    }

    .page-template-page-cart .woocommerce table.shop_table td.product-name .product-subtotal {
        font-size: 25px;
    }

    .page-template-page-cart .woocommerce table.shop_table td.product-name a.remove {
        font-size: 10px;
    }

    body .qib-button-wrapper .minus.qib-button, body .qib-button-wrapper .plus.qib-button {
        font-size: 15px;
    }

    .page-template-page-cart .order-total-div p {
        font-size: 30px;
    }

    .page-template-page-cart .order-total-div p:last-child {
        font-size: 25px;
    }

    .extra-links a {
        font-size: 13px;
    }

    .woocommerce-checkout #customer_details, .woocommerce-form-coupon-toggle {
        width: 60%;
    }

    .woocommerce-billing-fields__field-wrapper #billing_first_name_field, .woocommerce-billing-fields__field-wrapper #billing_last_name_field, .woocommerce-billing-fields__field-wrapper #billing_country_field, .woocommerce-billing-fields__field-wrapper #billing_state_field, .woocommerce-billing-fields__field-wrapper #billing_email_field, .woocommerce-billing-fields__field-wrapper #billing_phone_field, .woocommerce-billing-fields__field-wrapper #billing_vat_field, .woocommerce-billing-fields__field-wrapper #billing_irs_field, .woocommerce-billing-fields__field-wrapper #billing_store_field, .woocommerce-billing-fields__field-wrapper #billing_company_field, .woocommerce-shipping-fields__field-wrapper #shipping_country_field, .woocommerce-shipping-fields__field-wrapper #shipping_city_field {
        width: 46.9%;
    }

    .woocommerce-billing-fields__field-wrapper #billing_city_field, .woocommerce-billing-fields__field-wrapper #billing_address_1_field, .woocommerce-shipping-fields__field-wrapper #shipping_address_1_field, .woocommerce-shipping-fields__field-wrapper #shipping_state_field {
        width: 35%;
    }
}

@media all and (max-width: 1024px) {
    .page-template-page-cart .woocommerce-cart-form {
        padding: 0;
    }

    .page-template-page-cart .woocommerce {
        padding: 10px;
    }

    .page-template-page-cart .custom-table-container {
        width: 100%;
        margin: 0;
        height: auto;
        overflow: auto;
        padding: 0 10px;
    }

    .page-template-page-cart .woocommerce table.shop_table {
        width: 100%;
    }

    .woocommerce .cart-collaterals, .woocommerce-page .cart-collaterals, .page-template-page-cart .woocommerce-cart-form {
        width: 100%;
    }

    .woocommerce-form-coupon-toggle, .woocommerce-checkout #customer_details, .woocommerce-checkout .review-order {
        width: 100%
    }

    .woocommerce-billing-fields__field-wrapper #billing_first_name_field, .woocommerce-billing-fields__field-wrapper #billing_last_name_field, .woocommerce-billing-fields__field-wrapper #billing_country_field, .woocommerce-billing-fields__field-wrapper #billing_state_field, .woocommerce-billing-fields__field-wrapper #billing_email_field, .woocommerce-billing-fields__field-wrapper #billing_phone_field, .woocommerce-billing-fields__field-wrapper #billing_vat_field, .woocommerce-billing-fields__field-wrapper #billing_irs_field, .woocommerce-billing-fields__field-wrapper #billing_store_field, .woocommerce-billing-fields__field-wrapper #billing_company_field, .woocommerce-shipping-fields__field-wrapper #shipping_country_field, .woocommerce-shipping-fields__field-wrapper #shipping_city_field {
        width: 46.9%;
    }

    .woocommerce-billing-fields__field-wrapper #billing_city_field, .woocommerce-billing-fields__field-wrapper #billing_address_1_field, .woocommerce-shipping-fields__field-wrapper #shipping_address_1_field, .woocommerce-shipping-fields__field-wrapper #shipping_state_field {
        width: 35%;
    }

    .woocommerce-checkout #customer_details {
        margin-bottom: 15px;
    }

    .page-template-page-cart .woocommerce-cart-form>h3 {
        padding-left: 10px;
    }
}

@media all and (max-width: 767px) {
    .page-template-page-cart .woocommerce .product-quantity, .page-template-page-cart .woocommerce table.shop_table td.product-name a.remove {
        right: -65px;
        bottom: 92px;
    }

    .woocommerce-checkout .woocommerce {
        padding: 0 10px;
    }
    
    .woocommerce form.checkout_coupon, .woocommerce form.login, .woocommerce form.register {
        max-width: 100%;
    }
    
    .woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper {
        padding: 0;
    }
    
    #checkout-payment-methods .wc_payment_methods>li {
        width: 100%;
        margin-bottom: 10px;
    }
    
    #checkout-payment-methods {
        padding: 0;
    }
    
    .woocommerce-page .col2-set .col-2>div {
        padding: 0;
    }
    
    #checkout-shipping-methods {
        padding: 0;
    }
    
    #checkout-shipping-methods ul>li {
        width: 100%;
    }
    
    .woocommerce-checkout .col2-set .col-5>div {
        padding: 10px 0;
    }

    #order_review_heading {
        padding: 0;
        margin: 0;
        font-size: 32px;
    }
}
