/* Phase 9D native Bupiz account */
body.bupiz-native-account{
    --p9d-dark:#14233b;
    --p9d-ink:#1d2939;
    --p9d-muted:#667085;
    --p9d-line:#e4e8ef;
    --p9d-soft:#f7f8fb;
    --p9d-pink:#e83e8c;
    --p9d-pink-soft:#fff1f7;
    --p9d-orange:#ff8400;
    --p9d-green:#168352;
    --p9d-shadow:0 18px 48px rgba(20,35,59,.08);
    background:var(--p9d-soft) !important;
}

body.bupiz-native-account .bupiz-p9d-container{
    width:min(1460px,calc(100% - 56px));
    margin-inline:auto;
}

body.bupiz-native-account .bupiz-p9d-account{
    min-height:70vh;
    background:var(--p9d-soft);
    color:var(--p9d-ink);
}

body.bupiz-native-account .bupiz-p9d-eyebrow{
    display:inline-block;
    margin:0 0 8px;
    color:var(--p9d-pink);
    font-size:11px;
    line-height:1.2;
    font-weight:800;
    letter-spacing:.12em;
    text-transform:uppercase;
}

/* Guest OTP entry */
body.bupiz-account-guest .bupiz-p9d-guest-hero{
    position:relative;
    overflow:hidden;
    padding:72px 0 66px;
    background:
        radial-gradient(circle at 84% 12%,rgba(232,62,140,.15),transparent 25%),
        radial-gradient(circle at 10% 100%,rgba(255,132,0,.10),transparent 28%),
        linear-gradient(135deg,#fff 0%,#fff7fb 50%,#f6f8fc 100%);
    border-bottom:1px solid var(--p9d-line);
}

body.bupiz-account-guest .bupiz-p9d-guest-grid{
    display:grid;
    grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr);
    align-items:center;
    gap:72px;
}

body.bupiz-account-guest .bupiz-p9d-guest-copy h1{
    max-width:680px;
    margin:0;
    color:var(--p9d-dark);
    font-size:clamp(42px,5vw,72px);
    line-height:1.02;
    letter-spacing:-.045em;
}

body.bupiz-account-guest .bupiz-p9d-guest-copy > p{
    max-width:650px;
    margin:22px 0 28px;
    color:var(--p9d-muted);
    font-size:18px;
    line-height:1.75;
}

body.bupiz-account-guest .bupiz-p9d-signin-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    min-height:54px;
    padding:0 28px;
    border:0;
    border-radius:14px;
    background:linear-gradient(135deg,var(--p9d-orange),#ff9e3d);
    color:#fff;
    font-size:15px;
    font-weight:800;
    box-shadow:0 14px 28px rgba(255,132,0,.22);
    cursor:pointer;
    transition:transform .2s ease,box-shadow .2s ease;
}

body.bupiz-account-guest .bupiz-p9d-signin-button:hover{
    transform:translateY(-2px);
    box-shadow:0 18px 34px rgba(255,132,0,.28);
}

body.bupiz-account-guest .bupiz-p9d-signin-button .dashicons{
    width:20px;
    height:20px;
    font-size:20px;
}

body.bupiz-account-guest .bupiz-p9d-guest-copy > small{
    display:block;
    max-width:600px;
    margin-top:14px;
    color:#7c8798;
    font-size:12px;
    line-height:1.6;
}

body.bupiz-account-guest .bupiz-p9d-guest-benefits{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
    padding:20px;
    border:1px solid rgba(255,255,255,.9);
    border-radius:26px;
    background:rgba(255,255,255,.78);
    box-shadow:var(--p9d-shadow);
    backdrop-filter:blur(12px);
}

body.bupiz-account-guest .bupiz-p9d-guest-benefits article{
    display:flex;
    gap:13px;
    min-height:144px;
    padding:20px;
    border:1px solid var(--p9d-line);
    border-radius:18px;
    background:#fff;
}

body.bupiz-account-guest .bupiz-p9d-guest-benefits .dashicons{
    flex:0 0 44px;
    width:44px;
    height:44px;
    display:grid;
    place-items:center;
    border-radius:13px;
    background:var(--p9d-pink-soft);
    color:var(--p9d-pink);
    font-size:20px;
}

body.bupiz-account-guest .bupiz-p9d-guest-benefits strong,
body.bupiz-account-guest .bupiz-p9d-guest-benefits small{
    display:block;
}

body.bupiz-account-guest .bupiz-p9d-guest-benefits strong{
    margin:2px 0 7px;
    color:var(--p9d-dark);
    font-size:14px;
}

body.bupiz-account-guest .bupiz-p9d-guest-benefits small{
    color:var(--p9d-muted);
    font-size:11px;
    line-height:1.55;
}

body.bupiz-account-guest .bupiz-p9d-guest-assurance{
    padding:22px 0;
    background:#fff;
    border-bottom:1px solid var(--p9d-line);
}

body.bupiz-account-guest .bupiz-p9d-guest-assurance .bupiz-p9d-container{
    display:flex;
    justify-content:center;
    gap:48px;
    flex-wrap:wrap;
}

body.bupiz-account-guest .bupiz-p9d-guest-assurance span{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:#475467;
    font-size:12px;
    font-weight:700;
}

body.bupiz-account-guest .bupiz-p9d-guest-assurance .dashicons{
    color:var(--p9d-green);
    font-size:17px;
}

/* Authenticated hero */
body.bupiz-account-authenticated .bupiz-p9d-hero{
    position:relative;
    overflow:hidden;
    padding:32px 0;
    background:
        radial-gradient(circle at 92% 0,rgba(232,62,140,.12),transparent 25%),
        linear-gradient(135deg,#fff 0%,#fff9fc 58%,#f7f9fc 100%);
    border-bottom:1px solid var(--p9d-line);
}

body.bupiz-account-authenticated .bupiz-p9d-hero__inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:28px;
}

body.bupiz-account-authenticated .bupiz-p9d-user-block{
    display:flex;
    align-items:center;
    gap:18px;
    min-width:0;
}

body.bupiz-account-authenticated .bupiz-p9d-avatar{
    flex:0 0 66px;
    width:66px;
    height:66px;
    display:grid;
    place-items:center;
    border-radius:20px;
    background:linear-gradient(135deg,var(--p9d-dark),#2e4569);
    color:#fff;
    font-size:20px;
    font-weight:900;
    letter-spacing:.03em;
    box-shadow:0 12px 24px rgba(20,35,59,.18);
}

body.bupiz-account-authenticated .bupiz-p9d-user-block h1{
    margin:0;
    color:var(--p9d-dark);
    font-size:clamp(27px,3vw,42px);
    line-height:1.08;
    letter-spacing:-.035em;
}

body.bupiz-account-authenticated .bupiz-p9d-user-block p{
    margin:8px 0 0;
    color:var(--p9d-muted);
    font-size:13px;
}

body.bupiz-account-authenticated .bupiz-p9d-hero__identity{
    flex:0 0 auto;
    max-width:330px;
    padding:14px 18px;
    border:1px solid #eadde5;
    border-radius:14px;
    background:rgba(255,255,255,.85);
    text-align:right;
}

body.bupiz-account-authenticated .bupiz-p9d-hero__identity strong,
body.bupiz-account-authenticated .bupiz-p9d-hero__identity small{
    display:block;
}

body.bupiz-account-authenticated .bupiz-p9d-hero__identity strong{
    color:var(--p9d-dark);
    font-size:13px;
}

body.bupiz-account-authenticated .bupiz-p9d-hero__identity small{
    margin-top:5px;
    color:var(--p9d-muted);
    font-size:10px;
}

body.bupiz-account-authenticated .bupiz-p9d-hero__identity .dashicons{
    width:14px;
    height:14px;
    margin-right:4px;
    color:var(--p9d-green);
    font-size:14px;
    vertical-align:-2px;
}

/* Core account shell */
body.bupiz-account-authenticated .bupiz-p9d-account-body{
    padding-top:28px;
    padding-bottom:64px;
}

body.bupiz-account-authenticated .bupiz-p9d-account-body > .woocommerce{
    display:grid !important;
    grid-template-columns:276px minmax(0,1fr) !important;
    align-items:start !important;
    gap:26px !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
}

body.bupiz-account-authenticated .woocommerce-MyAccount-navigation{
    position:sticky !important;
    top:calc(var(--bupiz-sticky-space,84px) + 18px) !important;
    z-index:30;
    width:276px !important;
    min-width:276px !important;
    max-width:276px !important;
    margin:0 !important;
    padding:14px !important;
    border:1px solid var(--p9d-line) !important;
    border-radius:20px !important;
    background:#fff !important;
    box-shadow:0 10px 30px rgba(20,35,59,.06) !important;
    float:none !important;
}

body.bupiz-account-authenticated .woocommerce-MyAccount-content{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    float:none !important;
}

body.bupiz-account-authenticated .bupiz-p9d-navigation__close,
body.bupiz-account-authenticated .bupiz-p9d-navigation-backdrop,
body.bupiz-account-authenticated .bupiz-p9d-mobile-menu-button{
    display:none;
}

body.bupiz-account-authenticated .bupiz-p9d-navigation__profile{
    display:flex;
    align-items:center;
    gap:11px;
    padding:7px 7px 16px;
    margin-bottom:8px;
    border-bottom:1px solid var(--p9d-line);
}

body.bupiz-account-authenticated .bupiz-p9d-navigation__avatar{
    flex:0 0 42px;
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border-radius:13px;
    background:var(--p9d-pink-soft);
    color:var(--p9d-pink);
    font-size:13px;
    font-weight:900;
}

body.bupiz-account-authenticated .bupiz-p9d-navigation__profile strong,
body.bupiz-account-authenticated .bupiz-p9d-navigation__profile small{
    display:block;
}

body.bupiz-account-authenticated .bupiz-p9d-navigation__profile strong{
    overflow:hidden;
    color:var(--p9d-dark);
    font-size:12px;
    text-overflow:ellipsis;
    white-space:nowrap;
}

body.bupiz-account-authenticated .bupiz-p9d-navigation__profile small{
    margin-top:3px;
    color:#98a2b3;
    font-size:9px;
}

body.bupiz-account-authenticated .woocommerce-MyAccount-navigation ul{
    display:block;
    margin:0 !important;
    padding:0 !important;
    list-style:none !important;
}

body.bupiz-account-authenticated .woocommerce-MyAccount-navigation li{
    margin:0 0 4px !important;
    padding:0 !important;
    border:0 !important;
}

body.bupiz-account-authenticated .woocommerce-MyAccount-navigation li a{
    display:grid !important;
    grid-template-columns:28px minmax(0,1fr) 16px;
    align-items:center;
    min-height:46px !important;
    gap:8px;
    padding:8px 10px !important;
    border:1px solid transparent !important;
    border-radius:12px !important;
    background:transparent !important;
    color:#475467 !important;
    font-size:11px !important;
    font-weight:750 !important;
    text-decoration:none !important;
    box-shadow:none !important;
}

body.bupiz-account-authenticated .woocommerce-MyAccount-navigation li a > .dashicons:first-child{
    width:28px;
    height:28px;
    display:grid;
    place-items:center;
    border-radius:9px;
    background:#f2f4f7;
    color:#667085;
    font-size:15px;
}

body.bupiz-account-authenticated .woocommerce-MyAccount-navigation li a > i{
    width:16px;
    height:16px;
    color:#b2bac6;
    font-size:14px;
}

body.bupiz-account-authenticated .woocommerce-MyAccount-navigation li a:hover,
body.bupiz-account-authenticated .woocommerce-MyAccount-navigation li.is-active a{
    border-color:#f2d5e3 !important;
    background:var(--p9d-pink-soft) !important;
    color:var(--p9d-dark) !important;
    transform:none !important;
}

body.bupiz-account-authenticated .woocommerce-MyAccount-navigation li.is-active a > .dashicons:first-child{
    background:#fff;
    color:var(--p9d-pink);
}

body.bupiz-account-authenticated .woocommerce-MyAccount-navigation-link--customer-logout{
    margin-top:10px !important;
    padding-top:10px !important;
    border-top:1px solid var(--p9d-line) !important;
}

body.bupiz-account-authenticated .woocommerce-MyAccount-navigation-link--customer-logout a{
    color:#b42318 !important;
}

body.bupiz-account-authenticated .bupiz-p9d-navigation__seller{
    margin-top:14px;
    padding:13px 10px 8px;
    border-top:1px solid var(--p9d-line);
}

body.bupiz-account-authenticated .bupiz-p9d-navigation__seller-label{
    display:block;
    margin-bottom:8px;
    color:#98a2b3;
    font-size:8px;
    font-weight:800;
    letter-spacing:.1em;
    text-transform:uppercase;
}

body.bupiz-account-authenticated .bupiz-p9d-navigation__seller .bupiz-vendor-account-links{
    gap:4px !important;
}

body.bupiz-account-authenticated .bupiz-p9d-navigation__seller .bupiz-vendor-account-links a{
    min-height:auto !important;
    display:block !important;
    padding:5px 0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    color:#475467 !important;
    font-size:10px !important;
}

/* Shared content */
body.bupiz-account-authenticated .woocommerce-MyAccount-content h1,
body.bupiz-account-authenticated .woocommerce-MyAccount-content h2,
body.bupiz-account-authenticated .woocommerce-MyAccount-content h3,
body.bupiz-account-authenticated .woocommerce-MyAccount-content h4{
    color:var(--p9d-dark);
}

body.bupiz-account-authenticated .woocommerce-MyAccount-content .button,
body.bupiz-account-authenticated .woocommerce-MyAccount-content button.button,
body.bupiz-account-authenticated .woocommerce-MyAccount-content input.button{
    min-height:40px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:9px 16px !important;
    border:1px solid var(--p9d-orange) !important;
    border-radius:11px !important;
    background:var(--p9d-orange) !important;
    color:#fff !important;
    font-size:11px !important;
    font-weight:800 !important;
    text-decoration:none !important;
    box-shadow:none !important;
    transition:transform .18s ease,box-shadow .18s ease !important;
}

body.bupiz-account-authenticated .woocommerce-MyAccount-content .button:hover,
body.bupiz-account-authenticated .woocommerce-MyAccount-content button.button:hover,
body.bupiz-account-authenticated .woocommerce-MyAccount-content input.button:hover{
    transform:translateY(-1px) !important;
    box-shadow:0 10px 22px rgba(255,132,0,.18) !important;
}

body.bupiz-account-authenticated .woocommerce-MyAccount-content .woocommerce-message,
body.bupiz-account-authenticated .woocommerce-MyAccount-content .woocommerce-info,
body.bupiz-account-authenticated .woocommerce-MyAccount-content .woocommerce-error{
    margin:0 0 18px !important;
    padding:14px 16px 14px 48px !important;
    border:1px solid var(--p9d-line) !important;
    border-top:0 !important;
    border-radius:13px !important;
    background:#fff !important;
    box-shadow:none !important;
    color:#344054 !important;
    font-size:11px;
}

/* Dashboard */
body.bupiz-account-authenticated .bupiz-p9d-dashboard{
    display:grid;
    gap:18px;
}

body.bupiz-account-authenticated .bupiz-p9d-welcome-card{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    min-height:150px;
    padding:26px 28px;
    border:1px solid var(--p9d-line);
    border-radius:22px;
    background:
        radial-gradient(circle at 93% 0,rgba(232,62,140,.14),transparent 30%),
        linear-gradient(135deg,#fff 0%,#fff8fb 100%);
    box-shadow:0 12px 32px rgba(20,35,59,.05);
}

body.bupiz-account-authenticated .bupiz-p9d-welcome-card span{
    color:var(--p9d-pink);
    font-size:9px;
    font-weight:850;
    letter-spacing:.11em;
    text-transform:uppercase;
}

body.bupiz-account-authenticated .bupiz-p9d-welcome-card h2{
    margin:7px 0 8px;
    font-size:27px;
    line-height:1.08;
    letter-spacing:-.03em;
}

body.bupiz-account-authenticated .bupiz-p9d-welcome-card p{
    max-width:690px;
    margin:0;
    color:var(--p9d-muted);
    font-size:12px;
    line-height:1.7;
}

body.bupiz-account-authenticated .bupiz-p9d-stats{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:13px;
}

body.bupiz-account-authenticated .bupiz-p9d-stat-card{
    min-width:0;
    display:grid;
    grid-template-columns:42px minmax(0,1fr);
    grid-template-rows:auto auto;
    align-items:center;
    column-gap:12px;
    padding:17px;
    border:1px solid var(--p9d-line);
    border-radius:17px;
    background:#fff;
    text-decoration:none;
    box-shadow:0 8px 24px rgba(20,35,59,.04);
    transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}

body.bupiz-account-authenticated .bupiz-p9d-stat-card:hover{
    transform:translateY(-2px);
    border-color:#f2cadf;
    box-shadow:0 14px 30px rgba(20,35,59,.08);
}

body.bupiz-account-authenticated .bupiz-p9d-stat-card .dashicons{
    grid-row:1 / span 2;
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border-radius:12px;
    background:var(--p9d-pink-soft);
    color:var(--p9d-pink);
    font-size:19px;
}

body.bupiz-account-authenticated .bupiz-p9d-stat-card strong{
    overflow:hidden;
    color:var(--p9d-dark);
    font-size:20px;
    line-height:1.05;
    text-overflow:ellipsis;
    white-space:nowrap;
}

body.bupiz-account-authenticated .bupiz-p9d-stat-card small{
    margin-top:4px;
    color:#7b8596;
    font-size:9px;
    font-weight:700;
}

body.bupiz-account-authenticated .bupiz-p9d-dashboard-grid{
    display:grid;
    grid-template-columns:minmax(0,1.5fr) minmax(300px,.8fr);
    align-items:start;
    gap:18px;
}

body.bupiz-account-authenticated .bupiz-p9d-dashboard-side{
    display:grid;
    gap:18px;
}

body.bupiz-account-authenticated .bupiz-p9d-panel{
    border:1px solid var(--p9d-line);
    border-radius:20px;
    background:#fff;
    box-shadow:0 8px 24px rgba(20,35,59,.04);
}

body.bupiz-account-authenticated .bupiz-p9d-panel > header,
body.bupiz-account-authenticated .bupiz-p9d-section-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
}

body.bupiz-account-authenticated .bupiz-p9d-panel > header{
    padding:20px 22px;
    border-bottom:1px solid var(--p9d-line);
}

body.bupiz-account-authenticated .bupiz-p9d-panel > header span,
body.bupiz-account-authenticated .bupiz-p9d-section-head > div > span{
    color:var(--p9d-pink);
    font-size:8px;
    font-weight:850;
    letter-spacing:.1em;
    text-transform:uppercase;
}

body.bupiz-account-authenticated .bupiz-p9d-panel > header h3,
body.bupiz-account-authenticated .bupiz-p9d-section-head h2{
    margin:4px 0 0;
    color:var(--p9d-dark);
    line-height:1.15;
}

body.bupiz-account-authenticated .bupiz-p9d-panel > header h3{font-size:17px;}
body.bupiz-account-authenticated .bupiz-p9d-section-head h2{font-size:25px;letter-spacing:-.025em;}

body.bupiz-account-authenticated .bupiz-p9d-panel > header a,
body.bupiz-account-authenticated .bupiz-p9d-address-card footer a{
    color:var(--p9d-pink);
    font-size:10px;
    font-weight:800;
    text-decoration:none;
}

body.bupiz-account-authenticated .bupiz-p9d-recent-orders{
    padding:4px 22px 10px;
}

body.bupiz-account-authenticated .bupiz-p9d-recent-orders article{
    display:flex;
    justify-content:space-between;
    gap:18px;
    padding:16px 0;
    border-bottom:1px solid #eef1f4;
}

body.bupiz-account-authenticated .bupiz-p9d-recent-orders article:last-child{border-bottom:0;}

body.bupiz-account-authenticated .bupiz-p9d-recent-order__main{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
}

body.bupiz-account-authenticated .bupiz-p9d-order-icon{
    flex:0 0 40px;
    width:40px;
    height:40px;
    display:grid;
    place-items:center;
    border-radius:12px;
    background:#f2f4f7;
    color:#667085;
}

body.bupiz-account-authenticated .bupiz-p9d-order-icon .dashicons{
    width:18px;
    height:18px;
    font-size:18px;
}

body.bupiz-account-authenticated .bupiz-p9d-recent-order__main strong,
body.bupiz-account-authenticated .bupiz-p9d-recent-order__main small{
    display:block;
}

body.bupiz-account-authenticated .bupiz-p9d-recent-order__main strong{
    color:var(--p9d-dark);
    font-size:11px;
}

body.bupiz-account-authenticated .bupiz-p9d-recent-order__main small{
    margin-top:4px;
    color:#8a94a6;
    font-size:9px;
}

body.bupiz-account-authenticated .bupiz-p9d-recent-order__side{
    flex:0 0 auto;
    display:flex;
    align-items:flex-end;
    flex-direction:column;
    gap:7px;
}

body.bupiz-account-authenticated .bupiz-p9d-recent-order__side a{
    color:#475467;
    font-size:9px;
    font-weight:800;
    text-decoration:none;
}

body.bupiz-account-authenticated .bupiz-p9d-status{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:26px;
    padding:4px 10px;
    border-radius:999px;
    font-size:8px;
    font-weight:850;
    white-space:nowrap;
}

body.bupiz-account-authenticated .bupiz-p9d-status.is-success{background:#ecfdf3;color:#027a48;}
body.bupiz-account-authenticated .bupiz-p9d-status.is-danger{background:#fef3f2;color:#b42318;}
body.bupiz-account-authenticated .bupiz-p9d-status.is-warning{background:#fffaeb;color:#b54708;}
body.bupiz-account-authenticated .bupiz-p9d-status.is-info{background:#eff8ff;color:#175cd3;}

body.bupiz-account-authenticated .bupiz-p9d-address-preview{
    padding:20px 22px 22px;
}

body.bupiz-account-authenticated .bupiz-p9d-address-preview strong,
body.bupiz-account-authenticated .bupiz-p9d-address-preview small{
    display:block;
}

body.bupiz-account-authenticated .bupiz-p9d-address-preview strong{
    margin:10px 0 6px;
    color:var(--p9d-dark);
    font-size:13px;
}

body.bupiz-account-authenticated .bupiz-p9d-address-preview p{
    margin:0 0 8px;
    color:var(--p9d-muted);
    font-size:10px;
    line-height:1.65;
}

body.bupiz-account-authenticated .bupiz-p9d-address-preview small{
    color:#7b8596;
    font-size:9px;
}

body.bupiz-account-authenticated .bupiz-p9d-address-type,
body.bupiz-account-authenticated .bupiz-p9d-default-badge{
    display:inline-flex;
    align-items:center;
    min-height:23px;
    padding:3px 9px;
    border-radius:999px;
    background:var(--p9d-pink-soft);
    color:var(--p9d-pink);
    font-size:8px;
    font-weight:850;
    text-transform:uppercase;
}

body.bupiz-account-authenticated .bupiz-p9d-panel--security{
    display:flex;
    gap:14px;
    padding:20px;
    background:linear-gradient(135deg,var(--p9d-dark),#263c5f);
    color:#fff;
}

body.bupiz-account-authenticated .bupiz-p9d-panel--security > .dashicons{
    flex:0 0 42px;
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border-radius:12px;
    background:rgba(255,255,255,.11);
    font-size:20px;
}

body.bupiz-account-authenticated .bupiz-p9d-panel--security strong{
    display:block;
    color:#fff;
    font-size:12px;
}

body.bupiz-account-authenticated .bupiz-p9d-panel--security p{
    margin:7px 0 0;
    color:rgba(255,255,255,.74);
    font-size:9px;
    line-height:1.6;
}

body.bupiz-account-authenticated .bupiz-p9d-panel-empty,
body.bupiz-account-authenticated .bupiz-p9d-empty-card{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    min-height:250px;
    padding:34px;
    border:1px solid var(--p9d-line);
    border-radius:20px;
    background:#fff;
    text-align:center;
}

body.bupiz-account-authenticated .bupiz-p9d-panel-empty{border:0;border-radius:0;min-height:230px;}
body.bupiz-account-authenticated .bupiz-p9d-panel-empty--compact{min-height:180px;padding:24px;}

body.bupiz-account-authenticated .bupiz-p9d-panel-empty > .dashicons,
body.bupiz-account-authenticated .bupiz-p9d-empty-card > .dashicons{
    width:54px;
    height:54px;
    display:grid;
    place-items:center;
    margin-bottom:14px;
    border-radius:16px;
    background:var(--p9d-pink-soft);
    color:var(--p9d-pink);
    font-size:24px;
}

body.bupiz-account-authenticated .bupiz-p9d-panel-empty strong,
body.bupiz-account-authenticated .bupiz-p9d-empty-card h2{
    margin:0;
    color:var(--p9d-dark);
    font-size:17px;
}

body.bupiz-account-authenticated .bupiz-p9d-panel-empty p,
body.bupiz-account-authenticated .bupiz-p9d-empty-card p{
    max-width:500px;
    margin:8px 0 17px;
    color:var(--p9d-muted);
    font-size:11px;
    line-height:1.65;
}

/* Orders */
body.bupiz-account-authenticated .bupiz-p9d-section-head{
    margin-bottom:18px;
    padding:22px 24px;
    border:1px solid var(--p9d-line);
    border-radius:19px;
    background:#fff;
}

body.bupiz-account-authenticated .bupiz-p9d-section-head p{
    max-width:680px;
    margin:7px 0 0;
    color:var(--p9d-muted);
    font-size:10px;
    line-height:1.55;
}

body.bupiz-account-authenticated .bupiz-p9d-order-list{
    display:grid;
    gap:14px;
}

body.bupiz-account-authenticated .bupiz-p9d-order-card{
    overflow:hidden;
    border:1px solid var(--p9d-line);
    border-radius:19px;
    background:#fff;
    box-shadow:0 8px 24px rgba(20,35,59,.04);
}

body.bupiz-account-authenticated .bupiz-p9d-order-card__head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:15px 18px;
    background:#fbfcfe;
    border-bottom:1px solid var(--p9d-line);
}

body.bupiz-account-authenticated .bupiz-p9d-order-card__identity{
    display:flex;
    align-items:center;
    gap:11px;
}

body.bupiz-account-authenticated .bupiz-p9d-order-card__identity strong,
body.bupiz-account-authenticated .bupiz-p9d-order-card__identity small{
    display:block;
}

body.bupiz-account-authenticated .bupiz-p9d-order-card__identity strong{color:var(--p9d-dark);font-size:12px;}
body.bupiz-account-authenticated .bupiz-p9d-order-card__identity small{margin-top:3px;color:#8a94a6;font-size:9px;}

body.bupiz-account-authenticated .bupiz-p9d-order-card__body{
    display:grid;
    grid-template-columns:minmax(0,1fr) 340px;
    gap:20px;
    padding:18px;
}

body.bupiz-account-authenticated .bupiz-p9d-order-products{
    display:grid;
    gap:10px;
}

body.bupiz-account-authenticated .bupiz-p9d-order-product{
    display:flex;
    align-items:center;
    gap:11px;
    min-width:0;
}

body.bupiz-account-authenticated .bupiz-p9d-order-product__image{
    flex:0 0 52px;
    width:52px;
    height:62px;
    overflow:hidden;
    border:1px solid var(--p9d-line);
    border-radius:10px;
    background:#f4f5f7;
}

body.bupiz-account-authenticated .bupiz-p9d-order-product__image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

body.bupiz-account-authenticated .bupiz-p9d-order-product strong,
body.bupiz-account-authenticated .bupiz-p9d-order-product small{display:block;}
body.bupiz-account-authenticated .bupiz-p9d-order-product strong{color:#344054;font-size:10px;line-height:1.45;}
body.bupiz-account-authenticated .bupiz-p9d-order-product small{margin-top:4px;color:#98a2b3;font-size:8px;}
body.bupiz-account-authenticated .bupiz-p9d-more-items{color:#667085;font-size:9px;font-weight:800;}

body.bupiz-account-authenticated .bupiz-p9d-order-facts{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    align-self:center;
    margin:0;
    padding:14px;
    border:1px solid var(--p9d-line);
    border-radius:14px;
    background:#fbfcfe;
}

body.bupiz-account-authenticated .bupiz-p9d-order-facts div{
    padding:0 12px;
    border-right:1px solid var(--p9d-line);
}
body.bupiz-account-authenticated .bupiz-p9d-order-facts div:last-child{border-right:0;}
body.bupiz-account-authenticated .bupiz-p9d-order-facts dt{margin:0 0 5px;color:#98a2b3;font-size:8px;font-weight:750;}
body.bupiz-account-authenticated .bupiz-p9d-order-facts dd{margin:0;color:var(--p9d-dark);font-size:10px;font-weight:800;}

body.bupiz-account-authenticated .bupiz-p9d-order-card__actions{
    display:flex;
    justify-content:flex-end;
    gap:8px;
    flex-wrap:wrap;
    padding:13px 18px;
    border-top:1px solid var(--p9d-line);
    background:#fbfcfe;
}

body.bupiz-account-authenticated .bupiz-p9d-order-card__actions .button:not(.view){
    border-color:#d9dfe7 !important;
    background:#fff !important;
    color:#344054 !important;
}

body.bupiz-account-authenticated .bupiz-p9d-pagination{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:14px;
    margin-top:18px;
}
body.bupiz-account-authenticated .bupiz-p9d-pagination span{color:#667085;font-size:10px;font-weight:700;}

/* View order */
body.bupiz-account-authenticated .bupiz-p9d-view-order{
    display:grid;
    gap:16px;
}

body.bupiz-account-authenticated .bupiz-p9d-order-detail-head{
    display:flex;
    justify-content:space-between;
    gap:20px;
    padding:23px 24px;
    border:1px solid var(--p9d-line);
    border-radius:19px;
    background:#fff;
}

body.bupiz-account-authenticated .bupiz-p9d-order-detail-head > div > span{
    color:var(--p9d-pink);
    font-size:8px;
    font-weight:850;
    letter-spacing:.1em;
    text-transform:uppercase;
}

body.bupiz-account-authenticated .bupiz-p9d-order-detail-head h2{margin:5px 0 6px;font-size:25px;}
body.bupiz-account-authenticated .bupiz-p9d-order-detail-head p{margin:0;color:var(--p9d-muted);font-size:10px;}

body.bupiz-account-authenticated .bupiz-p9d-order-summary-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
}

body.bupiz-account-authenticated .bupiz-p9d-order-summary-grid article{
    display:grid;
    grid-template-columns:38px minmax(0,1fr);
    grid-template-rows:auto auto;
    column-gap:11px;
    padding:15px;
    border:1px solid var(--p9d-line);
    border-radius:15px;
    background:#fff;
}

body.bupiz-account-authenticated .bupiz-p9d-order-summary-grid .dashicons{
    grid-row:1 / span 2;
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    border-radius:11px;
    background:var(--p9d-pink-soft);
    color:var(--p9d-pink);
    font-size:17px;
}

body.bupiz-account-authenticated .bupiz-p9d-order-summary-grid small{color:#98a2b3;font-size:8px;font-weight:750;}
body.bupiz-account-authenticated .bupiz-p9d-order-summary-grid strong{overflow:hidden;color:var(--p9d-dark);font-size:10px;text-overflow:ellipsis;white-space:nowrap;}

body.bupiz-account-authenticated .bupiz-p9d-order-detail-table,
body.bupiz-account-authenticated .bupiz-p9d-view-order > .woocommerce-order-details,
body.bupiz-account-authenticated .bupiz-p9d-view-order > section:not(.bupiz-p9d-order-summary-grid){
    overflow:hidden;
    padding:20px !important;
    border:1px solid var(--p9d-line) !important;
    border-radius:18px !important;
    background:#fff !important;
    box-shadow:none !important;
}

body.bupiz-account-authenticated .bupiz-p9d-order-detail-table .woocommerce-order-details{margin:0;}
body.bupiz-account-authenticated .bupiz-p9d-order-detail-table h2,
body.bupiz-account-authenticated .bupiz-p9d-view-order > section h2{margin:0 0 14px;font-size:18px;}

body.bupiz-account-authenticated .bupiz-p9d-order-native-actions{
    display:flex;
    gap:9px;
    flex-wrap:wrap;
}

body.bupiz-account-authenticated .bupiz-p9d-back-orders{
    border-color:#d9dfe7 !important;
    background:#fff !important;
    color:#344054 !important;
}

/* Tables inside account endpoints */
body.bupiz-account-authenticated .woocommerce-MyAccount-content table.shop_table{
    width:100% !important;
    margin:0 !important;
    border:0 !important;
    border-collapse:separate !important;
    border-spacing:0 !important;
    border-radius:14px !important;
    background:#fff !important;
}

body.bupiz-account-authenticated .woocommerce-MyAccount-content table.shop_table th,
body.bupiz-account-authenticated .woocommerce-MyAccount-content table.shop_table td{
    padding:12px !important;
    border:0 !important;
    border-bottom:1px solid #eef1f4 !important;
    color:#475467;
    font-size:10px;
    vertical-align:middle;
}

body.bupiz-account-authenticated .woocommerce-MyAccount-content table.shop_table th{
    background:#fbfcfe;
    color:#667085;
    font-size:8px;
    letter-spacing:.06em;
    text-transform:uppercase;
}

body.bupiz-account-authenticated .woocommerce-MyAccount-content table.shop_table tr:last-child td{border-bottom:0 !important;}

/* Address book and editor */
body.bupiz-account-authenticated .bupiz-p9d-address-card{
    max-width:760px;
    padding:22px;
    border:1px solid var(--p9d-line);
    border-radius:19px;
    background:#fff;
    box-shadow:0 8px 24px rgba(20,35,59,.04);
}

body.bupiz-account-authenticated .bupiz-p9d-address-card__head{
    display:flex;
    align-items:center;
    gap:13px;
}

body.bupiz-account-authenticated .bupiz-p9d-address-card__icon{
    flex:0 0 46px;
    width:46px;
    height:46px;
    display:grid;
    place-items:center;
    border-radius:13px;
    background:var(--p9d-pink-soft);
    color:var(--p9d-pink);
    font-size:21px;
}

body.bupiz-account-authenticated .bupiz-p9d-address-card__head h3{margin:5px 0 0;font-size:15px;}
body.bupiz-account-authenticated .bupiz-p9d-address-card__head .bupiz-p9d-default-badge{margin-left:auto;}
body.bupiz-account-authenticated .bupiz-p9d-address-card > p{margin:17px 0 9px;color:#475467;font-size:11px;line-height:1.7;}
body.bupiz-account-authenticated .bupiz-p9d-address-card > small{display:flex;align-items:center;gap:5px;color:#7b8596;font-size:10px;}
body.bupiz-account-authenticated .bupiz-p9d-address-card > small .dashicons{font-size:14px;width:14px;height:14px;}
body.bupiz-account-authenticated .bupiz-p9d-address-card footer{margin-top:17px;padding-top:13px;border-top:1px solid var(--p9d-line);}

body.bupiz-account-authenticated .bupiz-p9d-address-editor__form{
    padding:0;
    border:1px solid var(--p9d-line);
    border-radius:19px;
    background:#fff;
    box-shadow:0 8px 24px rgba(20,35,59,.04);
}

body.bupiz-account-authenticated .bupiz-p9d-address-editor .bupiz-checkout-address-card{
    margin:0 !important;
    padding:24px !important;
    border:0 !important;
    border-radius:19px !important;
    background:#fff !important;
}

body.bupiz-account-authenticated .bupiz-p9d-address-editor .bupiz-checkout-address-card h3{
    display:none;
}

body.bupiz-account-authenticated .bupiz-address-grid{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:16px !important;
}

body.bupiz-account-authenticated .bupiz-address-field label,
body.bupiz-account-authenticated .bupiz-p9d-profile-form label{
    display:block;
    margin-bottom:7px;
    color:#344054;
    font-size:10px;
    font-weight:800;
}

body.bupiz-account-authenticated .bupiz-address-field input,
body.bupiz-account-authenticated .bupiz-address-field select,
body.bupiz-account-authenticated .bupiz-p9d-profile-form input{
    width:100%;
    min-height:44px;
    padding:10px 12px;
    border:1px solid #d9dfe7 !important;
    border-radius:10px !important;
    background:#fff !important;
    color:#344054 !important;
    font-size:11px !important;
    box-shadow:none !important;
}

body.bupiz-account-authenticated .bupiz-address-field input:focus,
body.bupiz-account-authenticated .bupiz-address-field select:focus,
body.bupiz-account-authenticated .bupiz-p9d-profile-form input:focus{
    border-color:var(--p9d-pink) !important;
    outline:3px solid rgba(232,62,140,.10) !important;
}

body.bupiz-account-authenticated #bupiz-save-address-btn{margin-top:18px;}

body.bupiz-account-authenticated .bupiz-p9d-address-note{
    display:flex;
    align-items:flex-start;
    gap:10px;
    margin-top:14px;
    padding:14px 16px;
    border:1px solid #d9e8f9;
    border-radius:13px;
    background:#f5faff;
}
body.bupiz-account-authenticated .bupiz-p9d-address-note .dashicons{color:#175cd3;font-size:17px;}
body.bupiz-account-authenticated .bupiz-p9d-address-note p{margin:0;color:#475467;font-size:10px;line-height:1.55;}

body.bupiz-account-authenticated .bupiz-p9d-button-secondary{
    border-color:#d9dfe7 !important;
    background:#fff !important;
    color:#344054 !important;
}

/* Personal information */
body.bupiz-account-authenticated .bupiz-p9d-profile-form{
    padding:24px;
    border:1px solid var(--p9d-line);
    border-radius:19px;
    background:#fff;
    box-shadow:0 8px 24px rgba(20,35,59,.04);
}

body.bupiz-account-authenticated .bupiz-p9d-profile-security{
    display:flex;
    gap:13px;
    margin-bottom:22px;
    padding:17px;
    border:1px solid #d9e8f9;
    border-radius:14px;
    background:#f7fbff;
}

body.bupiz-account-authenticated .bupiz-p9d-profile-security > .dashicons{
    flex:0 0 42px;
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border-radius:12px;
    background:#fff;
    color:#175cd3;
    font-size:19px;
}

body.bupiz-account-authenticated .bupiz-p9d-profile-security small,
body.bupiz-account-authenticated .bupiz-p9d-profile-security strong{display:block;}
body.bupiz-account-authenticated .bupiz-p9d-profile-security small{color:#667085;font-size:8px;font-weight:750;}
body.bupiz-account-authenticated .bupiz-p9d-profile-security strong{margin:4px 0;color:var(--p9d-dark);font-size:13px;}
body.bupiz-account-authenticated .bupiz-p9d-profile-security p{margin:0;color:#667085;font-size:9px;line-height:1.5;}

body.bupiz-account-authenticated .bupiz-p9d-form-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}

body.bupiz-account-authenticated .bupiz-p9d-profile-form .form-row{
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
    float:none !important;
}

body.bupiz-account-authenticated .bupiz-p9d-profile-form .form-row-wide{
    grid-column:1 / -1;
}

body.bupiz-account-authenticated .bupiz-p9d-profile-form .form-row > span{
    display:block;
    margin-top:6px;
    color:#98a2b3;
    font-size:8px;
}

body.bupiz-account-authenticated .bupiz-p9d-profile-submit{
    margin:22px 0 0 !important;
    padding-top:18px;
    border-top:1px solid var(--p9d-line);
}

/* Wallet integration */
body.bupiz-account-authenticated .bupiz-wallet-page{
    width:100% !important;
    max-width:none !important;
}

body.bupiz-account-authenticated .bupiz-wallet-page__head,
body.bupiz-account-authenticated .bupiz-wallet-note,
body.bupiz-account-authenticated .bupiz-wallet-history{
    padding:20px !important;
    border:1px solid var(--p9d-line) !important;
    border-radius:18px !important;
    background:#fff !important;
}

body.bupiz-account-authenticated .bupiz-wallet-page__head{margin-bottom:14px;}
body.bupiz-account-authenticated .bupiz-wallet-summary{display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:12px !important;margin:0 0 14px !important;}
body.bupiz-account-authenticated .bupiz-wallet-card{padding:18px !important;border:1px solid var(--p9d-line) !important;border-radius:16px !important;background:#fff !important;box-shadow:none !important;}
body.bupiz-account-authenticated .bupiz-wallet-card__amount{font-size:23px !important;color:var(--p9d-dark) !important;}
body.bupiz-account-authenticated .bupiz-wallet-note{margin:0 0 14px !important;background:#fffaf0 !important;border-color:#f3d39d !important;}

/* General form and endpoint fallback */
body.bupiz-account-authenticated .woocommerce-MyAccount-content > form:not(.bupiz-p9d-profile-form),
body.bupiz-account-authenticated .woocommerce-MyAccount-content > .woocommerce-address-fields,
body.bupiz-account-authenticated .woocommerce-MyAccount-content > .woocommerce-customer-details,
body.bupiz-account-authenticated .woocommerce-MyAccount-content > .woocommerce-order-details{
    padding:22px !important;
    border:1px solid var(--p9d-line) !important;
    border-radius:18px !important;
    background:#fff !important;
}

/* Tablet */
@media (max-width:1100px){
    body.bupiz-account-guest .bupiz-p9d-guest-grid{grid-template-columns:1fr;gap:34px;}
    body.bupiz-account-guest .bupiz-p9d-guest-copy{text-align:center;}
    body.bupiz-account-guest .bupiz-p9d-guest-copy h1,
    body.bupiz-account-guest .bupiz-p9d-guest-copy > p,
    body.bupiz-account-guest .bupiz-p9d-guest-copy > small{margin-left:auto;margin-right:auto;}
    body.bupiz-account-authenticated .bupiz-p9d-stats{grid-template-columns:repeat(2,minmax(0,1fr));}
    body.bupiz-account-authenticated .bupiz-p9d-dashboard-grid{grid-template-columns:1fr;}
    body.bupiz-account-authenticated .bupiz-p9d-order-card__body{grid-template-columns:1fr;}
    body.bupiz-account-authenticated .bupiz-wallet-summary{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}

/* Mobile account menu and layouts */
@media (max-width:820px){
    body.bupiz-native-account .bupiz-p9d-container{width:min(100% - 28px,1460px);}
    body.bupiz-account-guest .bupiz-p9d-guest-hero{padding:44px 0;}
    body.bupiz-account-guest .bupiz-p9d-guest-benefits{grid-template-columns:1fr;padding:14px;border-radius:20px;}
    body.bupiz-account-guest .bupiz-p9d-guest-benefits article{min-height:auto;}
    body.bupiz-account-guest .bupiz-p9d-guest-copy h1{font-size:42px;}

    body.bupiz-account-authenticated .bupiz-p9d-hero{padding:22px 0;}
    body.bupiz-account-authenticated .bupiz-p9d-hero__inner{align-items:flex-start;flex-direction:column;}
    body.bupiz-account-authenticated .bupiz-p9d-hero__identity{width:100%;max-width:none;text-align:left;}
    body.bupiz-account-authenticated .bupiz-p9d-avatar{flex-basis:56px;width:56px;height:56px;border-radius:17px;}

    body.bupiz-account-authenticated .bupiz-p9d-account-body{padding-top:16px;padding-bottom:36px;}
    body.bupiz-account-authenticated .bupiz-p9d-account-body > .woocommerce{
        display:block !important;
    }

    body.bupiz-account-authenticated .bupiz-p9d-mobile-menu-button{
        width:100%;
        min-height:45px;
        display:flex;
        align-items:center;
        justify-content:center;
        gap:8px;
        margin:0 0 14px;
        padding:10px 15px;
        border:1px solid var(--p9d-line);
        border-radius:12px;
        background:#fff;
        color:var(--p9d-dark);
        font-size:11px;
        font-weight:800;
    }

    body.bupiz-account-authenticated .woocommerce-MyAccount-navigation{
        position:fixed !important;
        inset:0 auto 0 0 !important;
        z-index:100002 !important;
        width:min(86vw,330px) !important;
        min-width:0 !important;
        max-width:330px !important;
        height:100dvh;
        overflow-y:auto;
        padding:20px 14px !important;
        border:0 !important;
        border-radius:0 22px 22px 0 !important;
        transform:translateX(-105%);
        transition:transform .25s ease;
        box-shadow:0 0 55px rgba(20,35,59,.2) !important;
    }

    body.bupiz-account-authenticated.bupiz-account-menu-open .woocommerce-MyAccount-navigation{
        transform:translateX(0);
    }

    body.bupiz-account-authenticated .bupiz-p9d-navigation__close{
        width:38px;
        height:38px;
        display:grid;
        place-items:center;
        margin:0 0 10px auto;
        padding:0;
        border:1px solid var(--p9d-line);
        border-radius:11px;
        background:#fff;
        color:#475467;
    }

    body.bupiz-account-authenticated .bupiz-p9d-navigation-backdrop{
        position:fixed;
        inset:0;
        z-index:100001;
        display:block;
        background:rgba(15,23,42,.46);
        opacity:0;
        visibility:hidden;
        transition:opacity .25s ease,visibility .25s ease;
    }

    body.bupiz-account-authenticated.bupiz-account-menu-open .bupiz-p9d-navigation-backdrop{
        opacity:1;
        visibility:visible;
    }

    html.bupiz-account-menu-open,
    body.bupiz-account-menu-open{overflow:hidden !important;}

    body.bupiz-account-authenticated .bupiz-p9d-welcome-card{align-items:flex-start;flex-direction:column;padding:22px;}
    body.bupiz-account-authenticated .bupiz-p9d-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
    body.bupiz-account-authenticated .bupiz-p9d-stat-card{grid-template-columns:36px minmax(0,1fr);padding:13px;column-gap:9px;}
    body.bupiz-account-authenticated .bupiz-p9d-stat-card .dashicons{width:36px;height:36px;font-size:17px;}
    body.bupiz-account-authenticated .bupiz-p9d-stat-card strong{font-size:16px;}
    body.bupiz-account-authenticated .bupiz-p9d-section-head{align-items:flex-start;flex-direction:column;padding:19px;}
    body.bupiz-account-authenticated .bupiz-p9d-section-head .button{width:100% !important;}
    body.bupiz-account-authenticated .bupiz-p9d-order-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
    body.bupiz-account-authenticated .bupiz-p9d-form-grid,
    body.bupiz-account-authenticated .bupiz-address-grid{grid-template-columns:1fr !important;}
    body.bupiz-account-authenticated .bupiz-p9d-profile-form .form-row-wide,
    body.bupiz-account-authenticated .bupiz-address-field-full{grid-column:auto !important;}
    body.bupiz-account-authenticated .bupiz-wallet-summary{grid-template-columns:1fr !important;}
}

@media (max-width:560px){
    body.bupiz-account-guest .bupiz-p9d-guest-copy h1{font-size:36px;}
    body.bupiz-account-guest .bupiz-p9d-guest-copy > p{font-size:15px;}
    body.bupiz-account-guest .bupiz-p9d-signin-button{width:100%;}
    body.bupiz-account-guest .bupiz-p9d-guest-assurance .bupiz-p9d-container{align-items:flex-start;flex-direction:column;gap:13px;}
    body.bupiz-account-authenticated .bupiz-p9d-user-block{align-items:flex-start;}
    body.bupiz-account-authenticated .bupiz-p9d-user-block h1{font-size:28px;}
    body.bupiz-account-authenticated .bupiz-p9d-stats{grid-template-columns:1fr 1fr;}
    body.bupiz-account-authenticated .bupiz-p9d-recent-orders article{align-items:flex-start;flex-direction:column;}
    body.bupiz-account-authenticated .bupiz-p9d-recent-order__side{align-items:flex-start;}
    body.bupiz-account-authenticated .bupiz-p9d-order-card__head{align-items:flex-start;flex-direction:column;}
    body.bupiz-account-authenticated .bupiz-p9d-order-facts{grid-template-columns:1fr;gap:10px;}
    body.bupiz-account-authenticated .bupiz-p9d-order-facts div{padding:0 0 10px;border-right:0;border-bottom:1px solid var(--p9d-line);}
    body.bupiz-account-authenticated .bupiz-p9d-order-facts div:last-child{padding-bottom:0;border-bottom:0;}
    body.bupiz-account-authenticated .bupiz-p9d-order-card__actions{justify-content:stretch;}
    body.bupiz-account-authenticated .bupiz-p9d-order-card__actions .button{flex:1 1 calc(50% - 8px);}
    body.bupiz-account-authenticated .bupiz-p9d-order-detail-head{align-items:flex-start;flex-direction:column;}
    body.bupiz-account-authenticated .bupiz-p9d-order-summary-grid{grid-template-columns:1fr;}
    body.bupiz-account-authenticated .bupiz-p9d-order-native-actions .button{width:100% !important;}
}

/* =========================================================
   PHASE 9D-R1 — ACCOUNT WRAPPER COLLISION FIX
   Neutralises the legacy WooCommerce/Elementor account flex rules and gives
   every account endpoint one explicit desktop grid.
========================================================= */
body.bupiz-account-authenticated .bupiz-p9d-account-body{
    width:min(1460px,calc(100% - 56px)) !important;
    max-width:1460px !important;
    margin-inline:auto !important;
}

body.bupiz-account-authenticated .bupiz-p9d-account-body > .woocommerce{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
}

body.bupiz-account-authenticated .bupiz-p9d-account-layout{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    display:grid !important;
    grid-template-columns:286px minmax(0,1fr) !important;
    grid-template-areas:"account-nav account-content" !important;
    align-items:start !important;
    gap:28px !important;
    margin:0 !important;
    padding:0 !important;
}

body.bupiz-account-authenticated .bupiz-p9d-account-layout > .woocommerce-MyAccount-navigation{
    grid-area:account-nav !important;
    justify-self:stretch !important;
    width:286px !important;
    min-width:286px !important;
    max-width:286px !important;
}

body.bupiz-account-authenticated .bupiz-p9d-account-layout > .woocommerce-MyAccount-content,
body.bupiz-account-authenticated .bupiz-p9d-account-content{
    grid-area:account-content !important;
    justify-self:stretch !important;
    align-self:start !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    overflow:visible !important;
}

body.bupiz-account-authenticated .bupiz-p9d-account-layout > .bupiz-p9d-navigation-backdrop{
    grid-area:account-content !important;
}

body.bupiz-account-authenticated .bupiz-p9d-orders-page,
body.bupiz-account-authenticated .bupiz-p9d-order-list,
body.bupiz-account-authenticated .bupiz-p9d-order-card,
body.bupiz-account-authenticated .bupiz-p9d-dashboard,
body.bupiz-account-authenticated .bupiz-p9d-view-order,
body.bupiz-account-authenticated .bupiz-p9d-profile-form,
body.bupiz-account-authenticated .bupiz-p9d-address-book,
body.bupiz-account-authenticated .bupiz-wallet-page{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
}

body.bupiz-account-authenticated .bupiz-p9d-section-head{
    width:100% !important;
    max-width:none !important;
    box-sizing:border-box !important;
}

@media (max-width:1100px) and (min-width:821px){
    body.bupiz-account-authenticated .bupiz-p9d-account-layout{
        grid-template-columns:248px minmax(0,1fr) !important;
        gap:20px !important;
    }
    body.bupiz-account-authenticated .bupiz-p9d-account-layout > .woocommerce-MyAccount-navigation{
        width:248px !important;
        min-width:248px !important;
        max-width:248px !important;
    }
    body.bupiz-account-authenticated .bupiz-p9d-order-card__body{
        grid-template-columns:minmax(0,1fr) !important;
    }
}

@media (max-width:820px){
    body.bupiz-account-authenticated .bupiz-p9d-account-body{
        width:min(100% - 28px,1460px) !important;
    }
    body.bupiz-account-authenticated .bupiz-p9d-account-layout{
        display:block !important;
        width:100% !important;
    }
    body.bupiz-account-authenticated .bupiz-p9d-account-layout > .woocommerce-MyAccount-navigation{
        width:min(86vw,330px) !important;
        min-width:0 !important;
        max-width:330px !important;
    }
    body.bupiz-account-authenticated .bupiz-p9d-account-layout > .woocommerce-MyAccount-content,
    body.bupiz-account-authenticated .bupiz-p9d-account-content{
        width:100% !important;
    }
}

/* ============================================================
   Phase 9D.1 — Mobile My Orders refinement matching checkout flow.
   Presentation only; order actions/status logic is unchanged.
============================================================ */
@media (max-width:767px){
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-hero{padding:16px 0;background:#fff;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-hero__inner{display:block;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-avatar,
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-hero__identity,
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-eyebrow,
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-user-block p{display:none;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-user-block h1{font-size:22px;letter-spacing:-.02em;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-container{width:100%;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-account-body{padding:10px 12px 28px;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-mobile-menu-button{margin:0 0 10px;border-radius:10px;background:#fff;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-section-head{align-items:center;margin:0 0 10px;padding:12px;border:1px solid var(--p9d-line);border-radius:13px;background:#fff;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-section-head>div>span,
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-section-head>div>p{display:none;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-section-head h2{margin:0;font-size:16px;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-section-head .button{min-height:34px!important;padding:7px 10px!important;border-radius:8px!important;background:var(--p9d-orange)!important;color:#fff!important;font-size:9px!important;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-list{gap:10px;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-card{border-radius:14px;background:#fff;box-shadow:none;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-card__head{padding:11px 12px;flex-direction:row;align-items:center;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-icon{width:34px;height:34px;flex-basis:34px;border-radius:10px;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-card__identity strong{font-size:11px;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-card__identity small{font-size:8px;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-status{padding:5px 7px;font-size:8px;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-card__body{display:block;padding:12px;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-products{gap:8px;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-product{grid-template-columns:58px minmax(0,1fr);gap:10px;padding:0;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-product__image{width:58px;height:74px;border-radius:9px;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-product strong{font-size:11px;line-height:1.35;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-product small{font-size:8.5px;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-facts{display:flex;gap:12px;margin-top:11px;padding:10px 0 0;border:0;border-top:1px solid var(--p9d-line);border-radius:0;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-facts div{flex:1;padding:0;border:0;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-facts dt{font-size:7.5px;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-facts dd{font-size:9.5px;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-card__actions{padding:10px 12px;gap:7px;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-card__actions .button{min-height:36px!important;padding:8px 10px!important;border-radius:8px!important;font-size:8.5px!important;}
}


/* ============================================================
   Phase 9D.2 — My Orders mobile readability + space refinement.
   Presentation only; order data, actions and status logic remain unchanged.
============================================================ */
@media (max-width:767px){
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-hero{padding:12px 0;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-user-block h1{font-size:20px;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-account-body{padding:8px 10px 24px;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-mobile-menu-button{min-height:46px;margin-bottom:8px;font-size:12px;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-section-head{margin-bottom:8px;padding:10px 11px;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-section-head h2{font-size:15px;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-section-head .button{min-height:32px!important;padding:6px 9px!important;font-size:9.5px!important;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-list{gap:8px;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-card{border-radius:12px;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-card__head{padding:9px 10px;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-icon{width:32px;height:32px;flex-basis:32px;border-radius:9px;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-card__identity strong{font-size:12px;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-card__identity small{font-size:9.5px;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-status{padding:4px 7px;font-size:9px;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-card__body{padding:10px;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-products{gap:7px;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-product{grid-template-columns:54px minmax(0,1fr);gap:9px;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-product__image{width:54px;height:68px;border-radius:8px;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-product strong{font-size:12px;line-height:1.3;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-product small{font-size:9.5px;line-height:1.35;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-facts{gap:9px;margin-top:9px;padding-top:8px;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-facts dt{font-size:8px;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-facts dd{font-size:10.5px;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-card__actions{padding:8px 10px;gap:6px;}
    body.bupiz-account-authenticated.woocommerce-orders .bupiz-p9d-order-card__actions .button{min-height:34px!important;padding:7px 9px!important;font-size:9.5px!important;}
}

/* Phase 13K — spacing-only account refinement */
body.bupiz-account-guest .bupiz-p9d-guest-hero{padding:52px 0 46px;}
body.bupiz-account-guest .bupiz-p9d-guest-grid{gap:50px;}
body.bupiz-account-guest .bupiz-p9d-guest-copy > p{margin:16px 0 22px;}
body.bupiz-account-guest .bupiz-p9d-guest-benefits{gap:11px;padding:16px;}
body.bupiz-account-guest .bupiz-p9d-guest-benefits article{min-height:122px;padding:16px;}
body.bupiz-account-guest .bupiz-p9d-guest-assurance{padding:16px 0;}
body.bupiz-account-guest .bupiz-p9d-guest-assurance .bupiz-p9d-container{gap:34px;}
body.bupiz-account-authenticated .bupiz-p9d-hero{padding:24px 0;}
body.bupiz-account-authenticated .bupiz-p9d-hero__inner{gap:20px;}
body.bupiz-account-authenticated .bupiz-p9d-user-block{gap:14px;}
body.bupiz-account-authenticated .bupiz-p9d-dashboard{gap:14px;}
body.bupiz-account-authenticated .bupiz-p9d-welcome-card{gap:18px;min-height:126px;padding:20px 22px;}
body.bupiz-account-authenticated .bupiz-p9d-stats{gap:10px;}
body.bupiz-account-authenticated .bupiz-p9d-address-preview{padding:16px 18px 18px;}
body.bupiz-account-authenticated .bupiz-p9d-panel--security{gap:11px;padding:16px;}
body.bupiz-account-authenticated .bupiz-p9d-panel-empty,
body.bupiz-account-authenticated .bupiz-p9d-empty-card{min-height:210px;padding:26px;}
body.bupiz-account-authenticated .bupiz-p9d-section-head{margin-bottom:13px;padding:17px 19px;}
body.bupiz-account-authenticated .bupiz-p9d-order-detail-table,
body.bupiz-account-authenticated .bupiz-p9d-view-order > .woocommerce-order-details,
body.bupiz-account-authenticated .bupiz-p9d-view-order > section:not(.bupiz-p9d-order-summary-grid){padding:16px!important;}
body.bupiz-account-authenticated .bupiz-p9d-address-card{padding:17px;}
body.bupiz-account-authenticated .bupiz-p9d-address-card > p{margin:12px 0 7px;}
body.bupiz-account-authenticated .bupiz-p9d-address-card footer{margin-top:12px;padding-top:10px;}
body.bupiz-account-authenticated .bupiz-p9d-address-editor .bupiz-checkout-address-card{padding:18px!important;}
body.bupiz-account-authenticated .bupiz-address-grid{gap:12px!important;}
@media (max-width:767px){
    body.bupiz-account-authenticated .bupiz-p9d-hero{padding:18px 0;}
    body.bupiz-account-authenticated .bupiz-p9d-section-head{margin-bottom:10px;padding:14px 15px;}
    body.bupiz-account-authenticated .bupiz-p9d-address-card{padding:14px;}
    body.bupiz-account-authenticated .bupiz-p9d-order-detail-table,
    body.bupiz-account-authenticated .bupiz-p9d-view-order > .woocommerce-order-details,
    body.bupiz-account-authenticated .bupiz-p9d-view-order > section:not(.bupiz-p9d-order-summary-grid){padding:13px!important;}
}
