/* ICON Signings — WooCommerce My Account / Orders cleanup (v2.3.37).
 * Deliberately scoped to account pages so shop, product, cart and checkout stay untouched.
 */
body.woocommerce-account{
    --icon-account-gold:#e0a252;
    --icon-account-gold-bright:#f3b65f;
    --icon-account-panel:#171717;
    --icon-account-panel-2:#1d1b19;
    --icon-account-border:rgba(224,162,82,.32);
    --icon-account-text:#f2f2f2;
    --icon-account-muted:#c8c8c8;
}

/* The account avatar/profile image has repeatedly collided with account copy on
 * smaller screens. Jonathan approved removing it on desktop and mobile. */
body.woocommerce-account img.avatar,
body.woocommerce-account .woocommerce-MyAccount-avatar,
body.woocommerce-account .myaccount-avatar,
body.woocommerce-account .account-avatar,
body.woocommerce-account .profile-picture,
body.woocommerce-account .profile-image,
body.woocommerce-account .user-avatar,
body.woocommerce-account .user-profile-picture{
    display:none!important;
}

/* Keep the customer area readable and predictable without changing endpoint logic. */
body.woocommerce-account .woocommerce-MyAccount-content{
    min-width:0;
    color:var(--icon-account-text)!important;
}
body.woocommerce-account .woocommerce-MyAccount-content p,
body.woocommerce-account .woocommerce-MyAccount-content li{
    color:inherit;
}

/* Professional Orders list. */
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table{
    width:100%!important;
    margin:0!important;
    border:1px solid var(--icon-account-border)!important;
    border-collapse:separate!important;
    border-spacing:0!important;
    border-radius:16px!important;
    overflow:hidden!important;
    background:linear-gradient(180deg,#1b1b1b,#151515)!important;
    color:var(--icon-account-text)!important;
}
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table thead th{
    padding:15px 18px!important;
    border:0!important;
    border-bottom:1px solid rgba(255,255,255,.12)!important;
    background:rgba(224,162,82,.08)!important;
    color:var(--icon-account-gold-bright)!important;
    font-size:12px!important;
    font-weight:800!important;
    letter-spacing:.06em!important;
    text-transform:uppercase!important;
}
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table tbody td{
    padding:17px 18px!important;
    border:0!important;
    border-bottom:1px solid rgba(255,255,255,.09)!important;
    background:transparent!important;
    color:var(--icon-account-text)!important;
    vertical-align:middle!important;
}
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr:last-child td{
    border-bottom:0!important;
}
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table a:not(.button){
    color:var(--icon-account-gold-bright)!important;
    font-weight:700!important;
}
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table .button,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:40px!important;
    margin:3px 5px 3px 0!important;
    padding:9px 15px!important;
    border:1px solid rgba(224,162,82,.5)!important;
    border-radius:10px!important;
    background:linear-gradient(135deg,#f3c774,#dda52f)!important;
    color:#111!important;
    font-weight:800!important;
    text-decoration:none!important;
    box-shadow:none!important;
}

/* Order again is removed through WooCommerce's own status filter in PHP. This is
 * only a visual fallback for themes that hard-code their own copy of the button. */
body.woocommerce-account .woocommerce-MyAccount-content .order-again,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-button.order-again{
    display:none!important;
}

/* Common account notices: prevent theme-level black text on dark panels. */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error{
    color:var(--icon-account-text)!important;
}
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message *,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info *,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error *{
    color:inherit;
}

@media (max-width:767px){
    body.woocommerce-account .woocommerce-MyAccount-content{
        width:100%!important;
        min-width:0!important;
        margin:0!important;
    }

    body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table,
    body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table tbody,
    body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table tr,
    body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table td{
        display:block!important;
        width:100%!important;
        box-sizing:border-box!important;
    }
    body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table thead{
        display:none!important;
    }
    body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table{
        border:0!important;
        background:transparent!important;
        overflow:visible!important;
    }
    body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table tr{
        margin:0 0 16px!important;
        padding:9px 14px!important;
        border:1px solid var(--icon-account-border)!important;
        border-radius:14px!important;
        background:linear-gradient(180deg,#1b1b1b,#151515)!important;
        overflow:hidden!important;
    }
    body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table td{
        display:flex!important;
        align-items:flex-start!important;
        justify-content:space-between!important;
        gap:16px!important;
        padding:11px 0!important;
        border-bottom:1px solid rgba(255,255,255,.09)!important;
        text-align:right!important;
        overflow-wrap:anywhere!important;
    }
    body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table td:last-child{
        border-bottom:0!important;
    }
    body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table td::before{
        content:attr(data-title);
        flex:0 0 42%;
        color:var(--icon-account-muted)!important;
        font-size:11px!important;
        font-weight:800!important;
        letter-spacing:.04em!important;
        text-align:left!important;
        text-transform:uppercase!important;
    }
    body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions{
        display:block!important;
        text-align:left!important;
    }
    body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions::before{
        display:block!important;
        margin-bottom:7px!important;
    }
    body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button{
        width:100%!important;
        margin:5px 0!important;
    }
}
