/* Account and form layout: bounded grids, clear navigation and readable controls. */
body .header,html[data-theme="dark"] body .header{background:#fff!important;color:#17212b!important;position:sticky!important;top:0!important;z-index:110}
body .header .mega-nav-trigger,body .header .menu-toggle{color:#17212b!important}
.account-layout{align-items:start!important;gap:28px!important;padding-top:28px!important}
html body .account-layout{overflow:visible!important}
.account-layout>.acct-sidebar{grid-column:1;grid-row:1;margin:0!important;top:105px!important;align-self:start!important;max-height:calc(100dvh - 125px);overflow-y:auto}
.account-layout>:not(.acct-sidebar):not(button):not(.account-nav-overlay){min-width:0;grid-column:2;grid-row:1;margin-top:0!important}
.account-layout .acct-nav{display:flex!important;flex-direction:column!important;gap:5px!important}
.account-layout .acct-nav a{width:100%!important;padding:11px!important;border-radius:12px!important;min-height:44px;font-size:14px!important;line-height:1.3!important}
.account-layout .acct-nav-icon{width:32px!important;height:32px!important;border-radius:9px!important;flex-shrink:0}
.account-layout .acct-profile{gap:12px!important;padding-bottom:20px!important;align-items:center!important}
.account-layout .acct-profile b{font:700 16px/1.3 Arial,sans-serif!important;overflow-wrap:anywhere}
.account-layout .ava{width:48px!important;height:48px!important;flex:0 0 48px;overflow:hidden;display:grid;place-items:center;background:#17212b;color:#fff;font-size:17px!important}
.account-layout .ava img{width:100%;height:100%;object-fit:cover}.account-layout .ava img[hidden]{display:none!important}
.account-menu-close{display:none}.account-menu-toggle{font-size:13px!important;width:auto!important;height:auto!important;padding:10px 15px!important}
.account-layout h1{font-size:clamp(24px,3vw,34px)!important;line-height:1.2!important}.account-layout h2{font-size:22px!important}.account-layout h3{font-size:18px!important}
.account-layout .btn-outline,.account-layout .btn-ghost{background:#fff!important;color:#17212b!important;border:1px solid #cbd5e1!important}
.account-layout .btn-accent{background:#17212b!important;color:#fff!important}
.account-layout .section-head{margin-bottom:24px!important;gap:16px!important;align-items:center!important;flex-wrap:wrap}
.account-layout .review-reminder{padding:20px!important;gap:16px!important;margin:0 0 24px!important;background:#fff9ed!important;grid-template-columns:40px minmax(0,1fr)!important}
.account-layout .review-reminder h2{font-size:20px!important;margin:6px 0!important}.account-layout .review-reminder p{font-size:14px!important}.review-reminder-items{grid-column:1/-1}.review-reminder-icon{width:40px!important;height:40px!important}
.account-layout .acct-stats{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;margin-bottom:28px}
.account-layout .acct-stat-card{min-width:0;padding:20px!important;border:1px solid #e1e8ed!important;border-radius:16px!important;background:#edf5ff!important;display:flex;flex-direction:column;gap:10px}
.acct-stat-card:nth-child(2){background:#eaf6ef!important}.acct-stat-card:nth-child(3){background:#fff5e4!important}.acct-stat-card:nth-child(4){background:#f1edfa!important}
.account-layout .acct-stat-card b{font-size:26px!important;color:#17212b!important}.account-layout .acct-stat-card span{font-size:13px!important;color:#475569!important}
.purchase-chart{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:24px;margin-bottom:26px}.purchase-bars{display:flex;align-items:end;gap:14px;height:155px;margin-top:24px}.purchase-bars>div{flex:1;text-align:center;min-width:0}.purchase-bars i{display:block;background:#2c6574;border-radius:6px 6px 0 0;min-height:3px;width:70%;margin:auto}.purchase-bars small{font-size:11px;display:block;margin-top:8px}
.payment-destination{display:flex!important;align-items:center;gap:14px;padding:16px;margin:12px 0;border:1px solid #d8e0e5;border-radius:14px;background:#fff;overflow-wrap:anywhere}.payment-destination>input{width:18px!important;flex-shrink:0}.payment-destination>span{display:grid;gap:4px;min-width:0;flex:1}.payment-destination img{object-fit:contain;max-width:70px;height:70px}
.search-row{display:flex!important;align-items:center;gap:12px!important;text-decoration:none}.search-row img{width:44px;height:44px;border-radius:8px;object-fit:cover}.search-row span{display:grid;gap:4px}.search-row small{color:#64748b;font-size:11px}
.product-brand{display:flex;align-items:center;gap:6px;font-size:11px;line-height:1.3;margin:8px 0;color:#475569}.product-brand img{width:18px;height:18px;object-fit:contain}
.auth-split-card,.auth-split-card>*{min-width:0!important}.store-url-live-box{overflow-wrap:anywhere}.auth-field-group input{max-width:100%;box-sizing:border-box}
@media(max-width:991px){
 .account-layout{display:block!important;width:calc(100% - 28px)!important;padding-top:20px!important}.account-layout>.acct-sidebar{top:0!important;max-height:100dvh!important;height:100dvh!important;width:min(340px,88vw)!important;padding:24px 18px 90px!important;z-index:220!important;overscroll-behavior:contain}.account-menu-close{display:block;margin:0 0 12px auto;background:#edf2f5;border:0;border-radius:50%;font-size:24px;width:34px;height:34px}.account-nav-overlay{z-index:210!important}.account-menu-toggle{margin-bottom:16px!important}.account-layout .acct-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}.account-layout .acct-profile{padding-top:0!important}.auth-split-wrapper{padding:20px 14px!important}.auth-split-card{grid-template-columns:minmax(0,1fr)!important;width:100%!important}.auth-split-form-pane{padding:26px 20px!important;min-width:0!important}.auth-split-title{font-size:28px!important}.auth-split-subtitle{font-size:15px!important;line-height:1.6!important;white-space:normal!important}.auth-split-visual-pane{display:none!important}
}
@media(max-width:767px){.account-menu-toggle{display:none!important}.profile-settings-grid{grid-template-columns:minmax(0,1fr)!important}.settings-form-grid{grid-template-columns:minmax(0,1fr)!important}.settings-card{padding:20px!important}.account-layout .order-card{padding:16px!important}.account-layout .oc-body{display:flex!important;flex-wrap:wrap;gap:14px!important}.purchase-chart{padding:18px}.account-layout .acct-stat-card{padding:16px!important}.account-layout .review-reminder{grid-template-columns:minmax(0,1fr)!important}.account-layout .review-reminder-icon{display:none!important}}
html[data-theme="dark"] .account-layout .purchase-chart,html[data-theme="dark"] .payment-destination{background:#17212b;color:#e2e8f0;border-color:#334155}
html body .account-layout :is(h1,h2,h3,b,strong),html body .auth-split-title{font-weight:700!important;font-family:Arial,Helvetica,sans-serif!important}
html body .account-layout .eyebrow{font-weight:700!important;letter-spacing:.08em!important;font-size:11px!important}
html body .account-layout .acct-stat-card:nth-child(2){background:#eaf6ef!important}
html body .account-layout .acct-stat-card:nth-child(3){background:#fff5e4!important}
html body .account-layout .acct-stat-card:nth-child(4){background:#f1edfa!important}
.auth-field-group input[name="security_answer"]{display:block;width:100%;border:1px solid #d6dee8;border-radius:10px;padding:12px;background:#f8fafc;margin-top:8px}
.account-content>.co-card>.avatar-upload{flex-wrap:wrap;max-width:100%}.account-content>.co-card>.avatar-upload input{max-width:100%;min-width:0}
@media(max-width:767px){html body .account-layout>.account-menu-toggle{display:none!important}html body .account-layout>div:not(.account-nav-overlay){padding:20px!important}.account-layout .purchase-bars{gap:6px}.account-layout .purchase-bars small{font-size:10px}}

/* Account lists use compact, independent styles to avoid storefront card sizing. */
.account-layout a.acct-stat-card{text-decoration:none!important;transition:transform .15s,border-color .15s}
.account-layout a.acct-stat-card:hover{transform:translateY(-2px);border-color:#8fa8bc!important}
.acct-stat-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.acct-stat-top svg{width:23px;height:23px;fill:none;stroke:#365773;stroke-width:1.7;flex-shrink:0}
.account-layout .acct-stat-card>span{display:flex;align-items:center;justify-content:space-between;gap:6px;line-height:1.4}
.recent-order{padding:18px;border:1px solid #e0e6ed;border-radius:14px;margin-bottom:14px;background:#fff;color:#17212b}
.recent-order-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.recent-order-heading>div{min-width:0}.recent-order-heading a{font-size:14px;font-weight:700;color:inherit;overflow-wrap:anywhere;text-decoration:none}
.recent-order-heading small{display:block;font-size:12px;color:#667384;margin-top:5px}
.order-state{display:inline-block;font-size:10px!important;line-height:1.3;font-weight:700;text-transform:capitalize;background:#edf1f5;color:#475569;border-radius:6px;padding:5px 8px;max-width:145px}
.order-state[data-state="delivered"]{background:#e5f5ed;color:#176444}.order-state[data-state="cancelled"]{background:#fcebed;color:#9f3543}
.order-state[data-state="shipped"]{background:#e7f0fd;color:#23599b}
.recent-order-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 0;font-size:13px;border-bottom:1px solid #edf0f4}
.account-layout .recent-order-summary b{font-size:17px!important;white-space:nowrap}
.recent-order-actions{display:flex;align-items:center;gap:10px;margin-top:13px}
.recent-order-actions a{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:36px;padding:7px 16px;background:#fff;border:1px solid #ced8e3;border-radius:8px;color:#17212b;font-size:12px;font-weight:600;text-decoration:none;white-space:nowrap}
.recent-order-actions a:first-child{background:#17212b;color:#fff;border-color:#17212b}
.recent-order-actions a:hover{box-shadow:0 2px 5px #142f441a}
.orders-workspace-bar{display:flex;align-items:center;gap:14px;margin-bottom:22px;min-width:0}
html body .account-layout .orders-workspace-bar h1{font-size:23px!important;white-space:nowrap;margin:0!important;line-height:1.25}
.orders-workspace-bar h1 small{font-size:12px;color:#64748b;background:#edf1f5;border-radius:6px;padding:4px 6px;vertical-align:middle}
.orders-shop-link{font-size:12px;font-weight:600;white-space:nowrap;color:inherit;text-decoration:none}
.orders-toolbar{display:grid;grid-template-columns:minmax(150px,1fr) 130px 128px auto;gap:8px;flex:1;min-width:0;align-items:center}
html body .account-layout .orders-toolbar :is(input,select){box-sizing:border-box;height:40px!important;width:100%!important;min-width:0!important;margin:0!important;border:1px solid #d8e1e9!important;border-radius:8px!important;background:#fff!important;color:#283746!important;font-family:Arial,Helvetica,sans-serif!important;font-size:12px!important;font-weight:400!important;line-height:1.4!important;padding:0 10px!important}
html body .account-layout .orders-toolbar .orders-search input{padding-left:34px!important}
.orders-search{position:relative;display:block!important;min-width:0;margin:0!important}
.orders-search>svg{position:absolute;left:11px;top:12px;width:16px;height:16px;fill:none;stroke:#66788a;stroke-width:1.8;pointer-events:none}
.orders-filter{height:40px;display:flex;align-items:center;justify-content:center;gap:5px;padding:0 11px;border:0;border-radius:8px;background:#17212b;color:#fff;font-size:12px;cursor:pointer}
.orders-filter svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8}
.orders-ledger-wrap{overflow-x:auto;border:1px solid #e0e6ed;border-radius:12px;overscroll-behavior-x:contain}
html body .account-layout .orders-ledger{width:100%;min-width:700px;border-collapse:collapse;table-layout:auto;margin:0;font-size:12px;background:#fff;color:#253344}
html body .account-layout .orders-ledger :is(th,td){padding:15px 12px!important;text-align:left!important;vertical-align:middle;border:0!important;border-bottom:1px solid #e8edf2!important;font-size:12px!important;line-height:1.5!important}
.orders-ledger thead{background:#edf2f6}.orders-ledger thead th{font-size:11px!important;color:#536476;font-weight:600;white-space:nowrap}
.orders-ledger tbody tr:nth-child(even){background:#f6f8fb}.orders-ledger tbody tr:hover{background:#eaf2f8}.orders-ledger tbody tr{transition:background .15s}
.orders-ledger small{display:block;font-size:11px;font-weight:400;color:#697788;margin-top:4px}
.order-reference{color:#1f3b51;font-weight:700;text-decoration:none;white-space:nowrap}.order-reference:hover{text-decoration:underline}
.order-items-summary{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-money{white-space:nowrap;font-weight:700}
.order-row-actions{display:flex;align-items:center;gap:6px;white-space:nowrap}.order-row-actions form{margin:0}
html body .account-layout .order-row-actions :is(a,button){display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:5px 8px!important;border:1px solid #ccd8e1;border-radius:6px;background:#fff;color:#233a4c;font:600 11px/1.4 Arial,Helvetica,sans-serif;text-decoration:none;cursor:pointer;box-shadow:none}
.order-row-actions :is(a,button):hover{border-color:#45637a!important;background:#f1f6fb!important}.orders-empty{padding:30px!important}.orders-pagination{margin-top:20px}
.account-notice{display:flex;align-items:start;justify-content:space-between;gap:20px;padding:20px;border:1px solid #e2e8f0;border-radius:12px;margin-bottom:12px;background:#f8fafc}.account-notice.is-unread{border-left:3px solid #286c8c;background:#eef6fc}.account-notice h3{margin:0 0 8px!important}.account-notice p{font-size:14px}.account-notice small{font-size:12px;color:#63788a}.notice-actions{display:flex;flex-wrap:wrap;gap:8px}.notice-actions .btn{font-size:12px!important;padding:8px 12px!important}
#currency-preferences{scroll-margin-top:110px}
.case-form-field{display:grid;gap:7px;margin-bottom:16px}.case-form-field label{font-size:13px;font-weight:600}
.case-validation-errors{padding:16px;margin-bottom:20px;border:1px solid #efb5b5;border-radius:10px;background:#fff2f2;color:#923838;font-size:13px}
.evidence-picker{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0;min-width:0}
.evidence-attach{position:relative;display:inline-flex!important;align-items:center;justify-content:center;flex-shrink:0;width:38px;height:38px;background:#edf3f8;border:1px solid #d3deea;border-radius:10px;color:#355873;cursor:pointer;overflow:hidden;margin:0!important}
.evidence-attach svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;pointer-events:none}
html body .evidence-attach input[type=file]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;margin:0!important;padding:0!important;cursor:pointer}
.evidence-attach:focus-within{outline:2px solid #557f9b;outline-offset:2px}.evidence-help{font-size:10px;line-height:1.5;color:#65788a}
.evidence-selected{display:flex;flex-wrap:wrap;gap:6px;width:100%;max-height:125px;overflow:auto}.evidence-selected:empty{display:none}
.evidence-file{display:flex;align-items:center;gap:7px;max-width:100%;padding:6px 8px;border:1px solid #dce4ec;background:#f4f7fa;border-radius:8px;font-size:11px;color:#253344}
.evidence-file img{width:30px;height:30px;object-fit:cover;border-radius:4px}.evidence-file span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:190px}.evidence-file button{padding:0;border:0;background:transparent;color:#52677c;font-size:18px;width:24px;height:24px;cursor:pointer}
.evidence-error{color:#a43232;font-size:12px;line-height:1.5;margin:8px 0;width:100%}.evidence-error[hidden]{display:none}
.evidence-gallery{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;max-width:100%}.evidence-preview{display:flex;flex-direction:column;gap:7px;max-width:180px;padding:8px;background:#ffffff14;border:1px solid #94a3b855;border-radius:8px;color:inherit;overflow-wrap:anywhere;font-size:11px;text-decoration:none}.evidence-preview img{max-width:100%;height:120px;object-fit:contain;border-radius:5px}
.dispute-composer{display:grid;grid-template-columns:38px minmax(0,1fr);column-gap:8px;align-items:start;min-width:0}.dispute-composer .evidence-picker{display:contents;margin:0}.dispute-composer .evidence-help{display:none}.dispute-composer .evidence-selected,.dispute-composer .evidence-error{grid-column:1/-1;grid-row:2}.dispute-composer .evidence-error{grid-row:3}.dispute-composer-row{display:flex;align-items:center;gap:8px;grid-column:2;grid-row:1;min-width:0}.dispute-composer .fb-composer-input{width:0;min-width:0;flex:1;font-size:13px!important;padding:10px 12px!important;height:38px!important}.dispute-composer .fb-send-btn{width:38px;height:38px;flex-shrink:0;border-radius:10px;color:#fff}.dispute-composer .evidence-selected:not(:empty){margin-top:10px}.dispute-composer[aria-busy=true]{opacity:.65;pointer-events:none}
.dispute-message-text{white-space:pre-wrap;overflow-wrap:anywhere}.dispute-closed{display:flex;flex-wrap:wrap;gap:6px 10px;font-size:12px;line-height:1.6}.dispute-closed a{color:#296783;font-weight:600}
.account-disputes-page .fb-chat-header{gap:10px;flex-wrap:wrap;padding:14px!important}.account-disputes-page .fb-chat-header>div{min-width:0}.account-disputes-page .fb-active-status{font-size:11px;overflow-wrap:anywhere}.account-disputes-page .fb-active-name{font-size:14px!important}.account-disputes-page .fb-bubble{font-size:13px;max-width:100%;overflow-wrap:anywhere}.account-disputes-page .fb-bubble-wrap{min-width:0;max-width:85%}
@media(min-width:992px) and (max-width:1300px){.orders-workspace-bar{flex-wrap:wrap}.orders-toolbar{order:3;flex-basis:100%}.orders-shop-link{margin-left:auto}}
@media(max-width:767px){
 html body .account-layout .acct-stat-card{padding:14px!important;gap:8px}.account-layout .acct-stat-card b{font-size:23px!important}.account-layout .acct-stat-card>span{font-size:11px!important}.acct-stat-top svg{width:21px;height:21px}
 .recent-order{padding:13px}.recent-order-heading{gap:8px}.recent-order-heading a{font-size:12px}.recent-order-heading small{font-size:11px}.recent-order-heading .order-state{font-size:9px!important;padding:4px 6px;max-width:90px}.recent-order-summary{padding:12px 0;font-size:12px}.account-layout .recent-order-summary b{font-size:16px!important}.recent-order-actions{gap:8px;margin-top:12px}.recent-order-actions a{flex:1;min-width:0;font-size:11px;padding:7px 9px}
 .orders-workspace-bar{flex-wrap:wrap;gap:14px}.orders-toolbar{order:3;flex-basis:100%;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:8px}.orders-search{grid-column:1/-1}.orders-filter{padding:0 10px}.orders-filter span{display:none}.orders-shop-link{margin-left:auto}.orders-ledger-wrap{margin:0 -4px}.orders-ledger{min-width:650px!important}.orders-ledger :is(th,td){padding:12px 10px!important}.account-notice{flex-direction:column;gap:12px}
 .account-disputes-page .fb-messenger-container{height:65dvh!important;min-height:350px!important}.account-disputes-page .fb-messages-stream{padding:14px!important}.account-disputes-page .fb-chat-footer{padding:12px!important}.account-disputes-page .fb-chat-header .fb-avatar-wrap{display:none}.account-disputes-page .fb-active-status{line-height:1.5}.account-disputes-page .fb-messenger-sidebar{width:100%!important}.account-disputes-page .fb-bubble-wrap{max-width:90%}
}
html[data-theme=dark] :is(.recent-order,.orders-ledger-wrap,.account-notice){background:#17212b;color:#e5edf4;border-color:#3b4c5c}
html[data-theme=dark] .account-layout .orders-ledger{background:#17212b;color:#e5edf4}html[data-theme=dark] .orders-ledger thead,html[data-theme=dark] .orders-ledger tbody tr:nth-child(even){background:#202f3d}html[data-theme=dark] .orders-ledger tbody tr:hover{background:#2b4051}html[data-theme=dark] .order-reference{color:#bad5eb}
@media(prefers-reduced-motion:reduce){.account-layout a.acct-stat-card{transition:none;transform:none!important}}

.orders-scroll-hint{display:none;font-size:11px;color:#687c8c;margin:0 0 10px}@media(max-width:767px){.orders-scroll-hint{display:block}}
.compare-tray:not(.show){visibility:hidden;pointer-events:none}
.account-disputes-page .badge{position:static!important;inset:auto!important;transform:none!important;width:auto!important;height:auto!important;max-width:100%;padding:4px 7px!important;font-size:10px!important;line-height:1.4!important;white-space:normal!important;background:#edf2f6;color:#41596d;border-radius:6px}
.account-disputes-page .fb-thread-info{min-width:0!important}.account-disputes-page .fb-thread-info>div{gap:8px;flex-wrap:wrap}.account-disputes-page .fb-thread-name{font-size:13px!important}.account-disputes-page .fb-thread-snippet{font-size:12px!important}.account-disputes-page .fb-sidebar-title{font-size:17px!important}.account-disputes-page .fb-sidebar-header{padding:16px!important}.account-disputes-page .fb-search-wrap input{min-width:0!important;width:100%!important}
html body .account-disputes-page .resolution-open-card{display:flex!important;flex-direction:column;gap:0!important;overflow-x:hidden;max-height:calc(100dvh - 40px)!important;padding:22px!important}
.resolution-open-card>h3{margin:8px 30px 18px 0!important;line-height:1.4!important}.resolution-open-card>*{min-width:0;max-width:100%;flex-shrink:0}.resolution-open-card .case-form-field{grid-template-columns:minmax(0,1fr)}
html body .resolution-open-card :is(input,select,textarea){min-width:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box;font-size:13px!important}.resolution-open-card>.btn{font-size:12px!important;white-space:normal!important;margin-top:12px;min-height:40px}

.archived-item-review{border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin:10px 0}.archived-item-review summary{cursor:pointer;font-weight:600;font-size:14px}.archived-item-review form{display:grid;gap:12px;margin-top:12px}.archived-item-review label{display:grid;gap:6px;font-size:13px}.archived-item-review .muted{font-size:12px;margin:12px 0}.archived-item-review .btn{justify-self:start}
