/* =========================================================
   XchangeKart — Flipkart-Inspired Order Details
   VISUAL ONLY — WooCommerce data/functionality untouched
   ========================================================= */

/* ---------- Main Order Area ---------- */

body.woocommerce-account .woocommerce-MyAccount-content
.woocommerce-order {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    color: #212121;
    font-size: 14px;
    line-height: 1.55;
}


/* ---------- Order Intro ---------- */

body.woocommerce-account .woocommerce-MyAccount-content
.woocommerce-order > p:first-child {
    margin: 0 0 18px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #555;
    font-size: 14px;
}

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


/* ---------- Order Overview ---------- */

body.woocommerce-account .woocommerce-MyAccount-content
.woocommerce-order .woocommerce-order-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

body.woocommerce-account .woocommerce-MyAccount-content
.woocommerce-order .woocommerce-order-overview li {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 17px 18px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    color: #757575;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .2px;
}

body.woocommerce-account .woocommerce-MyAccount-content
.woocommerce-order .woocommerce-order-overview li strong {
    display: block;
    margin-top: 6px;
    color: #212121;
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    white-space: normal;
}

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


/* ---------- Status ---------- */

body.woocommerce-account .woocommerce-MyAccount-content
.woocommerce-order .woocommerce-order-overview__status strong {
    color: #2874f0;
}


/* ---------- Section Headings ---------- */

body.woocommerce-account .woocommerce-MyAccount-content
.woocommerce-order h2 {
    margin: 0 0 14px;
    padding: 0;
    color: #212121;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 600;
}

body.woocommerce-account .woocommerce-MyAccount-content
.woocommerce-order h3 {
    margin: 0 0 10px;
    color: #212121;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 600;
}


/* ---------- Order Details Card ---------- */

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


/* ---------- Order Table ---------- */

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

body.woocommerce-account .woocommerce-MyAccount-content
.woocommerce-order .woocommerce-table--order-details thead th {
    padding: 15px 18px;
    background: #f5f7fa;
    border: 0;
    border-bottom: 1px solid #e0e0e0;
    color: #555;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    text-align: left;
}

body.woocommerce-account .woocommerce-MyAccount-content
.woocommerce-order .woocommerce-table--order-details tbody td,
body.woocommerce-account .woocommerce-MyAccount-content
.woocommerce-order .woocommerce-table--order-details tbody th {
    padding: 17px 18px;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #eeeeee;
    vertical-align: middle;
}

body.woocommerce-account .woocommerce-MyAccount-content
.woocommerce-order .woocommerce-table--order-details tbody tr:last-child td,
body.woocommerce-account .woocommerce-MyAccount-content
.woocommerce-order .woocommerce-table--order-details tbody tr:last-child th {
    border-bottom: 0;
}


/* ---------- Product Name ---------- */

body.woocommerce-account .woocommerce-MyAccount-content
.woocommerce-order .woocommerce-table--order-details tbody td:first-child {
    color: #212121;
    font-weight: 500;
}

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

body.woocommerce-account .woocommerce-MyAccount-content
.woocommerce-order .woocommerce-table--order-details tbody td:first-child a:hover {
    color: #1d5fc4;
    text-decoration: underline;
}


/* ---------- Price Column ---------- */

body.woocommerce-account .woocommerce-MyAccount-content
.woocommerce-order .woocommerce-table--order-details tbody td:last-child {
    color: #212121;
    font-weight: 600;
    text-align: right;
}


/* ---------- Totals ---------- */

body.woocommerce-account .woocommerce-MyAccount-content
.woocommerce-order .woocommerce-table--order-details tfoot th,
body.woocommerce-account .woocommerce-MyAccount-content
.woocommerce-order .woocommerce-table--order-details tfoot td {
    padding: 13px 18px;
    background: #fff;
    border: 0;
    border-top: 1px solid #eeeeee;
}

body.woocommerce-account .woocommerce-MyAccount-content
.woocommerce-order .woocommerce-table--order-details tfoot th {
    color: #757575;
    font-weight: 500;
    text-align: left;
}

body.woocommerce-account .woocommerce-MyAccount-content
.woocommerce-order .woocommerce-table--order-details tfoot td {
    color: #212121;
    font-weight: 600;
    text-align: right;
}

body.woocommerce-account .woocommerce-MyAccount-content
.woocommerce-order .woocommerce-table--order-details tfoot tr:last-child th,
body.woocommerce-account .woocommerce-MyAccount-content
.woocommerce-order .woocommerce-table--order-details tfoot tr:last-child td {
    padding-top: 17px;
    padding-bottom: 17px;
    font-size: 15px;
}


/* ---------- Customer Details ---------- */

body.woocommerce-account .woocommerce-MyAccount-content
.woocommerce-order .woocommerce-customer-details {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

body.woocommerce-account .woocommerce-MyAccount-content
.woocommerce-order .woocommerce-customer-details > h2 {
    margin-bottom: 14px;
}


/* ---------- Billing / Shipping Layout ---------- */

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

body.woocommerce-account .woocommerce-MyAccount-content
.woocommerce-order .woocommerce-column {
    width: auto;
    float: none;
    margin: 0;
    padding: 18px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

body.woocommerce-account .woocommerce-MyAccount-content
.woocommerce-order .woocommerce-column h2,
body.woocommerce-account .woocommerce-MyAccount-content
.woocommerce-order .woocommerce-column h3 {
    margin: 0 0 12px;
    padding-bottom: 11px;
    border-bottom: 1px solid #eeeeee;
    color: #212121;
    font-size: 16px;
    font-weight: 600;
}

body.woocommerce-account .woocommerce-MyAccount-content
.woocommerce-order .woocommerce-column address {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.75;
    font-style: normal;
}


/* ---------- Links ---------- */

body.woocommerce-account .woocommerce-MyAccount-content
.woocommerce-order a {
    transition: color .15s ease, background-color .15s ease;
}


/* ---------- Buttons ---------- */

body.woocommerce-account .woocommerce-MyAccount-content
.woocommerce-order a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 20px;
    border: 0;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}


/* ---------- Remove Unnecessary List Decoration ---------- */

body.woocommerce-account .woocommerce-MyAccount-content
.woocommerce-order ul {
    list-style: none;
}


/* =========================================================
   Responsive — Tablet
   ========================================================= */

@media (max-width: 900px) {

    body.woocommerce-account .woocommerce-MyAccount-content
    .woocommerce-order .woocommerce-order-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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


/* =========================================================
   Responsive — Mobile
   ========================================================= */

@media (max-width: 600px) {

    body.woocommerce-account .woocommerce-MyAccount-content
    .woocommerce-order > p:first-child {
        margin-bottom: 14px;
        padding: 14px;
        font-size: 13px;
    }

    body.woocommerce-account .woocommerce-MyAccount-content
    .woocommerce-order .woocommerce-order-overview {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 18px;
    }

    body.woocommerce-account .woocommerce-MyAccount-content
    .woocommerce-order .woocommerce-order-overview li {
        padding: 13px;
        font-size: 11px;
    }

    body.woocommerce-account .woocommerce-MyAccount-content
    .woocommerce-order .woocommerce-order-overview li strong {
        font-size: 14px;
    }

    body.woocommerce-account .woocommerce-MyAccount-content
    .woocommerce-order h2 {
        font-size: 19px;
    }

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

    body.woocommerce-account .woocommerce-MyAccount-content
    .woocommerce-order .woocommerce-table--order-details {
        font-size: 13px;
    }

    body.woocommerce-account .woocommerce-MyAccount-content
    .woocommerce-order .woocommerce-table--order-details thead th,
    body.woocommerce-account .woocommerce-MyAccount-content
    .woocommerce-order .woocommerce-table--order-details tbody td,
    body.woocommerce-account .woocommerce-MyAccount-content
    .woocommerce-order .woocommerce-table--order-details tbody th,
    body.woocommerce-account .woocommerce-MyAccount-content
    .woocommerce-order .woocommerce-table--order-details tfoot td,
    body.woocommerce-account .woocommerce-MyAccount-content
    .woocommerce-order .woocommerce-table--order-details tfoot th {
        padding: 12px 10px;
    }

    body.woocommerce-account .woocommerce-MyAccount-content
    .woocommerce-order .woocommerce-column {
        padding: 15px;
    }

    body.woocommerce-account .woocommerce-MyAccount-content
    .woocommerce-order .woocommerce-column h2,
    body.woocommerce-account .woocommerce-MyAccount-content
    .woocommerce-order .woocommerce-column h3 {
        font-size: 15px;
    }
}


/* =========================================================
   Small Mobile
   ========================================================= */

@media (max-width: 420px) {

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

    body.woocommerce-account .woocommerce-MyAccount-content
    .woocommerce-order .woocommerce-order-overview li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    body.woocommerce-account .woocommerce-MyAccount-content
    .woocommerce-order .woocommerce-order-overview li strong {
        margin-top: 0;
        text-align: right;
    }
}

/* =========================================================
   XchangeKart Dashboard — FINAL NUMBER BADGES
   Numbers only. No links/content/functionality changed.
   ========================================================= */

body.woocommerce-account
.xk-account-dashboard-grid
> .xk-account-dashboard-card
> .xk-account-dashboard-icon {

    font-size: 0 !important;
    color: transparent !important;
    text-indent: 0 !important;
}

body.woocommerce-account
.xk-account-dashboard-grid
> .xk-account-dashboard-card
> .xk-account-dashboard-icon::before {

    display: none !important;
}

body.woocommerce-account
.xk-account-dashboard-grid
> .xk-account-dashboard-card
> .xk-account-dashboard-icon::after {

    display: block !important;

    color: #fff !important;

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

    font-size: 14px !important;
    font-weight: 700 !important;

    line-height: 1 !important;

    text-align: center !important;
}

/* 01 — My Orders */
body.woocommerce-account
.xk-account-dashboard-grid
> .xk-account-dashboard-card:nth-child(1)
> .xk-account-dashboard-icon::after {
    content: "01" !important;
}

/* 02 — Orders */
body.woocommerce-account
.xk-account-dashboard-grid
> .xk-account-dashboard-card:nth-child(2)
> .xk-account-dashboard-icon::after {
    content: "02" !important;
}

/* 03 — Address book */
body.woocommerce-account
.xk-account-dashboard-grid
> .xk-account-dashboard-card:nth-child(3)
> .xk-account-dashboard-icon::after {
    content: "03" !important;
}

/* 04 — My Details */
body.woocommerce-account
.xk-account-dashboard-grid
> .xk-account-dashboard-card:nth-child(4)
> .xk-account-dashboard-icon::after {
    content: "04" !important;
}

/* 05 — Wishlist */
body.woocommerce-account
.xk-account-dashboard-grid
> .xk-account-dashboard-card:nth-child(5)
> .xk-account-dashboard-icon::after {
    content: "05" !important;
}


/* XchangeKart Dashboard — FINAL five-card numbering */
body.woocommerce-account .xk-account-v2-grid > .xk-account-v2-card:first-child .xk-account-v2-number {
    font-size: 0 !important;
}

body.woocommerce-account .xk-account-v2-grid > .xk-account-v2-card:first-child .xk-account-v2-number::after {
    content: "01" !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

/* XchangeKart Dashboard — remove number badges */
body.woocommerce-account .xk-account-v2-grid > .xk-account-v2-card .xk-account-v2-number {
    display: none !important;
}

/* XchangeKart Dashboard — five-card layout after number removal */
body.woocommerce-account .xk-account-v2-grid > .xk-account-v2-card {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 28px 36px !important;
    min-height: 128px !important;
}

body.woocommerce-account .xk-account-v2-grid > .xk-account-v2-card .xk-account-v2-main {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
}

body.woocommerce-account .xk-account-v2-grid > .xk-account-v2-card .xk-account-v2-main strong {
    display: block !important;
    margin: 0 0 8px !important;
}

body.woocommerce-account .xk-account-v2-grid > .xk-account-v2-card .xk-account-v2-main small {
    display: block !important;
    max-width: none !important;
    line-height: 1.5 !important;
}

body.woocommerce-account .xk-account-v2-grid > .xk-account-v2-card .xk-account-v2-arrow {
    flex: 0 0 auto !important;
    margin-left: 24px !important;
}

/* XchangeKart Dashboard — FINAL numberless card layout */
body.woocommerce-account .xk-account-v2-grid > .xk-account-v2-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 28px !important;
    gap: 16px !important;
    align-items: center !important;
    min-height: 112px !important;
    padding: 20px !important;
}

body.woocommerce-account .xk-account-v2-grid > .xk-account-v2-card .xk-account-v2-main {
    grid-column: 1 !important;
    width: auto !important;
    min-width: 0 !important;
}

body.woocommerce-account .xk-account-v2-grid > .xk-account-v2-card .xk-account-v2-arrow {
    grid-column: 2 !important;
    margin-left: 0 !important;
}

/* XchangeKart — remove WooCommerce past-order email verification banner */
body.woocommerce-account .woocommerce-info:has(a.wc-forward) {
    display: none !important;
}
