body.woocommerce-checkout .gkc-is-hidden {
    display: none !important;
}

body.woocommerce-checkout .woocommerce-billing-fields.gkc-company-active #billing_invoice_required_field {
    border-color: #ffc6a3;
    background: #fff8f3;
}

body.woocommerce-checkout .woocommerce-billing-fields.gkc-company-active #billing_company_field,
body.woocommerce-checkout .woocommerce-billing-fields.gkc-company-active #billing_company_code_field,
body.woocommerce-checkout .woocommerce-billing-fields.gkc-company-active #billing_vat_code_field {
    display: block;
}

body.woocommerce-checkout .woocommerce-billing-fields.honor-invoice-fields-open #billing_company_field label::after,
body.woocommerce-checkout .woocommerce-billing-fields.honor-invoice-fields-open #billing_company_code_field label::after {
    content: none !important;
}

body.woocommerce-checkout .woocommerce-billing-fields .gkc-required-mark {
    margin-left: 3px;
    color: var(--checkout-orange, #ff5a00);
    text-decoration: none;
}

body.woocommerce-checkout .woocommerce-billing-fields.gkc-company-active #billing_company_field .optional,
body.woocommerce-checkout .woocommerce-billing-fields.gkc-company-active #billing_company_code_field .optional {
    display: none;
}

body.woocommerce-checkout .woocommerce-billing-fields.gkc-company-address-required .gkc-address-field .optional {
    display: none;
}

body.woocommerce-checkout .woocommerce-billing-fields.gkc-virtual-consumer .gkc-contact-field {
    grid-column: span 6;
}

body.woocommerce-checkout #billing_first_name_field { order: 10; }
body.woocommerce-checkout #billing_last_name_field { order: 20; }
body.woocommerce-checkout #billing_phone_field { order: 30; }
body.woocommerce-checkout #billing_email_field { order: 40; }
body.woocommerce-checkout #billing_invoice_required_field { order: 50; }
body.woocommerce-checkout #billing_company_field { order: 51; }
body.woocommerce-checkout #billing_company_code_field { order: 52; }
body.woocommerce-checkout #billing_vat_code_field { order: 53; }
body.woocommerce-checkout #billing_address_1_field { order: 60; }
body.woocommerce-checkout #billing_country_field { order: 61; }
body.woocommerce-checkout #billing_city_field { order: 70; }
body.woocommerce-checkout #billing_postcode_field { order: 80; }

body.woocommerce-checkout form.checkout.gkc-checkout-columns-ready {
    grid-template-columns: minmax(0, 1.05fr) minmax(440px, .95fr);
    gap: 32px;
    align-items: start;
}

body.woocommerce-checkout form.checkout.gkc-checkout-columns-ready > .gkc-checkout-left,
body.woocommerce-checkout form.checkout.gkc-checkout-columns-ready > .gkc-checkout-right {
    min-width: 0;
}

body.woocommerce-checkout form.checkout.gkc-checkout-columns-ready > .gkc-checkout-left {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

body.woocommerce-checkout .gkc-checkout-left > .col2-set {
    float: none !important;
    clear: none !important;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 30px;
    border: 1px solid var(--checkout-line, #e5e7eb);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(23, 25, 28, .07);
}

body.woocommerce-checkout .gkc-checkout-left > .gkc-checkout-payment-panel {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 30px;
    border: 1px solid var(--checkout-line, #e5e7eb);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(23, 25, 28, .07);
}

body.woocommerce-checkout .gkc-checkout-payment-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px;
    color: var(--checkout-ink, #17191c);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
}

body.woocommerce-checkout .gkc-checkout-step {
    display: inline-grid;
    place-items: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #fff0e7;
    color: var(--checkout-orange, #ff5a00);
    font-size: 15px;
    font-weight: 700;
}

body.woocommerce-checkout #order_review_heading::before {
    content: '3' !important;
}

body.woocommerce-checkout .gkc-checkout-payment-panel #payment {
    margin: 0;
    padding-top: 0;
    border-top: 0;
}

body.woocommerce-checkout #makecommerce_country_picker_methods_lt .makecommerce-banklink-picker {
    position: relative;
    overflow: hidden;
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
    transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.woocommerce-checkout #makecommerce_country_picker_methods_lt .makecommerce-banklink-picker > img {
    display: block;
    border-radius: 0 !important;
    transform: scale(1.08);
    transform-origin: center;
}

body.woocommerce-checkout #makecommerce_country_picker_methods_lt .makecommerce-banklink-picker::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border: 1px solid #d8dde4;
    border-radius: inherit;
    pointer-events: none;
}

body.woocommerce-checkout #makecommerce_country_picker_methods_lt .makecommerce-banklink-picker:hover::before {
    border-color: rgba(255, 90, 0, .45);
}

body.woocommerce-checkout #makecommerce_country_picker_methods_lt .makecommerce-banklink-picker:hover {
    background: #fff7f1;
    box-shadow: 0 0 0 2px rgba(255, 90, 0, .3);
}

body.woocommerce-checkout #makecommerce_country_picker_methods_lt .makecommerce-banklink-picker.selected {
    background: #fff1e8 !important;
    box-shadow: 0 0 0 3px var(--checkout-orange, #ff5a00),
        0 8px 18px rgba(255, 90, 0, .2) !important;
    transform: translateY(-1px);
}

body.woocommerce-checkout #makecommerce_country_picker_methods_lt .makecommerce-banklink-picker.selected::before {
    border-color: var(--checkout-orange, #ff5a00);
}

body.woocommerce-checkout #makecommerce_country_picker_methods_lt .makecommerce-banklink-picker.selected::after {
    content: '\2713';
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--checkout-orange, #ff5a00);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 3px 8px rgba(23, 25, 28, .22);
    pointer-events: none;
}

body.woocommerce-checkout form.checkout.gkc-checkout-columns-ready > .gkc-checkout-right {
    position: sticky;
    top: 24px;
    align-self: start;
}

body.admin-bar.woocommerce-checkout form.checkout.gkc-checkout-columns-ready > .gkc-checkout-right {
    top: 56px;
}

body.woocommerce-checkout .gkc-mobile-order-toggle {
    display: none;
}

/* Keep the full purchase decision together with the cart summary. */
body.woocommerce-checkout #order_review > .wc_coupon_message_wrap:empty {
    display: none !important;
}

body.woocommerce-checkout #order_review {
    margin-bottom: 0 !important;
}

body.woocommerce-checkout #order_review > .gkc-checkout-actions {
    float: none !important;
    clear: both;
    box-sizing: border-box;
    width: 100% !important;
    margin: 0 !important;
    padding: 2px 0 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.woocommerce-checkout #order_review > .gkc-checkout-actions .honor-checkout-trust {
    margin-top: 0;
}

body.woocommerce-checkout #order_review > .gkc-checkout-actions .woocommerce-terms-and-conditions-wrapper {
    box-sizing: border-box;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.woocommerce-checkout #order_review > .gkc-checkout-actions .woocommerce-privacy-policy-text {
    max-width: 100%;
    color: var(--checkout-muted, #687078);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

body.woocommerce-checkout #order_review > .gkc-checkout-actions .woocommerce-privacy-policy-text p {
    margin-bottom: 14px;
}

body.woocommerce-checkout #order_review > .gkc-checkout-actions .honor-checkout-consents {
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body.woocommerce-checkout #order_review > .gkc-checkout-actions .honor-checkout-consents .form-row {
    float: none;
    box-sizing: border-box;
    width: 100%;
    margin: 0 !important;
    padding: 12px 0 !important;
    border: 0;
    background: transparent;
}

body.woocommerce-checkout #order_review > .gkc-checkout-actions .honor-checkout-consents .form-row + .form-row {
    border-top: 1px solid #e3e6ea;
}

body.woocommerce-checkout #order_review > .gkc-checkout-actions label.woocommerce-form__label-for-checkbox,
body.woocommerce-checkout #order_review > .gkc-checkout-actions .honor-checkout-marketing-consent label {
    display: flex !important;
    align-items: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 10px;
    width: 100% !important;
    max-width: 100%;
    margin: 0;
    color: #3f464c;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    overflow-wrap: anywhere;
    cursor: pointer;
}

body.woocommerce-checkout #order_review > .gkc-checkout-actions label > input[type="checkbox"] {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 1px 0 0 !important;
    accent-color: var(--checkout-orange, #ff5a00);
}

body.woocommerce-checkout #order_review > .gkc-checkout-actions label > span:not(.required) {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
}

body.woocommerce-checkout #order_review > .gkc-checkout-actions label > .required {
    flex: 0 0 auto;
    margin-left: -5px;
}

body.woocommerce-checkout #order_review > .gkc-checkout-actions #place_order {
    float: none;
    display: block;
    width: 100% !important;
    min-height: 56px;
    margin: 0;
    padding: 0 24px;
    border: 0;
    border-radius: 11px;
    background: var(--checkout-orange, #ff5a00);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .02em;
    text-align: center;
    box-shadow: 0 10px 22px rgba(255, 90, 0, .22);
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

body.woocommerce-checkout #order_review > .gkc-checkout-actions #place_order:hover,
body.woocommerce-checkout #order_review > .gkc-checkout-actions #place_order:focus {
    background: var(--checkout-orange-dark, #df4f00);
    box-shadow: 0 12px 26px rgba(223, 79, 0, .28);
    transform: translateY(-1px);
}

@media (max-width: 1100px) {
    body.woocommerce-checkout form.checkout.gkc-checkout-columns-ready {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    body.woocommerce-checkout form.checkout.gkc-checkout-columns-ready > .gkc-checkout-left {
        grid-row: 1;
    }

    body.woocommerce-checkout form.checkout.gkc-checkout-columns-ready > .gkc-checkout-right {
        grid-row: 2;
    }

    body.woocommerce-checkout form.checkout.gkc-checkout-columns-ready > .gkc-checkout-right,
    body.admin-bar.woocommerce-checkout form.checkout.gkc-checkout-columns-ready > .gkc-checkout-right {
        position: static;
        top: auto;
    }
}

@media (max-width: 767px) {
    body.woocommerce-checkout .woocommerce-billing-fields.gkc-virtual-consumer .gkc-contact-field,
    body.woocommerce-checkout .woocommerce-billing-fields.gkc-company-active .gkc-company-field,
    body.woocommerce-checkout .woocommerce-billing-fields.gkc-full-address-active .gkc-address-field {
        grid-column: 1 / -1;
    }

    body.woocommerce-checkout form.checkout.gkc-checkout-columns-ready {
        gap: 12px;
    }

    body.woocommerce-checkout form.checkout.gkc-checkout-columns-ready > .gkc-checkout-left {
        gap: 12px;
    }

    body.woocommerce-checkout .gkc-checkout-left > .col2-set,
    body.woocommerce-checkout .gkc-checkout-left > .gkc-checkout-payment-panel {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        max-width: none;
        padding: 22px 16px !important;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: 0 7px 24px rgba(23, 25, 28, .055);
    }

    body.woocommerce-checkout .gkc-checkout-payment-heading {
        gap: 10px;
        margin-bottom: 20px;
        font-size: 20px;
    }

    body.woocommerce-checkout .gkc-checkout-step {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        border-radius: 9px;
        font-size: 14px;
    }

    body.woocommerce-checkout .honor-checkout-order-panel.gkc-layout-ready > #order_review_heading {
        display: flex !important;
        padding: 22px 16px 16px !important;
    }

    body.woocommerce-checkout .honor-checkout-order-panel.gkc-layout-ready > #order_review {
        display: block !important;
        padding-top: 0 !important;
        border-top: 0 !important;
    }

    body.woocommerce-checkout .gkc-mobile-order-toggle {
        display: none !important;
    }

    body.woocommerce-checkout #makecommerce_country_picker_methods_lt {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    body.woocommerce-checkout #makecommerce_country_picker_methods_lt .makecommerce-banklink-picker::before {
        background:
            linear-gradient(#fff, #fff) top / 100% 6px no-repeat,
            linear-gradient(#fff, #fff) bottom / 100% 6px no-repeat;
    }

    body.woocommerce-checkout #order_review > .gkc-checkout-actions .woocommerce-privacy-policy-text {
        font-size: 12px;
    }

    body.woocommerce-checkout #order_review > .gkc-checkout-actions label.woocommerce-form__label-for-checkbox,
    body.woocommerce-checkout #order_review > .gkc-checkout-actions .honor-checkout-marketing-consent label {
        font-size: 13px;
    }

    body.woocommerce-checkout #order_review > .gkc-checkout-actions label > input[type="checkbox"] {
        flex-basis: 20px;
        width: 20px;
        height: 20px;
        margin-top: 0 !important;
    }

    body.woocommerce-checkout #order_review > .gkc-checkout-actions #place_order {
        min-height: 54px;
        margin-top: 4px;
    }
}
