
:root{--acc-green:#086047;--acc-green-2:#0d7658;--acc-orange:#ff6b22;--acc-ink:#17211c;--acc-muted:#748078;--acc-line:#e3e9e4;--acc-bg:#f5f8f5;--acc-shadow:0 18px 55px rgba(20,49,35,.08)}
.account-body{background:radial-gradient(circle at 10% 4%,rgba(255,107,34,.08),transparent 26%),var(--acc-bg);color:var(--acc-ink)}
.account-page{padding-top:38px;padding-bottom:80px}.account-header-main{grid-template-columns:auto 1fr auto}.account-top-nav{justify-self:center;display:flex;gap:30px;font-weight:700;font-size:14px}.account-icon-btn{border:1px solid var(--acc-line);background:#fff;border-radius:13px;padding:10px 14px;display:flex;align-items:center;gap:8px;font-weight:800;cursor:pointer}.account-icon-btn.danger:hover{background:#fff0ef;color:#b33e36;border-color:#f4cbc7}
.account-hero{background:linear-gradient(135deg,#0a5e46,#124b3b);color:#fff;border-radius:28px;padding:30px 34px;margin-bottom:22px;display:flex;justify-content:space-between;align-items:center;gap:22px;box-shadow:var(--acc-shadow);position:relative;overflow:hidden}.account-hero:after{content:"";position:absolute;width:240px;height:240px;border-radius:50%;background:rgba(255,255,255,.06);right:-75px;top:-110px}.account-hero .eyebrow{color:#d7f56e}.account-hero h1{font:800 clamp(30px,4vw,44px)/1.05 Manrope;margin:6px 0}.account-hero p{margin:0;color:rgba(255,255,255,.72)}.account-hero-actions{display:flex;gap:10px;z-index:1}
.account-btn{border:0;border-radius:13px;min-height:44px;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:800;font-size:13px;text-decoration:none;cursor:pointer;transition:.2s}.account-btn:hover{transform:translateY(-1px)}.account-btn.primary{background:var(--acc-orange);color:#fff;box-shadow:0 9px 22px rgba(255,107,34,.22)}.account-btn.secondary{background:#fff;color:var(--acc-green);border:1px solid var(--acc-line)}.account-btn.ghost{background:#edf3ef;color:var(--acc-green)}.account-btn.small{min-height:39px;padding:0 14px}.account-btn:disabled{opacity:.55;cursor:not-allowed;transform:none}
.account-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:22px;align-items:start}.account-sidebar{position:sticky;top:105px;background:#fff;border:1px solid var(--acc-line);border-radius:24px;padding:17px;box-shadow:var(--acc-shadow)}.account-profile-mini{display:flex;align-items:center;gap:12px;padding:4px 3px 17px;border-bottom:1px solid var(--acc-line)}.account-avatar{width:48px;height:48px;border-radius:15px;background:linear-gradient(145deg,var(--acc-orange),#ff9d63);display:grid;place-items:center;color:#fff;font-weight:900}.account-profile-mini>div:last-child{display:flex;flex-direction:column;min-width:0}.account-profile-mini b,.account-profile-mini span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-profile-mini span{font-size:11px;color:var(--acc-muted);margin-top:3px}.account-nav{display:grid;gap:6px;padding:15px 0}.account-nav button{width:100%;border:0;background:transparent;border-radius:13px;padding:12px;display:grid;grid-template-columns:25px 1fr auto;align-items:center;gap:8px;text-align:left;color:#667169;cursor:pointer}.account-nav button b{font-size:13px}.account-nav button span{font-size:18px;text-align:center}.account-nav button em{font-style:normal;background:#edf2ef;border-radius:99px;padding:3px 7px;font-size:10px}.account-nav button:hover{background:#f3f7f4;color:var(--acc-green)}.account-nav button.active{background:var(--acc-green);color:#fff;box-shadow:0 9px 20px rgba(8,96,71,.18)}.account-nav button.active em{background:rgba(255,255,255,.18)}.account-help-card{background:linear-gradient(135deg,#f1f7f3,#edf4ef);border-radius:17px;padding:16px;display:flex;gap:11px}.account-help-card>span{font-size:23px}.account-help-card b{font-size:12px}.account-help-card p{font-size:10px;color:var(--acc-muted);margin:4px 0}.account-help-card a{font-size:11px;font-weight:800;color:var(--acc-green)}
.account-content{display:grid;gap:20px;min-width:0}.account-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.account-stats article{background:#fff;border:1px solid var(--acc-line);border-radius:19px;padding:17px;display:flex;align-items:center;gap:12px;box-shadow:0 8px 28px rgba(24,52,39,.04);transition:.2s}.account-stats article:hover{transform:translateY(-2px);box-shadow:var(--acc-shadow)}.stat-icon{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;font-size:20px}.stat-icon.orange{background:#fff0e7;color:#e45e16}.stat-icon.red{background:#fff0f1;color:#cf4e58}.stat-icon.green{background:#e9f5ed;color:#277943}.stat-icon.blue{background:#edf3ff;color:#4270b7}.account-stats div{display:grid}.account-stats small{font-size:10px;color:var(--acc-muted)}.account-stats strong{font-size:21px;line-height:1.2;margin-top:2px}.account-stats p{font-size:9px;color:#9aa39d;margin:2px 0 0}
.account-card{background:#fff;border:1px solid var(--acc-line);border-radius:24px;padding:24px;box-shadow:0 9px 35px rgba(25,53,40,.045);scroll-margin-top:110px}.account-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}.account-card-head h2{font:800 24px Manrope;margin:4px 0}.account-card-head p{color:var(--acc-muted);font-size:12px;margin:0}.order-tools{display:flex;gap:8px;align-items:center}.account-search{display:flex!important;grid-auto-flow:column;align-items:center;gap:8px;border:1px solid var(--acc-line);border-radius:12px;padding:0 11px;background:#fafcfb;font-weight:400!important}.account-search input{border:0!important;background:transparent!important;min-height:40px!important;width:190px;padding:0!important;outline:0}.order-tools select{height:42px;border:1px solid var(--acc-line);border-radius:12px;background:#fff;padding:0 28px 0 11px;font-weight:700;color:#526057}
.account-orders{display:grid;gap:14px}.order-card{border:1px solid var(--acc-line);border-radius:18px;overflow:hidden;transition:.2s}.order-card:hover{border-color:#cbd9d0;box-shadow:0 13px 35px rgba(20,49,35,.07)}.order-card-head{display:grid;grid-template-columns:1.2fr .7fr .7fr auto;gap:12px;align-items:center;padding:16px 17px;background:#fafcfb}.order-card-head small{display:block;color:#909a93;font-size:9px;text-transform:uppercase;letter-spacing:.55px}.order-card-head b,.order-card-head strong,.order-card-head time{font-size:12px;margin-top:4px;display:block}.status-pill{border-radius:99px;padding:7px 10px;font-size:10px;font-style:normal;font-weight:900;white-space:nowrap}.status-new,.status-pending{background:#fff4cf;color:#8a5a00;border:1px solid #f3d882}.status-paid{background:#e7f8ee;color:#087443;border:1px solid #b9e8cb}.status-processing{background:#eaf2ff;color:#315f9d;border:1px solid #cbdcf6}.status-shipped{background:#e8f5ff;color:#17658e;border:1px solid #c3e2f3}.status-completed{background:#e6f5e8;color:#2d7c3d;border:1px solid #bee2c5}.status-cancelled{background:#fff0ef;color:#b42318;border:1px solid #f3c4bf}.order-card-body{padding:16px 17px;display:flex;justify-content:space-between;gap:18px;align-items:flex-end}.order-preview{display:flex;flex-wrap:wrap;gap:8px}.order-preview span{background:#f5f8f6;border-radius:11px;padding:9px 11px;display:flex;flex-direction:column;max-width:210px}.order-preview b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-preview small{font-size:9px;color:var(--acc-muted);margin-top:3px}.order-card-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.order-action{border:1px solid var(--acc-line);background:#fff;border-radius:11px;padding:9px 12px;font-size:10px;font-weight:800;cursor:pointer;color:var(--acc-green)}.order-action.primary{background:var(--acc-green);color:#fff;border-color:var(--acc-green)}.order-action.pay{background:var(--acc-orange);color:#fff;border-color:var(--acc-orange)}
.account-wishlist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.wishlist-modern{border:1px solid var(--acc-line);border-radius:17px;padding:12px;display:grid;grid-template-columns:82px 1fr auto;gap:13px;align-items:center}.wishlist-modern-image{height:82px;border-radius:13px;background:#f2f5f2;display:grid;place-items:center;overflow:hidden}.wishlist-modern-image img{width:100%;height:100%;object-fit:contain}.wishlist-modern small{font-size:9px;color:var(--acc-orange);font-weight:900}.wishlist-modern h3{font-size:12px;margin:4px 0 7px}.wishlist-modern strong{color:var(--acc-green)}.wishlist-actions{display:grid;gap:7px}.wishlist-actions button{width:34px;height:34px;border:1px solid var(--acc-line);border-radius:11px;background:#fff;cursor:pointer}.wishlist-actions button:hover{background:#fff0ef;color:#b23f39}
.address-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.address-modern{border:1px solid var(--acc-line);border-radius:18px;padding:17px;display:flex;flex-direction:column;min-height:175px;transition:.2s}.address-modern:hover{transform:translateY(-2px);box-shadow:0 12px 32px rgba(20,49,35,.07)}.address-modern.default{border-color:#ffbd8d;background:linear-gradient(145deg,#fffaf6,#fff)}.address-modern-top{display:flex;justify-content:space-between;align-items:flex-start}.address-modern-title{display:flex;gap:10px;align-items:center}.address-modern-icon{width:38px;height:38px;border-radius:12px;background:#fff0e7;color:var(--acc-orange);display:grid;place-items:center}.address-modern h3{font-size:14px;margin:0}.address-modern em{display:inline-block;font-style:normal;font-size:8px;text-transform:uppercase;background:#e8f5eb;color:#2c7c40;border-radius:99px;padding:4px 7px;margin-top:4px;font-weight:900}.address-modern p{font-size:11px;color:var(--acc-muted);line-height:1.55;margin:14px 0;flex:1}.address-actions{display:flex;gap:8px}.address-actions button{border:0;border-radius:11px;padding:9px 12px;display:flex;align-items:center;gap:6px;font-size:10px;font-weight:850;cursor:pointer}.address-actions .edit{background:#edf6f1;color:var(--acc-green)}.address-actions .delete{background:#fff0ef;color:#b44139}.address-actions svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.modern-form{margin-top:18px;border:1px solid var(--acc-line);background:#fafcfb;border-radius:18px;padding:20px;display:grid;gap:16px}.modern-form.is-hidden{display:none}.modern-form.inline{margin-top:0}.modern-form-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.modern-form h3{margin:4px 0 0}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.form-grid.three{grid-template-columns:repeat(3,1fr)}.modern-form label{display:grid;gap:7px;font-size:11px;font-weight:800}.modern-form input{height:48px;border:1px solid #dce4de;border-radius:12px;background:#fff;padding:0 13px;font:600 13px DM Sans;outline:0}.modern-form input:focus{border-color:var(--acc-green);box-shadow:0 0 0 3px rgba(8,96,71,.09)}.modern-form input:disabled{background:#f0f3f1;color:#89928c}.form-actions{display:flex;justify-content:flex-end;gap:9px}.default-address-toggle{display:flex!important;grid-auto-flow:column;align-items:center;gap:10px!important;background:#edf5f0;border-radius:99px;padding:7px 9px 7px 13px;cursor:pointer}.default-address-toggle input{position:absolute;opacity:0;width:1px;height:1px}.default-address-toggle i{width:42px;height:24px;border-radius:99px;background:#bcc9c1;position:relative;transition:.2s}.default-address-toggle i:after{content:"";position:absolute;width:18px;height:18px;background:#fff;border-radius:50%;left:3px;top:3px;box-shadow:0 2px 5px #0002;transition:.2s}.default-address-toggle input:checked+i{background:var(--acc-green)}.default-address-toggle input:checked+i:after{transform:translateX(18px)}.form-message{font-size:11px}.form-message.success{color:#277a3d}.form-message.error{color:#b43c35}
.account-empty{text-align:center;border:1px dashed #d9e1db;border-radius:17px;background:#fafcfb;padding:35px 20px;grid-column:1/-1}.account-empty span{font-size:30px}.account-empty h3{margin:8px 0 4px}.account-empty p{font-size:11px;color:var(--acc-muted);margin:0 0 14px}.account-skeleton{height:105px;border-radius:16px;background:linear-gradient(90deg,#f0f3f1 25%,#f8faf9 37%,#f0f3f1 63%);background-size:400% 100%;animation:accShimmer 1.3s infinite}@keyframes accShimmer{to{background-position:-100% 0}}
.order-modal[hidden]{display:none}.order-modal{position:fixed;inset:0;z-index:9999}.order-modal-backdrop{position:absolute;inset:0;background:rgba(9,25,18,.54);backdrop-filter:blur(4px)}.order-modal-panel{position:absolute;right:0;top:0;height:100%;width:min(650px,94vw);background:#f7faf8;overflow:auto;padding:28px;box-shadow:-20px 0 60px #0003;animation:slideIn .25s ease}@keyframes slideIn{from{transform:translateX(35px);opacity:0}}.order-modal-close{position:sticky;top:0;float:right;width:40px;height:40px;border:1px solid var(--acc-line);border-radius:12px;background:#fff;font-size:25px;cursor:pointer;z-index:3}.order-modal-title{margin-bottom:20px}.order-modal-title h2{font:800 28px Manrope;margin:6px 0}.order-detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:16px 0}.order-detail-tile{background:#fff;border:1px solid var(--acc-line);border-radius:15px;padding:14px}.order-detail-tile small{font-size:9px;color:var(--acc-muted);text-transform:uppercase}.order-detail-tile b{display:block;font-size:12px;margin-top:5px}.order-items-full,.order-summary-full,.order-timeline{background:#fff;border:1px solid var(--acc-line);border-radius:17px;padding:17px;margin-top:12px}.order-items-full h3,.order-summary-full h3,.order-timeline h3{font-size:14px;margin:0 0 12px}.order-item-row,.summary-row{display:flex;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid #edf1ee}.order-item-row:last-child,.summary-row:last-child{border:0}.order-item-row span{display:flex;flex-direction:column}.order-item-row small{color:var(--acc-muted);font-size:9px;margin-top:3px}.summary-row.total{font-size:17px;color:var(--acc-green);font-weight:900}.timeline-row{display:grid;grid-template-columns:18px 1fr;gap:10px;position:relative;padding-bottom:15px}.timeline-row:before{content:"";position:absolute;left:6px;top:13px;bottom:0;width:2px;background:#dde7e0}.timeline-row:last-child:before{display:none}.timeline-dot{width:14px;height:14px;border:3px solid #dce7e0;background:#fff;border-radius:50%}.timeline-row.done .timeline-dot{background:var(--acc-green);border-color:#b9dcca}.timeline-row b{font-size:11px}.timeline-row p{font-size:10px;color:var(--acc-muted);margin:3px 0}.account-toast{position:fixed;right:24px;bottom:24px;background:#153a2c;color:#fff;border-radius:13px;padding:12px 16px;font-size:12px;font-weight:700;box-shadow:0 14px 40px #0003;opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s;z-index:10000}.account-toast.show{opacity:1;transform:none}
@media(max-width:1050px){.account-layout{grid-template-columns:1fr}.account-sidebar{position:static}.account-nav{grid-template-columns:repeat(3,1fr)}.account-help-card{display:none}.account-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.account-page{padding-top:20px}.account-hero{padding:24px;align-items:flex-start;flex-direction:column}.account-hero-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.account-top-nav{display:none}.account-nav{grid-template-columns:repeat(2,1fr)}.account-nav button{grid-template-columns:22px 1fr auto}.account-stats{grid-template-columns:1fr 1fr}.account-card{padding:17px;border-radius:20px}.account-card-head{flex-direction:column}.order-tools{width:100%;display:grid}.account-search input{width:100%}.order-card-head{grid-template-columns:1fr 1fr}.order-card-body{align-items:stretch;flex-direction:column}.order-card-actions{justify-content:stretch}.order-action{flex:1}.account-wishlist,.address-card-grid{grid-template-columns:1fr}.form-grid,.form-grid.three{grid-template-columns:1fr}.modern-form-head{align-items:flex-start;flex-direction:column}.order-detail-grid{grid-template-columns:1fr}.order-modal-panel{width:100%;padding:18px}.account-stats article{padding:13px}.stat-icon{width:39px;height:39px}}

/* v81: controlled loading/error states */
.account-load-error{display:flex;align-items:center;gap:14px;min-height:112px;padding:22px;border:1px solid #f2d1c8;border-radius:18px;background:#fff8f5;color:#57352c}
.account-load-error>span{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#ffe4db;color:#d84d27;font-size:22px;font-weight:800;flex:0 0 auto}
.account-load-error div{flex:1}.account-load-error h3{margin:0 0 4px;font-size:16px}.account-load-error p{margin:0;color:#85685f;font-size:14px}
.account-load-error button{border:0;border-radius:12px;padding:11px 15px;background:#0b684d;color:#fff;font:700 13px inherit;cursor:pointer;transition:.2s ease}
.account-load-error button:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(11,104,77,.18)}
@media(max-width:640px){.account-load-error{align-items:flex-start;flex-wrap:wrap}.account-load-error button{width:100%}}

/* v83: anchor navigation respects the complete sticky storefront header */
#overview,#ordersSection,#wishlistSection,#addressesSection,#profileSection,#securitySection{scroll-margin-top:190px}


/* v84: widoki konta sterowane z lewego menu */
.account-view-panel[hidden]{display:none!important}
.account-view-panel.is-active{animation:accountPanelEnter .22s ease both}
@keyframes accountPanelEnter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.account-content{min-width:0}
.account-nav button[aria-current="page"]{box-shadow:0 10px 24px rgba(8,96,71,.14)}
#overviewSection{align-content:start}
@media(min-width:1051px){.account-content>.account-view-panel{min-height:420px}}
@media(prefers-reduced-motion:reduce){.account-view-panel.is-active{animation:none}}

/* V123: wylogowanie w menu bocznym */
.account-nav .account-nav-logout{margin-top:4px;color:#b63b35;border-top:1px solid var(--acc-line);border-radius:0 0 13px 13px;padding-top:16px}.account-nav .account-nav-logout:hover{background:#fff1ef;color:#a72f2a}.account-nav .account-nav-logout span{font-size:17px}.account-nav .account-nav-logout.active{background:transparent;color:#b63b35;box-shadow:none}

/* V154: stabilne okno szczegółów zamówienia na wszystkich rozdzielczościach */
.order-modal[hidden]{display:none!important;pointer-events:none!important;visibility:hidden!important}
.order-modal.is-open{display:block;pointer-events:auto;visibility:visible}
.order-modal-backdrop{z-index:0;touch-action:none}
.order-modal-panel{z-index:1;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.order-modal-close,.order-action{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.order-action{position:relative;z-index:1;pointer-events:auto}
html.order-modal-open,body.order-modal-open{overflow:hidden!important}
@media(max-width:760px){.order-modal-panel{height:100dvh;max-height:100dvh;padding-bottom:calc(28px + env(safe-area-inset-bottom))}}

/* V164: niezawodne przyciski zamówień przy każdej szerokości okna */
.account-body .account-page,
.account-body .account-layout,
.account-body .account-content,
.account-body .account-card,
.account-body .account-orders,
.account-body .order-card{position:relative;isolation:isolate}
.account-body .account-page{z-index:2}
.account-body .order-card{z-index:1;overflow:visible!important}
.account-body .order-card::before,
.account-body .order-card::after{pointer-events:none!important}
.account-body .order-card-body{position:relative;z-index:2}
.account-body .order-card-actions{position:relative;z-index:20;isolation:isolate;pointer-events:auto!important}
.account-body .order-action{position:relative!important;z-index:21!important;pointer-events:auto!important;touch-action:manipulation!important;user-select:none;-webkit-user-select:none}
.account-body .order-action::before,
.account-body .order-action::after{pointer-events:none!important}
.account-body .fx-orbit,
.account-body .fw-backtop,
.account-body .fx-command-backdrop,
.account-body .fx-page-curtain,
.account-body .fw-scroll-progress{display:none!important;pointer-events:none!important}
@media(max-width:1180px){
 .account-body .order-card-body{align-items:stretch;flex-direction:column}
 .account-body .order-card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:10px}
 .account-body .order-action{min-height:46px;font-size:13px;padding:10px 14px}
 .account-body .order-action.primary:last-child{grid-column:auto}
}
@media(max-width:560px){
 .account-body .order-card-actions{grid-template-columns:1fr}
 .account-body .order-action.primary:last-child{grid-column:1}
}

/* V325 – czytelne statusy zamówień */
.account-body .status-pill{box-shadow:0 4px 12px rgba(28,52,40,.06);letter-spacing:.01em}
.account-body .status-paid::before{content:'✓ ';font-weight:1000}
.account-body .status-pending::before,.account-body .status-new::before{content:'◷ ';font-weight:1000}
.account-body .status-cancelled::before{content:'× ';font-weight:1000}

/* V326 — jednoznaczne kolory statusów klienta */
.account-body .status-pill.status-paid{background:#e5f8ed!important;color:#06733f!important;border:1px solid #a9dfbf!important;box-shadow:0 5px 16px rgba(6,115,63,.14)!important}.account-body .status-pill.status-pending,.account-body .status-pill.status-new{background:#fff4cc!important;color:#8a5900!important;border:1px solid #efd06a!important}.account-body .status-pill.status-cancelled{background:#ffebe9!important;color:#b42318!important;border:1px solid #efaaa4!important;box-shadow:0 5px 16px rgba(180,35,24,.10)!important}

/* V1143 — zamówienie spakowane i czekające na odbiór osobisty. */
.account-body .status-pill.status-ready_for_pickup{background:#e7f7f1!important;color:#067052!important;border:1px solid #aee0ce!important;box-shadow:0 5px 16px rgba(6,112,82,.11)!important}
.account-body .status-ready_for_pickup::before{content:'✓ ';font-weight:1000}

.order-locker-detail{display:inline-block;margin-top:6px;color:#596a61;font-size:12px;font-weight:600;line-height:1.45}

/* V327 cache marker */
