  /* ============================================================
   Checkout Page CSS
   ============================================================ */
    .orders_confirm_order h1.top {
        background: #fff;
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 16px;
        font-size: 22px;
        font-weight: 700;
        display: block !important;
        margin-top: 0px;
    }

    /* Base card styling */
    .orders_confirm_order .gxl-card {
        background: #fff;
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 16px;
    }

    /* Card header */
    .orders_confirm_order .gxl-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
    }

    .orders_confirm_order .gxl-card-title {
        font-size: 18px;
        font-weight: 600;
        margin: 0;
    }

    /* Header actions (dropdown + Update link) */
    .orders_confirm_order .gxl-card-header-actions {
        display: flex;
        gap: 12px;
        align-items: center;
    }

    .orders_confirm_order .gxl-card-header-actions select {
        border-radius: 6px;
        padding: 4px 8px;
        height: 36px;
    }

    .orders_confirm_order .gxl-update-link {
        color: #9b1d9b;
        font-weight: 600;
        text-decoration: none;
    }

    /* Divider */
    .orders_confirm_order .gxl-divider {
        width: 100%;
        height: 1px;
        background: #e3e3e3;
        margin-bottom: 16px;
    }

    .orders_confirm_order .gxl-card.gxl-address-card > .gxl-divider {
        margin-bottom: 0px;
    }

    /* ============================================================
   SHIPPING ADDRESS – Two-column layout (desktop)
   ============================================================ */
    .orders_confirm_order .gxl-address-card table.hidden-xs tbody tr {
        display: grid;
        grid-template-columns: 150px auto;
    }

    .orders_confirm_order .gxl-address-card table.hidden-xs td {
        border: none !important;
        padding: 4px 0 !important;
    }

    .orders_confirm_order .gxl-address-card strong {
        font-weight: 600;
        color: #000;
        font-size: 16px;
    }

    /* ============================================================
   PAYMENT OPTIONS
   ============================================================ */
    .orders_confirm_order .gxl-payment-card .payment-way-option-label {
        width: 100%;
        display: flex !important;
        align-items: center;
        border: 1px solid #ddd;
        padding: 14px 16px;
        border-radius: 8px;
        margin-bottom: 12px;
        gap: 12px;
        cursor: pointer;
        transition: background-color 0.2s, border-color 0.2s;
    }

    .orders_confirm_order .gxl-payment-card .payment-way-option-label:hover {
        background-color: #fafafa;
    }

    .orders_confirm_order .payment-way-option-label input[type="radio"] {
        transform: scale(1.2);
        margin-right: 10px;
    }


    /* ============================================================
   SUMMARY CARD
   ============================================================ */
    .orders_confirm_order .gxl-summary-card table td {
        padding: 6px 0 !important;
        font-size: 15px;
    }

    /* ============================================================
   ORDER DETAILS CARD (Comments + PO)
   ============================================================ */
    .orders_confirm_order .gxl-order-details-card input,
    .orders_confirm_order .gxl-order-details-card textarea {
        border-radius: 6px;
    }

    /* ============================================================
   SUBMIT BUTTON CARD
   ============================================================ */
    .orders_confirm_order .gxl-submit-card button[type="submit"] {
        width: 100%;
        padding: 16px;
        font-size: 17px;
        border-radius: 8px;
        background: #048259 !important;
        color: #fff !important;
        box-shadow: none;
        border: none;
    }

      .orders_confirm_order .gxl-submit-card button[type="submit"]:hover {
        background: #016143 !important;
        color: #fff !important;
        border: none;
        box-shadow: none;
    }

    .orders_confirm_order .gxl-submit-card button[type="submit"]:focus {
        background: #014B34 !important;
        color: #fff !important;
        border: none;
         box-shadow: none;

    }

    .orders_confirm_order .gxl-cart-icon {
        font-size: 18px;
    }

    /* ============================================================
   MOBILE ADJUSTMENTS
   ============================================================ */
    @media (max-width: 768px) {
        .orders_confirm_order .gxl-card {
            padding: 16px 18px;
        }

        .orders_confirm_order .gxl-card-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 10px;
        }

        .orders_confirm_order .gxl-card-header-actions {
            width: 100%;
        }

        .orders_confirm_order .gxl-card-header-actions select {
            width: 100%;
        }
    }

    /* ============================================================
   CHECKOUT PAGE — SHIPPING ADDRESS TABLE (DESKTOP)
   ============================================================ */
    /* Expand container to full card width */
    .orders_confirm_order .gxl-address-card .col-md-6,
    .orders_confirm_order .gxl-address-card .col-sm-12 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    /* Expand table itself */
    .orders_confirm_order .gxl-address-card table.table-stripped {
        width: 100% !important;
        table-layout: auto !important;
    }

    /* Turn each row into a 4-column grid:
   [Label][Value][Label][Value]
*/
    .orders_confirm_order .gxl-address-card table.table-stripped tr {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr auto;
        width: 100% !important;
        align-items: center;
        gap: 12px;
        padding-bottom: 12px;
    }

    /* Convert TD to behave like normal block elements */
    .orders_confirm_order .gxl-address-card table.table-stripped td {
        display: block !important;
        padding: 6px 4px !important;
        min-width: 0 !important;
    }

    /* Left-aligned labels (first + third cell) */
    .orders_confirm_order .gxl-address-card table.table-stripped td:nth-child(1),
    .orders_confirm_order .gxl-address-card table.table-stripped td:nth-child(3) {
        text-align: left !important;
        font-weight: 600 !important;
    }

    /* Right-aligned values (second + fourth cell) */
    .orders_confirm_order .gxl-address-card table.table-stripped td:nth-child(2),
    .orders_confirm_order .gxl-address-card table.table-stripped td:nth-child(4) {
        text-align: right !important;
        font-size: 16px !important;
        color: #313131 !important;
    }


    .orders_confirm_order .gxl-summary-card table {
        width: 100% !important;
    }

    .orders_confirm_order .gxl-summary-card table tr {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100% !important;
    }

    /* Left label */
    .orders_confirm_order .gxl-summary-card table td:first-child {
        font-weight: 600 !important;
        text-align: left !important;
        flex: 1;
    }

    /* Right value */
    .orders_confirm_order .gxl-summary-card table td:last-child {
        text-align: right !important;
        flex: 1;
    }

    /* Remove strange bootstrap min-width */
    .orders_confirm_order .gxl-summary-card table td {
        min-width: 0 !important;
        padding: 4px 0 !important;
    }

    /* Checkout page only */
    .orders_confirm_order .order_comments_customer {
        display: none !important;
        /* Hide entire comments block */
    }

    /* Hide ONLY the label for Purchase Order, keep the field visible */
    .orders_confirm_order .order_customer_order_reference label {
        display: none !important;
    }

    #order_addressbook_id {
        border-radius: var(--Border-radius-border-radius-2, 8px);
        border: 2px solid var(--Colors-Borders-borderOpaque, #E3E3E3);
        background: var(--Colors-Surface-surfacePrimary, #FFF);
        transition: background 0.15s ease, border-color 0.15s ease;
    }

    /* Hover */
    #order_addressbook_id:hover {
        border-color: #000000;
        background: #F5F5F5;
    }

    /* Pressed (active + focus) */
    #order_addressbook_id:active,
    #order_addressbook_id:focus {
        border-color: #000000;
        background: #E3E3E3;
        outline: none;
    }

    /* Typography for the Shipping Address title */
    h3.gxl-card-title {
        color: var(--Colors-Content-contentPrimary, #000);
        font-family: "Segoe UI";
        font-size: 16px;
        font-style: normal;
        font-weight: 600;
        line-height: 150%;
        /* 24px */
    }

    #order_customer_order_reference {
        border-radius: var(--Border-radius-border-radius-2, 8px);
        border: 2px solid var(--Colors-Borders-borderOpaque, #E3E3E3);
        background: var(--Colors-Surface-surfacePrimary, #FFF);
        transition: border-color 0.15s ease, background 0.15s ease;
    }

    label[for="payment_way_id"] {
        display: none;
    }

    .gxl-card .gxl-divider {
        height: 1px;
        background: #E3E3E3;

        /* Break out of padding */
        margin-left: -26px;
        margin-right: -26px;
        width: calc(100% + 52px);
    }

    .gxl-summary-card #totals table tr:first-child td {
        border-top: none !important;
    }

.gxl-summary-card #totals table tr.gross-total td {
  border-top: none !important;
}

/* Payment fee + Gross total labels */
.gxl-summary-card tr.payment-fee-totals td:first-child strong,
.gxl-summary-card tr.gross-total td:first-child strong {
  color: var(--Colors-Content-contentSecondary, #313131);
  font-family: "Segoe UI";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 0.019px;
}

.gxl-summary-card tr.payment-fee-totals td:last-child {
  color: var(--Colors-Content-contentPrimary, #000);
  font-family: "Segoe UI";
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%;
}

.gxl-summary-card tr.gross-total td:last-child {
  color: var(--Colors-Content-contentSuccess, #048259);
  font-family: "Segoe UI";
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%;
  letter-spacing: 0.029px;
}

    .top20 {
    margin-top: 0px;
}

.order-fields .row.delivery-address {
  display: none;
}

@media (max-width: 767px) {

  /* Full-width clean layout */
  .order-fields table.visible-xs {
    width: 100% !important;
    border: none;
  }

  /* Remove borders and spacing noise */
  .order-fields table.visible-xs tr,
  .order-fields table.visible-xs td {
    border: none !important;
    padding: 6px 0;
  }

  /* Label left, value right alignment */
  .order-fields table.visible-xs tr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .order-fields table.visible-xs td:first-child {
    flex: 0 0 auto;
    font-weight: 600;
    text-align: left;
  }

  .order-fields table.visible-xs td:last-child {
    flex: 1 1 auto;
    text-align: right;
  }


  /**********************************************************
    Hide Address 2 (label + value + spacing)
  **********************************************************/
  .order-fields table.visible-xs tr:first-child td:last-child strong,
  .order-fields table.visible-xs tr:first-child td:last-child .field-address2,
  .order-fields table.visible-xs tr:first-child td:last-child br {
    display: none !important;
  }

}

.orders_confirm_order .table{
    margin-bottom: 0px !important;
}

.orders_confirm_order .col-md-6 {
    padding:16px !important;
}

.orders_confirm_order input.form-control {
    padding: 4px 8px 4px 16px !important;
}

.orders_confirm_order .gxl-po-helper {
  margin-top: 4px;
  color: var(--Colors-Content-contentTertiary, #6A6A6A);
  font-family: "Segoe UI";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 0.017px;
}