/* =============================================================
 * MY ACCOUNT — clean single-navigation layout (ASBD 1.7.3)
 *
 * .asbd-account-shell / .asbd-account-side (the old two-column layout with the
 * left menu) are intentionally ABSENT: that sidebar is what duplicated the
 * navigation. Everything below is the new one-column shell.
 * ============================================================= */

body.woocommerce-account { background: #f6f7f9 !important; }

.asbd-acct {
    max-width: 1040px;
    margin: 28px auto 56px;
    padding: 0 16px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
}
.asbd-acct *, .asbd-acct *::before, .asbd-acct *::after { box-sizing: border-box; }

/* ---------- profile header ---------- */
.asbd-acct-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 14px;
}
.asbd-acct-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.asbd-acct-avatar img {
    width: 54px; height: 54px;
    border-radius: 50%;
    border: 2px solid #81d742;
    display: block;
}
.asbd-acct-who { min-width: 0; }
.asbd-acct-hi {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #16a34a;
    margin-bottom: 2px;
}
.asbd-acct-who h2 {
    margin: 0;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 800;
    color: #111827;
    word-break: break-word;
}
.asbd-acct-who p {
    margin: 2px 0 0;
    font-size: 12.5px;
    color: #6b7280;
    word-break: break-all;
}
.asbd-acct-actions { display: flex; gap: 8px; flex-shrink: 0; }
.asbd-acct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    border: 1px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
}
.asbd-acct-btn-solid { background: #81d742; color: #0b2e00 !important; }
.asbd-acct-btn-solid:hover { background: #6fc133; }
.asbd-acct-btn-ghost { background: #fff; color: #374151 !important; border-color: #e5e7eb; }
.asbd-acct-btn-ghost:hover { background: #f3f4f6; }

/* ---------- the ONLY navigation: horizontal tabs ---------- */
.asbd-acct-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 6px;
    margin-bottom: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.asbd-acct-tabs::-webkit-scrollbar { display: none; }
.asbd-acct-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    color: #4b5563 !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.asbd-acct-tab:hover { background: #f3f4f6; color: #111827 !important; }
.asbd-acct-tab.is-active { background: #eaf9dd; color: #15803d !important; }
.asbd-acct-tab-ico { display: inline-flex; }
.asbd-acct-tab-ico svg {
    width: 17px; height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.asbd-acct-tab.is-logout { margin-left: auto; color: #b91c1c !important; }
.asbd-acct-tab.is-logout:hover { background: #fef2f2; }

/* ---------- content card ---------- */
.asbd-acct-body {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
}
.asbd-acct-pagehead { margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid #f1f5f9; }
.asbd-acct-pagehead h1 { margin: 0; font-size: 20px; font-weight: 800; color: #111827; }
.asbd-acct-content > *:first-child { margin-top: 0; }
.asbd-acct-content h2, .asbd-acct-content h3 { color: #111827; }

/* WooCommerce defaults that used to be styled by the old sidebar rules */
.asbd-acct-content .woocommerce-MyAccount-content { width: 100% !important; float: none !important; }
.asbd-acct-content table.shop_table { border-radius: 10px; overflow: hidden; }
.asbd-acct-content .woocommerce-Button,
.asbd-acct-content .button {
    background: #81d742 !important;
    color: #0b2e00 !important;
    border-radius: 9px !important;
    font-weight: 700 !important;
    padding: 10px 18px !important;
    border: 0 !important;
}

/* ---------- responsive ---------- */
@media (max-width: 782px) {
    .asbd-acct { margin: 16px auto 40px; padding: 0 12px; }
    .asbd-acct-head { padding: 14px; border-radius: 14px; }
    .asbd-acct-avatar img { width: 46px; height: 46px; }
    .asbd-acct-who h2 { font-size: 17px; }
    .asbd-acct-actions { width: 100%; }
    .asbd-acct-actions .asbd-acct-btn { flex: 1 1 0; }
    .asbd-acct-body { padding: 14px; border-radius: 14px; }
    .asbd-acct-tab { padding: 8px 12px; font-size: 13px; }
    .asbd-acct-tab.is-logout { margin-left: 0; }
}
@media (max-width: 420px) {
    .asbd-acct-tab-txt { display: none; }
    .asbd-acct-tab { padding: 10px 12px; }
    .asbd-acct-tab-ico svg { width: 19px; height: 19px; }
}

/* =============================================================
 * DASHBOARD BLOCK — moved verbatim out of
 * woocommerce/myaccount/dashboard.php's inline <style> (1.7.3).
 * Same declarations; only indentation was normalised.
 * ============================================================= */

/* =============================================================
 * MY ACCOUNT DASHBOARD CSS (100% Fixed)
 * ============================================================= */
 .asbd-account-dashboard {
 background: #fff !important;
 border-radius: 16px !important;
 padding: 24px !important;
 font-family: system-ui, -apple-system, sans-serif !important;
 }
 
 /* 1. Hero Section */
 .asbd-account-hero {
 display: flex !important;
 justify-content: space-between !important;
 align-items: center !important;
 background: #fffdf8 !important;
 border: 1px solid #f3e8d8 !important;
 border-radius: 16px !important;
 padding: 24px !important;
 margin-bottom: 24px !important;
 gap: 20px !important;
 flex-wrap: wrap !important;
 }
 .asbd-account-user { display: flex !important; align-items: center !important; gap: 16px !important; }
 .asbd-account-avatar-wrap img { width: 64px !important; height: 64px !important; border-radius: 50% !important; border: 2px solid #d89b2b !important; }
 .asbd-account-eyebrow { font-size: 11px !important; font-weight: 800 !important; color: #d89b2b !important; text-transform: uppercase !important; letter-spacing: 0.5px !important; margin-bottom: 4px !important; }
 .asbd-account-hero h2 { margin: 0 0 4px !important; font-size: 24px !important; font-weight: 800 !important; color: #1f2937 !important; }
 .asbd-account-hero p { margin: 0 !important; font-size: 14px !important; color: #6b7280 !important; max-width: 500px !important; }
 .asbd-account-hero-actions { display: flex !important; gap: 10px !important; }
 .asbd-btn { display: inline-flex !important; align-items: center !important; justify-content: center !important; padding: 10px 20px !important; border-radius: 8px !important; font-size: 14px !important; font-weight: 700 !important; text-decoration: none !important; transition: all 0.2s !important; }
 .asbd-btn-primary { background: #d89b2b !important; color: #fff !important; }
 .asbd-btn-primary:hover { background: #b87d1a !important; }
 .asbd-btn-light { background: #fff !important; color: #374151 !important; border: 1px solid #e5e7eb !important; }
 .asbd-btn-light:hover { background: #f3f4f6 !important; }
 /* 2. Stats Grid */
 .asbd-account-stats { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 16px !important; margin-bottom: 24px !important; }
 @media (max-width: 767px) { .asbd-account-stats { grid-template-columns: repeat(2, 1fr) !important; } }
 .asbd-stat-card { background: #fff !important; border: 1px solid #e5e7eb !important; border-radius: 12px !important; padding: 16px !important; text-decoration: none !important; display: flex !important; flex-direction: column !important; transition: all 0.2s !important; }
 .asbd-stat-card:hover { border-color: #d89b2b !important; box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important; }
 .asbd-stat-top { margin-bottom: 12px !important; }
 .asbd-stat-icon { display: inline-flex !important; align-items: center !important; justify-content: center !important; width: 36px !important; height: 36px !important; background: #fff7ed !important; border-radius: 8px !important; }
 .asbd-stat-icon svg { width: 18px !important; height: 18px !important; stroke: #d89b2b !important; fill: none !important; stroke-width: 2 !important; }
 .asbd-stat-number { font-size: 24px !important; font-weight: 800 !important; color: #1f2937 !important; line-height: 1 !important; margin-bottom: 4px !important; }
 .asbd-stat-label { margin: 0 !important; font-size: 13px !important; color: #6b7280 !important; font-weight: 600 !important; }
 /* 3. Main Grid */
 .asbd-account-main-grid { display: grid !important; grid-template-columns: 1.5fr 1fr !important; gap: 24px !important; }
 @media (max-width: 991px) { .asbd-account-main-grid { grid-template-columns: 1fr !important; } }
 .asbd-panel { background: #fff !important; border: 1px solid #e5e7eb !important; border-radius: 12px !important; padding: 20px !important; }
 .asbd-panel-head { display: flex !important; justify-content: space-between !important; align-items: flex-start !important; margin-bottom: 16px !important; padding-bottom: 16px !important; border-bottom: 1px solid #f3f4f6 !important; }
 .asbd-panel-title-wrap h3 { margin: 0 0 4px !important; font-size: 16px !important; font-weight: 800 !important; color: #1f2937 !important; }
 .asbd-panel-title-wrap p { margin: 0 !important; font-size: 12px !important; color: #6b7280 !important; }
 .asbd-panel-link { font-size: 12px !important; font-weight: 700 !important; color: #d89b2b !important; text-decoration: none !important; }
 /* Order Box (Recent Order) FIX */
 .asbd-order-box { padding: 10px 0 !important; }
 .asbd-order-meta { display: flex !important; justify-content: space-between !important; align-items: flex-start !important; margin-bottom: 16px !important; }
 .asbd-order-number { font-size: 15px !important; font-weight: 700 !important; color: #1f2937 !important; }
 .asbd-order-submeta { font-size: 12px !important; color: #6b7280 !important; margin-top: 2px !important; }
 .asbd-status-badge { background: #fef3c7 !important; color: #d97706 !important; padding: 4px 10px !important; border-radius: 99px !important; font-size: 11px !important; font-weight: 700 !important; }
 
 .asbd-order-products { display: flex !important; flex-direction: column !important; gap: 12px !important; margin-bottom: 16px !important; }
 .asbd-order-product { display: flex !important; align-items: center !important; gap: 12px !important; padding: 8px !important; background: #f9fafb !important; border: 1px solid #f3f4f6 !important; border-radius: 8px !important; }
 
 /* IMPORTANT FIX: Product Thumbnail */
 .asbd-order-product-thumb {
 width: 50px !important;
 height: 50px !important;
 min-width: 50px !important;
 max-width: 50px !important;
 border-radius: 6px !important;
 overflow: hidden !important;
 background: #fff !important;
 border: 1px solid #e5e7eb !important;
 display: block !important;
 }
 .asbd-order-product-thumb img {
 width: 100% !important;
 height: 100% !important;
 max-width: 100% !important;
 max-height: 100% !important;
 object-fit: contain !important;
 display: block !important;
 }
 
 .asbd-order-product-info { display: flex !important; flex-direction: column !important; gap: 2px !important; flex: 1 !important; min-width: 0 !important; }
 .asbd-order-product-name { font-size: 13px !important; font-weight: 600 !important; color: #1f2937 !important; line-height: 1.3 !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
 .asbd-order-product-qty { font-size: 11px !important; color: #6b7280 !important; }
 
 .asbd-order-footer { display: flex !important; justify-content: space-between !important; align-items: center !important; padding-top: 16px !important; border-top: 1px dashed #e5e7eb !important; }
 .asbd-order-total-label { display: block !important; font-size: 11px !important; color: #6b7280 !important; text-transform: uppercase !important; font-weight: 700 !important; }
 .asbd-order-total-value { display: block !important; font-size: 16px !important; font-weight: 800 !important; color: #1f2937 !important; }
 /* Empty State */
 .asbd-empty-state { text-align: center !important; padding: 30px 20px !important; }
 .asbd-empty-icon { width: 60px !important; height: 60px !important; background: #fff7ed !important; border-radius: 50% !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; margin-bottom: 16px !important; }
 .asbd-empty-icon svg { width: 28px !important; height: 28px !important; stroke: #d89b2b !important; fill: none !important; stroke-width: 2 !important; }
 .asbd-empty-state h4 { margin: 0 0 8px !important; font-size: 18px !important; color: #1f2937 !important; }
 .asbd-empty-state p { margin: 0 0 16px !important; font-size: 13px !important; color: #6b7280 !important; line-height: 1.5 !important; }
 /* Quick Actions */

 .asbd-action-icon { display: flex !important; align-items: center !important; justify-content: center !important; width: 36px !important; height: 36px !important; background: #fff !important; border-radius: 8px !important; border: 1px solid #e5e7eb !important; flex-shrink: 0 !important; }
 .asbd-action-icon svg { width: 18px !important; height: 18px !important; stroke: #d89b2b !important; fill: none !important; stroke-width: 2 !important; }
 .asbd-action-copy { display: flex !important; flex-direction: column !important; flex: 1 !important; }
 .asbd-action-copy strong { font-size: 13px !important; color: #1f2937 !important; font-weight: 700 !important; }
 .asbd-action-copy span { font-size: 11px !important; color: #6b7280 !important; }
 .asbd-action-arrow { color: #9ca3af !important; font-size: 18px !important; }
 /* Address Summary */
 .asbd-address-summary { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
 .asbd-address-card { background: #f9fafb !important; border: 1px solid #e5e7eb !important; border-radius: 10px !important; padding: 14px !important; display: flex !important; flex-direction: column !important; gap: 8px !important; }
 .asbd-mini-icon svg { width: 16px !important; height: 16px !important; stroke: #d89b2b !important; fill: none !important; stroke-width: 2 !important; }
 .asbd-address-card strong { font-size: 13px !important; color: #1f2937 !important; }
 .asbd-address-state { font-size: 11px !important; color: #ef4444 !important; font-weight: 600 !important; }
 .asbd-address-state.is-saved { color: #10b981 !important; }
 .asbd-dashboard-note { display: flex !important; gap: 12px !important; padding: 16px !important; background: #eff6ff !important; border: 1px solid #dbeafe !important; border-radius: 10px !important; margin-top: 20px !important; }
 .asbd-dashboard-note svg { width: 20px !important; height: 20px !important; stroke: #3b82f6 !important; fill: none !important; stroke-width: 2 !important; flex-shrink: 0 !important; }
 .asbd-dashboard-note div { font-size: 13px !important; color: #1e40af !important; line-height: 1.5 !important; }
