/* =========================================================
   XchangeKart — Flipkart-inspired page-only UI
   Loaded ONLY on:
   /account/edit-account/
   /account/view-order/*
   /account/wishlist/
   
   Navigation / Elementor / storefront styling untouched.
   ========================================================= */

/* ---------- COMMON PAGE SURFACE ---------- */

body.woocommerce-account .woocommerce-MyAccount-content {
    color: #212121;
    font-family: Arial, Helvetica, sans-serif;
}


/* =========================================================
   MY DETAILS
   ========================================================= */

body.woocommerce-account.woocommerce-edit-account
.woocommerce-MyAccount-content form.edit-account {
    width: 100%;
    max-width: 900px;
    margin: 0;
    padding: 24px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    box-sizing: border-box;
}

body.woocommerce-account.woocommerce-edit-account
.woocommerce-MyAccount-content form.edit-account .form-row {
    margin-bottom: 18px;
}

body.woocommerce-account.woocommerce-edit-account
.woocommerce-MyAccount-content form.edit-account label {
    display: block;
    margin-bottom: 7px;
    color: #212121;
    font-size: 13px;
    font-weight: 600;
}

body.woocommerce-account.woocommerce-edit-account
.woocommerce-MyAccount-content form.edit-account input.input-text {
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    border: 1px solid #d5d5d5;
    border-radius: 3px;
    background: #fff;
    color: #212121;
    font-size: 14px;
    box-sizing: border-box;
}

body.woocommerce-account.woocommerce-edit-account
.woocommerce-MyAccount-content form.edit-account
input.input-text:focus {
    border-color: #2874f0;
    outline: none;
    box-shadow: 0 0 0 1px #2874f0;
}

body.woocommerce-account.woocommerce-edit-account
.woocommerce-MyAccount-content form.edit-account fieldset {
    margin: 8px 0 20px;
    padding: 18px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
}

body.woocommerce-account.woocommerce-edit-account
.woocommerce-MyAccount-content form.edit-account legend {
    padding: 0 6px;
    color: #212121;
    font-size: 16px;
    font-weight: 600;
}

body.woocommerce-account.woocommerce-edit-account
.woocommerce-MyAccount-content form.edit-account
.woocommerce-Button {
    min-height: 42px;
    padding: 10px 24px;
    border: 0;
    border-radius: 3px;
    background: #2874f0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

body.woocommerce-account.woocommerce-edit-account
.woocommerce-MyAccount-content form.edit-account
.woocommerce-Button:hover {
    background: #1d5fc4;
}


/* =========================================================
   VIEW ORDER
   ========================================================= */

body.woocommerce-account.woocommerce-view-order
.woocommerce-MyAccount-content .woocommerce-order {
    color: #212121;
}

body.woocommerce-account.woocommerce-view-order
.woocommerce-MyAccount-content .woocommerce-order
.woocommerce-order-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
}

body.woocommerce-account.woocommerce-view-order
.woocommerce-MyAccount-content .woocommerce-order
.woocommerce-order-overview li {
    margin: 0;
    padding: 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,.07);
    color: #757575;
    font-size: 11px;
    text-transform: uppercase;
}

body.woocommerce-account.woocommerce-view-order
.woocommerce-MyAccount-content .woocommerce-order
.woocommerce-order-overview li strong {
    display: block;
    margin-top: 5px;
    color: #212121;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
}

body.woocommerce-account.woocommerce-view-order
.woocommerce-MyAccount-content .woocommerce-order
.woocommerce-order-details {
    margin: 0 0 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    overflow: hidden;
}

body.woocommerce-account.woocommerce-view-order
.woocommerce-MyAccount-content .woocommerce-order
.woocommerce-order-details h2 {
    margin: 0;
    padding: 16px 18px;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
    color: #212121;
    font-size: 19px;
    font-weight: 600;
}

body.woocommerce-account.woocommerce-view-order
.woocommerce-MyAccount-content
.woocommerce-table--order-details {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
}

body.woocommerce-account.woocommerce-view-order
.woocommerce-MyAccount-content
.woocommerce-table--order-details th {
    padding: 13px 18px;
    background: #fafafa;
    border-bottom: 1px solid #e0e0e0;
    color: #757575;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

body.woocommerce-account.woocommerce-view-order
.woocommerce-MyAccount-content
.woocommerce-table--order-details td {
    padding: 15px 18px;
    background: #fff;
    border-bottom: 1px solid #eeeeee;
    color: #212121;
}

body.woocommerce-account.woocommerce-view-order
.woocommerce-MyAccount-content
.woocommerce-table--order-details a {
    color: #2874f0;
    font-weight: 600;
    text-decoration: none;
}


/* ---------- BILLING + SHIPPING ---------- */

body.woocommerce-account.woocommerce-view-order
.woocommerce-MyAccount-content .woocommerce-customer-details {
    margin-top: 18px;
}

body.woocommerce-account.woocommerce-view-order
.woocommerce-MyAccount-content
.woocommerce-customer-details .woocommerce-columns--addresses {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
    margin: 0;
}

body.woocommerce-account.woocommerce-view-order
.woocommerce-MyAccount-content
.woocommerce-customer-details .woocommerce-column {
    width: auto;
    float: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    overflow: hidden;
}

body.woocommerce-account.woocommerce-view-order
.woocommerce-MyAccount-content
.woocommerce-customer-details .woocommerce-column h2,
body.woocommerce-account.woocommerce-view-order
.woocommerce-MyAccount-content
.woocommerce-customer-details .woocommerce-column h3 {
    margin: 0;
    padding: 15px 18px;
    background: #fafafa;
    border-bottom: 1px solid #e0e0e0;
    color: #212121;
    font-size: 16px;
    font-weight: 600;
}

body.woocommerce-account.woocommerce-view-order
.woocommerce-MyAccount-content
.woocommerce-customer-details .woocommerce-column address {
    margin: 0;
    padding: 17px 18px;
    background: #fff;
    border: 0;
    color: #424242;
    font-size: 13px;
    line-height: 1.75;
    font-style: normal;
}


/* =========================================================
   WISHLIST
   ========================================================= */

body.woocommerce-account
.woocommerce-MyAccount-content table.wishlist_table,
body.woocommerce-account
.woocommerce-MyAccount-content .wcboost-wishlist table {
    width: 100%;
    margin: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-collapse: collapse;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

body.woocommerce-account
.woocommerce-MyAccount-content table.wishlist_table th,
body.woocommerce-account
.woocommerce-MyAccount-content .wcboost-wishlist table th {
    padding: 13px 15px;
    background: #fafafa;
    border-bottom: 1px solid #e0e0e0;
    color: #757575;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

body.woocommerce-account
.woocommerce-MyAccount-content table.wishlist_table td,
body.woocommerce-account
.woocommerce-MyAccount-content .wcboost-wishlist table td {
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #eeeeee;
    color: #212121;
    vertical-align: middle;
}

body.woocommerce-account
.woocommerce-MyAccount-content table.wishlist_table img,
body.woocommerce-account
.woocommerce-MyAccount-content .wcboost-wishlist table img {
    max-width: 90px;
    max-height: 95px;
    width: auto;
    height: auto;
    object-fit: contain;
}

body.woocommerce-account
.woocommerce-MyAccount-content table.wishlist_table a,
body.woocommerce-account
.woocommerce-MyAccount-content .wcboost-wishlist table a {
    color: #2874f0;
    font-weight: 600;
    text-decoration: none;
}

body.woocommerce-account
.woocommerce-MyAccount-content table.wishlist_table .button,
body.woocommerce-account
.woocommerce-MyAccount-content .wcboost-wishlist table .button {
    min-height: 40px;
    padding: 9px 18px;
    border: 0;
    border-radius: 3px;
    background: #2874f0;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

body.woocommerce-account
.woocommerce-MyAccount-content table.wishlist_table .button:hover,
body.woocommerce-account
.woocommerce-MyAccount-content .wcboost-wishlist table .button:hover {
    background: #1d5fc4;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    body.woocommerce-account.woocommerce-edit-account
    .woocommerce-MyAccount-content form.edit-account {
        padding: 16px;
    }

    body.woocommerce-account.woocommerce-view-order
    .woocommerce-MyAccount-content .woocommerce-order-overview {
        grid-template-columns: 1fr 1fr;
    }

    body.woocommerce-account.woocommerce-view-order
    .woocommerce-MyAccount-content
    .woocommerce-customer-details .woocommerce-columns--addresses {
        grid-template-columns: 1fr;
    }

    body.woocommerce-account
    .woocommerce-MyAccount-content table.wishlist_table,
    body.woocommerce-account
    .woocommerce-MyAccount-content .wcboost-wishlist table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 460px) {

    body.woocommerce-account.woocommerce-view-order
    .woocommerce-MyAccount-content .woocommerce-order-overview {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   XchangeKart — FINAL Flipkart-inspired Account UI
   PAGE CONTENT ONLY
   Navigation / Elementor / storefront untouched
   ========================================================= */

#tgwc-account-contentedit-account,
#tgwc-account-contentorders,
#tgwc-account-contentview-order,
#tgwc-account-contentedit-address,
#tgwc-account-contentaddress-book,
#tgwc-account-contentwishlist {
    color: #212121;
    font-family: Arial, Helvetica, sans-serif;
}


/* =========================================================
   MY DETAILS
   ========================================================= */

#tgwc-account-contentedit-account form.edit-account {
    max-width: 920px !important;
    margin: 0 !important;
    padding: 24px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.08) !important;
}

#tgwc-account-contentedit-account form.edit-account
.form-row {
    margin-bottom: 17px !important;
}

#tgwc-account-contentedit-account form.edit-account label {
    margin-bottom: 6px !important;
    color: #212121 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

#tgwc-account-contentedit-account form.edit-account
input.input-text {
    height: 42px !important;
    padding: 9px 12px !important;
    border: 1px solid #d5d5d5 !important;
    border-radius: 3px !important;
    box-sizing: border-box !important;
}

#tgwc-account-contentedit-account form.edit-account
fieldset {
    margin: 8px 0 20px !important;
    padding: 18px !important;
    background: #fafafa !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 3px !important;
}

#tgwc-account-contentedit-account form.edit-account
.woocommerce-Button {
    background: #2874f0 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 3px !important;
    padding: 10px 26px !important;
    min-height: 42px !important;
    font-weight: 600 !important;
}


/* =========================================================
   MY ORDERS
   ========================================================= */

#tgwc-account-contentorders .woocommerce-orders-table {
    width: 100% !important;
    margin: 0 !important;
    border: 1px solid #e0e0e0 !important;
    border-collapse: collapse !important;
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.08) !important;
}

#tgwc-account-contentorders .woocommerce-orders-table th {
    padding: 14px 16px !important;
    background: #fafafa !important;
    border-bottom: 1px solid #e0e0e0 !important;
    color: #757575 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
}

#tgwc-account-contentorders .woocommerce-orders-table td {
    padding: 15px 16px !important;
    border-bottom: 1px solid #eeeeee !important;
    background: #fff !important;
    vertical-align: middle !important;
}

#tgwc-account-contentorders .woocommerce-orders-table__order-number a {
    color: #2874f0 !important;
    font-weight: 600 !important;
}

#tgwc-account-contentorders .woocommerce-orders-table__cell-order-status {
    color: #2874f0 !important;
    font-weight: 600 !important;
}

#tgwc-account-contentorders .woocommerce-orders-table__cell-order-actions
.button {
    min-height: 38px !important;
    padding: 8px 18px !important;
    background: #2874f0 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 3px !important;
    font-weight: 600 !important;
}


/* =========================================================
   VIEW ORDER
   ========================================================= */

#tgwc-account-contentview-order > p:first-child {
    margin: 0 0 16px !important;
    padding: 15px 18px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-left: 3px solid #2874f0 !important;
    border-radius: 4px !important;
}

#tgwc-account-contentview-order .woocommerce-order-overview {
    display: grid !important;
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
    gap: 10px !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
}

#tgwc-account-contentview-order .woocommerce-order-overview li {
    margin: 0 !important;
    padding: 15px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.07) !important;
    color: #757575 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
}

#tgwc-account-contentview-order .woocommerce-order-overview li strong {
    display: block !important;
    margin-top: 5px !important;
    color: #212121 !important;
    font-size: 14px !important;
    text-transform: none !important;
}

#tgwc-account-contentview-order .woocommerce-order-details {
    margin-bottom: 18px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.08) !important;
    overflow: hidden !important;
}

#tgwc-account-contentview-order .woocommerce-order-details h2 {
    margin: 0 !important;
    padding: 16px 18px !important;
    background: #fff !important;
    border-bottom: 1px solid #e0e0e0 !important;
    font-size: 18px !important;
}

#tgwc-account-contentview-order .woocommerce-table--order-details {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: collapse !important;
}

#tgwc-account-contentview-order .woocommerce-table--order-details th {
    padding: 13px 18px !important;
    background: #fafafa !important;
    color: #757575 !important;
    border-bottom: 1px solid #e0e0e0 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
}

#tgwc-account-contentview-order .woocommerce-table--order-details td {
    padding: 15px 18px !important;
    background: #fff !important;
    border-bottom: 1px solid #eeeeee !important;
}

#tgwc-account-contentview-order
.woocommerce-table--order-details a {
    color: #2874f0 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}


/* ---------- Billing + Shipping ---------- */

#tgwc-account-contentview-order .woocommerce-customer-details {
    width: 100% !important;
    margin-top: 18px !important;
}

#tgwc-account-contentview-order
.woocommerce-columns--addresses {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 16px !important;
    margin: 0 !important;
}

#tgwc-account-contentview-order .woocommerce-column {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.08) !important;
    overflow: hidden !important;
}

#tgwc-account-contentview-order .woocommerce-column h2,
#tgwc-account-contentview-order .woocommerce-column h3 {
    margin: 0 !important;
    padding: 15px 18px !important;
    background: #fafafa !important;
    border-bottom: 1px solid #e0e0e0 !important;
    font-size: 16px !important;
}

#tgwc-account-contentview-order .woocommerce-column address {
    margin: 0 !important;
    padding: 17px 18px !important;
    background: #fff !important;
    border: 0 !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
    font-style: normal !important;
}


/* =========================================================
   ADDRESSES
   ========================================================= */

#tgwc-account-contentedit-address {
    padding-top: 0;
}

#tgwc-account-contentedit-address .woocommerce-Addresses,
#tgwc-account-contentedit-address .woocommerce-Address {
    margin-bottom: 16px !important;
}

#tgwc-account-contentedit-address .woocommerce-Address {
    padding: 18px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.07) !important;
}

#tgwc-account-contentedit-address .woocommerce-Address-title {
    margin-bottom: 12px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #eeeeee !important;
}

#tgwc-account-contentedit-address .woocommerce-Address-title h2,
#tgwc-account-contentedit-address .woocommerce-Address-title h3 {
    color: #212121 !important;
    font-size: 17px !important;
    font-weight: 600 !important;
}

#tgwc-account-contentedit-address .edit {
    color: #2874f0 !important;
    font-weight: 600 !important;
}


/* =========================================================
   ADDRESS BOOK
   ========================================================= */

#tgwc-account-contentaddress-book {
    color: #212121 !important;
}

#tgwc-account-contentaddress-book a {
    color: #2874f0;
}

#tgwc-account-contentaddress-book .button,
#tgwc-account-contentaddress-book button {
    border-radius: 3px !important;
}

#tgwc-account-contentaddress-book .button-primary,
#tgwc-account-contentaddress-book .add-address,
#tgwc-account-contentaddress-book [class*="add"] .button {
    background: #2874f0 !important;
    color: #fff !important;
}


/* =========================================================
   WISHLIST
   ========================================================= */

#tgwc-account-contentwishlist table {
    width: 100% !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-collapse: collapse !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.08) !important;
}

#tgwc-account-contentwishlist table th {
    padding: 13px 15px !important;
    background: #fafafa !important;
    border-bottom: 1px solid #e0e0e0 !important;
    color: #757575 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
}

#tgwc-account-contentwishlist table td {
    padding: 15px !important;
    background: #fff !important;
    border-bottom: 1px solid #eeeeee !important;
    vertical-align: middle !important;
}

#tgwc-account-contentwishlist table img {
    max-width: 88px !important;
    max-height: 95px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

#tgwc-account-contentwishlist table a {
    color: #2874f0 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

#tgwc-account-contentwishlist table .button {
    min-height: 40px !important;
    padding: 9px 18px !important;
    background: #2874f0 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 3px !important;
    font-weight: 600 !important;
}

#tgwc-account-contentwishlist table .button:hover {
    background: #1d5fc4 !important;
}

#tgwc-account-contentwishlist input[type="number"] {
    width: 68px !important;
    min-height: 40px !important;
    border: 1px solid #d5d5d5 !important;
    border-radius: 3px !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    #tgwc-account-contentview-order
    .woocommerce-order-overview {
        grid-template-columns: 1fr 1fr !important;
    }

    #tgwc-account-contentview-order
    .woocommerce-columns--addresses {
        grid-template-columns: 1fr !important;
    }

    #tgwc-account-contentwishlist table {
        display: block !important;
        overflow-x: auto !important;
    }

    #tgwc-account-contentorders .woocommerce-orders-table {
        display: block !important;
        overflow-x: auto !important;
    }
}

@media (max-width: 480px) {

    #tgwc-account-contentview-order
    .woocommerce-order-overview {
        grid-template-columns: 1fr !important;
    }
}
/* =========================================================
   XchangeKart — Flipkart-style My Details + Wishlist
   PAGE CONTENT ONLY
   Navigation / Elementor / WooCommerce functionality untouched
   ========================================================= */


/* =========================================================
   MY DETAILS
   ========================================================= */

#tgwc-account-contentedit-account {
    font-family: Arial, Helvetica, sans-serif;
    color: #212121;
}

/* Main edit-account form */
#tgwc-account-contentedit-account form.edit-account {
    width: 100% !important;
    max-width: 980px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 2px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,.08) !important;
    overflow: hidden !important;
}

/* Each logical field area */
#tgwc-account-contentedit-account form.edit-account
p.form-row {
    margin: 0 !important;
    padding: 16px 22px !important;
    border-bottom: 1px solid #eeeeee !important;
    background: #fff !important;
}

/* Labels */
#tgwc-account-contentedit-account form.edit-account
label {
    display: block !important;
    margin: 0 0 7px !important;
    color: #212121 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

/* Inputs */
#tgwc-account-contentedit-account form.edit-account
input.input-text {
    width: 100% !important;
    height: 42px !important;
    padding: 10px 12px !important;
    border: 1px solid #d6d6d6 !important;
    border-radius: 2px !important;
    background: #fff !important;
    color: #212121 !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
}

/* First + last name */
#tgwc-account-contentedit-account form.edit-account
p.form-row-first,
#tgwc-account-contentedit-account form.edit-account
p.form-row-last {
    display: inline-block !important;
    width: 50% !important;
    box-sizing: border-box !important;
    vertical-align: top !important;
}

#tgwc-account-contentedit-account form.edit-account
p.form-row-first {
    padding-right: 11px !important;
}

#tgwc-account-contentedit-account form.edit-account
p.form-row-last {
    padding-left: 11px !important;
}

/* Password section */
#tgwc-account-contentedit-account form.edit-account
fieldset {
    margin: 0 !important;
    padding: 20px 22px !important;
    border: 0 !important;
    border-bottom: 1px solid #eeeeee !important;
    background: #fafafa !important;
}

#tgwc-account-contentedit-account form.edit-account
fieldset legend {
    margin: 0 0 12px !important;
    padding: 0 !important;
    color: #212121 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

/* Help text */
#tgwc-account-contentedit-account form.edit-account
em {
    display: block !important;
    margin-top: 5px !important;
    color: #757575 !important;
    font-size: 12px !important;
}

/* Save */
#tgwc-account-contentedit-account form.edit-account
.woocommerce-Button {
    margin: 18px 22px !important;
    min-height: 42px !important;
    padding: 10px 26px !important;
    border: 0 !important;
    border-radius: 2px !important;
    background: #2874f0 !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

#tgwc-account-contentedit-account form.edit-account
.woocommerce-Button:hover {
    background: #1d5fc4 !important;
}


/* =========================================================
   WISHLIST — PRODUCT LIST
   ========================================================= */

#tgwc-account-contentwishlist {
    font-family: Arial, Helvetica, sans-serif;
    color: #212121;
}

/* Table becomes product-list container */
#tgwc-account-contentwishlist
table.wishlist_table {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 2px !important;
    background: #fff !important;
    border-collapse: collapse !important;
    box-shadow: 0 1px 2px rgba(0,0,0,.08) !important;
}

/* Hide column header */
#tgwc-account-contentwishlist
table.wishlist_table thead {
    display: none !important;
}

/* Each product becomes a row */
#tgwc-account-contentwishlist
table.wishlist_table tbody {
    display: block !important;
    width: 100% !important;
}

#tgwc-account-contentwishlist
table.wishlist_table tbody tr {
    display: grid !important;
    grid-template-columns: 135px minmax(0,1fr) 42px !important;
    grid-template-rows: auto auto !important;
    column-gap: 18px !important;
    row-gap: 5px !important;
    position: relative !important;
    min-height: 165px !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    background: #fff !important;
    border: 0 !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

#tgwc-account-contentwishlist
table.wishlist_table tbody tr:last-child {
    border-bottom: 0 !important;
}

/* Remove column */
#tgwc-account-contentwishlist
table.wishlist_table td.product-remove {
    position: absolute !important;
    top: 18px !important;
    right: 16px !important;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
    z-index: 3 !important;
}

#tgwc-account-contentwishlist
table.wishlist_table td.product-remove a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    color: #bdbdbd !important;
    font-size: 0 !important;
    text-decoration: none !important;
}

/* Keep the actual remove link clickable */
#tgwc-account-contentwishlist
table.wishlist_table td.product-remove a::after {
    content: "×";
    font-size: 20px;
    line-height: 1;
    color: #9e9e9e;
}

/* Product image */
#tgwc-account-contentwishlist
table.wishlist_table td.product-thumbnail {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
}

#tgwc-account-contentwishlist
table.wishlist_table td.product-thumbnail img {
    display: block !important;
    width: 100px !important;
    max-width: 100px !important;
    height: 110px !important;
    max-height: 110px !important;
    object-fit: contain !important;
}

/* Product cell */
#tgwc-account-contentwishlist
table.wishlist_table td.product-name {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: auto !important;
    padding: 4px 35px 0 0 !important;
    border: 0 !important;
    color: #212121 !important;
}

#tgwc-account-contentwishlist
table.wishlist_table td.product-name a {
    color: #212121 !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

#tgwc-account-contentwishlist
table.wishlist_table td.product-name a:hover {
    color: #2874f0 !important;
}

/* Price */
#tgwc-account-contentwishlist
table.wishlist_table td.product-price {
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
    color: #212121 !important;
}

/* Larger current price */
#tgwc-account-contentwishlist
table.wishlist_table td.product-price ins {
    color: #212121 !important;
    font-size: 23px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* Old price */
#tgwc-account-contentwishlist
table.wishlist_table td.product-price del {
    margin-left: 7px !important;
    color: #878787 !important;
    font-size: 13px !important;
}

/* Quantity */
#tgwc-account-contentwishlist
table.wishlist_table td.product-quantity {
    grid-column: 2 !important;
    grid-row: 3 !important;
    width: auto !important;
    padding: 4px 0 0 !important;
    border: 0 !important;
}

/* Stock */
#tgwc-account-contentwishlist
table.wishlist_table td.product-stock-status {
    grid-column: 2 !important;
    grid-row: 4 !important;
    width: auto !important;
    padding: 4px 0 0 !important;
    border: 0 !important;
    color: #2874f0 !important;
    font-size: 13px !important;
}

/* Action */
#tgwc-account-contentwishlist
table.wishlist_table td.product-add-to-cart {
    grid-column: 2 !important;
    grid-row: 5 !important;
    width: auto !important;
    padding: 7px 0 0 !important;
    border: 0 !important;
}

#tgwc-account-contentwishlist
table.wishlist_table td.product-add-to-cart .button {
    min-height: 40px !important;
    padding: 9px 20px !important;
    border: 0 !important;
    border-radius: 2px !important;
    background: #2874f0 !important;
    color: #fff !important;
    font-weight: 600 !important;
}


/* Hide table structure borders */
#tgwc-account-contentwishlist
table.wishlist_table td {
    border-left: 0 !important;
    border-right: 0 !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    #tgwc-account-contentedit-account
    form.edit-account {
        border-radius: 0 !important;
    }

    #tgwc-account-contentedit-account
    form.edit-account p.form-row-first,
    #tgwc-account-contentedit-account
    form.edit-account p.form-row-last {
        display: block !important;
        width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    #tgwc-account-contentwishlist
    table.wishlist_table tbody tr {
        grid-template-columns: 90px minmax(0,1fr) 30px !important;
        min-height: 145px !important;
        padding: 14px !important;
        column-gap: 12px !important;
    }

    #tgwc-account-contentwishlist
    table.wishlist_table td.product-thumbnail img {
        width: 75px !important;
        max-width: 75px !important;
        height: 85px !important;
        max-height: 85px !important;
    }

    #tgwc-account-contentwishlist
    table.wishlist_table td.product-name a {
        font-size: 14px !important;
    }

    #tgwc-account-contentwishlist
    table.wishlist_table td.product-price ins {
        font-size: 19px !important;
    }
}

/* =========================================================
   XchangeKart — FINAL ENDPOINT-SCOPED UI
   Targets content IDs only.
   Navigation / Elementor / storefront untouched.
   ========================================================= */


/* =========================================================
   MY DETAILS
   ========================================================= */

#tgwc-woocommerce [id*="edit-account"] form.edit-account {
    width: 100% !important;
    max-width: 980px !important;
    margin: 0 !important;
    padding: 24px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.08) !important;
    box-sizing: border-box !important;
}

#tgwc-woocommerce [id*="edit-account"] form.edit-account .form-row {
    margin-bottom: 16px !important;
}

#tgwc-woocommerce [id*="edit-account"] form.edit-account label {
    display: block !important;
    margin-bottom: 6px !important;
    color: #212121 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

#tgwc-woocommerce [id*="edit-account"] form.edit-account input.input-text {
    width: 100% !important;
    min-height: 42px !important;
    padding: 10px 12px !important;
    border: 1px solid #d5d5d5 !important;
    border-radius: 3px !important;
    background: #fff !important;
    color: #212121 !important;
    box-sizing: border-box !important;
}

#tgwc-woocommerce [id*="edit-account"] form.edit-account
input.input-text:focus {
    border-color: #2874f0 !important;
    outline: none !important;
    box-shadow: 0 0 0 1px #2874f0 !important;
}

#tgwc-woocommerce [id*="edit-account"] form.edit-account fieldset {
    margin: 8px 0 18px !important;
    padding: 18px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 3px !important;
    background: #fafafa !important;
}

#tgwc-woocommerce [id*="edit-account"] form.edit-account legend {
    padding: 0 6px !important;
    color: #212121 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

#tgwc-woocommerce [id*="edit-account"] form.edit-account .woocommerce-Button {
    min-height: 42px !important;
    padding: 10px 25px !important;
    border: 0 !important;
    border-radius: 3px !important;
    background: #2874f0 !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

#tgwc-woocommerce [id*="edit-account"] form.edit-account .woocommerce-Button:hover {
    background: #1d5fc4 !important;
}


/* =========================================================
   MY ORDERS
   ========================================================= */

#tgwc-woocommerce [id*="orders"] table {
    width: 100% !important;
    margin: 0 !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-collapse: collapse !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.08) !important;
}

#tgwc-woocommerce [id*="orders"] table th {
    padding: 14px 16px !important;
    background: #fafafa !important;
    color: #757575 !important;
    border-bottom: 1px solid #e0e0e0 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    text-align: left !important;
}

#tgwc-woocommerce [id*="orders"] table td {
    padding: 15px 16px !important;
    background: #fff !important;
    color: #212121 !important;
    border-bottom: 1px solid #eeeeee !important;
    vertical-align: middle !important;
}

#tgwc-woocommerce [id*="orders"] table td a {
    color: #2874f0 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

#tgwc-woocommerce [id*="orders"] table td a.button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    padding: 8px 18px !important;
    background: #2874f0 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 3px !important;
    font-size: 13px !important;
}

#tgwc-woocommerce [id*="orders"] table td a.button:hover {
    background: #1d5fc4 !important;
}


/* =========================================================
   VIEW ORDER
   ========================================================= */

#tgwc-woocommerce [id*="view-order"] {
    color: #212121 !important;
}

#tgwc-woocommerce [id*="view-order"] > p:first-child {
    margin: 0 0 18px !important;
    padding: 15px 18px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-left: 3px solid #2874f0 !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.06) !important;
}

#tgwc-woocommerce [id*="view-order"] .woocommerce-order-overview {
    display: grid !important;
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
    gap: 10px !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
}

#tgwc-woocommerce [id*="view-order"] .woocommerce-order-overview li {
    margin: 0 !important;
    padding: 15px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.07) !important;
    color: #757575 !important;
    font-size: 11px !important;
}

#tgwc-woocommerce [id*="view-order"] .woocommerce-order-overview li strong {
    display: block !important;
    margin-top: 5px !important;
    color: #212121 !important;
    font-size: 14px !important;
}

#tgwc-woocommerce [id*="view-order"] .woocommerce-order-details {
    width: 100% !important;
    margin: 0 0 18px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.08) !important;
    overflow: hidden !important;
}

#tgwc-woocommerce [id*="view-order"] .woocommerce-order-details h2 {
    margin: 0 !important;
    padding: 16px 18px !important;
    background: #fff !important;
    border-bottom: 1px solid #e0e0e0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

#tgwc-woocommerce [id*="view-order"]
.woocommerce-table--order-details {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: collapse !important;
}

#tgwc-woocommerce [id*="view-order"]
.woocommerce-table--order-details th {
    padding: 13px 18px !important;
    background: #fafafa !important;
    color: #757575 !important;
    border-bottom: 1px solid #e0e0e0 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
}

#tgwc-woocommerce [id*="view-order"]
.woocommerce-table--order-details td {
    padding: 15px 18px !important;
    background: #fff !important;
    color: #212121 !important;
    border-bottom: 1px solid #eeeeee !important;
}

#tgwc-woocommerce [id*="view-order"]
.woocommerce-table--order-details a {
    color: #2874f0 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}


/* ---------- View Order Addresses ---------- */

#tgwc-woocommerce [id*="view-order"]
.woocommerce-customer-details {
    width: 100% !important;
    margin-top: 18px !important;
}

#tgwc-woocommerce [id*="view-order"]
.woocommerce-customer-details .woocommerce-columns--addresses {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    margin: 0 !important;
}

#tgwc-woocommerce [id*="view-order"]
.woocommerce-customer-details .woocommerce-column {
    width: auto !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.08) !important;
    overflow: hidden !important;
}

#tgwc-woocommerce [id*="view-order"]
.woocommerce-customer-details .woocommerce-column h2,
#tgwc-woocommerce [id*="view-order"]
.woocommerce-customer-details .woocommerce-column h3 {
    margin: 0 !important;
    padding: 15px 18px !important;
    background: #fafafa !important;
    border-bottom: 1px solid #e0e0e0 !important;
    color: #212121 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

#tgwc-woocommerce [id*="view-order"]
.woocommerce-customer-details .woocommerce-column address {
    margin: 0 !important;
    padding: 17px 18px !important;
    background: #fff !important;
    border: 0 !important;
    color: #424242 !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
    font-style: normal !important;
}


/* =========================================================
   WISHLIST
   ========================================================= */

#tgwc-woocommerce [id*="wishlist"] table {
    width: 100% !important;
    margin: 0 !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-collapse: collapse !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.08) !important;
}

#tgwc-woocommerce [id*="wishlist"] table th {
    padding: 13px 15px !important;
    background: #fafafa !important;
    color: #757575 !important;
    border-bottom: 1px solid #e0e0e0 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
}

#tgwc-woocommerce [id*="wishlist"] table td {
    padding: 15px !important;
    background: #fff !important;
    border-bottom: 1px solid #eeeeee !important;
    color: #212121 !important;
    vertical-align: middle !important;
}

#tgwc-woocommerce [id*="wishlist"] table img {
    max-width: 90px !important;
    max-height: 100px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

#tgwc-woocommerce [id*="wishlist"] table a {
    color: #2874f0 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

#tgwc-woocommerce [id*="wishlist"] table .button {
    min-height: 40px !important;
    padding: 9px 18px !important;
    background: #2874f0 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 3px !important;
    font-weight: 600 !important;
}

#tgwc-woocommerce [id*="wishlist"] table .button:hover {
    background: #1d5fc4 !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {

    #tgwc-woocommerce [id*="view-order"]
    .woocommerce-order-overview {
        grid-template-columns: 1fr 1fr !important;
    }

    #tgwc-woocommerce [id*="view-order"]
    .woocommerce-customer-details .woocommerce-columns--addresses {
        grid-template-columns: 1fr !important;
    }

    #tgwc-woocommerce [id*="orders"] table,
    #tgwc-woocommerce [id*="wishlist"] table {
        display: block !important;
        overflow-x: auto !important;
    }
}

@media (max-width: 460px) {

    #tgwc-woocommerce [id*="view-order"]
    .woocommerce-order-overview {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   XchangeKart — Reliable Page-Specific UI
   Navigation and Elementor are intentionally NOT targeted.
   ========================================================= */


/* =========================================================
   MY DETAILS
   ========================================================= */

body.xk-page-edit-account #tgwc-woocommerce form {
    max-width: 920px !important;
    margin: 0 !important;
    padding: 24px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.08) !important;
}

body.xk-page-edit-account #tgwc-woocommerce
form .form-row {
    margin-bottom: 16px !important;
}

body.xk-page-edit-account #tgwc-woocommerce
form label {
    display: block !important;
    margin-bottom: 6px !important;
    color: #212121 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

body.xk-page-edit-account #tgwc-woocommerce
form input[type="text"],
body.xk-page-edit-account #tgwc-woocommerce
form input[type="email"],
body.xk-page-edit-account #tgwc-woocommerce
form input[type="tel"],
body.xk-page-edit-account #tgwc-woocommerce
form input[type="password"] {
    width: 100% !important;
    height: 42px !important;
    padding: 9px 12px !important;
    border: 1px solid #d5d5d5 !important;
    border-radius: 3px !important;
    background: #fff !important;
    color: #212121 !important;
    box-sizing: border-box !important;
}

body.xk-page-edit-account #tgwc-woocommerce
form fieldset {
    padding: 18px !important;
    background: #fafafa !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 3px !important;
}

body.xk-page-edit-account #tgwc-woocommerce
form button[type="submit"],
body.xk-page-edit-account #tgwc-woocommerce
form input[type="submit"] {
    min-height: 42px !important;
    padding: 10px 25px !important;
    border: 0 !important;
    border-radius: 3px !important;
    background: #2874f0 !important;
    color: #fff !important;
    font-weight: 600 !important;
}


/* =========================================================
   MY ORDERS
   ========================================================= */

body.xk-page-orders #tgwc-woocommerce table {
    width: 100% !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-collapse: collapse !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.08) !important;
}

body.xk-page-orders #tgwc-woocommerce table th {
    padding: 14px 16px !important;
    background: #fafafa !important;
    border-bottom: 1px solid #e0e0e0 !important;
    color: #757575 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    text-align: left !important;
}

body.xk-page-orders #tgwc-woocommerce table td {
    padding: 15px 16px !important;
    background: #fff !important;
    border-bottom: 1px solid #eeeeee !important;
    color: #212121 !important;
    vertical-align: middle !important;
}

body.xk-page-orders #tgwc-woocommerce table td a {
    color: #2874f0 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

body.xk-page-orders #tgwc-woocommerce
table td a.button {
    display: inline-flex !important;
    min-height: 38px !important;
    padding: 8px 18px !important;
    align-items: center !important;
    justify-content: center !important;
    background: #2874f0 !important;
    color: #fff !important;
    border-radius: 3px !important;
}


/* =========================================================
   VIEW ORDER
   ========================================================= */

body.xk-page-view-order #tgwc-woocommerce table {
    width: 100% !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-collapse: collapse !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.08) !important;
}

body.xk-page-view-order #tgwc-woocommerce table th {
    padding: 14px 18px !important;
    background: #fafafa !important;
    border-bottom: 1px solid #e0e0e0 !important;
    color: #757575 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
}

body.xk-page-view-order #tgwc-woocommerce table td {
    padding: 15px 18px !important;
    background: #fff !important;
    border-bottom: 1px solid #eeeeee !important;
    color: #212121 !important;
}

body.xk-page-view-order #tgwc-woocommerce table a {
    color: #2874f0 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}


/* Address cards */
body.xk-page-view-order #tgwc-woocommerce address {
    margin: 0 !important;
    padding: 18px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    color: #424242 !important;
    font-size: 13px !important;
    line-height: 1.75 !important;
    font-style: normal !important;
}

body.xk-page-view-order #tgwc-woocommerce
.woocommerce-columns--addresses {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 16px !important;
}

body.xk-page-view-order #tgwc-woocommerce
.woocommerce-column {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
}


/* =========================================================
   WISHLIST
   ========================================================= */

body.xk-page-wishlist #tgwc-woocommerce table {
    width: 100% !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-collapse: collapse !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.08) !important;
}

body.xk-page-wishlist #tgwc-woocommerce table th {
    padding: 13px 15px !important;
    background: #fafafa !important;
    border-bottom: 1px solid #e0e0e0 !important;
    color: #757575 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
}

body.xk-page-wishlist #tgwc-woocommerce table td {
    padding: 15px !important;
    background: #fff !important;
    border-bottom: 1px solid #eeeeee !important;
    color: #212121 !important;
    vertical-align: middle !important;
}

body.xk-page-wishlist #tgwc-woocommerce table img {
    max-width: 90px !important;
    max-height: 100px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

body.xk-page-wishlist #tgwc-woocommerce table a {
    color: #2874f0 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

body.xk-page-wishlist #tgwc-woocommerce table .button {
    min-height: 40px !important;
    padding: 9px 18px !important;
    border: 0 !important;
    border-radius: 3px !important;
    background: #2874f0 !important;
    color: #fff !important;
    font-weight: 600 !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    body.xk-page-view-order #tgwc-woocommerce
    .woocommerce-columns--addresses {
        grid-template-columns: 1fr !important;
    }

    body.xk-page-orders #tgwc-woocommerce table,
    body.xk-page-wishlist #tgwc-woocommerce table {
        display: block !important;
        overflow-x: auto !important;
    }
}

/* =========================================================
   XchangeKart — My Orders + View Order
   Flipkart-inspired content styling
   NAVIGATION / ELEMENTOR / STOREFRONT NOT TARGETED
   ========================================================= */


/* =========================================================
   MY ORDERS
   ========================================================= */

body.woocommerce-orders .woocommerce-MyAccount-content
.woocommerce-orders-table {
    width: 100% !important;
    margin: 0 !important;
    border: 1px solid #e0e0e0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 4px !important;
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.08) !important;
    overflow: hidden !important;
}

body.woocommerce-orders .woocommerce-MyAccount-content
.woocommerce-orders-table thead th {
    padding: 14px 16px !important;
    background: #fafafa !important;
    border: 0 !important;
    border-bottom: 1px solid #e0e0e0 !important;
    color: #757575 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: .25px !important;
    text-align: left !important;
}

body.woocommerce-orders .woocommerce-MyAccount-content
.woocommerce-orders-table tbody td {
    padding: 16px !important;
    background: #fff !important;
    border: 0 !important;
    border-bottom: 1px solid #eeeeee !important;
    color: #212121 !important;
    vertical-align: middle !important;
}

body.woocommerce-orders .woocommerce-MyAccount-content
.woocommerce-orders-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

body.woocommerce-orders .woocommerce-MyAccount-content
.woocommerce-orders-table__cell-order-number a {
    color: #2874f0 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

body.woocommerce-orders .woocommerce-MyAccount-content
.woocommerce-orders-table__cell-order-number a:hover {
    color: #1d5fc4 !important;
}

body.woocommerce-orders .woocommerce-MyAccount-content
.woocommerce-orders-table__cell-order-status {
    color: #2874f0 !important;
    font-weight: 600 !important;
}

body.woocommerce-orders .woocommerce-MyAccount-content
.woocommerce-orders-table__cell-order-total {
    color: #212121 !important;
    font-weight: 600 !important;
}

body.woocommerce-orders .woocommerce-MyAccount-content
.woocommerce-orders-table__cell-order-actions .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    padding: 8px 20px !important;
    border: 0 !important;
    border-radius: 3px !important;
    background: #2874f0 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

body.woocommerce-orders .woocommerce-MyAccount-content
.woocommerce-orders-table__cell-order-actions .button:hover {
    background: #1d5fc4 !important;
}


/* =========================================================
   VIEW ORDER — MAIN
   ========================================================= */

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-order {
    color: #212121 !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-order > p:first-child {
    margin: 0 0 18px !important;
    padding: 15px 18px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-left: 3px solid #2874f0 !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.06) !important;
}


/* =========================================================
   VIEW ORDER — ORDER DETAILS
   ========================================================= */

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-order-details {
    width: 100% !important;
    margin: 0 0 20px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.08) !important;
    overflow: hidden !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-order-details h2 {
    margin: 0 !important;
    padding: 16px 18px !important;
    background: #fff !important;
    border-bottom: 1px solid #e0e0e0 !important;
    color: #212121 !important;
    font-size: 19px !important;
    font-weight: 600 !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-table--order-details {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: collapse !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-table--order-details thead th {
    padding: 13px 18px !important;
    background: #fafafa !important;
    border: 0 !important;
    border-bottom: 1px solid #e0e0e0 !important;
    color: #757575 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    text-align: left !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-table--order-details tbody td {
    padding: 16px 18px !important;
    background: #fff !important;
    border: 0 !important;
    border-bottom: 1px solid #eeeeee !important;
    color: #212121 !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-table--order-details tbody tr:last-child td {
    border-bottom: 0 !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-table--order-details .product-name a {
    color: #2874f0 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-table--order-details .product-total {
    color: #212121 !important;
    font-weight: 600 !important;
    text-align: right !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-table--order-details tfoot th {
    padding: 13px 18px !important;
    background: #fff !important;
    border: 0 !important;
    border-top: 1px solid #eeeeee !important;
    color: #757575 !important;
    font-weight: 500 !important;
    text-align: left !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-table--order-details tfoot td {
    padding: 13px 18px !important;
    background: #fff !important;
    border: 0 !important;
    border-top: 1px solid #eeeeee !important;
    color: #212121 !important;
    font-weight: 600 !important;
    text-align: right !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-table--order-details tfoot tr:last-child th,
body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-table--order-details tfoot tr:last-child td {
    font-size: 15px !important;
    font-weight: 700 !important;
}


/* =========================================================
   VIEW ORDER — BILLING + SHIPPING
   ========================================================= */

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-customer-details {
    width: 100% !important;
    margin: 20px 0 0 !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-columns--addresses {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
    gap: 16px !important;
    width: 100% !important;
    margin: 0 !important;
    align-items: stretch !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-column {
    width: auto !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.08) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-column h2,
body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-column h3 {
    margin: 0 !important;
    padding: 15px 18px !important;
    background: #fafafa !important;
    border-bottom: 1px solid #e0e0e0 !important;
    color: #212121 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-column address {
    margin: 0 !important;
    padding: 17px 18px !important;
    background: #fff !important;
    border: 0 !important;
    color: #424242 !important;
    font-size: 13px !important;
    line-height: 1.75 !important;
    font-style: normal !important;
}


/* =========================================================
   VIEW ORDER — OVERVIEW
   ========================================================= */

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-order-overview {
    display: grid !important;
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
    gap: 10px !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-order-overview li {
    margin: 0 !important;
    padding: 15px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.06) !important;
    color: #757575 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-order-overview li strong {
    display: block !important;
    margin-top: 5px !important;
    color: #212121 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: none !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-order-overview li::before {
    display: none !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    body.woocommerce-orders .woocommerce-MyAccount-content
    .woocommerce-orders-table {
        display: block !important;
        overflow-x: auto !important;
    }

    body.woocommerce-view-order .woocommerce-MyAccount-content
    .woocommerce-order-overview {
        grid-template-columns: 1fr 1fr !important;
    }

    body.woocommerce-view-order .woocommerce-MyAccount-content
    .woocommerce-columns--addresses {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 460px) {

    body.woocommerce-view-order .woocommerce-MyAccount-content
    .woocommerce-order-overview {
        grid-template-columns: 1fr !important;
    }

    body.woocommerce-view-order .woocommerce-MyAccount-content
    .woocommerce-table--order-details th,
    body.woocommerce-view-order .woocommerce-MyAccount-content
    .woocommerce-table--order-details td {
        padding: 11px 10px !important;
    }
}
/* =========================================================
   XchangeKart — View Order Address Layout FINAL
   Only affects Billing / Shipping inside View Order
   ========================================================= */

body.woocommerce-view-order
.woocommerce-MyAccount-content
.woocommerce-customer-details
.col2-set {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 16px !important;
    width: 100% !important;
    margin: 18px 0 0 !important;
    padding: 0 !important;
}

/* Billing = left */
body.woocommerce-view-order
.woocommerce-MyAccount-content
.woocommerce-customer-details
.col2-set > .col-1 {
    order: 1 !important;
}

/* Shipping = right */
body.woocommerce-view-order
.woocommerce-MyAccount-content
.woocommerce-customer-details
.col2-set > .col-2 {
    order: 2 !important;
}

/* Equal cards */
body.woocommerce-view-order
.woocommerce-MyAccount-content
.woocommerce-customer-details
.col2-set > .col-1,
body.woocommerce-view-order
.woocommerce-MyAccount-content
.woocommerce-customer-details
.col2-set > .col-2 {
    float: none !important;
    width: calc(50% - 8px) !important;
    max-width: none !important;
    flex: 1 1 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.08) !important;
    overflow: hidden !important;
}

/* Card headings */
body.woocommerce-view-order
.woocommerce-MyAccount-content
.woocommerce-customer-details
.col2-set > .col-1 h2,
body.woocommerce-view-order
.woocommerce-MyAccount-content
.woocommerce-customer-details
.col2-set > .col-1 h3,
body.woocommerce-view-order
.woocommerce-MyAccount-content
.woocommerce-customer-details
.col2-set > .col-2 h2,
body.woocommerce-view-order
.woocommerce-MyAccount-content
.woocommerce-customer-details
.col2-set > .col-2 h3 {
    margin: 0 !important;
    padding: 15px 18px !important;
    background: #fafafa !important;
    border-bottom: 1px solid #e0e0e0 !important;
    color: #212121 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

/* Address text */
body.woocommerce-view-order
.woocommerce-MyAccount-content
.woocommerce-customer-details
.col2-set > .col-1 address,
body.woocommerce-view-order
.woocommerce-MyAccount-content
.woocommerce-customer-details
.col2-set > .col-2 address {
    margin: 0 !important;
    padding: 17px 18px !important;
    background: #fff !important;
    border: 0 !important;
    color: #424242 !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
    font-style: normal !important;
}

/* Remove excessive inherited spacing */
body.woocommerce-view-order
.woocommerce-MyAccount-content
.woocommerce-customer-details {
    margin-bottom: 20px !important;
}

@media (max-width: 700px) {

    body.woocommerce-view-order
    .woocommerce-MyAccount-content
    .woocommerce-customer-details
    .col2-set {
        flex-direction: column !important;
        gap: 12px !important;
    }

    body.woocommerce-view-order
    .woocommerce-MyAccount-content
    .woocommerce-customer-details
    .col2-set > .col-1,
    body.woocommerce-view-order
    .woocommerce-MyAccount-content
    .woocommerce-customer-details
    .col2-set > .col-2 {
        width: 100% !important;
        flex: none !important;
    }
}

/* =========================================================
   XchangeKart — MY ORDERS FINAL
   Flipkart-inspired order list
   ONLY affects /account/orders/
   Navigation + View Order untouched
   ========================================================= */

body.woocommerce-orders .woocommerce-MyAccount-content {
    color: #212121;
}

/* Orders table card */
body.woocommerce-orders .woocommerce-MyAccount-content
.woocommerce-orders-table {
    width: 100% !important;
    margin: 0 !important;
    border: 1px solid #e0e0e0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 4px !important;
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.08) !important;
    overflow: hidden !important;
}

/* Header */
body.woocommerce-orders .woocommerce-MyAccount-content
.woocommerce-orders-table thead th {
    padding: 15px 18px !important;
    background: #fafafa !important;
    border: 0 !important;
    border-bottom: 1px solid #e0e0e0 !important;
    color: #757575 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: .3px !important;
    text-align: left !important;
}

/* Cells */
body.woocommerce-orders .woocommerce-MyAccount-content
.woocommerce-orders-table tbody td {
    padding: 18px !important;
    background: #fff !important;
    border: 0 !important;
    border-bottom: 1px solid #eeeeee !important;
    color: #212121 !important;
    font-size: 14px !important;
    vertical-align: middle !important;
}

body.woocommerce-orders .woocommerce-MyAccount-content
.woocommerce-orders-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

/* Order number */
body.woocommerce-orders .woocommerce-MyAccount-content
.woocommerce-orders-table__cell-order-number a {
    color: #2874f0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

body.woocommerce-orders .woocommerce-MyAccount-content
.woocommerce-orders-table__cell-order-number a:hover {
    color: #1d5fc4 !important;
    text-decoration: underline !important;
}

/* Status */
body.woocommerce-orders .woocommerce-MyAccount-content
.woocommerce-orders-table__cell-order-status {
    color: #2874f0 !important;
    font-weight: 600 !important;
}

/* Total */
body.woocommerce-orders .woocommerce-MyAccount-content
.woocommerce-orders-table__cell-order-total {
    color: #212121 !important;
    font-weight: 600 !important;
}

/* View button */
body.woocommerce-orders .woocommerce-MyAccount-content
.woocommerce-orders-table__cell-order-actions {
    text-align: right !important;
}

body.woocommerce-orders .woocommerce-MyAccount-content
.woocommerce-orders-table__cell-order-actions .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 82px !important;
    min-height: 40px !important;
    padding: 9px 20px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 3px !important;
    background: #2874f0 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

body.woocommerce-orders .woocommerce-MyAccount-content
.woocommerce-orders-table__cell-order-actions .button:hover {
    background: #1d5fc4 !important;
    color: #fff !important;
}

/* Hover row */
body.woocommerce-orders .woocommerce-MyAccount-content
.woocommerce-orders-table tbody tr:hover td {
    background: #fcfcfc !important;
}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 700px) {

    body.woocommerce-orders .woocommerce-MyAccount-content
    .woocommerce-orders-table {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    body.woocommerce-orders .woocommerce-MyAccount-content
    .woocommerce-orders-table thead th,
    body.woocommerce-orders .woocommerce-MyAccount-content
    .woocommerce-orders-table tbody td {
        padding: 12px 10px !important;
        white-space: nowrap !important;
    }

    body.woocommerce-orders .woocommerce-MyAccount-content
    .woocommerce-orders-table__cell-order-actions .button {
        min-width: 70px !important;
        padding: 8px 14px !important;
    }
}
/* =========================================================
   XchangeKart — MY ORDERS DESKTOP FIX
   Keep all existing functionality intact
   ========================================================= */

body.woocommerce-orders
.woocommerce-MyAccount-content
.woocommerce-orders-table {
    display: table !important;
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
}

/* Balanced desktop columns */
body.woocommerce-orders
.woocommerce-MyAccount-content
.woocommerce-orders-table th:nth-child(1),
body.woocommerce-orders
.woocommerce-MyAccount-content
.woocommerce-orders-table td:nth-child(1) {
    width: 16% !important;
}

body.woocommerce-orders
.woocommerce-MyAccount-content
.woocommerce-orders-table th:nth-child(2),
body.woocommerce-orders
.woocommerce-MyAccount-content
.woocommerce-orders-table td:nth-child(2) {
    width: 18% !important;
}

body.woocommerce-orders
.woocommerce-MyAccount-content
.woocommerce-orders-table th:nth-child(3),
body.woocommerce-orders
.woocommerce-MyAccount-content
.woocommerce-orders-table td:nth-child(3) {
    width: 18% !important;
}

body.woocommerce-orders
.woocommerce-MyAccount-content
.woocommerce-orders-table th:nth-child(4),
body.woocommerce-orders
.woocommerce-MyAccount-content
.woocommerce-orders-table td:nth-child(4) {
    width: 30% !important;
}

body.woocommerce-orders
.woocommerce-MyAccount-content
.woocommerce-orders-table th:nth-child(5),
body.woocommerce-orders
.woocommerce-MyAccount-content
.woocommerce-orders-table td:nth-child(5) {
    width: 18% !important;
}

/* Header */
body.woocommerce-orders
.woocommerce-MyAccount-content
.woocommerce-orders-table thead {
    display: table-header-group !important;
}

body.woocommerce-orders
.woocommerce-MyAccount-content
.woocommerce-orders-table thead tr {
    display: table-row !important;
}

body.woocommerce-orders
.woocommerce-MyAccount-content
.woocommerce-orders-table thead th {
    display: table-cell !important;
    padding: 14px 16px !important;
    background: #f7f8fa !important;
    border: 0 !important;
    border-bottom: 1px solid #e0e0e0 !important;
    color: #757575 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    text-align: left !important;
}

/* Body */
body.woocommerce-orders
.woocommerce-MyAccount-content
.woocommerce-orders-table tbody {
    display: table-row-group !important;
}

body.woocommerce-orders
.woocommerce-MyAccount-content
.woocommerce-orders-table tbody tr {
    display: table-row !important;
}

body.woocommerce-orders
.woocommerce-MyAccount-content
.woocommerce-orders-table tbody td {
    display: table-cell !important;
    padding: 17px 16px !important;
    background: #fff !important;
    border: 0 !important;
    border-bottom: 1px solid #eeeeee !important;
    color: #212121 !important;
    font-size: 14px !important;
    vertical-align: middle !important;
    white-space: normal !important;
}

body.woocommerce-orders
.woocommerce-MyAccount-content
.woocommerce-orders-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

/* Order */
body.woocommerce-orders
.woocommerce-MyAccount-content
.woocommerce-orders-table__cell-order-number a {
    color: #2874f0 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* Status */
body.woocommerce-orders
.woocommerce-MyAccount-content
.woocommerce-orders-table__cell-order-status {
    color: #2874f0 !important;
    font-weight: 600 !important;
}

/* Total */
body.woocommerce-orders
.woocommerce-MyAccount-content
.woocommerce-orders-table__cell-order-total {
    font-weight: 600 !important;
}

/* Actions */
body.woocommerce-orders
.woocommerce-MyAccount-content
.woocommerce-orders-table__cell-order-actions {
    text-align: right !important;
}

body.woocommerce-orders
.woocommerce-MyAccount-content
.woocommerce-orders-table__cell-order-actions .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 78px !important;
    min-height: 40px !important;
    padding: 9px 18px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 3px !important;
    background: #2874f0 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* Hover */
body.woocommerce-orders
.woocommerce-MyAccount-content
.woocommerce-orders-table tbody tr:hover td {
    background: #fafafa !important;
}


/* =========================================================
   MOBILE — retain horizontal table behavior
   ========================================================= */

@media (max-width: 700px) {

    body.woocommerce-orders
    .woocommerce-MyAccount-content
    .woocommerce-orders-table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        table-layout: auto !important;
    }

    body.woocommerce-orders
    .woocommerce-MyAccount-content
    .woocommerce-orders-table thead,
    body.woocommerce-orders
    .woocommerce-MyAccount-content
    .woocommerce-orders-table tbody {
        display: table-header-group !important;
    }

    body.woocommerce-orders
    .woocommerce-MyAccount-content
    .woocommerce-orders-table tbody {
        display: table-row-group !important;
    }

    body.woocommerce-orders
    .woocommerce-MyAccount-content
    .woocommerce-orders-table tr {
        display: table-row !important;
    }

    body.woocommerce-orders
    .woocommerce-MyAccount-content
    .woocommerce-orders-table th,
    body.woocommerce-orders
    .woocommerce-MyAccount-content
    .woocommerce-orders-table td {
        display: table-cell !important;
        white-space: nowrap !important;
        width: auto !important;
        padding: 12px 10px !important;
    }
}

/* =========================================================
   XchangeKart — My Orders Card UI
   ONLY body.woocommerce-orders
   Navigation / Elementor / WooCommerce functionality untouched
   ========================================================= */

body.woocommerce-orders .xk-orders-ui {
    width: 100%;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}


/* Search */

body.woocommerce-orders .xk-orders-search {
    display: flex;
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
    background: #fff;
    border: 1px solid #d7d7d7;
    border-radius: 3px;
    box-sizing: border-box;
    overflow: hidden;
}

body.woocommerce-orders .xk-orders-search input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    border: 0;
    outline: 0;
    background: #fff;
    color: #212121;
    font-size: 14px;
}

body.woocommerce-orders .xk-orders-search input::placeholder {
    color: #878787;
}

body.woocommerce-orders .xk-orders-search button {
    flex: 0 0 auto;
    min-width: 150px;
    height: 48px;
    padding: 0 22px;
    border: 0;
    background: #2874f0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

body.woocommerce-orders .xk-orders-search button:hover {
    background: #1d5fc4;
}


/* Cards */

body.woocommerce-orders .xk-order-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.woocommerce-orders .xk-order-card {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) minmax(130px, 1fr) minmax(180px, 1.4fr) auto;
    align-items: center;
    gap: 20px;
    min-height: 128px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
    box-sizing: border-box;
}

body.woocommerce-orders .xk-order-card:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,.10);
}


/* Order identity */

body.woocommerce-orders .xk-order-number {
    margin-bottom: 8px;
}

body.woocommerce-orders .xk-order-number-link {
    color: #2874f0;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

body.woocommerce-orders .xk-order-number-link:hover {
    color: #1d5fc4;
    text-decoration: underline;
}

body.woocommerce-orders .xk-order-date {
    color: #757575;
    font-size: 13px;
}


/* Total */

body.woocommerce-orders .xk-order-total {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

body.woocommerce-orders .xk-order-meta-label {
    color: #878787;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

body.woocommerce-orders .xk-order-total strong {
    color: #212121;
    font-size: 17px;
    font-weight: 600;
}


/* Status */

body.woocommerce-orders .xk-order-status {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #2e7d32;
    font-size: 14px;
    font-weight: 600;
}

body.woocommerce-orders .xk-order-status-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: #2e7d32;
}


/* View */

body.woocommerce-orders .xk-order-action {
    display: flex;
    justify-content: flex-end;
}

body.woocommerce-orders .xk-order-view-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 40px;
    padding: 0 20px;
    border: 0 !important;
    border-radius: 2px;
    background: #2874f0 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

body.woocommerce-orders .xk-order-view-button:hover {
    background: #1d5fc4 !important;
    color: #fff !important;
}


/* Mobile */

@media (max-width: 800px) {

    body.woocommerce-orders .xk-order-card {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        padding: 17px;
    }

    body.woocommerce-orders .xk-order-card-main {
        grid-column: 1 / -1;
    }

    body.woocommerce-orders .xk-order-action {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {

    body.woocommerce-orders .xk-orders-search {
        flex-direction: column;
    }

    body.woocommerce-orders .xk-orders-search input,
    body.woocommerce-orders .xk-orders-search button {
        width: 100%;
        min-width: 0;
    }

    body.woocommerce-orders .xk-order-card {
        grid-template-columns: 1fr;
    }

    body.woocommerce-orders .xk-order-total,
    body.woocommerce-orders .xk-order-status,
    body.woocommerce-orders .xk-order-action {
        grid-column: 1;
    }
}

/* =========================================================
   XchangeKart — VIEW ORDER FINAL UI
   Flipkart-inspired order summary
   CONTENT ONLY — navigation / Elementor untouched
   ========================================================= */

body.woocommerce-view-order .woocommerce-MyAccount-content {
    color: #212121;
}

/* Order confirmation/status message */
body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-order > p:first-child {
    margin: 0 0 16px !important;
    padding: 16px 18px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-left: 4px solid #2874f0 !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,.07) !important;
    color: #555 !important;
    font-size: 14px !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-order > p:first-child strong {
    color: #212121 !important;
}

/* Overview cards */
body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-order-overview {
    display: grid !important;
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
    gap: 10px !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    list-style: none !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-order-overview li {
    min-width: 0 !important;
    margin: 0 !important;
    padding: 15px 16px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,.07) !important;
    color: #878787 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: .2px !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-order-overview li strong {
    display: block !important;
    margin-top: 5px !important;
    color: #212121 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* Processing status emphasis */
body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-order-overview li.woocommerce-order-overview__status strong {
    color: #2e7d32 !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-order-overview li::before {
    display: none !important;
}

/* Order details card */
body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-order-details {
    width: 100% !important;
    margin: 0 0 18px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.08) !important;
    overflow: hidden !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-order-details h2 {
    margin: 0 !important;
    padding: 16px 18px !important;
    background: #fff !important;
    border-bottom: 1px solid #e0e0e0 !important;
    color: #212121 !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-table--order-details {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: collapse !important;
    box-shadow: none !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-table--order-details thead th {
    padding: 12px 18px !important;
    background: #f7f8fa !important;
    border: 0 !important;
    border-bottom: 1px solid #e0e0e0 !important;
    color: #757575 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: .2px !important;
    text-align: left !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-table--order-details tbody td {
    padding: 16px 18px !important;
    background: #fff !important;
    border: 0 !important;
    border-bottom: 1px solid #eeeeee !important;
    color: #212121 !important;
    font-size: 14px !important;
    vertical-align: middle !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-table--order-details .product-name a {
    color: #2874f0 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-table--order-details .product-name a:hover {
    color: #1d5fc4 !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-table--order-details .product-total {
    color: #212121 !important;
    font-weight: 600 !important;
    text-align: right !important;
}

/* Totals */
body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-table--order-details tfoot tr {
    border: 0 !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-table--order-details tfoot th {
    padding: 12px 18px !important;
    background: #fff !important;
    border: 0 !important;
    border-top: 1px solid #eeeeee !important;
    color: #757575 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-align: left !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-table--order-details tfoot td {
    padding: 12px 18px !important;
    background: #fff !important;
    border: 0 !important;
    border-top: 1px solid #eeeeee !important;
    color: #212121 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: right !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-table--order-details tfoot tr:last-child th,
body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-table--order-details tfoot tr:last-child td {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

/* Billing + Shipping */
body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-customer-details {
    width: 100% !important;
    margin: 18px 0 0 !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-customer-details .col2-set {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    margin: 0 !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-customer-details .col2-set > .col-1,
body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-customer-details .col2-set > .col-2 {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.08) !important;
    overflow: hidden !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-customer-details .col2-set h2,
body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-customer-details .col2-set h3 {
    margin: 0 !important;
    padding: 14px 18px !important;
    background: #f7f8fa !important;
    border-bottom: 1px solid #e0e0e0 !important;
    color: #212121 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

body.woocommerce-view-order .woocommerce-MyAccount-content
.woocommerce-customer-details .col2-set address {
    margin: 0 !important;
    padding: 16px 18px !important;
    background: #fff !important;
    border: 0 !important;
    color: #424242 !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
    font-style: normal !important;
}


/* Mobile */
@media (max-width: 700px) {

    body.woocommerce-view-order .woocommerce-MyAccount-content
    .woocommerce-order-overview {
        grid-template-columns: 1fr 1fr !important;
    }

    body.woocommerce-view-order .woocommerce-MyAccount-content
    .woocommerce-customer-details .col2-set {
        grid-template-columns: 1fr !important;
    }

    body.woocommerce-view-order .woocommerce-MyAccount-content
    .woocommerce-table--order-details {
        display: block !important;
        overflow-x: auto !important;
    }
}

@media (max-width: 460px) {

    body.woocommerce-view-order .woocommerce-MyAccount-content
    .woocommerce-order-overview {
        grid-template-columns: 1fr !important;
    }
}
/* =========================================================
   XchangeCart Wishlist — Final Visual Polish
   ========================================================= */

body.woocommerce-account
.woocommerce-MyAccount-content
table.xk-wishlist-native-ui {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    background: #fff !important;
}

/* Remove table-header appearance */
body.woocommerce-account
.woocommerce-MyAccount-content
table.xk-wishlist-native-ui thead {
    display: none !important;
}

/* Product rows */
body.woocommerce-account
.woocommerce-MyAccount-content
table.xk-wishlist-native-ui tbody {
    display: block !important;
    width: 100% !important;
}

body.woocommerce-account
.woocommerce-MyAccount-content
table.xk-wishlist-native-ui tbody tr {
    display: grid !important;
    grid-template-columns: 105px minmax(260px,1fr) 150px 90px 120px 120px !important;
    align-items: center !important;
    gap: 14px !important;
    min-height: 125px !important;
    padding: 16px 20px !important;
    border: 0 !important;
    border-bottom: 1px solid #eeeeee !important;
    background: #fff !important;
    box-sizing: border-box !important;
}

body.woocommerce-account
.woocommerce-MyAccount-content
table.xk-wishlist-native-ui tbody tr:last-child {
    border-bottom: 0 !important;
}

/* All cells */
body.woocommerce-account
.woocommerce-MyAccount-content
table.xk-wishlist-native-ui tbody td {
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Image */
body.woocommerce-account
.woocommerce-MyAccount-content
table.xk-wishlist-native-ui td.product-thumbnail img {
    width: 82px !important;
    height: 92px !important;
    max-width: 82px !important;
    max-height: 92px !important;
    object-fit: contain !important;
}

/* Product */
body.woocommerce-account
.woocommerce-MyAccount-content
table.xk-wishlist-native-ui td.product-name a {
    color: #212121 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
}

/* Price */
body.woocommerce-account
.woocommerce-MyAccount-content
table.xk-wishlist-native-ui td.product-price ins {
    color: #212121 !important;
    font-size: 19px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

body.woocommerce-account
.woocommerce-MyAccount-content
table.xk-wishlist-native-ui td.product-price del {
    margin-left: 6px !important;
    color: #878787 !important;
    font-size: 12px !important;
}

/* Stock */
body.woocommerce-account
.woocommerce-MyAccount-content
table.xk-wishlist-native-ui td.product-stock-status {
    color: #2e7d32 !important;
    font-size: 12px !important;
}

/* Quantity */
body.woocommerce-account
.woocommerce-MyAccount-content
table.xk-wishlist-native-ui td.product-quantity input {
    width: 62px !important;
    height: 38px !important;
    border: 1px solid #d5d5d5 !important;
    border-radius: 3px !important;
}

/* Add to cart */
body.woocommerce-account
.woocommerce-MyAccount-content
table.xk-wishlist-native-ui td.product-add-to-cart {
    text-align: right !important;
}

body.woocommerce-account
.woocommerce-MyAccount-content
table.xk-wishlist-native-ui td.product-add-to-cart .button {
    min-width: 105px !important;
    min-height: 40px !important;
    padding: 0 15px !important;
    border: 0 !important;
    border-radius: 2px !important;
    background: #2874f0 !important;
    color: #fff !important;
    font-weight: 600 !important;
}

/* Remove */
body.woocommerce-account
.woocommerce-MyAccount-content
table.xk-wishlist-native-ui td.product-remove {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
}

body.woocommerce-account
.woocommerce-MyAccount-content
table.xk-wishlist-native-ui td.product-remove a {
    font-size: 0 !important;
}

body.woocommerce-account
.woocommerce-MyAccount-content
table.xk-wishlist-native-ui td.product-remove a::after {
    content: "×" !important;
    font-size: 18px !important;
    color: #9e9e9e !important;
}

/* Reduce unnecessary Wishlist controls */
body.woocommerce-account
.woocommerce-MyAccount-content
.wishlist-actions {
    margin-top: 10px !important;
}

@media (max-width: 800px) {
    body.woocommerce-account
    .woocommerce-MyAccount-content
    table.xk-wishlist-native-ui tbody tr {
        grid-template-columns: 85px minmax(0,1fr) 100px !important;
    }
}

@media (max-width: 560px) {
    body.woocommerce-account
    .woocommerce-MyAccount-content
    table.xk-wishlist-native-ui tbody tr {
        grid-template-columns: 75px minmax(0,1fr) !important;
        gap: 10px !important;
        padding: 14px !important;
    }

    body.woocommerce-account
    .woocommerce-MyAccount-content
    table.xk-wishlist-native-ui td.product-add-to-cart,
    body.woocommerce.account
    .woocommerce-MyAccount-content
    table.xk-wishlist-native-ui td.product-stock-status,
    body.woocommerce-account
    .woocommerce-MyAccount-content
    table.xk-wishlist-native-ui td.product-quantity,
    body.woocommerce-account
    .woocommerce-MyAccount-content
    table.xk-wishlist-native-ui td.product-price {
        grid-column: 2 !important;
    }
}
/* =========================================================
   XchangeCart Wishlist — Final Product Card Polish
   Wishlist content only
   ========================================================= */

body.woocommerce-account
.woocommerce-MyAccount-content
table.xk-wishlist-native-ui thead {
    display: none !important;
}

body.woocommerce-account
.woocommerce-MyAccount-content
table.xk-wishlist-native-ui {
    display: block !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    background: #fff !important;
    overflow: hidden !important;
}

body.woocommerce-account
.woocommerce-MyAccount-content
table.xk-wishlist-native-ui tbody {
    display: block !important;
}

body.woocommerce-account
.woocommerce-MyAccount-content
table.xk-wishlist-native-ui tbody tr {
    display: grid !important;
    grid-template-columns: 110px minmax(280px,1fr) 170px 90px 120px !important;
    align-items: center !important;
    gap: 18px !important;
    min-height: 118px !important;
    padding: 16px 20px !important;
    border: 0 !important;
    border-bottom: 1px solid #eeeeee !important;
    background: #fff !important;
}

body.woocommerce-account
.woocommerce-MyAccount-content
table.xk-wishlist-native-ui tbody tr:last-child {
    border-bottom: 0 !important;
}

body.woocommerce-account
.woocommerce-MyAccount-content
table.xk-wishlist-native-ui tbody td {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

/* image */
body.woocommerce-account
.woocommerce-MyAccount-content
table.xk-wishlist-native-ui td.product-thumbnail img {
    width: 82px !important;
    height: 92px !important;
    object-fit: contain !important;
}

/* product */
body.woocommerce-account
.woocommerce-MyAccount-content
table.xk-wishlist-native-ui td.product-name a {
    color: #212121 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
}

/* price */
body.woocommerce-account
.woocommerce-MyAccount-content
table.xk-wishlist-native-ui td.product-price ins {
    color: #212121 !important;
    font-size: 19px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

body.woocommerce-account
.woocommerce-MyAccount-content
table.xk-wishlist-native-ui td.product-price del {
    color: #878787 !important;
    font-size: 12px !important;
    margin-left: 6px !important;
}

/* quantity */
body.woocommerce-account
.woocommerce-MyAccount-content
table.xk-wishlist-native-ui td.product-quantity input[type="number"] {
    width: 62px !important;
    height: 38px !important;
    border: 1px solid #d5d5d5 !important;
    border-radius: 3px !important;
}

/* stock */
body.woocommerce-account
.woocommerce-MyAccount-content
table.xk-wishlist-native-ui td.product-stock-status {
    color: #2e7d32 !important;
    font-size: 12px !important;
}

/* add to cart */
body.woocommerce-account
.woocommerce-MyAccount-content
table.xk-wishlist-native-ui td.product-add-to-cart {
    text-align: right !important;
}

body.woocommerce-account
.woocommerce-MyAccount-content
table.xk-wishlist-native-ui td.product-add-to-cart .button {
    min-width: 105px !important;
    height: 40px !important;
    padding: 0 15px !important;
    border: 0 !important;
    border-radius: 2px !important;
    background: #2874f0 !important;
    color: #fff !important;
    font-weight: 600 !important;
}

/* remove */
body.woocommerce-account
.woocommerce-MyAccount-content
table.xk-wishlist-native-ui td.product-remove {
    position: absolute !important;
    top: 12px !important;
    right: 14px !important;
}

body.woocommerce-account
.woocommerce-MyAccount-content
table.xk-wishlist-native-ui td.product-remove a {
    font-size: 0 !important;
}

body.woocommerce-account
.woocommerce-MyAccount-content
table.xk-wishlist-native-ui td.product-remove a::after {
    content: "×" !important;
    font-size: 18px !important;
    color: #9e9e9e !important;
}

/* compact wishlist controls */
body.woocommerce-account
.woocommerce-MyAccount-content
.wishlist-actions {
    margin-top: 8px !important;
}

@media (max-width: 850px) {
    body.woocommerce-account
    .woocommerce-MyAccount-content
    table.xk-wishlist-native-ui tbody tr {
        grid-template-columns: 90px minmax(0,1fr) 120px !important;
    }
}

@media (max-width: 600px) {
    body.woocommerce-account
    .woocommerce-MyAccount-content
    table.xk-wishlist-native-ui tbody tr {
        grid-template-columns: 75px minmax(0,1fr) !important;
        gap: 12px !important;
    }
}
/* =========================================================
   Wishlist — Match XchangeKart Storefront Sale Price
   Old price struck through, current price normal
   ========================================================= */

body.woocommerce-account
.woocommerce-MyAccount-content
.xk-wishlist-native-ui td.product-price del,
body.woocommerce-account
.woocommerce-MyAccount-content
.xk-wishlist-native-ui td.product-price del bdi,
body.woocommerce-account
.woocommerce-MyAccount-content
.xk-final-wishlist td.product-price del,
body.woocommerce-account
.woocommerce-MyAccount-content
.xk-final-wishlist td.product-price del bdi {
    color: #878787 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
    text-decoration-thickness: 1px !important;
    text-decoration-line: line-through !important;
}

body.woocommerce-account
.woocommerce-MyAccount-content
.xk-wishlist-native-ui td.product-price ins,
body.woocommerce-account
.woocommerce-MyAccount-content
.xk-final-wishlist td.product-price ins {
    color: #212121 !important;
    font-size: 19px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* =========================================================
   Wishlist — Storefront-style sale price
   ========================================================= */

body.woocommerce-account
.woocommerce-MyAccount-content
.xk-final-wishlist td.product-price,
body.woocommerce-account
.woocommerce-MyAccount-content
.xk-wishlist-native-ui td.product-price {
    display: flex !important;
    align-items: baseline !important;
    gap: 9px !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
}

/* OLD PRICE */
body.woocommerce-account
.woocommerce-MyAccount-content
.xk-final-wishlist td.product-price del,
body.woocommerce-account
.woocommerce-MyAccount-content
.xk-wishlist-native-ui td.product-price del {
    display: inline-block !important;
    margin: 0 !important;
    color: #878787 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-decoration: line-through !important;
    text-decoration-thickness: 1px !important;
    text-decoration-color: #878787 !important;
}

/* OLD PRICE CONTENT */
body.woocommerce-account
.woocommerce-MyAccount-content
.xk-final-wishlist td.product-price del *,
body.woocommerce-account
.woocommerce-MyAccount-content
.xk-wishlist-native-ui td.product-price del * {
    color: #878787 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
}

/* CURRENT PRICE */
body.woocommerce-account
.woocommerce-MyAccount-content
.xk-final-wishlist td.product-price ins,
body.woocommerce-account
.woocommerce-MyAccount-content
.xk-wishlist-native-ui td.product-price ins {
    display: inline-block !important;
    margin: 0 !important;
    color: #212121 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

/* CURRENT PRICE CONTENT */
body.woocommerce-account
.woocommerce-MyAccount-content
.xk-final-wishlist td.product-price ins *,
body.woocommerce-account
.woocommerce-MyAccount-content
.xk-wishlist-native-ui td.product-price ins * {
    color: #212121 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* Remove any inherited link underline */
body.woocommerce-account
.woocommerce-MyAccount-content
.xk-final-wishlist td.product-price a,
body.woocommerce-account
.woocommerce-MyAccount-content
.xk-wishlist-native-ui td.product-price a {
    text-decoration: none !important;
    color: inherit !important;
}

/* =========================================================
   XchangeKart — My Details FINAL
   ONLY affects /account/edit-account/
   Navigation / Elementor / WooCommerce functionality untouched
   ========================================================= */

body.woocommerce-edit-account
.woocommerce-MyAccount-content form.edit-account {
    width: 100% !important;
    max-width: 980px !important;
    margin: 0 !important;
    padding: 22px 24px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.08) !important;
    box-sizing: border-box !important;
}

/* First + last name side by side */
body.woocommerce-edit-account
.woocommerce-MyAccount-content form.edit-account
p.form-row-first,
body.woocommerce-edit-account
.woocommerce-MyAccount-content form.edit-account
p.form-row-last {
    display: inline-block !important;
    vertical-align: top !important;
    width: 50% !important;
    box-sizing: border-box !important;
}

body.woocommerce-edit-account
.woocommerce-MyAccount-content form.edit-account
p.form-row-first {
    padding-right: 9px !important;
}

body.woocommerce-edit-account
.woocommerce-MyAccount-content form.edit-account
p.form-row-last {
    padding-left: 9px !important;
}

/* All normal rows */
body.woocommerce-edit-account
.woocommerce-MyAccount-content form.edit-account
p.form-row {
    margin-bottom: 16px !important;
}

/* Labels */
body.woocommerce-edit-account
.woocommerce-MyAccount-content form.edit-account
label {
    display: block !important;
    margin-bottom: 6px !important;
    color: #212121 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

/* Inputs */
body.woocommerce-edit-account
.woocommerce-MyAccount-content form.edit-account
input.input-text {
    width: 100% !important;
    height: 42px !important;
    padding: 9px 12px !important;
    border: 1px solid #d5d5d5 !important;
    border-radius: 3px !important;
    background: #fff !important;
    color: #212121 !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
}

body.woocommerce-edit-account
.woocommerce-MyAccount-content form.edit-account
input.input-text:focus {
    border-color: #2874f0 !important;
    outline: none !important;
    box-shadow: 0 0 0 1px #2874f0 !important;
}

/* Full-width fields */
body.woocommerce-edit-account
.woocommerce-MyAccount-content form.edit-account
p.form-row-wide {
    width: 100% !important;
}

/* Help text */
body.woocommerce-edit-account
.woocommerce-MyAccount-content form.edit-account
em {
    display: block !important;
    margin-top: 5px !important;
    color: #757575 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}

/* Password section */
body.woocommerce-edit-account
.woocommerce-MyAccount-content form.edit-account
fieldset {
    margin: 5px 0 18px !important;
    padding: 18px !important;
    background: #fafafa !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 3px !important;
}

body.woocommerce-edit-account
.woocommerce-MyAccount-content form.edit-account
fieldset legend {
    padding: 0 6px !important;
    color: #212121 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

/* Password rows */
body.woocommerce-edit-account
.woocommerce-MyAccount-content form.edit-account
fieldset .form-row {
    margin-bottom: 14px !important;
}

body.woocommerce-edit-account
.woocommerce-MyAccount-content form.edit-account
fieldset .form-row:last-child {
    margin-bottom: 0 !important;
}

/* Save button */
body.woocommerce-edit-account
.woocommerce-MyAccount-content form.edit-account
.woocommerce-Button {
    min-width: 145px !important;
    min-height: 42px !important;
    margin: 3px 0 0 !important;
    padding: 10px 24px !important;
    border: 0 !important;
    border-radius: 3px !important;
    background: #2874f0 !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

body.woocommerce-edit-account
.woocommerce-MyAccount-content form.edit-account
.woocommerce-Button:hover {
    background: #1d5fc4 !important;
    color: #fff !important;
}

/* Prevent unrelated account-content elements from affecting this form */
body.woocommerce-edit-account
.woocommerce-MyAccount-content form.edit-account
button,
body.woocommerce-edit-account
.woocommerce-MyAccount-content form.edit-account
input {
    font-family: Arial, Helvetica, sans-serif !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    body.woocommerce-edit-account
    .woocommerce-MyAccount-content form.edit-account {
        padding: 16px !important;
    }

    body.woocommerce-edit-account
    .woocommerce-MyAccount-content form.edit-account
    p.form-row-first,
    body.woocommerce-edit-account
    .woocommerce-MyAccount-content form.edit-account
    p.form-row-last {
        display: block !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.woocommerce-edit-account
    .woocommerce-MyAccount-content form.edit-account
    fieldset {
        padding: 14px !important;
    }
}
/* =========================================================
   My Details — release content-column width
   Only My Details content is affected
   Navigation / Elementor / other account pages untouched
   ========================================================= */

body.woocommerce-edit-account
#tgwc-woocommerce
.woocommerce-MyAccount-content {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    float: none !important;
    flex: 1 1 100% !important;
    box-sizing: border-box !important;
}

body.woocommerce-edit-account
#tgwc-woocommerce
#tgwc-account-contentedit-account {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

body.woocommerce-edit-account
#tgwc-woocommerce
#tgwc-account-contentedit-account
form.edit-account {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* Keep the two name fields balanced */
body.woocommerce-edit-account
#tgwc-woocommerce
#tgwc-account-contentedit-account
form.edit-account
p.form-row-first,
body.woocommerce-edit-account
#tgwc-woocommerce
#tgwc-account-contentedit-account
form.edit-account
p.form-row-last {
    width: 50% !important;
    box-sizing: border-box !important;
}

body.woocommerce-edit-account
#tgwc-woocommerce
#tgwc-account-contentedit-account
form.edit-account
p.form-row-first {
    padding-right: 9px !important;
}

body.woocommerce-edit-account
#tgwc-woocommerce
#tgwc-account-contentedit-account
form.edit-account
p.form-row-last {
    padding-left: 9px !important;
}

@media (max-width: 700px) {
    body.woocommerce-edit-account
    #tgwc-woocommerce
    #tgwc-account-contentedit-account
    form.edit-account
    p.form-row-first,
    body.woocommerce-edit-account
    #tgwc-woocommerce
    #tgwc-account-contentedit-account
    form.edit-account
    p.form-row-last {
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* =========================================================

/* =========================================================

/* =========================================================
   XchangeKart — FINAL ADDRESSES
   Exact Customize My Account wrapper
   ========================================================= */

#tgwc-account-contentedit-address,
#tgwc-account-contentedit-address > .woocommerce {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Force the actual WooCommerce address pair into 2 columns */
#tgwc-account-contentedit-address
.woocommerce-Addresses.col2-set,
#tgwc-account-contentedit-address
.col2-set.addresses,
#tgwc-account-contentedit-address
.woocommerce-Addresses,
#tgwc-account-contentedit-address
.addresses {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
}

/* Kill WooCommerce/theme floats and widths */
#tgwc-account-contentedit-address
.woocommerce-Addresses > .col-1,
#tgwc-account-contentedit-address
.woocommerce-Addresses > .col-2,
#tgwc-account-contentedit-address
.col2-set.addresses > .col-1,
#tgwc-account-contentedit-address
.col2-set.addresses > .col-2,
#tgwc-account-contentedit-address
.addresses > .col-1,
#tgwc-account-contentedit-address
.addresses > .col-2 {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Address cards */
#tgwc-account-contentedit-address
.woocommerce-Address {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 190px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    box-sizing: border-box !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.08) !important;
    overflow: hidden !important;
}

/* Header */
#tgwc-account-contentedit-address
.woocommerce-Address-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 16px 18px !important;
    box-sizing: border-box !important;
    background: #f7f8fa !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

/* Heading */
#tgwc-account-contentedit-address
.woocommerce-Address-title h2,
#tgwc-account-contentedit-address
.woocommerce-Address-title h3 {
    margin: 0 !important;
    padding: 0 !important;
    color: #212121 !important;
    font-size: 17px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
}

/* Edit */
#tgwc-account-contentedit-address
.woocommerce-Address-title .edit {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #2874f0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

#tgwc-account-contentedit-address
.woocommerce-Address-title .edit:hover {
    color: #1d5fc4 !important;
    text-decoration: underline !important;
}

/* Address body */
#tgwc-account-contentedit-address
.woocommerce-Address address {
    display: block !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    min-height: 130px !important;
    margin: 0 !important;
    padding: 18px !important;
    box-sizing: border-box !important;
    border: 0 !important;
    background: #fff !important;
    color: #424242 !important;
    font-size: 13px !important;
    line-height: 1.75 !important;
    font-style: normal !important;
}

/* Name */
#tgwc-account-contentedit-address
.woocommerce-Address address strong {
    color: #212121 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* Links / phone / email */
#tgwc-account-contentedit-address
.woocommerce-Address address a {
    color: #2874f0 !important;
}

/* Mobile */
@media (max-width: 700px) {

    #tgwc-account-contentedit-address
    .woocommerce-Addresses.col2-set,
    #tgwc-account-contentedit-address
    .col2-set.addresses,
    #tgwc-account-contentedit-address
    .woocommerce-Addresses,
    #tgwc-account-contentedit-address
    .addresses {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    #tgwc-account-contentedit-address
    .woocommerce-Address {
        min-height: 0 !important;
    }
}

/* =========================================================
   Addresses — FIX GRID CLEARFIX PSEUDO-ELEMENTS
   The WooCommerce col2-set clearfix must not become
   a CSS-grid item.
   ========================================================= */

body.woocommerce-account
.woocommerce-MyAccount-content
.u-columns.woocommerce-Addresses.col2-set.addresses::before,

body.woocommerce-account
.woocommerce-MyAccount-content
.u-columns.woocommerce-Addresses.col2-set.addresses::after {
    display: none !important;
    content: none !important;
}

body.woocommerce-account
.woocommerce-MyAccount-content
.u-columns.woocommerce-Addresses.col2-set.addresses {
    display: grid !important;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    grid-auto-flow: row !important;
    align-items: start !important;
    gap: 16px !important;
}

body.woocommerce-account
.woocommerce-MyAccount-content
.u-columns.woocommerce-Addresses.col2-set.addresses
> .woocommerce-Address {
    grid-row: auto !important;
    grid-column: auto !important;
}

@media (max-width: 700px) {
    body.woocommerce-account
    .woocommerce-MyAccount-content
    .u-columns.woocommerce-Addresses.col2-set.addresses {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   Addresses — FINAL NATIVE TWO-COLUMN LAYOUT
   Uses actual WooCommerce col2-set structure.
   ========================================================= */

body.woocommerce-account
.woocommerce-MyAccount-content
.u-columns.woocommerce-Addresses.col2-set.addresses {

    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 18px 0 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;
}

/* Restore the WooCommerce clearfix */
body.woocommerce-account
.woocommerce-MyAccount-content
.u-columns.woocommerce-Addresses.col2-set.addresses::before {
    content: "" !important;
    display: table !important;
}

body.woocommerce-account
.woocommerce-MyAccount-content
.u-columns.woocommerce-Addresses.col2-set.addresses::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}

/* Billing = left */
body.woocommerce-account
.woocommerce-MyAccount-content
.u-columns.woocommerce-Addresses.col2-set.addresses
> .u-column1.col-1.woocommerce-Address {

    display: block !important;

    width: 48.5% !important;
    max-width: 48.5% !important;

    float: left !important;
    clear: none !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;
}

/* Shipping = right */
body.woocommerce-account
.woocommerce-MyAccount-content
.u-columns.woocommerce-Addresses.col2-set.addresses
> .u-column2.col-2.woocommerce-Address {

    display: block !important;

    width: 48.5% !important;
    max-width: 48.5% !important;

    float: right !important;
    clear: none !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;
}

/* Card */
body.woocommerce-account
.woocommerce-MyAccount-content
.u-columns.woocommerce-Addresses
.woocommerce-Address {

    background: #fff !important;

    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;

    box-shadow:
        0 1px 3px rgba(0,0,0,.08) !important;

    overflow: hidden !important;
}

/* Card header */
body.woocommerce-account
.woocommerce-MyAccount-content
.u-columns.woocommerce-Addresses
header.woocommerce-Address-title.title {

    display: flex !important;

    align-items: center !important;
    justify-content: space-between !important;

    width: 100% !important;

    min-height: 54px !important;

    margin: 0 !important;
    padding: 0 18px !important;

    background: #f7f8fa !important;

    border: 0 !important;
    border-bottom: 1px solid #e0e0e0 !important;

    box-sizing: border-box !important;
}

/* Header text */
body.woocommerce-account
.woocommerce-MyAccount-content
.u-columns.woocommerce-Addresses
header.woocommerce-Address-title.title
h2 {

    margin: 0 !important;
    padding: 0 !important;

    color: #212121 !important;

    font-family: Arial, Helvetica, sans-serif !important;

    font-size: 17px !important;
    font-weight: 600 !important;

    line-height: 1.3 !important;
    text-align: left !important;
}

/* Edit links */
body.woocommerce-account
.woocommerce-MyAccount-content
.u-columns.woocommerce-Addresses
header.woocommerce-Address-title.title
a.edit {

    margin: 0 !important;
    padding: 0 !important;

    color: #2874f0 !important;

    font-family: Arial, Helvetica, sans-serif !important;

    font-size: 13px !important;
    font-weight: 600 !important;

    text-decoration: none !important;

    white-space: nowrap !important;
}

body.woocommerce-account
.woocommerce-MyAccount-content
.u-columns.woocommerce-Addresses
header.woocommerce-Address-title.title
a.edit:hover {

    color: #1d5fc4 !important;
    text-decoration: underline !important;
}

/* Address body */
body.woocommerce-account
.woocommerce-MyAccount-content
.u-columns.woocommerce-Addresses
.woocommerce-Address
address {

    display: block !important;

    width: 100% !important;

    min-height: 145px !important;

    margin: 0 !important;
    padding: 18px !important;

    background: #fff !important;

    border: 0 !important;

    color: #424242 !important;

    font-family: Arial, Helvetica, sans-serif !important;

    font-size: 14px !important;

    line-height: 1.7 !important;

    font-style: normal !important;

    box-sizing: border-box !important;
}

/* Name */
body.woocommerce-account
.woocommerce-MyAccount-content
.u-columns.woocommerce-Addresses
.woocommerce-Address
address strong {

    color: #212121 !important;

    font-size: 14px !important;

    font-weight: 600 !important;
}

/* Mobile */
@media (max-width: 700px) {

    body.woocommerce-account
    .woocommerce-MyAccount-content
    .u-columns.woocommerce-Addresses.col2-set.addresses {

        display: block !important;
    }

    body.woocommerce-account
    .woocommerce-MyAccount-content
    .u-columns.woocommerce-Addresses.col2-set.addresses
    > .u-column1.col-1.woocommerce-Address,

    body.woocommerce-account
    .woocommerce-MyAccount-content
    .u-columns.woocommerce-Addresses.col2-set.addresses
    > .u-column2.col-2.woocommerce-Address {

        width: 100% !important;
        max-width: 100% !important;

        float: none !important;

        margin: 0 0 12px !important;
    }

    body.woocommerce-account
    .woocommerce-MyAccount-content
    .u-columns.woocommerce-Addresses
    .woocommerce-Address
    address {

        min-height: 0 !important;
    }
}

/* =========================================================
   Hide only the Addresses account-navigation tab
   Does NOT disable the address functionality itself.
   ========================================================= */

body.woocommerce-account
nav.xk-account-navigation-final-v3
li:has(a[href*="/account/edit-address"]) {
    display: none !important;
}

body.woocommerce-account
nav.woocommerce-MyAccount-navigation
li:has(a[href*="/account/edit-address"]) {
    display: none !important;
}

body.woocommerce-account
nav.xk-account-navigation-final-v3
a[href*="/account/edit-address"],
body.woocommerce-account
nav.woocommerce-MyAccount-navigation
a[href*="/account/edit-address"] {
    display: none !important;
}
