body.sf-checkout-redesign-active {
    --sf-green: #176a31;
    --sf-green-dark: #105526;
    --sf-green-soft: #eff7f1;
    --sf-text: #171a18;
    --sf-muted: #7d8480;
    --sf-border: #e5ebe6;
    --sf-bg: #fff;
    --sf-danger: #e32929;
    --sf-shadow: 0 2px 14px rgba(21,63,38,.055)
}

.sf-checkout-redesign-active .sf-checkout-layout {
    display: grid;
    grid-template-columns: minmax(330px,.92fr) minmax(0,1.52fr);
    grid-template-areas: "review customer";
    gap: 18px;
    align-items: start;
    direction: ltr
}

.sf-checkout-redesign-active .sf-checkout-customer {
    grid-area: customer;
    min-width: 0;
    direction: rtl
}

.sf-checkout-redesign-active .sf-checkout-review {
    grid-area: review;
    min-width: 0;
    direction: rtl
}

.sf-checkout-redesign-active .sf-customer-details {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.sf-checkout-redesign-active .sf-checkout-card {
    margin: 0 0 14px!important;
    padding: 16px!important;
    background: #fff!important;
    border: 1px solid var(--sf-border)!important;
    border-radius: 14px!important;
    box-shadow: var(--sf-shadow)!important
}

.sf-checkout-redesign-active .sf-card-heading {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px
}

.sf-checkout-redesign-active .sf-card-heading-compact {
    margin-bottom: 10px
}

.sf-checkout-redesign-active .sf-card-icon {
    width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 27px;
    color: var(--sf-green)
}

.sf-checkout-redesign-active .sf-card-icon svg,.sf-checkout-redesign-active .sf-mini-icon svg,.sf-checkout-redesign-active .sf-security-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor
}

.sf-checkout-redesign-active .sf-card-heading h2 {
    margin: 0!important;
    color: var(--sf-text)!important;
    font-size: 18px!important;
    line-height: 1.35!important;
    font-weight: 800!important
}

.sf-checkout-redesign-active .sf-card-heading p {
    margin: 4px 0 0!important;
    color: var(--sf-muted)!important;
    font-size: 12px!important;
    line-height: 1.6!important
}

.sf-checkout-redesign-active .sf-optional {
    color: var(--sf-muted);
    font-size: 11px;
    font-weight: 500
}

.sf-checkout-redesign-active .sf-fields-grid,.sf-checkout-redesign-active .woocommerce-additional-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0 14px
}

.sf-checkout-redesign-active .form-row {
    margin: 0 0 13px!important
}

.sf-checkout-redesign-active .form-row-first,.sf-checkout-redesign-active .form-row-last {
    width: calc(50% - 7px)!important;
    float: none!important
}

.sf-checkout-redesign-active .form-row-wide,.sf-checkout-redesign-active .form-row.address-field,.sf-checkout-redesign-active .form-row.notes {
    width: 100%!important;
    float: none!important
}

/* v1.3 – Billing field positions from WooCommerce Checkout Fields.
   WooCommerce renders Left/Right/Wide as form-row-first/last/wide.
   Scope this to billing only: delivery, payment and other forms are untouched. */
.sf-checkout-redesign-active .woocommerce-billing-fields__field-wrapper.sf-fields-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
    row-gap: 0;
    direction: rtl;
    align-items: start;
}

.sf-checkout-redesign-active .woocommerce-billing-fields__field-wrapper.sf-fields-grid > .form-row {
    min-width: 0;
    max-width: 100%;
    width: 100% !important;
    margin: 0 0 13px !important;
    float: none !important;
    grid-column: 1 / -1;
}

/* In a RTL grid: column 1 is the right-hand side, column 2 is left. */
.sf-checkout-redesign-active .woocommerce-billing-fields__field-wrapper.sf-fields-grid > .form-row.form-row-first:not(.form-row-wide) {
    grid-column: 2;
}

.sf-checkout-redesign-active .woocommerce-billing-fields__field-wrapper.sf-fields-grid > .form-row.form-row-last:not(.form-row-wide) {
    grid-column: 1;
}

.sf-checkout-redesign-active .woocommerce-billing-fields__field-wrapper.sf-fields-grid > .form-row.form-row-wide {
    grid-column: 1 / -1;
}

@media (max-width: 767px) {
    .sf-checkout-redesign-active .woocommerce-billing-fields__field-wrapper.sf-fields-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .sf-checkout-redesign-active .woocommerce-billing-fields__field-wrapper.sf-fields-grid > .form-row {
        grid-column: 1 / -1 !important;
    }
}

.sf-checkout-redesign-active .form-row label {
    display: block;
    margin: 0 0 6px!important;
    color: #242825!important;
    font-size: 13px!important;
    font-weight: 600!important;
    line-height: 1.4!important
}

.sf-checkout-redesign-active .form-row label .required {
    color: var(--sf-danger)!important
}

.sf-checkout-redesign-active .input-text,.sf-checkout-redesign-active input[type=text],.sf-checkout-redesign-active input[type=email],.sf-checkout-redesign-active input[type=tel],.sf-checkout-redesign-active input[type=number],.sf-checkout-redesign-active input[type=password],.sf-checkout-redesign-active select,.sf-checkout-redesign-active textarea,.sf-checkout-redesign-active .select2-container--default .select2-selection--single {
    width: 100%!important;
    min-height: 42px!important;
    border: 1px solid #dfe4e0!important;
    border-radius: 6px!important;
    background: #fff!important;
    color: #2a2e2b!important;
    box-shadow: none!important;
    outline: none!important;
    font-size: 13px!important
}

.sf-checkout-redesign-active input[type=text],.sf-checkout-redesign-active input[type=email],.sf-checkout-redesign-active input[type=tel],.sf-checkout-redesign-active input[type=number],.sf-checkout-redesign-active input[type=password],.sf-checkout-redesign-active textarea {
    padding: 9px 11px!important
}

.sf-checkout-redesign-active textarea {
    min-height: 88px!important;
    resize: vertical
}

.sf-checkout-redesign-active .select2-container {
    width: 100%!important
}

.sf-checkout-redesign-active .select2-container--default .select2-selection--single {
    display: flex!important;
    align-items: center!important;
    padding: 0 10px!important
}

.sf-checkout-redesign-active .select2-container--default .select2-selection--single .select2-selection__rendered {
    width: 100%;
    padding: 0 0 0 24px!important;
    line-height: 40px!important
}

.sf-checkout-redesign-active .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 7px!important;
    left: 7px!important;
    right: auto!important
}

.sf-checkout-redesign-active .sf-shipping-address-card #ship-to-different-address {
    margin: 0 0 12px!important;
    font-size: 13px!important
}

.sf-checkout-redesign-active .sf-shipping-address-card #ship-to-different-address label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer
}

.sf-checkout-redesign-active .sf-order-review-fragment .sf-checkout-delivery-source {
    display: none!important
}

.sf-checkout-redesign-active .sf-checkout-delivery-target:empty {
    display: none
}

.sf-checkout-redesign-active .sf-checkout-delivery-target .sf-checkout-delivery-source {
    display: block!important
}

.sf-checkout-redesign-active .sf-delivery-methods .shop_table,.sf-checkout-redesign-active .sf-delivery-methods tbody,.sf-checkout-redesign-active .sf-delivery-methods tr,.sf-checkout-redesign-active .sf-delivery-methods th,.sf-checkout-redesign-active .sf-delivery-methods td {
    display: block!important;
    width: 100%!important;
    margin: 0!important;
    padding: 0!important;
    border: 0!important;
    background: transparent!important
}

.sf-checkout-redesign-active .sf-delivery-methods th {
    display: none!important
}

.sf-checkout-redesign-active .sf-delivery-methods ul#shipping_method,.sf-checkout-redesign-active .sf-delivery-methods .woocommerce-shipping-methods {
    display: grid!important;
    gap: 9px;
    margin: 0!important;
    padding: 0!important;
    list-style: none!important
}

.sf-checkout-redesign-active .sf-delivery-methods ul#shipping_method li,.sf-checkout-redesign-active .sf-delivery-methods .woocommerce-shipping-methods li {
    margin: 0!important;
    padding: 12px!important;
    border: 1px solid var(--sf-border);
    border-radius: 8px;
    background: #fff
}

.sf-checkout-redesign-active .sf-delivery-methods input[type=radio] {
    margin: 0 0 0 8px!important;
    accent-color: var(--sf-green)
}

.sf-checkout-redesign-active .sf-delivery-methods label {
    margin: 0!important;
    color: #222!important;
    font-size: 13px!important;
    font-weight: 700!important
}

.sf-checkout-redesign-active .sf-delivery-methods .amount {
    color: var(--sf-green)!important;
    font-weight: 800!important
}

.sf-checkout-redesign-active .sf-delivery-methods .woocommerce-shipping-destination {
    margin: 10px 0 0!important;
    color: var(--sf-muted)!important;
    font-size: 12px!important;
    line-height: 1.7!important
}

.sf-checkout-redesign-active .sf-delivery-methods .shipping-calculator-button {
    color: var(--sf-green)!important;
    font-size: 12px!important;
    font-weight: 700!important
}

.sf-checkout-redesign-active .sf-order-product {
    display: grid;
    grid-template-columns: 66px minmax(0,1fr) 42px 88px;
    gap: 10px;
    direction: rtl;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid #edf0ee
}

.sf-checkout-redesign-active .sf-order-product:first-child {
    padding-top: 0
}

.sf-checkout-redesign-active .sf-order-product-media img {
    display: block;
    width: 66px!important;
    height: 66px!important;
    object-fit: cover!important;
    border-radius: 9px!important
}

.sf-checkout-redesign-active .sf-order-product-name,.sf-checkout-redesign-active .sf-order-product-name a {
    color: #191c1a!important;
    font-size: 13px!important;
    line-height: 1.45!important;
    font-weight: 800!important;
    text-decoration: none!important
}

.sf-checkout-redesign-active .sf-order-product-unit-price {
    margin-top: 3px;
    color: #222;
    font-size: 12px;
    font-weight: 700
}

.sf-checkout-redesign-active .sf-order-product-meta {
    margin-top: 3px;
    color: var(--sf-muted);
    font-size: 11px
}

.sf-checkout-redesign-active .sf-order-product-qty {
    grid-column: 3;
    width: 38px;
    min-width: 0;
    box-sizing: border-box;
    justify-self: center;
    padding: 6px 3px;
    border: 1px solid #e1e6e2;
    border-radius: 5px;
    background: #fafbfa;
    color: #3d423f;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.sf-checkout-redesign-active .sf-order-product-total {
    grid-column: 4;
    min-width: 0;
    justify-self: end;
    text-align: left;
    font-variant-numeric: tabular-nums;
    color: #202420;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap
}

.sf-checkout-redesign-active .sf-order-totals {
    padding-top: 10px
}

.sf-checkout-redesign-active .sf-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    color: #404541;
    font-size: 12px
}

.sf-checkout-redesign-active .sf-total-row strong {
    color: #222;
    font-weight: 800;
    white-space: nowrap
}

.sf-checkout-redesign-active .sf-total-discount,.sf-checkout-redesign-active .sf-total-discount strong,.sf-checkout-redesign-active .sf-total-discount strong * {
    color: #15943b!important
}

.sf-checkout-redesign-active .sf-total-discount em {
    margin-right: 5px;
    color: #15943b;
    font-style: normal;
    font-size: 11px;
    font-weight: 700
}

.sf-checkout-redesign-active .sf-order-grand-total {
    margin-top: 8px;
    padding: 12px 10px;
    border-radius: 7px;
    background: var(--sf-green-soft);
    color: #142418;
    font-size: 17px;
    font-weight: 900
}

.sf-checkout-redesign-active .sf-order-grand-total strong,.sf-checkout-redesign-active .sf-order-grand-total .amount {
    color: #105b29!important;
    font-size: 19px!important;
    font-weight: 900!important
}

.sf-checkout-redesign-active .sf-coupon-box {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #edf0ee
}

.sf-checkout-redesign-active .sf-mini-heading {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: #202421;
    font-size: 13px;
    font-weight: 800
}

.sf-checkout-redesign-active .sf-mini-icon {
    width: 18px;
    height: 18px;
    color: var(--sf-green)
}

.sf-checkout-redesign-active .sf-checkout-coupon-form {
    display: block!important;
    margin: 0!important;
    padding: 0!important;
    border: 0!important
}

.sf-checkout-redesign-active .sf-coupon-controls {
    display: grid;
    grid-template-columns: minmax(0,1fr) 78px;
    gap: 8px
}

.sf-checkout-redesign-active .sf-coupon-controls .button {
    min-height: 38px!important;
    margin: 0!important;
    padding: 7px 10px!important;
    border: 0!important;
    border-radius: 5px!important;
    background: var(--sf-green)!important;
    color: #fff!important;
    font-size: 12px!important;
    font-weight: 800!important
}

.sf-checkout-redesign-active #payment .wc_payment_methods {
    margin: 0!important;
    padding: 0!important;
    border: 0!important;
    list-style: none!important
}

.sf-checkout-redesign-active #payment .wc_payment_method {
    margin: 0 0 8px!important;
    padding: 11px 12px!important;
    border: 1px solid var(--sf-border)!important;
    border-radius: 8px!important;
    background: #fff!important
}

.sf-checkout-redesign-active #payment .wc_payment_method.is-selected {
    border-color: #55a56a!important;
    background: #f8fcf9!important
}

.sf-checkout-redesign-active #payment .wc_payment_method>input[type=radio] {
    margin: 0 0 0 8px!important;
    accent-color: var(--sf-green)
}

.sf-checkout-redesign-active #payment .wc_payment_method>label {
    margin: 0!important;
    color: #212522!important;
    font-size: 12px!important;
    font-weight: 800!important
}

.sf-checkout-redesign-active #payment .wc_payment_method>label img {
    max-height: 25px!important;
    width: auto!important;
    margin: 0 6px 0 0!important
}

.sf-checkout-redesign-active #payment .payment_box {
    margin: 10px 0 0!important;
    padding: 10px!important;
    border: 0!important;
    border-radius: 7px!important;
    background: #f7f9f7!important;
    color: #737a75!important;
    font-size: 11px!important
}

.sf-checkout-redesign-active #payment .payment_box:before {
    display: none!important
}

.sf-checkout-redesign-active #payment .place-order {
    width: 100%!important;
    margin: 12px 0 0!important;
    padding: 0!important
}

.sf-checkout-redesign-active .sf-payment-security {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 10px 0;
    padding: 9px 10px;
    border-radius: 7px;
    background: #f3f8f4
}

.sf-checkout-redesign-active .sf-security-icon {
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    color: var(--sf-green)
}

.sf-checkout-redesign-active .sf-payment-security strong,.sf-checkout-redesign-active .sf-payment-security small {
    display: block
}

.sf-checkout-redesign-active .sf-payment-security strong {
    font-size: 11px;
    font-weight: 800
}

.sf-checkout-redesign-active .sf-payment-security small {
    margin-top: 2px;
    color: var(--sf-muted);
    font-size: 10px
}

.sf-checkout-redesign-active #place_order {
    width: 100%!important;
    min-height: 45px!important;
    margin: 0!important;
    padding: 11px 16px!important;
    border: 0!important;
    border-radius: 7px!important;
    background: var(--sf-green)!important;
    color: #fff!important;
    font-size: 14px!important;
    font-weight: 900!important
}

.sf-checkout-redesign-active #place_order:hover {
    background: var(--sf-green-dark)!important
}

.sf-checkout-redesign-active .sf-back-to-cart {
    width: 100%;
    min-height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 9px;
    padding: 8px 14px;
    border: 1px solid #78a983;
    border-radius: 6px;
    color: #215c30!important;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none!important
}

.sf-checkout-redesign-active #order_review,.sf-checkout-redesign-active .woocommerce-checkout-review-order,.sf-checkout-redesign-active .woocommerce-checkout-payment {
    border: 1!important;
    box-shadow: none!important
}

.sf-checkout-redesign-active #order_review_heading {
    display: none!important
}

.sf-checkout-redesign-active .woocommerce-checkout-review-order-table {
    margin: 0!important
}

@media(max-width: 991px) {
    .sf-checkout-redesign-active .sf-checkout-layout {
        grid-template-columns:minmax(0,1fr);
        grid-template-areas: "customer" "review"
    }
}

@media(max-width: 767px) {
    .sf-checkout-redesign-active .sf-checkout-card {
        padding:13px!important;
        border-radius: 12px!important
    }

    .sf-checkout-redesign-active .sf-card-heading h2 {
        font-size: 16px!important
    }

    .sf-checkout-redesign-active .form-row-first,.sf-checkout-redesign-active .form-row-last {
        width: 100%!important
    }

    .sf-checkout-redesign-active .sf-order-product {
        grid-template-columns: 58px minmax(0,1fr) 38px 80px;
        gap: 6px
    }

    .sf-checkout-redesign-active .sf-order-product-media img {
        width: 58px!important;
        height: 58px!important
    }

    .sf-checkout-redesign-active .sf-order-product-qty {
        width: 34px;
        padding-inline: 2px
    }

    .sf-checkout-redesign-active .sf-order-product-total {
        grid-column: 4;
        justify-self: end
    }

    .sf-checkout-redesign-active .sf-order-grand-total {
        font-size: 15px
    }

    .sf-checkout-redesign-active .sf-order-grand-total strong,.sf-checkout-redesign-active .sf-order-grand-total .amount {
        font-size: 17px!important
    }
}
