body.woocommerce-checkout .sakura-single-page-content {
    padding-bottom: 4rem;
}

body.woocommerce-checkout .woocommerce form.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    grid-template-rows: min-content auto;
    column-gap: 56px;
    align-items: start;
    width: 100%;
    color: #171717;
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

body.woocommerce-checkout .woocommerce form.checkout::before,
body.woocommerce-checkout .woocommerce form.checkout::after,
body.woocommerce-checkout .woocommerce form.checkout > wc-order-attribution-inputs {
    display: none !important;
}

body.woocommerce-checkout .woocommerce form.checkout > #customer_details {
    grid-column: 1;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    gap: 38px;
    width: 100% !important;
    min-width: 0;
    margin: 0;
}

body.woocommerce-checkout .woocommerce #customer_details > .col-1,
body.woocommerce-checkout .woocommerce #customer_details > .col-2 {
    display: block;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.woocommerce-checkout .woocommerce #customer_details h3,
body.woocommerce-checkout .woocommerce form.checkout > #order_review_heading {
    margin: 0 0 24px;
    color: #171717;
    font-family: inherit;
    font-size: 32px;
    font-weight: 300;
    line-height: 1.2;
    text-transform: none;
}

body.woocommerce-checkout .woocommerce #customer_details
.woocommerce-additional-fields {
    margin-top: 38px;
}

body.woocommerce-checkout .woocommerce #customer_details
#ship-to-different-address {
    margin-bottom: 18px;
}

body.woocommerce-checkout .woocommerce form.checkout > #order_review_heading {
    grid-column: 2;
    grid-row: 1;
    float: none !important;
    width: 100% !important;
    min-width: 0;
    margin: 0 0 24px;
}

body.woocommerce-checkout .woocommerce form.checkout > #order_review {
    grid-column: 2;
    grid-row: 2;
    float: none !important;
    width: 100% !important;
    min-width: 0;
    margin: 0;
}

body.woocommerce-checkout .woocommerce
.woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout .woocommerce
.woocommerce-shipping-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

body.woocommerce-checkout .woocommerce
.woocommerce-billing-fields__field-wrapper::before,
body.woocommerce-checkout .woocommerce
.woocommerce-billing-fields__field-wrapper::after,
body.woocommerce-checkout .woocommerce
.woocommerce-shipping-fields__field-wrapper::before,
body.woocommerce-checkout .woocommerce
.woocommerce-shipping-fields__field-wrapper::after {
    display: none !important;
}

body.woocommerce-checkout .woocommerce #customer_details .form-row {
    float: none !important;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}

body.woocommerce-checkout .woocommerce #customer_details .form-row-wide {
    grid-column: 1 / -1;
}

body.woocommerce-checkout .woocommerce #customer_details .form-row label {
    display: block;
    margin: 0 0 8px;
    color: #222;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

body.woocommerce-checkout .woocommerce #customer_details
.form-row .optional {
    color: #777;
    font-size: 12px;
    font-weight: 300;
}

body.woocommerce-checkout .woocommerce #customer_details
.form-row .required {
    color: #e31e24;
}

body.woocommerce-checkout .woocommerce #customer_details .input-text,
body.woocommerce-checkout .woocommerce #customer_details select,
body.woocommerce-checkout .woocommerce #customer_details
.select2-container .select2-selection--single {
    box-sizing: border-box;
    display: block;
    width: 100% !important;
    min-height: 50px;
    padding: 11px 15px;
    color: #171717;
    background: #fff;
    border: 1px solid #d6d6d6;
    border-radius: 0;
    box-shadow: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
}

body.woocommerce-checkout .woocommerce #customer_details
.select2-container {
    width: 100% !important;
}

body.woocommerce-checkout .woocommerce #customer_details
.select2-container .select2-selection--single
.select2-selection__rendered {
    padding: 0;
    line-height: 26px;
}

body.woocommerce-checkout .woocommerce #customer_details
.select2-container .select2-selection--single
.select2-selection__arrow {
    top: 11px;
    right: 10px;
}

body.woocommerce-checkout .woocommerce #customer_details
textarea.input-text {
    min-height: 130px;
    resize: vertical;
}

body.woocommerce-checkout .woocommerce #customer_details
.input-text:focus,
body.woocommerce-checkout .woocommerce #customer_details
select:focus,
body.woocommerce-checkout .woocommerce #customer_details
.select2-container--focus .select2-selection--single {
    outline: none;
    border-color: #e31e24;
    box-shadow: 0 0 0 1px #e31e24;
}

body.woocommerce-checkout .woocommerce
#ship-to-different-address label {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    margin: 0;
    cursor: pointer;
}

body.woocommerce-checkout .woocommerce
#ship-to-different-address input {
    position: static;
    margin: 0;
    accent-color: #e31e24;
}

body.woocommerce-checkout .woocommerce
#ship-to-different-address span {
    font-size: 17px;
    font-weight: 400;
}

body.woocommerce-checkout #order_review
table.woocommerce-checkout-review-order-table {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    margin: 0 0 24px;
    border: 1px solid #e9e9e9;
    border-radius: 0;
    background: #fff;
}

body.woocommerce-checkout #order_review
table.woocommerce-checkout-review-order-table thead,
body.woocommerce-checkout #order_review
table.woocommerce-checkout-review-order-table tbody {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

body.woocommerce-checkout #order_review
table.shop_table th,
body.woocommerce-checkout #order_review
table.shop_table td {
    box-sizing: border-box;
    padding: 15px 16px;
    color: #222;
    font-size: 14px;
    line-height: 1.5;
    vertical-align: top;
    border: 0;
    border-bottom: 1px solid #ebebeb;
}

body.woocommerce-checkout #order_review
table.shop_table thead {
    background: #f5f5f5;
}

body.woocommerce-checkout #order_review
table.shop_table thead th {
    font-weight: 600;
}

body.woocommerce-checkout #order_review
table.woocommerce-checkout-review-order-table
thead th.product-name,
body.woocommerce-checkout #order_review
table.woocommerce-checkout-review-order-table
tbody td.product-name {
    width: 75% !important;
}

body.woocommerce-checkout #order_review
table.woocommerce-checkout-review-order-table
thead th.product-total,
body.woocommerce-checkout #order_review
table.woocommerce-checkout-review-order-table
tbody td.product-total {
    width: 25% !important;
    text-align: right;
    white-space: nowrap;
}

body.woocommerce-checkout #order_review
table.shop_table .order-total th,
body.woocommerce-checkout #order_review
table.shop_table .order-total td {
    font-size: 18px;
    font-weight: 600;
}

body.woocommerce-checkout #order_review
td.product-name .sakura-checkout-product {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    width: 100%;
    min-width: 0;
}

body.woocommerce-checkout #order_review
td.product-name .sakura-checkout-product-image {
    display: block;
    width: 56px !important;
    height: 56px !important;
    margin: 0;
    object-fit: contain;
    background: #fff;
}

body.woocommerce-checkout #order_review
td.product-name .sakura-checkout-product-name {
    display: block;
    width: auto !important;
    min-width: 0;
    text-align: left;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}

body.woocommerce-checkout #order_review
td.product-name .product-quantity {
    display: block;
    margin: 5px 0 0 70px;
    color: #666;
    font-size: 13px;
    font-weight: 400;
}

body.woocommerce-checkout #order_review
table.woocommerce-checkout-review-order-table tfoot {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
}

body.woocommerce-checkout #order_review
table.woocommerce-checkout-review-order-table tfoot > tr {
    display: grid;
    grid-template-columns: minmax(0, 75%) minmax(0, 25%);
    width: 100%;
}

body.woocommerce-checkout #order_review
table.woocommerce-checkout-review-order-table
tfoot > tr > th,
body.woocommerce-checkout #order_review
table.woocommerce-checkout-review-order-table
tfoot > tr > td {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

body.woocommerce-checkout #order_review
table.woocommerce-checkout-review-order-table
tfoot > tr:not(.woocommerce-shipping-totals) > td {
    text-align: right;
    white-space: nowrap;
}

body.woocommerce-checkout #order_review
table.woocommerce-checkout-review-order-table
tfoot > tr.woocommerce-shipping-totals {
    grid-template-columns: minmax(0, 1fr);
}

body.woocommerce-checkout #order_review
table.woocommerce-checkout-review-order-table
tfoot > tr.woocommerce-shipping-totals > th {
    padding-bottom: 4px;
    border-bottom: 0;
}

body.woocommerce-checkout #order_review
table.woocommerce-checkout-review-order-table
tfoot > tr.woocommerce-shipping-totals > td {
    padding-top: 4px;
    text-align: left !important;
    white-space: normal !important;
}

body.woocommerce-checkout #order_review
.woocommerce-shipping-totals td label {
    white-space: normal !important;
    overflow-wrap: break-word;
}

body.woocommerce-checkout #order_review
.woocommerce-shipping-methods {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.woocommerce-checkout #order_review
.woocommerce-shipping-methods li {
    margin: 0 0 12px;
}

body.woocommerce-checkout #order_review
input[type="radio"],
body.woocommerce-checkout #order_review
input[type="checkbox"] {
    accent-color: #e31e24;
}

body.woocommerce-checkout #order_review
.omnivalt_terminal_container,
body.woocommerce-checkout #order_review
select.omnivalt_terminal,
body.woocommerce-checkout #order_review
.omniva-terminals-list {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
}

body.woocommerce-checkout #order_review
select.omnivalt_terminal {
    min-height: 48px;
    padding: 10px 12px;
    color: #171717;
    background: #fff;
    border: 1px solid #d6d6d6;
    border-radius: 0;
    font: inherit;
    font-size: 14px;
}

body.woocommerce-checkout #order_review
.omniva-terminals-list {
    position: relative;
}

body.woocommerce-checkout #order_review
.omniva-terminals-list .dropdown {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
}

body.woocommerce-checkout .woocommerce #payment {
    padding: 0;
    color: #171717;
    background: #f7f7f7;
    border: 1px solid #e9e9e9;
    border-radius: 0;
}

body.woocommerce-checkout .woocommerce
#payment ul.payment_methods {
    margin: 0;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
}

body.woocommerce-checkout .woocommerce
#payment ul.payment_methods > li {
    margin: 0 0 16px;
}

body.woocommerce-checkout .woocommerce
#payment ul.payment_methods > li:last-child {
    margin-bottom: 0;
}

body.woocommerce-checkout .woocommerce
#payment ul.payment_methods > li > label {
    color: #171717;
    font-size: 15px;
    font-weight: 500;
}

body.woocommerce-checkout .woocommerce
#payment div.payment_box {
    margin: 14px 0 0;
    padding: 16px;
    color: #333;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    box-shadow: none;
}

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

body.woocommerce-checkout .woocommerce
#payment .place-order {
    padding: 20px;
}

body.woocommerce-checkout .woocommerce
#payment .woocommerce-terms-and-conditions-wrapper {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

body.woocommerce-checkout .woocommerce
#payment .woocommerce-terms-and-conditions-wrapper a {
    color: #e31e24;
}

body.woocommerce-checkout .woocommerce
#payment #place_order {
    float: none;
    width: 100%;
    min-height: 58px;
    margin: 0;
    padding: 14px 20px;
    color: #fff !important;
    background: #e31e24 !important;
    border: 1px solid #e31e24 !important;
    border-radius: 0;
    box-shadow: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
}

body.woocommerce-checkout .woocommerce
#payment #place_order:hover,
body.woocommerce-checkout .woocommerce
#payment #place_order:focus {
    background: #bd171c !important;
    border-color: #bd171c !important;
}

@media (max-width: 991.98px) {
    body.woocommerce-checkout .woocommerce form.checkout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        row-gap: 28px;
    }

    body.woocommerce-checkout .woocommerce
    form.checkout > #customer_details,
    body.woocommerce-checkout .woocommerce
    form.checkout > #order_review_heading,
    body.woocommerce-checkout .woocommerce
    form.checkout > #order_review {
        grid-column: 1;
        grid-row: auto;
    }

    body.woocommerce-checkout .woocommerce
    form.checkout > #order_review_heading {
        margin-bottom: -8px;
    }
}

@media (max-width: 767.98px) {
    body.woocommerce-checkout .sakura-single-page-content {
        padding-bottom: 2rem;
    }
}

@media (max-width: 575.98px) {
    body.woocommerce-checkout .woocommerce
    .woocommerce-billing-fields__field-wrapper,
    body.woocommerce-checkout .woocommerce
    .woocommerce-shipping-fields__field-wrapper {
        grid-template-columns: 1fr;
    }

    body.woocommerce-checkout .woocommerce
    #customer_details .form-row-wide {
        grid-column: 1;
    }

    body.woocommerce-checkout .woocommerce
    #customer_details h3,
    body.woocommerce-checkout .woocommerce
    form.checkout > #order_review_heading {
        font-size: 27px;
    }

    body.woocommerce-checkout #order_review
    table.shop_table th,
    body.woocommerce-checkout #order_review
    table.shop_table td {
        padding: 12px 10px;
        font-size: 13px;
    }

    body.woocommerce-checkout #order_review
    td.product-name .sakura-checkout-product {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px;
    }

    body.woocommerce-checkout #order_review
    td.product-name .sakura-checkout-product-image {
        width: 42px !important;
        height: 42px !important;
    }

    body.woocommerce-checkout #order_review
    td.product-name .product-quantity {
        margin-left: 52px;
    }

    body.woocommerce-checkout .woocommerce
    #payment ul.payment_methods,
    body.woocommerce-checkout .woocommerce
    #payment .place-order {
        padding: 16px;
    }
}

@media (min-width: 992px) {
    body.woocommerce-checkout .woocommerce form.checkout {
        grid-template-rows: auto;
        align-items: start;
    }

    body.woocommerce-checkout .woocommerce
    form.checkout > #customer_details,
    body.woocommerce-checkout .woocommerce
    form.checkout > #order_review_heading,
    body.woocommerce-checkout .woocommerce
    form.checkout > #order_review {
        grid-row: 1;
    }

    body.woocommerce-checkout .woocommerce
    form.checkout > #order_review {
        padding-top: 62px;
    }
}

/* Keep the review and Omniva field within their column */
body.woocommerce-checkout .woocommerce
form.checkout > #order_review,
body.woocommerce-checkout #order_review
table.woocommerce-checkout-review-order-table,
body.woocommerce-checkout #order_review
.woocommerce-shipping-methods,
body.woocommerce-checkout #order_review
.woocommerce-shipping-methods li,
body.woocommerce-checkout #order_review
.omnivalt_terminal_container,
body.woocommerce-checkout #order_review
.omniva-terminals-list {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}

body.woocommerce-checkout #order_review
.woocommerce-shipping-methods label {
    white-space: normal !important;
    overflow-wrap: anywhere;
}

@media (max-width: 991.98px) {
    body.woocommerce-checkout .woocommerce
    form.checkout > #order_review {
        padding-top: 0;
    }
}
