/* ========================================= */
/* 0. FORCE THEME OVERRIDES (Fix Width)      */
/* ========================================= */
/*testing */
.pt-account-page-wrapper .site-main {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pt-account-page-wrapper.grid-container {
    max-width: 100% !important;
}

/* ========================================= */
/* 1. MASTER LAYOUT (Force Side-by-Side)     */
/* ========================================= */

/* Target the inner WooCommerce container */
.pt-account-page-wrapper .woocommerce {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;

  width: 100% !important;
}

/* 1. The Sidebar (Navigation) */
.woocommerce-MyAccount-navigation {
    flex: 0 0 25% !important;  /* Fixed width (25%) */
    max-width: 280px !important;
    width: 25% !important;
    float: none !important;    /* Kill native floats */
    margin-right: 0 !important;
    padding-right: 40px;
}

/* 2. The Content (Dashboard, Orders, etc) */
.woocommerce-MyAccount-content {
    flex: 1 !important;        /* Takes all remaining space */
    width: auto !important;
    float: none !important;    /* Kill native floats */
    margin-left: 0 !important; /* Reset margins */
}

/* 3. Mobile Response (Stack them back up) */
@media only screen and (max-width: 900px) {
    .pt-account-page-wrapper .woocommerce {
        flex-direction: column !important;
        gap: 30px !important;
    }
    
    .woocommerce-MyAccount-navigation, 
    .woocommerce-MyAccount-content {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}


/* ========================================= */
/* 2. LAYOUT WRAPPERS (Updated to 1100px)    */
/* ========================================= */

.pt-account-page-wrapper {
    background-color: #fff; 
    min-height: 80vh; 
    
    /* Layout: Flexbox forces centering */
    display: flex;
    align-items: flex-start; 
    justify-content: center; 
    
    /* ✅ WIDTH CONTROL: 1100px Centered */
    width: 100%;        
    max-width: 1200px; 
    margin: 0 auto;     
    
    /* GAP CONTROL */
    padding-top: 40px; 
    padding-bottom: 60px;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.pt-container {
    width: 100%;
    max-width: 650px; /* Login Box Width */
    margin: 0 auto;     
}


/* ========================================= */
/* 3. LOGIN & REGISTER STYLES                */
/* ========================================= */

.pt-custom-login-wrapper,
.pt-custom-register-wrapper {
    max-width: 100%; 
    margin: 0 auto;
    background: #f9f9f9; 
    padding: 80px 60px; 
    text-align: center;
    border-radius: 2px; 
}

.pt-custom-login-wrapper h2,
.pt-custom-register-wrapper h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 35px;
    color: #000;
    text-transform: capitalize; 
    border: none;
    padding: 0;
}

.pt-form-row {
    margin-bottom: 25px;
    width: 100%; 
    display: block;
}

.pt-input {
    width: 100%;                 
    max-width: 100% !important; 
    min-width: 100%;             
    padding: 18px; 
    margin-bottom: 0; 
    border: 1px solid #e5e5e5; 
    background: #fff;
    font-size: 16px;
    color: #333;
    box-sizing: border-box; 
    outline: none;
    transition: border 0.1s ease;
}

.pt-input:focus {
    border: 2px solid #000;
    padding: 17px; 
}

.pt-login-button {
    width: 100%;
    background-color: #000;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    padding: 20px; 
    border: none;
    cursor: pointer;
    font-size: 16px;
    letter-spacing: 1px;
    transition: background 0.3s;
}
.pt-login-button:hover {
    background-color: #333;
    color: #fff;
}

.pt-forgot-row {
    text-align: left;
    margin-top: -10px;
    margin-bottom: 30px;
}
.pt-forgot-row a {
    font-size: 14px;
    color: #666;
    text-decoration: underline;
    font-weight: 600;
}
.pt-forgot-row a:hover { color: #000; }

.pt-signup-row {
    margin-top: 25px;
    font-size: 15px;
}
.pt-signup-row a {
    color: #000;
    text-decoration: underline;
    font-weight: 600;
}


/* ========================================================= */
/* 4. MOBILE LOGIN TWEAKS (Full Width Forced Expansion)      */
/* ========================================================= */

@media only screen and (max-width: 600px) {
    /* 1. Force structural containers to edge-to-edge */
    #primary.pt-account-page-wrapper,
    #primary.pt-account-page-wrapper .site-main,
    .pt-account-page-wrapper.grid-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 !important;
        display: block !important;
    }

    /* 2. Remove the 650px constraint on the login box container */
    .pt-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 3. Style the login wrapper to touch the screen edges */
    .pt-custom-login-wrapper,
    .pt-custom-register-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 40px 20px !important; /* Internal breathing room */
        box-sizing: border-box !important;
        border-radius: 0 !important;
        margin: 0 !important;
        background: #f9f9f9; /* Maintain your light grey background */
    }

    /* 4. Text & Heading Adjustments for smaller screens */
    .pt-custom-login-wrapper h2, 
    .pt-custom-register-wrapper h2 {
        font-size: 28px !important;
        margin-bottom: 25px !important;
    }
    
    /* 5. Theme specific grid fix (GeneratePress/OceanWP) */
    .grid-container {
        max-width: 100% !important;
        padding: 0 !important;
    }
}


/* ========================================= */
/* MOBILE OVERRIDE: FORCE PARENT EXPANSION   */
/* ========================================= */

@media only screen and (max-width: 600px) {
    /* 1. Force the theme's structural containers to be full width */
    #primary.pt-account-page-wrapper,
    #primary.pt-account-page-wrapper .site-main {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 !important;
        display: block !important;
    }

    /* 2. Remove the 650px constraint on the login container */
    .pt-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 3. Ensure the wrapper fills the space and touches the edges */
    .pt-custom-login-wrapper,
    .pt-custom-register-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 40px 20px !important; /* Internal padding for the form fields */
        box-sizing: border-box !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }
    
    /* 4. Fix for themes like GeneratePress/OceanWP that use grid-container */
    .grid-container {
        max-width: 100% !important;
        padding: 0 !important;
    }
}

/* ========================================================= */
/* 5. DASHBOARD CARD GRID — see section at bottom of file    */
/* ========================================================= */


/* ========================================================= */
/* 6. ACCOUNT DETAILS FORM POLISH                            */
/* ========================================================= */

.woocommerce-EditAccountForm {
    background: #fff;
    max-width: 800px; 
}

.woocommerce-EditAccountForm label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase; 
    letter-spacing: 0.5px;
}

.woocommerce-EditAccountForm input.input-text {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    color: #333;
    font-size: 1rem;
    box-sizing: border-box;
    margin-bottom: 5px;
    border-radius: 0; 
    transition: all 0.2s ease;
}

.woocommerce-EditAccountForm input.input-text:focus {
    border-color: #000;
    outline: none;
}

.woocommerce-EditAccountForm fieldset {
    margin-top: 40px;
    padding: 30px;
    border: 1px solid #eee;
    background-color: #f9f9f9; 
}

.woocommerce-EditAccountForm fieldset legend {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #000;
    padding: 0 10px;
    background: transparent;
}

.woocommerce-EditAccountForm .woocommerce-Button.button {
    background-color: #000;
    color: #fff;
    padding: 18px 40px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 20px;
    width: auto; 
    display: inline-block;
}

.woocommerce-EditAccountForm .woocommerce-Button.button:hover {
    background-color: #333;
    color: #fff !important; 
}

.woocommerce-EditAccountForm p.form-row { margin-bottom: 25px; }

@media (min-width: 768px) {
    .woocommerce-EditAccountForm .form-row-first,
    .woocommerce-EditAccountForm .form-row-last {
        width: 48%;
        float: left;
        margin-right: 4%;
    }
    .woocommerce-EditAccountForm .form-row-last { margin-right: 0; }
    .woocommerce-EditAccountForm .form-row-wide { clear: both; }
}


/* ========================================================= */
/* 7. TITLES, NAV & SELFRIDGES SIDEBAR                       */
/* ========================================================= */

.woocommerce-account h2, 
.woocommerce-account h3 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.5rem;
    margin-bottom: 20px;
    margin-top: 0;
    color: #000;
    border-bottom: 1px solid #000; 
    padding-bottom: 10px;
    display: inline-block;
}


/* ========================================================= */
/* 8. PAYMENT METHODS STYLES                                 */
/* ========================================================= */

/* 1. Style the "Add payment method" button (Empty State) */
.woocommerce-MyAccount-payment-methods .button {
    display: inline-block !important; 
    background-color: #000 !important;
    color: #fff !important;
    width: 100%; 
    padding: 20px;
    font-weight: 700 !important;
    text-transform: uppercase;
    border: none !important;
    border-radius: 0 !important;
    font-size: 1rem;
    text-align: center;
    text-decoration: none !important;
    transition: background 0.3s;
    margin-top: 20px;
}

.woocommerce-MyAccount-payment-methods .button:hover {
    background-color: #333 !important;
    color: #fff !important;
}

/* 2. The Form Container (Once button is clicked or if injected) */
.woocommerce-account #payment {
    background: #fff;
    border-radius: 0;
    margin-top: 30px;
}

.woocommerce-account #payment ul.payment_methods {
    border: 1px solid #eee;
    padding: 0 !important;
    list-style: none !important;
    margin-bottom: 20px;
}

.woocommerce-account #payment ul.payment_methods li {
    padding: 20px;
    border-bottom: 1px solid #eee;
    background-color: #f9f9f9; 
    display: flex;
    align-items: center;
}

/* 3. The Submit Button inside the form */
.woocommerce-account #payment #place_order {
    background-color: #000 !important;
    color: #fff !important;
    width: 100%;
    padding: 20px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    float: none; 
    display: block;
}

.woocommerce-account #payment #place_order:hover {
    background-color: #333 !important;
}


/* ========================================================= */
/* 9. ORDERS PAGE (Cards + Status)                           */
/* ========================================================= */

.woocommerce-orders-table {
    border: none;
    border-collapse: separate;
    border-spacing: 0 15px; 
}

.woocommerce-orders-table thead th {
    border-bottom: none;
    font-size: 0.85rem;
    color: #999; 
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 20px;
}

.woocommerce-orders-table tbody tr {
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03); 
    border: 1px solid #eee;
    transition: transform 0.2s ease;
}

.woocommerce-orders-table tbody tr:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.woocommerce-orders-table td {
    padding: 20px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    font-size: 0.95rem;
    color: #333;
}

.woocommerce-orders-table td:first-child {
    border-left: 1px solid #eee;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}
.woocommerce-orders-table td:last-child {
    border-right: 1px solid #eee;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    text-align: right;
}

.woocommerce-orders-table__cell-order-number a {
    font-family: "Courier New", monospace; 
    font-weight: 700;
    color: #000;
    font-size: 1.1rem;
    text-decoration: none;
}

.woocommerce-orders-table__cell-order-status {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #000;
}
.woocommerce-orders-table__cell-order-status::before { display: none; }

.woocommerce-orders-table .woocommerce-button.button.view {
    background-color: #000 !important;
    color: #fff !important;
    padding: 10px 25px !important;
    border-radius: 50px !important; 
    font-size: 0.75rem !important;
    text-transform: uppercase;
    font-weight: 700;
    border: none !important;
    display: inline-block;
}

.woocommerce-orders-table .woocommerce-button.button.view:hover {
    background-color: #444 !important;
}

/* Mobile Orders */
@media only screen and (max-width: 768px) {
    .woocommerce-orders-table thead { display: none; }
    .woocommerce-orders-table tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        background: #fff;
        padding: 20px;
        position: relative;
    }
    .woocommerce-orders-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none !important; 
        padding: 8px 0;
        text-align: right;
    }
    .woocommerce-orders-table td::before {
        content: attr(data-title);
        font-weight: 700;
        color: #999;
        text-transform: uppercase;
        font-size: 0.75rem;
        float: left;
    }
    .woocommerce-orders-table__cell-order-number {
        border-bottom: 1px solid #eee !important;
        padding-bottom: 15px !important;
        margin-bottom: 10px;
    }
    .woocommerce-orders-table__cell-order-actions {
        margin-top: 15px;
        padding-top: 0 !important;
    }
    .woocommerce-orders-table .woocommerce-button.button.view {
        width: 100%;
        text-align: center;
        padding: 15px !important;
        border-radius: 4px !important; 
    }
}


/* ========================================================= */
/* 10. ADDRESSES PAGE (Classy Card Layout)                   */
/* ========================================================= */

/* 1. The Container (Strict Side-by-Side) */
.u-columns.woocommerce-Addresses.col2-set.addresses {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; 
    justify-content: space-between !important;
    align-items: stretch !important; 
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. The Card (Calculated Width + Room for Button) */
.u-columns.woocommerce-Addresses.col2-set.addresses .u-column1,
.u-columns.woocommerce-Addresses.col2-set.addresses .u-column2 {
    width: calc(50% - 15px) !important;
    flex: 0 0 calc(50% - 15px) !important; 
    
    background: #fff;
    border: 1px solid #e0e0e0;
    
    /* Padding: Top/Sides 30px, Bottom 100px (Space for button) */
    padding: 30px 30px 100px 30px; 
    
    position: relative; /* Crucial for positioning button */
    
    box-shadow: 0 5px 15px rgba(0,0,0,0.03); 
    border-radius: 4px;
    float: none !important; 
    margin: 0 !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Hover Effect: Lift Card */
.u-columns.woocommerce-Addresses .u-column1:hover,
.u-columns.woocommerce-Addresses .u-column2:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: #000;
    transition: all 0.2s ease;
}

/* 3. The Header (Title Only - Line Removed) */
.woocommerce-Address-title {
    display: block !important;
    border: none !important; /* ✅ REMOVED THICK LINE */
    margin-bottom: 15px;
    padding-bottom: 0;
    width: 100%;
}

.woocommerce-Address-title h3 {
    margin: 0 !important;
    padding: 0 !important;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.6rem; /* Bigger, bolder title */
    font-weight: 800;
    text-transform: uppercase;
    color: #000;
    float: none !important;
}

/* 4. The Button (Pinned to Bottom Row) */
.woocommerce-Address-title .edit {
    position: absolute;
    bottom: 30px; 
    left: 30px; 
    right: 30px; /* Spans full width minus padding */
    
    background: #000;
    color: #fff !important;
    text-align: center;
    padding: 18px 0; /* Large height */
    
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    border-radius: 2px; /* Slight edge */
    transition: background 0.3s;
}

.woocommerce-Address-title .edit:hover {
    background: #333;
}

/* 5. Address Text (Subtext Row 2) */
.woocommerce-Address address {
    font-style: normal;
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* 6. Mobile Stack */
@media only screen and (max-width: 768px) {
    .u-columns.woocommerce-Addresses.col2-set.addresses {
        flex-direction: column !important;
        gap: 20px;
    }
    .u-columns.woocommerce-Addresses.col2-set.addresses .u-column1,
    .u-columns.woocommerce-Addresses.col2-set.addresses .u-column2 {
        width: 100% !important;
        flex: 0 0 100% !important;
    }
}


/* ========================================================= */
/* 11. DOWNLOADS & EMPTY STATE                               */
/* ========================================================= */

/* ✅ CLEANED: Removed the .woocommerce-info block */
/* This allows Global Notifications to style the "No downloads" box. */

/* 3. DOWNLOADS TABLE STYLING */
.woocommerce-table--order-downloads {
    border: none;
    border-collapse: separate;
    border-spacing: 0 15px;
    width: 100%;
}

.woocommerce-table--order-downloads thead th {
    border-bottom: none;
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 20px;
    text-align: left;
}

.woocommerce-table--order-downloads tbody tr {
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid #eee;
    transition: transform 0.2s ease;
}

.woocommerce-table--order-downloads tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.woocommerce-table--order-downloads td {
    padding: 20px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    font-size: 0.95rem;
    color: #333;
}

.woocommerce-table--order-downloads td:first-child {
    border-left: 1px solid #eee;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}
.woocommerce-table--order-downloads td:last-child {
    border-right: 1px solid #eee;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.woocommerce-table--order-downloads .woocommerce-MyAccount-downloads-file {
    background-color: #000;
    color: #fff !important;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    border-radius: 50px; 
    display: inline-block;
}

.woocommerce-table--order-downloads .woocommerce-MyAccount-downloads-file:hover {
    background-color: #444;
}

/* Mobile Downloads Cards */
@media only screen and (max-width: 768px) {
    .woocommerce-table--order-downloads thead { display: none; }
    
    .woocommerce-table--order-downloads tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        background: #fff;
        padding: 20px;
    }

    .woocommerce-table--order-downloads td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none !important;
        padding: 10px 0;
        text-align: right;
    }

    .woocommerce-table--order-downloads td::before {
        content: attr(data-title);
        font-weight: 700;
        color: #999;
        text-transform: uppercase;
        font-size: 0.75rem;
        float: left;
    }
    
    .woocommerce-table--order-downloads .woocommerce-MyAccount-downloads-file {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}


/* ========================================================= */
/* 12. SINGLE ORDER VIEW (Receipt Style)                     */
/* ========================================================= */

/* 1. "ORDER DETAILS" Heading */
.woocommerce-order-details__title {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 40px;
    margin-bottom: 25px;
    color: #000;
    letter-spacing: 0.5px;
}

/* 2. The Product Table */
.woocommerce-table.woocommerce-table--order-details {
    border: 1px solid #eee;
    margin-bottom: 40px;
    border-radius: 4px;
    border-collapse: separate; 
    border-spacing: 0;
    overflow: hidden; /* Ensures corners stay rounded */
    width: 100%;
}

/* Table Header */
.woocommerce-table.woocommerce-table--order-details thead th {
    background-color: #f9f9f9; /* Light clean grey */
    color: #000;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}

/* Product Rows */
.woocommerce-table.woocommerce-table--order-details tbody td {
    padding: 20px;
    border-bottom: 1px solid #eee;
    color: #555;
    vertical-align: middle;
    font-size: 0.95rem;
}

/* ✅ FIX RED LINKS (Product Names) */
.woocommerce-table.woocommerce-table--order-details td a {
    color: #000 !important; /* Force Black */
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
}
.woocommerce-table.woocommerce-table--order-details td a:hover {
    opacity: 0.7;
    text-decoration: none;
}

/* 3. The Totals Section (Footer) */
.woocommerce-table.woocommerce-table--order-details tfoot th {
    color: #000;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
    text-align: right; /* Labels to the right */
    width: 70%; /* Give space to the label */
}

.woocommerce-table.woocommerce-table--order-details tfoot td {
    color: #000;
    font-weight: 700;
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
    text-align: right; /* Numbers to the right */
}

/* The Grand Total Row (Make it POP) */
.woocommerce-table.woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-table.woocommerce-table--order-details tfoot tr:last-child td {
    background-color: #f9f9f9; /* Highlight background */
    font-size: 1.1rem; 
    color: #000;
    border-top: 2px solid #000; /* Black separator line */
    font-weight: 800;
}


/* 4. ADDRESS CARDS (Billing/Shipping at bottom of order) */
/* Reuse the card look */
.woocommerce-customer-details address {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03); 
    border-radius: 4px;
    font-style: normal;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
}

/* The Titles ("Billing Address") */
.woocommerce-column__title {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #000;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* Layout: Force side-by-side on desktop */
@media (min-width: 768px) {
    .woocommerce-customer-details .woocommerce-columns {
        display: flex;
        gap: 30px;
    }
    .woocommerce-customer-details .woocommerce-column {
        flex: 1; /* 50/50 split */
    }
}


/* 5. "ORDER AGAIN" BUTTON */
.order-again {
    margin-top: 30px;
}
.order-again .button {
    background-color: #000 !important;
    color: #fff !important;
    width: 100%; /* Full width bar */
    text-transform: uppercase;
    font-weight: 700;
    padding: 20px;
    border-radius: 2px;
    text-align: center;
    display: block;
    transition: background 0.3s;
}
.order-again .button:hover {
    background-color: #333 !important;
}



/* ========================================================= */
/* 13. ITEM "ORDER AGAIN" (Physical 3-Column Layout)         */
/* ========================================================= */

/* 1. Header & Cells Alignment */
.woocommerce-table--order-details th.product-action,
.woocommerce-table--order-details td.product-action {
    width: 140px; /* Fixed width for the button column */
    text-align: center;
    vertical-align: middle;
}

/* 2. Button Style - UPDATED SPECIFICITY */
/* We added 'table a' to the selector so it beats the general link color rule */
table.woocommerce-table--order-details td a.pt-item-buy-again {
    display: block; 
    background-color: #000 !important; /* Force Black Background */
    color: #fff !important; /* Force White Text */
    font-size: 0.7rem; 
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
    padding: 10px 0;
    width: 100%;
    text-align: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1;
    border: 1px solid #000;
    white-space: nowrap;
}

/* Hover State */
table.woocommerce-table--order-details td a.pt-item-buy-again:hover {
    background-color: #fff !important; 
    color: #000 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 3. Totals Column (Now just Price) */
.woocommerce-table--order-details td.product-total {
    text-align: right;
    font-weight: 700;
    color: #000;
    vertical-align: middle;
}

/* 4. Footer Totals */
.woocommerce-table--order-details tfoot th {
    text-align: right;
    padding-right: 20px; 
}

/* 5. Mobile Responsiveness */
@media only screen and (max-width: 600px) {
    .woocommerce-table--order-details thead {
        display: none;
    }

    .woocommerce-table--order-details tr {
        display: flex;
        flex-direction: column;
        border: 1px solid #eee;
        margin-bottom: 20px;
        padding: 20px;
        border-radius: 4px;
    }

    .woocommerce-table--order-details td {
        display: block;
        width: 100% !important;
        text-align: left;
        padding: 10px 0;
        border: none;
    }

    /* Add Labels via CSS */
    .woocommerce-table--order-details td.product-action::before {
        content: "Action:";
        font-weight: 700;
        margin-bottom: 5px;
        display: block;
        color: #999;
        font-size: 0.75rem;
        text-transform: uppercase;
    }

    .woocommerce-table--order-details td.product-total {
        text-align: left;
        font-size: 1.1rem;
    }
    .woocommerce-table--order-details td.product-total::before {
        content: "Total:";
        font-weight: 700;
        margin-right: 5px;
        display: inline-block;
        color: #999;
        font-size: 0.75rem;
        text-transform: uppercase;
    }
}


/* ========================================================= */
/* 14. EDIT ADDRESS FORM (/edit-address/billing/)            */
/* ========================================================= */

/* The Form Container */
.woocommerce-address-fields {
    background: #fff;
    max-width: 800px; /* Keep it readable, not full width */
    margin-bottom: 40px;
}

/* Titles */
.woocommerce-address-fields h3 {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000;
}

/* Input Fields (Reuse your global input styles) */
.woocommerce-address-fields input.input-text,
.woocommerce-address-fields select {
    padding: 15px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0;
    height: 50px; /* Uniform height */
}

.woocommerce-address-fields input.input-text:focus,
.woocommerce-address-fields select:focus {
    border-color: #000;
    outline: none;
}

/* Save Address Button */
.woocommerce-address-fields button[name="save_address"] {
    background-color: #000 !important;
    color: #fff !important;
    padding: 18px 40px !important;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
    transition: background 0.3s;
}

.woocommerce-address-fields button[name="save_address"]:hover {
    background-color: #333 !important;
}


/* ========================================================= */
/* 15. ADD PAYMENT METHOD FORM (/add-payment-method/)        */
/* ========================================================= */

/* The Form Wrapper */
#add_payment_method {
    background: #fff;
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    max-width: 800px;
}

/* Payment Box (Looks like checkout) */
#add_payment_method #payment {
    background: #f9f9f9;
    border-radius: 4px;
    padding: 20px;
}

#add_payment_method #payment ul.payment_methods {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

/* The "Add Payment Method" Button */
#add_payment_method #place_order {
    background-color: #000 !important;
    color: #fff !important;
    width: 100%;
    padding: 20px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 20px;
    border: none;
    cursor: pointer;
}

#add_payment_method #place_order:hover {
    background-color: #333 !important;
}


/* ========================================================= */
/* 16. DASHBOARD TEXT & LINKS (Refined)                      */
/* ========================================================= */

/* 1. The "Hello [Name]" Paragraph -> Looks like a Title */
.woocommerce-MyAccount-content > p:first-child {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.8rem;      /* Large like an H1/H2 */
    font-weight: 800;       /* Extra Bold */
    text-transform: uppercase;
    color: #000;
    
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #000; /* The Signature Black Line */
    line-height: 1.2;
}

/* 2. The "Log out" link inside the Hello title (RED) */
.woocommerce-MyAccount-content > p:first-child a {
    font-size: 0.9rem;      /* Smaller than the Hello text */
    font-weight: 700;
    color: #D00 !important; /* RED as requested */
    text-decoration: none;
    text-transform: uppercase;
    margin-left: 10px;
    letter-spacing: 0.5px;
}
.woocommerce-MyAccount-content > p:first-child a:hover {
    text-decoration: underline;
    color: #000 !important;
}

/* 3. Description Text ("From your account dashboard...") */
.woocommerce-MyAccount-content > p:nth-child(2) {
    font-size: 1.05rem;       /* Slightly larger for readability */
    line-height: 1.8;         /* Relaxed spacing */
    color: #555;              /* Dark Grey (Not harsh black) */
    margin-bottom: 40px;
    max-width: 800px;
}

/* 4. Links in Description (Bold Black) */
.woocommerce-MyAccount-content > p:nth-child(2) a {
    color: #000 !important;         /* Jet Black Text */
    font-weight: 800 !important;    /* Extra Bold */
    text-decoration: none !important; /* Remove default underline */
    
    /* Custom Underline Style */
    border-bottom: 2px solid #e0e0e0; 
    padding-bottom: 2px;            /* Spacing between text and line */
    transition: all 0.2s ease;      /* Smooth animation */
}

/* 5. Link Hover State */
.woocommerce-MyAccount-content > p:nth-child(2) a:hover {
    color: #000 !important;
    border-bottom-color: #000;      /* Line turns black */
    background-color: #f4f4f4;      /* Subtle grey highlight background */
    border-radius: 2px;
}

/* ========================================================= */
/* 17. DASHBOARD TEXT & LINKS (Refined & Fixed)              */
/* ========================================================= */

/* 1. The "Hello [Name]" Paragraph -> Looks like a Title */
/* ✅ UPDATED: Used :first-of-type to ignore the notices div */
.woocommerce-MyAccount-content > p:first-of-type {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.8rem;      /* Large like an H1/H2 */
    font-weight: 800;       /* Extra Bold */
    text-transform: uppercase;
    color: #000;
    
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #000; /* The Signature Black Line */
    line-height: 1.2;
}

/* 2. The "Log out" link inside the Hello title (RED) */
.woocommerce-MyAccount-content > p:first-of-type a {
    font-size: 0.9rem;      /* Smaller than the Hello text */
    font-weight: 700;
    color: #D00 !important; /* RED as requested */
    text-decoration: none;
    text-transform: uppercase;
    margin-left: 10px;
    letter-spacing: 0.5px;
}
.woocommerce-MyAccount-content > p:first-of-type a:hover {
    text-decoration: underline;
    color: #000 !important;
}

/* 3. General Dashboard Text ("From your account dashboard...") */
/* ✅ UPDATED: Used :nth-of-type(2) to target the second paragraph correctly */
.woocommerce-MyAccount-content > p:nth-of-type(2) {
    font-size: 1.05rem;       /* Slightly larger for readability */
    line-height: 1.8;         /* Relaxed spacing */
    color: #555;              /* Dark Grey (Not harsh black) */
    margin-bottom: 40px;
    max-width: 800px;
}

/* 4. The Links inside the text (Orders, Addresses, Account Details) */
.woocommerce-MyAccount-content > p:nth-of-type(2) a {
    color: #000 !important;         /* Jet Black Text */
    font-weight: 800 !important;    /* Extra Bold */
    text-decoration: none !important; /* Remove default underline */
    
    /* Custom Underline Style */
    border-bottom: 2px solid #e0e0e0; 
    padding-bottom: 2px;            /* Spacing between text and line */
    transition: all 0.2s ease;      /* Smooth animation */
}

/* 5. Link Hover State */
.woocommerce-MyAccount-content > p:nth-of-type(2) a:hover {
    color: #000 !important;
    border-bottom-color: #000;      /* Line turns black */
    background-color: #f4f4f4;      /* Subtle grey highlight background */
    border-radius: 2px;
}


/* Forum Activity Tab Polish */
.woocommerce-MyAccount-content h2 {
    display: block !important;
    width: 100%;
    margin-bottom: 40px !important;
    padding-bottom: 20px;
}

.woocommerce-MyAccount-content h3 {
    display: block !important;
    width: 100%;
    clear: both;
    margin-top: 40px;
}


/* Account Forum Notifications */
.pt-notification-item {
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pt-notification-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: #000;
}

/* ========================================= */
/* 18. FORUM PROFILE AVATAR BUTTON           */
/* ========================================= */

.woocommerce-EditAccountForm .pt-upload-btn.small {
    /* REMOVED 'display: inline-block !important' so JS can hide it */
    
    background-color: #009715 !important; /* Force Green */
    color: #fff !important;
    
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    
    padding: 8px 15px !important;
    border: none !important;
    border-radius: 2px !important;
    
    cursor: pointer;
    margin-top: 10px;
    width: auto !important; 
    line-height: 1;
    transition: opacity 0.2s ease;
    box-shadow: none !important;
}

.woocommerce-EditAccountForm .pt-upload-btn.small:hover {
    opacity: 0.7; 
    background-color: #009715 !important;
    color: #fff !important;
    transform: none !important;
}


/* ========================================= */
/* 19. MY BUILDS TAB (Scrollable List View)  */
/* ========================================= */

.pt-builds-title {
    margin-bottom: 25px;
    border-bottom: 3px solid #000; /* Thicker line */
    padding-bottom: 15px;
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* The Container - Now a Scrollable Vertical Stack */
.pt-builds-grid {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    gap: 20px;
    
    /* Scroll Logic */
    max-height: 700px;      /* Maximum height before scrolling starts */
    overflow-y: auto;       /* Enable vertical scrolling */
    padding-right: 15px;    /* Space for scrollbar so content doesn't touch it */
    padding-bottom: 10px;   /* Bottom breathing room */
}

/* Custom Scrollbar Styling (Webkit Browsers) */
.pt-builds-grid::-webkit-scrollbar {
    width: 8px;
}
.pt-builds-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.pt-builds-grid::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
.pt-builds-grid::-webkit-scrollbar-thumb:hover {
    background: #000;
}

/* The Card Wrapper */
.pt-build-card {
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
    min-height: 160px; /* Fixed height for consistency */
    flex-shrink: 0;    /* Prevent squishing in flex container */
}

.pt-build-card:hover {
    border-color: #000;
}

/* The Link - Force Side-by-Side Layout */
.pt-build-link {
    text-decoration: none;
    color: inherit;
    display: flex;       /* Enable Flexbox */
    flex-direction: row; /* Horizontal Layout */
    align-items: stretch;
    height: 100%;
}

/* Thumbnail (Left Side) */
.pt-build-thumb {
    width: 240px;        /* Fixed width for image column */
    height: auto;        /* Stretch height */
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;      /* Do not shrink image */
    border-right: 1px solid #eee; /* Separator line */
}

.pt-build-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.pt-build-card:hover .pt-build-img {
    transform: scale(1.05);
}

.pt-build-icon {
    font-size: 3rem;
    opacity: 0.3;
}

/* Content (Right Side) */
.pt-build-info {
    padding: 25px;
    flex-grow: 1; /* Take remaining width */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
}

/* Status Badges */
.pt-status-badge {
    font-size: 0.7rem;
    padding: 5px 10px;
    border-radius: 2px;
    text-transform: uppercase;
    font-weight: 800;
    color: #fff;
    background: #000;
    display: inline-block;
    margin-bottom: 12px;
    align-self: flex-start;
    letter-spacing: 0.5px;
}

/* Re-using status colors */
.pt-status-planning { background: #6c757d !important; }
.pt-status-wrenching { background: #ffc107 !important; color: #000 !important; }
.pt-status-tuning { background: #17a2b8 !important; }
.pt-status-track { background: #28a745 !important; }
.pt-status-broken { background: #dc3545 !important; }
.pt-status-completed { background: #000 !important; }

/* Text Styles */
.pt-build-name {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #000;
    line-height: 1.2;
}

.pt-build-vehicle {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

/* Empty State */
.pt-empty-state {
    text-align: center;
    padding: 60px 40px;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px dashed #ccc;
}

/* Mobile Response: Stack them back to vertical on phones */
@media (max-width: 600px) {
    .pt-build-link { flex-direction: column; }
    .pt-build-thumb { width: 100%; height: 200px; border-right: none; border-bottom: 1px solid #eee; }
    .pt-build-info { padding: 20px; }
}


/* ========================================= */
/* 20. ACTIVITY TAB (Gapped Cards Layout)    */
/* ========================================= */

.pt-activity-heading {
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #000;
}

/* Outer Wrapper - Transparent now to show gaps */
.pt-activity-table-wrap {
    border: none;
    background: transparent;
    margin-bottom: 30px;
}

/* RESET TABLE to FLEX Layout */
.activity-table {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: none !important;
    margin: 0 !important;
}

/* 1. HEADER (Desktop) */
.activity-table thead {
    display: flex;
    width: 100%;
    /* Transparent background to float above cards */
    background-color: transparent; 
    border-bottom: none;
    padding-right: 6px; 
    box-sizing: border-box;
    margin-bottom: 10px;
}

.activity-table thead tr {
    display: flex;
    width: 100%;
}

.activity-table thead th {
    padding: 0 15px; /* Less padding for header */
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: #999; /* Light grey labels like screenshot */
    border: none;
    text-align: left;
    display: block;
}

/* 2. BODY (Scrollable Container) */
.activity-table tbody {
    display: block;
    
    /* ✅ CHANGED: Lowered from 500px to 350px so it scrolls sooner */
    max-height: 350px; 
    
    overflow-y: auto; /* Vertical Scroll */
    width: 100%;
    /* Add padding to container so shadows don't get cut off */
    padding: 5px; 
    box-sizing: border-box;
}

/* Scrollbar Styling */
.activity-table tbody::-webkit-scrollbar { width: 6px; }
.activity-table tbody::-webkit-scrollbar-track { background: transparent; }
.activity-table tbody::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 3px; }
.activity-table tbody::-webkit-scrollbar-thumb:hover { background: #000; }

/* 3. ROWS (The Cards with Gaps) */
.activity-table tbody tr {
    display: flex;
    width: 100%;
    background: #fff;
    
    /* THE GAPS & BORDERS */
    margin-bottom: 15px; 
    border: 1px solid #eee;
    border-radius: 0px; /* Sharp corners or 4px if you prefer rounded */
    box-shadow: 0 2px 5px rgba(0,0,0,0.03); /* Subtle lift */
    
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.activity-table tbody tr:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: #000; /* Black border on hover */
    z-index: 2;
}

/* Underline title on hover */
.activity-table tbody tr:hover .pt-activity-link {
    text-decoration: underline;
}

.activity-table tbody td {
    padding: 20px; /* Generous padding */
    font-size: 0.95rem;
    color: #000; /* Bold Black Text */
    border: none;
    display: flex;
    align-items: center;
}

/* 4. COLUMNS (Desktop Widths) */
.col-main { flex: 0 0 55%; max-width: 55%; }
.col-mid  { flex: 0 0 20%; max-width: 20%; }
.col-end  { flex: 0 0 25%; max-width: 25%; justify-content: flex-end; text-align: right; }

.activity-table tbody td.col-end {
    color: #555; /* Slightly lighter for date */
    font-weight: 500;
}

/* Link Styling */
.pt-activity-link {
    font-weight: 800; /* Extra Bold like screenshot */
    color: #000;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Clickable Overlay */
.pt-activity-link::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

/* ================================================= */
/* MOBILE OVERRIDE: STACKED CARDS                    */
/* ================================================= */
@media (max-width: 768px) {
    
    .pt-activity-table-wrap {
        margin-bottom: 20px;
    }

    /* 1. Mobile Scroll & Stack */
    .activity-table tbody {
        /* You can lower this too if you want it tighter on mobile */
        max-height: 450px; 
        padding: 5px; 
        background: transparent;
        display: flex;
        flex-direction: column;
        gap: 0; /* Margin bottom handles gap */
    }

    /* Hide Desktop Header */
    .activity-table thead { display: none !important; }

    /* 2. Mobile Card Style */
    .activity-table tbody tr {
        flex-direction: column;
        /* Same card style as desktop */
        background: #fff;
        border: 1px solid #eee;
        box-shadow: 0 2px 5px rgba(0,0,0,0.03);
        margin-bottom: 20px; /* Big gap */
        padding: 20px;
        flex-shrink: 0; 
    }

    /* 3. Cells inside Card */
    .col-main, .col-mid, .col-end {
        flex: 0 0 auto !important;
        max-width: 100% !important;
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: right;
        padding: 10px 0 !important;
        border-bottom: 1px solid #f5f5f5 !important;
    }

    /* Remove bottom border from last item */
    .col-end { border-bottom: none !important; }

    /* 4. Labels */
    .col-main::before,
    .col-mid::before,
    .col-end::before {
        content: attr(data-title);
        font-weight: 700;
        color: #999;
        text-transform: uppercase;
        font-size: 0.75rem;
        margin-right: 15px;
        white-space: nowrap;
    }

    /* Link Wrapping */
    .pt-activity-link {
        white-space: normal;
        text-align: right;
        line-height: 1.4;
    }
}


/* =========================================================
   ACCOUNT DASHBOARD — CARD GRID
   ========================================================= */

/* Greeting strip */
.pt-dashboard-greeting {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid #f0f0f0;
}

/* 2-column grid */
.pt-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

/* Individual card */
.pt-dashboard-card {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    overflow: hidden;
    border-top: 3px solid #111;
    transition: box-shadow 0.15s;
}

.pt-dashboard-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

/* Group accent colours */
.pt-card-personal    { border-top-color: #111; }
.pt-card-marketplace { border-top-color: #16a34a; }
.pt-card-community   { border-top-color: #2563eb; }
.pt-card-settings    { border-top-color: #6b7280; }

/* Card header row */
.pt-card-header {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 16px 18px 13px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #555;
    border-bottom: 1px solid #f4f4f4;
    background: #fafafa;
}

/* Item list */
.pt-card-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pt-card-items li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    border-bottom: 1px solid #f7f7f7;
    color: #222;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.12s, color 0.12s;
}

.pt-card-items li:last-child a {
    border-bottom: none;
}

.pt-card-items li a:hover {
    background: #fef2f2;
    color: #e60000;
}

.pt-card-marketplace .pt-card-items li a:hover { background: #f0fdf4; color: #16a34a; }
.pt-card-marketplace .pt-card-item-badge { background: #16a34a; }
.pt-card-community   .pt-card-items li a:hover { background: #eff6ff; color: #2563eb; }
.pt-card-settings    .pt-card-items li a:hover { background: #f9fafb; color: #374151; }

/* Label wrapper (icon + text) */
.pt-card-item-label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Unread count badge */
.pt-card-item-badge {
    background: #e60000;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Chevron arrow */
.pt-card-chevron {
    color: #d0d0d0;
    flex-shrink: 0;
}

/* Responsive: single column on narrow screens */
@media (max-width: 700px) {
    .pt-dashboard-cards {
        grid-template-columns: 1fr;
    }
}

/* ---- Breadcrumb / back nav on inner account pages ---- */
.pt-account-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    font-size: 0.8rem;
    color: #aaa;
}

.pt-account-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.15s;
}

.pt-account-back:hover { color: #e60000; }
.pt-account-back svg  { flex-shrink: 0; }

.pt-breadcrumb-sep     { color: #ccc; }
.pt-breadcrumb-current { color: #888; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---- All account pages: remove sidebar, full-width content ---- */
/* Navigation is handled by the dashboard card grid instead */
body.woocommerce-account .woocommerce-MyAccount-navigation {
    display: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    border-left: none !important;
}

/* ---- Shop card ---- */
.pt-card-shop { border-top-color: #d97706; }
.pt-card-shop .pt-card-items li a:hover { background: #fffbeb; color: #d97706; }

/* ---- Settings: full-width horizontal strip ---- */
.pt-card-full { grid-column: 1 / -1; }
.pt-card-full .pt-card-items {
    display: flex;
    flex-direction: row;
}
.pt-card-full .pt-card-items li { flex: 1; }
.pt-card-full .pt-card-items li a {
    border-bottom: none;
    border-right: 1px solid #f7f7f7;
    justify-content: center;
    padding: 14px 20px;
}
.pt-card-full .pt-card-items li:last-child a { border-right: none; }

/* ---- Sub-page card wrapper (all inner account pages) ---- */
body.woocommerce-account:not(.pt-account-dashboard) .woocommerce-MyAccount-content {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    padding: 28px 32px;
    border-top: 3px solid #111;
}

/* ---- Sub-page section headings ---- */
body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3 {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #555;
    border-bottom: 1px solid #f0f0f0 !important;
    padding-bottom: 14px !important;
    margin-bottom: 20px !important;
    margin-top: 0 !important;
    display: block !important;
    font-family: inherit !important;
}

/* ---- Orders table ---- */
.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.woocommerce-orders-table th {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #555;
    padding: 10px 14px;
    border-bottom: 2px solid #ebebeb;
    text-align: left;
    background: none;
}
.woocommerce-orders-table td {
    padding: 14px;
    border-bottom: 1px solid #f5f5f5;
    color: #333;
    vertical-align: middle;
}
.woocommerce-orders-table tr:last-child td { border-bottom: none; }
.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a {
    font-size: 0.78rem;
    font-weight: 600;
    color: #333;
    border: 1px solid #e0e0e0;
    padding: 5px 12px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.12s;
}
.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a:hover {
    border-color: #111;
    color: #111;
}

/* ---- WC account buttons ---- */
body.woocommerce-account .woocommerce-MyAccount-content .button,
body.woocommerce-account .woocommerce-MyAccount-content button[type="submit"] {
    background: #111 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 22px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px !important;
    text-decoration: none;
    display: inline-block;
    transition: background 0.15s;
    cursor: pointer;
}
body.woocommerce-account .woocommerce-MyAccount-content .button:hover,
body.woocommerce-account .woocommerce-MyAccount-content button[type="submit"]:hover {
    background: #e60000 !important;
    color: #fff !important;
}

@media (max-width: 700px) {
    .pt-card-full .pt-card-items { flex-direction: column; }
    .pt-card-full .pt-card-items li a { border-right: none; border-bottom: 1px solid #f7f7f7; }
    body.woocommerce-account:not(.pt-account-dashboard) .woocommerce-MyAccount-content {
        padding: 20px 16px;
    }
}

/* =============================================================
   ACCOUNT SUBPAGES — OVERHAUL STYLES
   ============================================================= */

/* ---- Sign Out ---- */
.pt-dashboard-signout { margin-top: 20px; }
.pt-signout-link {
    display: flex; align-items: center; gap: 10px; justify-content: center;
    padding: 14px 24px; border: 1px solid #e0e0e0; border-radius: 6px;
    color: #666; font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; text-decoration: none; transition: all 0.15s; background: #fafafa;
}
.pt-signout-link:hover { border-color: #e60000; color: #e60000; background: #fff5f5; }

/* ---- Shared utilities ---- */
.pt-btn-outline {
    display: inline-block; padding: 7px 16px; border: 1px solid #ddd; border-radius: 4px;
    font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    color: #333; text-decoration: none; transition: all 0.12s;
}
.pt-btn-outline:hover { border-color: #111; color: #111; }
.pt-btn-sm {
    display: inline-block; padding: 5px 12px; font-size: 0.75rem; font-weight: 600;
    border: 1px solid #ddd; border-radius: 3px; text-decoration: none; color: #333;
    background: #fff; cursor: pointer; transition: all 0.12s;
}
.pt-btn-sm:hover { border-color: #111; color: #111; }
.pt-btn-ghost { background: none; border-color: transparent; color: #999; }
.pt-btn-ghost:hover { color: #e60000; border-color: transparent; background: none; }
.pt-subpage-heading {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 14px; border-bottom: 1px solid #f0f0f0; margin-bottom: 24px;
}
.pt-subpage-heading h2 {
    font-size: 0.82rem !important; font-weight: 700 !important; text-transform: uppercase;
    letter-spacing: 0.08em; color: #333; margin: 0 !important;
    border-bottom: none !important; padding-bottom: 0 !important;
}
.pt-no-data { color: #999; font-size: 0.9rem; }

/* ---- Forum Profile form ---- */
.pt-form-section {
    padding: 20px; background: #f9f9f9; border: 1px solid #e8e8e8;
    border-radius: 6px; margin-bottom: 24px;
}
.pt-form-section-label {
    font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.07em; color: #333; margin-bottom: 6px;
}
.pt-form-section-desc { font-size: 0.82rem; color: #666; margin-bottom: 12px; }
.pt-toggle-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; }
.pt-profile-live-badge { margin-top: 10px; font-size: 0.82rem; }
.pt-avatar-row { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 24px; }
.pt-avatar-preview { text-align: center; }
.pt-avatar-preview label {
    display: block; margin-bottom: 10px; font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em; color: #555;
}
.pt-avatar-upload { flex: 1; }
.pt-form-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.pt-form-field { margin-bottom: 20px; }
.pt-form-field label {
    display: block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: #555; margin-bottom: 6px;
}
.pt-form-field input,
.pt-form-field textarea,
.pt-form-field select { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 0.875rem; }

/* ---- Garage ---- */
.pt-garage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 32px; }
.pt-garage-card {
    border: 1px solid #ebebeb; border-radius: 8px; border-top: 3px solid #d97706;
    padding: 16px; background: #fff;
}
.pt-garage-type-badge {
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: #d97706; margin-bottom: 6px;
}
.pt-garage-title { font-size: 1rem; font-weight: 700; color: #111; margin: 0 0 4px; }
.pt-garage-notes { font-size: 0.82rem; color: #666; margin: 4px 0 12px; }
.pt-garage-remove {
    font-size: 0.75rem; color: #aaa; cursor: pointer; text-decoration: underline;
    background: none; border: none; padding: 0;
}
.pt-garage-remove:hover { color: #e60000; }
.pt-garage-add-form { border: 1px dashed #ddd; border-radius: 8px; padding: 24px; }
.pt-garage-add-form h3 {
    font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.07em; color: #555; margin: 0 0 16px;
}
.pt-garage-form-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px; margin-bottom: 16px;
}
.pt-garage-form-grid input,
.pt-garage-form-grid select { width: 100%; padding: 9px 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 0.82rem; }

/* ---- My Builds ---- */
.pt-builds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.pt-build-card {
    display: block; border: 1px solid #ebebeb; border-radius: 8px; overflow: hidden;
    text-decoration: none; color: inherit; transition: box-shadow 0.15s;
}
.pt-build-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.pt-build-thumb {
    height: 160px; background: #f5f5f5; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.pt-build-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pt-build-thumb-icon { color: #ccc; }
.pt-build-body { padding: 14px 16px; }
.pt-build-title { font-size: 0.95rem; font-weight: 700; color: #111; margin: 6px 0 4px; }
.pt-build-meta { font-size: 0.75rem; color: #888; }
.pt-build-status {
    display: inline-block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; padding: 2px 8px; border-radius: 3px;
}
.pt-status-planning  { background: #f3f4f6; color: #6b7280; }
.pt-status-wrenching { background: #fef3c7; color: #d97706; }
.pt-status-tuning    { background: #eff6ff; color: #2563eb; }
.pt-status-track     { background: #f0fdf4; color: #16a34a; }
.pt-status-broken    { background: #fff1f2; color: #e11d48; }
.pt-status-completed { background: #111;    color: #fff;    }

/* ---- Forum Activity ---- */
.pt-activity-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pt-activity-col-header {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    color: #555; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; margin-bottom: 4px;
}
.pt-activity-row {
    display: flex; align-items: center; gap: 12px; padding: 11px 0;
    border-bottom: 1px solid #f9f9f9; text-decoration: none; color: inherit;
}
.pt-activity-row:last-child { border-bottom: none; }
.pt-activity-row:hover .pt-activity-row-title { color: #e60000; }
.pt-activity-row-main { flex: 1; min-width: 0; }
.pt-activity-row-title {
    display: block; font-size: 0.875rem; font-weight: 600; color: #111;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pt-activity-row-meta { display: block; font-size: 0.75rem; color: #888; margin-top: 2px; }
.pt-activity-row-date { font-size: 0.72rem; color: #aaa; flex-shrink: 0; }
@media (max-width: 700px) { .pt-activity-cols { grid-template-columns: 1fr; } }

/* ---- Bookmarks ---- */
.pt-bookmark-list { border: 1px solid #f0f0f0; border-radius: 6px; overflow: hidden; }
.pt-bookmark-row {
    display: flex; align-items: center; gap: 16px; padding: 14px 16px;
    border-bottom: 1px solid #f5f5f5; background: #fff;
}
.pt-bookmark-row:last-child { border-bottom: none; }
.pt-bookmark-main { flex: 1; min-width: 0; }
.pt-bookmark-title { font-size: 0.9rem; font-weight: 700; color: #111; text-decoration: none; }
.pt-bookmark-title:hover { color: #e60000; }
.pt-bookmark-meta { font-size: 0.75rem; color: #888; margin-top: 3px; }
.pt-bookmark-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ---- My Tribes ---- */
.pt-tribes-section { margin-bottom: 36px; }
.pt-tribes-section-label {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    color: #555; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; margin-bottom: 16px;
}
.pt-tribes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.pt-tribe-card {
    display: block; border: 1px solid #ebebeb; border-radius: 8px; overflow: hidden;
    text-decoration: none; color: inherit; transition: box-shadow 0.15s;
}
.pt-tribe-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.pt-tribe-thumb {
    height: 100px; background: #f5f5f5; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.pt-tribe-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pt-tribe-body { padding: 12px 14px; }
.pt-tribe-name { font-size: 0.9rem; font-weight: 700; color: #111; margin-bottom: 4px; }
.pt-tribe-meta { font-size: 0.75rem; color: #888; }
.pt-tribe-role-badge {
    display: inline-block; font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    padding: 2px 7px; border-radius: 3px; margin-top: 6px;
}
.pt-badge-owner { background: #111; color: #fff; }

/* ---- Notifications ---- */
.pt-notif-list { border: 1px solid #f0f0f0; border-radius: 6px; overflow: hidden; }
.pt-notif-item {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px;
    border-bottom: 1px solid #f5f5f5; text-decoration: none; color: inherit;
    background: #fff; transition: background 0.12s;
    position: relative;
}
.pt-notif-item:last-child { border-bottom: none; }
.pt-notif-item:hover { background: #fafafa; }
/* Unread state */
.pt-notif-item.is-unread { background: #fffbf0; }
.pt-notif-item.is-unread:hover { background: #fff8e6; }
.pt-notif-item.is-unread::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px; background: #e60000; border-radius: 3px 0 0 3px;
}
/* Unread dot on icon */
.pt-notif-unread-dot {
    position: absolute; top: -2px; right: -2px;
    width: 9px; height: 9px; border-radius: 50%;
    background: #e60000; border: 2px solid #fff;
}
.pt-notif-icon {
    width: 36px; height: 36px; border-radius: 50%; background: #f5f5f5;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    position: relative;
}
/* Legacy type classes */
.pt-notif-type-forum    .pt-notif-icon { background: #eff6ff; color: #2563eb; }
.pt-notif-type-message  .pt-notif-icon { background: #fff7ed; color: #d97706; }
.pt-notif-type-offer    .pt-notif-icon { background: #fff1f2; color: #e11d48; }
.pt-notif-type-follower .pt-notif-icon { background: #f0fdf4; color: #16a34a; }
/* New notification type icon colours */
.pt-notif-type-order_processing .pt-notif-icon,
.pt-notif-type-order_complete   .pt-notif-icon { background: #f0fdf4; color: #16a34a; }
.pt-notif-type-order_hold       .pt-notif-icon { background: #fffbeb; color: #b45309; }
.pt-notif-type-order_cancelled  .pt-notif-icon { background: #fff1f2; color: #be123c; }
.pt-notif-type-order_refunded   .pt-notif-icon { background: #faf5ff; color: #7c3aed; }
.pt-notif-type-id_approved      .pt-notif-icon { background: #f0fdf4; color: #15803d; }
.pt-notif-type-id_rejected      .pt-notif-icon { background: #fff1f2; color: #e11d48; }
.pt-notif-type-new_follow       .pt-notif-icon { background: #eff6ff; color: #2563eb; }
.pt-notif-type-new_message      .pt-notif-icon { background: #fff7ed; color: #d97706; }
.pt-notif-type-feedback         .pt-notif-icon { background: #fefce8; color: #ca8a04; }
.pt-notif-type-listing_approved .pt-notif-icon { background: #f0fdf4; color: #15803d; }
.pt-notif-type-listing_rejected .pt-notif-icon { background: #fff1f2; color: #e11d48; }
.pt-notif-type-forum_reply      .pt-notif-icon { background: #eff6ff; color: #2563eb; }
.pt-notif-body { flex: 1; min-width: 0; }
.pt-notif-text { display: block; font-size: 0.875rem; color: #333; }
.pt-notif-body-text { display: block; font-size: 0.8rem; color: #666; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-notif-time { display: block; font-size: 0.75rem; color: #aaa; margin-top: 2px; }
.pt-notif-type-badge {
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    padding: 2px 7px; border-radius: 10px; background: #f0f0f0; color: #666; flex-shrink: 0;
}
/* Type badge colours matching icon palette */
.pt-notif-type-order_processing .pt-notif-type-badge,
.pt-notif-type-order_complete   .pt-notif-type-badge,
.pt-notif-type-id_approved      .pt-notif-type-badge,
.pt-notif-type-listing_approved .pt-notif-type-badge { background: #dcfce7; color: #15803d; }
.pt-notif-type-order_hold       .pt-notif-type-badge { background: #fef3c7; color: #b45309; }
.pt-notif-type-order_cancelled  .pt-notif-type-badge,
.pt-notif-type-id_rejected      .pt-notif-type-badge,
.pt-notif-type-listing_rejected .pt-notif-type-badge { background: #fee2e2; color: #be123c; }
.pt-notif-type-order_refunded   .pt-notif-type-badge { background: #f3e8ff; color: #7c3aed; }
.pt-notif-type-new_follow       .pt-notif-type-badge,
.pt-notif-type-forum_reply      .pt-notif-type-badge { background: #dbeafe; color: #2563eb; }
.pt-notif-type-new_message      .pt-notif-type-badge { background: #ffedd5; color: #d97706; }
.pt-notif-type-feedback         .pt-notif-type-badge { background: #fef9c3; color: #ca8a04; }
/* Verify email banner */
.pt-verify-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background: #1a1a1a; color: #fff; text-align: center;
    padding: 12px 20px; font-size: 0.875rem;
}
.pt-verify-banner a { color: #facc15; text-decoration: underline; }

/* ---- Saved Listings ---- */
.pt-saved-listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.pt-saved-listing-card { border: 1px solid #ebebeb; border-radius: 8px; overflow: hidden; background: #fff; }
.pt-saved-listing-thumb { height: 160px; background: #f5f5f5; overflow: hidden; }
.pt-saved-listing-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pt-saved-listing-body { padding: 14px 16px; }
.pt-saved-listing-title {
    font-size: 0.9rem; font-weight: 700; color: #111; text-decoration: none;
    display: block; margin-bottom: 4px;
}
.pt-saved-listing-title:hover { color: #e60000; }
.pt-saved-listing-price { font-size: 1rem; font-weight: 700; color: #111; }
.pt-saved-listing-meta { font-size: 0.75rem; color: #888; margin-top: 4px; }
.pt-saved-listing-actions { display: flex; gap: 8px; margin-top: 12px; }

/* ---- My Listings table ---- */
.pt-listings-table { width: 100%; }
.pt-listing-item-cell { display: flex; align-items: center; gap: 12px; }
.pt-listing-thumb-img { width: 50px; height: 50px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.pt-listing-title { font-weight: 700; color: #111; text-decoration: none; }
.pt-listing-title:hover { color: #e60000; }
.pt-listing-views-cell { color: #666; font-size: 0.85rem; }
.pt-mark-sold-btn {
    background: none; border: none; color: #d00; text-decoration: underline;
    cursor: pointer; padding: 0; font-size: inherit;
}
.pt-mark-sold-btn:hover { color: #900; }
.pt-listing-completed { color: #999; font-size: 0.8rem; }

/* =============================================================
   SELLER DASHBOARD
   ============================================================= */

.pt-seller-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.pt-seller-stat-card {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    padding: 20px;
    border-top: 3px solid #16a34a;
    cursor: pointer;
    transition: box-shadow 0.15s, border-color 0.15s, transform 0.1s;
    user-select: none;
}
.pt-seller-stat-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}
.pt-seller-stat-card.pt-kpi-selected {
    border-color: #16a34a;
    box-shadow: 0 0 0 2px rgba(22,163,74,0.18), 0 4px 16px rgba(22,163,74,0.1);
}
.pt-seller-stat-card.pt-kpi-selected .pt-seller-stat-label {
    color: #16a34a;
}
.pt-seller-stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #888;
    margin-bottom: 8px;
}
.pt-seller-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #111;
    line-height: 1;
}
.pt-seller-stat-value .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; color: inherit; }
.pt-seller-stat-sub { font-size: 0.75rem; color: #aaa; margin-top: 4px; }

.pt-seller-listings-section,
.pt-seller-convs-section { margin-bottom: 36px; }

.pt-seller-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #555;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 16px;
}

.pt-seller-table { width: 100%; border-collapse: collapse; }
.pt-seller-table th {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    padding: 8px 12px;
    border-bottom: 2px solid #f0f0f0;
    text-align: left;
    white-space: nowrap;
}
.pt-seller-table td {
    padding: 12px;
    border-bottom: 1px solid #f7f7f7;
    vertical-align: middle;
    font-size: 0.875rem;
    color: #333;
}
.pt-seller-table tr:last-child td { border-bottom: none; }
.pt-seller-table tr:hover td { background: #fafafa; }
.pt-seller-listing-cell { display: flex; align-items: center; gap: 12px; }
.pt-seller-listing-cell img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.pt-seller-listing-title { font-weight: 700; color: #111; text-decoration: none; }
.pt-seller-listing-title:hover { color: #16a34a; }

.pt-seller-conv-list { border: 1px solid #f0f0f0; border-radius: 6px; overflow: hidden; }
.pt-seller-conv-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid #f5f5f5;
    background: #fff;
}
.pt-seller-conv-row:last-child { border-bottom: none; }
.pt-seller-conv-main { flex: 1; min-width: 0; }
.pt-seller-conv-listing {
    font-size: 0.72rem;
    font-weight: 600;
    color: #16a34a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}
.pt-seller-conv-from { font-size: 0.875rem; font-weight: 700; color: #111; }
.pt-seller-conv-preview { font-size: 0.8rem; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-seller-conv-meta { font-size: 0.72rem; color: #aaa; flex-shrink: 0; text-align: right; }

/* Chart section */
.pt-seller-chart-section {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    padding: 20px 24px 24px;
    margin-bottom: 32px;
}
.pt-seller-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.pt-seller-chart-legend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 16px;
}
.pt-seller-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.pt-seller-date-btns { display: flex; gap: 4px; }
.pt-seller-date-btn {
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    transition: all 0.12s;
}
.pt-seller-date-btn:hover { border-color: #111; color: #111; background: #fff; }
.pt-seller-date-btn.pt-sdb-active { background: #111; color: #fff; border-color: #111; }
.pt-seller-chart-wrap { position: relative; height: 240px; }
.pt-seller-chart-wrap canvas { max-height: 240px; }

/* Sortable table headers */
.pt-seller-table th.pt-sortable { white-space: nowrap; user-select: none; }
.pt-seller-table th.pt-sortable:hover { color: #111; cursor: pointer; }
.pt-sort-icon { font-size: 0.65rem; opacity: 0.4; margin-left: 3px; }
.pt-seller-table th.pt-sortable:hover .pt-sort-icon { opacity: 1; }

@media (max-width: 700px) {
    .pt-seller-kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .pt-seller-table { display: block; overflow-x: auto; }
    .pt-seller-chart-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* Global clear-filter pill */
#pt-global-clear-filter {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(90px);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #111;
    color: #fff;
    border-radius: 30px;
    padding: 11px 20px 11px 18px;
    box-shadow: 0 6px 28px rgba(0,0,0,0.28);
    font-size: 0.82rem;
    font-weight: 600;
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), opacity 0.22s ease;
    pointer-events: none;
    white-space: nowrap;
}
#pt-global-clear-filter.pt-gcf-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
}
.pt-gcf-label {
    color: rgba(255,255,255,0.55);
    font-weight: 400;
    font-size: 0.78rem;
}
#pt-gcf-btn {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    border-radius: 20px;
    padding: 4px 14px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background 0.15s;
    line-height: 1.5;
}
#pt-gcf-btn:hover {
    background: rgba(255,255,255,0.26);
}


/* ==========================================================================
   ID VERIFICATION PAGE  (/my-account/id-verification/)
   ========================================================================== */
.pt-verif-page { max-width: 680px; }

.pt-verif-header { margin-bottom: 32px; }
.pt-verif-title  { font-size: 1.4rem; font-weight: 800; color: #111; margin: 0 0 10px; }
.pt-verif-intro  { font-size: 0.9rem; color: #666; line-height: 1.6; margin: 0; }

/* Status banners */
.pt-verif-status {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 24px;
    border-radius: 4px;
    margin-bottom: 28px;
    border-left: 4px solid currentColor;
}
.pt-verif-status--approved { background: #f0fdf4; color: #16a34a; }
.pt-verif-status--pending  { background: #fffbeb; color: #d97706; }
.pt-verif-status--rejected { background: #fff1f2; color: #e11d48; }

.pt-verif-status-icon {
    font-size: 1.2rem;
    font-weight: 900;
    flex-shrink: 0;
    margin-top: 2px;
}
.pt-verif-status strong { display: block; font-size: 0.9rem; font-weight: 800; margin-bottom: 4px; }
.pt-verif-status p      { margin: 0; font-size: 0.85rem; opacity: 0.85; }

/* Upload box */
.pt-verif-upload-box {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 28px 24px;
}
.pt-verif-upload-title    { font-size: 1rem; font-weight: 800; color: #111; margin: 0 0 10px; }
.pt-verif-upload-box > p  { font-size: 0.85rem; color: #666; margin: 0 0 20px; }
.pt-verif-file-input      { display: block; margin-bottom: 14px; font-size: 0.85rem; }
.pt-verif-security-note   { font-size: 0.75rem; color: #999; margin: 0 0 18px; }
.pt-verif-submit          { font-weight: 700; }