/* Shared design layer. Content, assortment and accent stay shop-configurable. */
:root{--ui-ink:#17211e;--ui-muted:#5c6962;--ui-line:#dfe6df;--ui-paper:#fff;--ui-canvas:#f4f6f2;--ui-radius:18px;--shop-accent:#d8fa46}
[hidden]{display:none!important}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #648e5e;outline-offset:4px}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #648e5e;outline-offset:2px}
button:disabled{cursor:not-allowed;opacity:.52;transform:none!important}
.primary-btn,.outline-btn,.location-contact-btn,.chip{transition:background .15s,border-color .15s,box-shadow .15s,transform .15s}
.primary-btn:active,.outline-btn:active,.chip:active{transform:translateY(1px)}
.primary-btn,.outline-btn{min-height:44px;font-size:14px;line-height:1.35;border-radius:10px;padding:11px 16px}
.settings-note,.field-hint,.auth-card small{font-size:13px;line-height:1.6}
.field label,.field>label,.shop-manage-form label,.auth-card label,.auth-modal label{font-size:13px;line-height:1.5}
.field input,.field select,.field textarea,.shop-manage-form input,.shop-manage-form select,.auth-card input{min-height:44px;font-size:15px}
.modal{max-height:calc(100dvh - 40px);overflow-y:auto;overscroll-behavior:contain;border-radius:20px}
.modal-close{min-width:36px;min-height:36px;font-size:24px}
.form-error,.settings-note[data-product-save-status]{font-size:13px!important}
.partner-ad{font-size:11px;min-height:28px;background:#edf1eb;color:#556159}
.partner-ad a{color:#334339}

/* Storefront */
.location-store{--surface:#fff;--canvas:#f4f6f2;--text:#18241d;--secondary:#56635b;--border:#dce4dc;background:var(--canvas);color:var(--text);min-height:100vh;padding:0 28px 28px}
.location-store>main,.location-nav,.location-footer{width:min(100%,1200px);margin-left:auto;margin-right:auto}
.location-store .location-nav{height:auto;min-height:84px;gap:20px;padding:18px 0;display:flex;align-items:center;border-bottom:1px solid var(--border)}
.location-nav .brand{min-width:0;font-size:17px;flex:1;line-height:1.3;background:transparent;text-align:left;color:var(--text)}
.location-nav .brand>span:last-child{overflow-wrap:anywhere}
.brand-mark{overflow:hidden;flex:none}
.brand-mark img{width:100%;height:100%;object-fit:contain;background:#fff}
.redirect-logo{width:64px;height:64px;object-fit:contain;margin-bottom:20px;border-radius:12px}
.redirect-shell[data-theme="clean"]{background:#f4f1ea;color:#17211e}.redirect-shell[data-theme="clean"] .redirect-card{background:#fff;border-color:#dedbd2}.redirect-shell[data-theme="clean"] .redirect-copy h1{color:#17211e}.redirect-shell[data-theme="clean"] .redirect-copy p{color:#536055}
.redirect-shell[data-theme="night"]{background:#141c18;color:#e9f1e9}.redirect-shell[data-theme="night"] .redirect-card{background:#1e2922;border-color:#3b4c40}.redirect-shell[data-theme="night"] .redirect-copy h1{color:#e9f1e9}.redirect-shell[data-theme="night"] .redirect-copy p{color:#b6c3b7}
.mini-preview .hero-cta{background:var(--shop-accent);color:#17211e}
.location-nav .brand em{display:block;font-size:11px;font-style:normal;color:var(--secondary);margin-top:3px}
.location-nav-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px}
.location-nav-actions .nav-link{font-size:13px;color:var(--text);min-height:40px}
.location-cart{display:flex;align-items:center;gap:8px;min-height:42px;min-width:64px;justify-content:center;border-radius:12px;background:#18241d;color:white}
.location-cart svg,.location-shortcut svg,.mobile-store-nav svg{width:21px;height:21px;flex:none}
.location-cart span{display:grid;place-items:center;min-width:22px;height:22px;border-radius:50%;background:var(--shop-accent);color:#17211e;font-size:12px}
.location-shortcut{display:flex;gap:8px;align-items:center;max-width:350px;text-align:left;padding:10px 12px;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:12px;font-size:12px}
.location-shortcut span{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.location-hero{min-height:0!important;margin:22px 0 20px;padding:34px 38px!important;border-radius:22px;background:radial-gradient(ellipse at 98% 0%,#788c34 0%,transparent 46%),#1c2821;box-shadow:none;overflow:hidden}
.location-hero-copy{max-width:850px!important;position:relative!important}
.location-hero-copy>small{font-size:11px;letter-spacing:.12em;color:#d8fa46}
.location-hero h1{font-size:clamp(30px,4vw,48px)!important;line-height:1.08!important;letter-spacing:-.045em;margin:13px 0 12px!important;max-width:850px}
.location-hero-copy>p{position:static!important;transform:none!important;font-size:15px!important;line-height:1.65;color:#d3ddd4;max-width:660px;margin:0 0 20px!important}
.location-hero-copy .catalog-primary{display:inline-flex;background:var(--shop-accent);color:#152018;font-weight:800;min-height:46px;margin:0 0 4px}
.location-hero-copy .location-contact{position:static!important;transform:none!important;margin:15px 0 0!important;padding:0!important;max-width:100%;width:auto!important}
.location-contact-actions{gap:8px!important}
.location-hero-copy .location-contact-btn{background:transparent!important;color:#e5eee7!important;border:1px solid #77877a!important;box-shadow:none!important;font-size:12px!important;min-height:38px!important;padding:8px 12px!important;border-radius:9px!important}
.location-panel{padding:26px!important;margin:0!important;border:1px solid var(--border);background:var(--surface);border-radius:20px!important;box-shadow:none!important}
.location-panel-head{margin-bottom:20px;align-items:center;gap:12px}
.location-panel-head small,.location-selected small{font-size:11px!important;letter-spacing:.1em;color:var(--secondary)}
.location-panel-head h2{font-size:clamp(24px,3vw,32px)!important;letter-spacing:-.035em;line-height:1.15;margin:8px 0 0}
.location-count{font-size:13px;white-space:nowrap;background:var(--canvas);color:var(--secondary);padding:8px 12px;border-radius:999px}
.location-flow{width:100%!important;max-width:none!important;margin:0!important;display:block!important}
.location-step{padding:22px!important;max-width:none!important;margin:0!important;background:var(--canvas)!important;border:0!important;border-radius:14px!important;box-shadow:none!important}
.location-step>small{font-size:11px;color:#5e6d60;letter-spacing:.08em}
.location-step h3{font-size:24px!important;margin:9px 0!important;letter-spacing:-.02em}
.location-step p,.location-empty span{font-size:14px!important;line-height:1.6;color:var(--secondary)}
.location-choice-list{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px!important;margin-top:18px!important}
.location-choice{min-height:56px!important;padding:15px 17px!important;border:1px solid var(--border)!important;border-radius:11px!important;background:var(--surface)!important;color:var(--text)!important;font-size:15px!important;text-align:left}
.location-choice:hover{border-color:#8d9d8f!important;box-shadow:0 4px 14px #18241d08}
.location-choice.selected{border-color:#455c41!important;box-shadow:inset 0 0 0 1px #455c41}
.location-crumbs{margin-bottom:14px;font-size:13px}.location-crumbs button{background:transparent;color:var(--text);padding:8px 0}
.location-selected{padding:14px 16px;background:var(--canvas);border:1px solid var(--border);border-radius:12px;margin-bottom:18px}
.location-selected b{font-size:15px!important;line-height:1.6}.location-selected button{font-size:13px;padding:10px 12px;border-radius:9px;color:var(--text);background:var(--surface)}
.location-kind-filter{margin:18px 0!important;padding:0!important;border:0!important;gap:12px!important}
.location-kind-filter>span{font-size:13px!important;font-weight:700;color:var(--secondary)}
.location-kind-filter .chips{flex-wrap:wrap;overflow:visible}
.chip{min-height:40px!important;font-size:13px!important;border-radius:10px!important;padding:10px 14px!important;background:var(--surface);color:var(--text);border-color:var(--border)}
.chip.active{background:var(--shop-accent)!important;border-color:var(--shop-accent)!important;color:#17211e!important}
.location-products-head{font-size:14px;color:var(--secondary)}
.location-store .product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.location-product-card{background:var(--surface)!important;border:1px solid var(--border)!important;border-radius:15px!important;box-shadow:none;overflow:hidden;display:flex;flex-direction:column;min-width:0;transition:box-shadow .2s,transform .2s}
.location-product-card:hover{box-shadow:0 10px 24px #17211e10;transform:translateY(-3px)}
.location-product-card .product-visual{height:auto!important;aspect-ratio:4/3;background-color:var(--canvas);border-radius:0!important;flex:none;overflow:hidden}
.location-product-card .product-body{padding:18px!important;display:flex;flex-direction:column;gap:9px;flex:1}
.location-product-card .product-body small{font-size:12px!important;line-height:1.5;color:var(--secondary)!important}
.location-product-card h3{font-size:18px!important;line-height:1.35!important;margin:0!important;color:var(--text);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.7em}
.location-product-card .product-description{font-size:14px!important;line-height:1.6;color:var(--secondary);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.location-product-card .product-foot{margin-top:auto;padding-top:12px}
.location-product-card .price{font-size:22px!important;color:var(--text)}
.location-product-card .add{width:auto!important;height:auto!important;min-height:44px;padding:0 16px;background:var(--shop-accent)!important;color:var(--shop-accent-ink,#17211e)!important;border-radius:12px!important;font-size:14px!important}
.location-product-card .add:hover{transform:none}
.product-no-photo{font-size:14px;letter-spacing:0;color:var(--secondary)}
.location-footer{padding:22px 0!important;font-size:13px;color:var(--secondary)}
.location-footer button{min-height:40px;padding:10px 13px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:9px}
.mobile-store-nav,.cart-summary-bar{display:none}
.location-dialog{width:min(520px,calc(100% - 28px));padding:30px;border:0;border-radius:22px;background:#fff;color:#17211e;box-shadow:0 24px 90px #101b1855;max-height:calc(100dvh - 40px);overflow:auto}
.location-dialog::backdrop{background:#101b1870;backdrop-filter:blur(4px)}
.location-dialog .modal-close{position:absolute;top:12px;right:12px;background:#f0f4ed;color:#17211e;border-radius:50%}
.location-dialog h2{font-size:28px;line-height:1.15;letter-spacing:-.03em;margin:12px 0}
.location-dialog p{font-size:14px;line-height:1.6;color:#5b6a60}
.location-dialog form{display:grid;gap:16px;margin-top:24px}.location-dialog label{display:grid;gap:7px;font-size:13px;font-weight:700}.location-dialog select{width:100%;min-height:48px;padding:10px;border:1px solid #d6dfd6;border-radius:10px;background:#fff;font-size:15px;color:#17211e}.location-dialog .primary-btn{background:#d8fa46;color:#17211e}

/* Theme choices affect storefronts and previews only; administration stays legible. */
.location-store[data-theme="clean"]{--canvas:#faf9f6;--surface:#fff;--border:#e4e0d8}
.location-store[data-theme="clean"] .location-hero{background:#ece8df;color:#17211e}
.location-store[data-theme="clean"] .location-hero h1,.location-store[data-theme="clean"] .location-hero-copy>p,.location-store[data-theme="clean"] .location-hero-copy>small{color:#273329}
.location-store[data-theme="clean"] .location-contact-btn{color:#273329!important;border-color:#7e8b7f!important}
.location-store[data-theme="night"]{--canvas:#141c18;--surface:#1e2922;--text:#e9f1e9;--secondary:#b6c3b7;--border:#3b4c40}
.location-store[data-theme="night"] .location-hero{background:radial-gradient(ellipse at 100% 0%,#43592c,transparent 60%),#1c2821}
.location-store[data-theme="night"] .location-choice:hover{border-color:#a3b49b!important}
.location-store[data-theme="night"] .partner-ad{background:#19231c;color:#b6c3b7}.location-store[data-theme="night"] .partner-ad a{color:#d5e2d2}
.location-store[data-theme="night"] .detail-copy p{color:var(--secondary)}

/* Admin workspace */
.modern-admin-shell{background:#f4f6f2;color:#17211e}
.modern-admin-shell .admin-globalbar{height:64px;background:#17251e;color:#f3f7f1;border:0;padding:0 28px}
.modern-admin-shell .admin-globalbar>div>span{font-size:12px}
.modern-admin-shell .admin-layout{display:grid;max-width:1600px;margin:auto;grid-template-columns:230px minmax(0,1fr)}
.app-shell.modern-admin-shell:has(.admin-layout) .sidebar{width:auto;background:#fff;color:#17211e;border-right:1px solid #dfe6df;padding:26px 18px;box-shadow:none}
.app-shell.modern-admin-shell:has(.admin-layout) .side-brand{color:#17211e}
.app-shell.modern-admin-shell:has(.admin-layout) .side-shop{background:#f3f6ef;border:1px solid #dfe6df;color:#17211e}
.app-shell.modern-admin-shell:has(.admin-layout) .side-shop b{color:#17211e}
.app-shell.modern-admin-shell:has(.admin-layout) .side-menu button{color:#4b5d51}
.app-shell.modern-admin-shell:has(.admin-layout) .side-menu button.active{background:#eaf3e0;color:#203c24}
.modern-admin-shell .side-menu{gap:5px}
.modern-admin-shell .side-menu button{font-size:13px;min-height:44px;border-radius:10px;padding:12px;text-align:left;color:#4b5d51}
.modern-admin-shell .side-menu button.active{background:#eaf3e0;color:#203c24;box-shadow:inset 3px 0 0 #69934c}
.modern-admin-main{padding:32px!important;min-width:0}
.modern-admin-main .admin-top h1,.super-main .admin-top h1{font-size:32px;letter-spacing:-.035em;line-height:1.15}
.modern-admin-main .admin-top p,.super-main .admin-top p{font-size:14px;line-height:1.65;color:#5b6a60;max-width:680px}
.modern-admin-main .panel,.super-main>.panel{border:1px solid #dfe6df;border-radius:16px;padding:24px;background:#fff;box-shadow:0 3px 8px #17211e03}
.modern-admin-main .panel h3{font-size:18px;letter-spacing:-.025em}
.modern-admin-main .metric-grid{gap:15px;margin-bottom:22px}
.modern-admin-main .metric{border:1px solid #dfe6df;border-radius:15px;padding:21px;background:#fff}
.modern-admin-main .metric-label,.modern-admin-main .metric-change{font-size:12px;line-height:1.5;color:#5b6a60}
.modern-admin-main .metric strong{font-size:32px;letter-spacing:-.04em;margin:9px 0}
.action-center{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}.action-center h3{margin:7px 0 0}.action-center>div:last-child{display:flex;gap:8px;flex-wrap:wrap}
.geo-admin-grid{gap:20px}.geo-tree{font-size:14px}.geo-district-chip b,.geo-muted{font-size:13px}.geo-district-chip .geo-icon-btn{min-width:28px;min-height:28px}
.product-admin-row{gap:18px;padding:18px 0}.product-admin-info b{font-size:15px}.product-admin-info small{font-size:12px;line-height:1.7}
.admin-order-card{border:1px solid #dfe6df;border-radius:13px;margin-bottom:12px;padding:20px}.order-card-head b{font-size:15px}.order-card-head small{font-size:12px}.order-card-meta .status,.order-card-meta .payment-state{font-size:12px}
.table-scroll th{font-size:11px}.table-scroll td{font-size:13px}
.super-main{width:min(100%,1440px);margin:auto;padding:32px}
.super-main>.panel{margin-bottom:20px}
.super-main>.panel:first-of-type .shop-row{display:grid;grid-template-columns:minmax(220px,1fr) auto auto auto auto;gap:14px;align-items:center;padding:21px 0}
.super-main .shop-row>div:first-child{min-width:0}.super-main .shop-row b{font-size:16px}.super-main .shop-row small{font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.shop-table-tools{display:grid;grid-template-columns:minmax(200px,1fr) 160px 170px;gap:12px;padding:18px 0;border-bottom:1px solid #dfe6df}
.shop-table-tools label{display:grid;gap:6px;font-size:12px;color:#5b6a60}.shop-table-tools input,.shop-table-tools select{height:44px;padding:10px 12px;border:1px solid #d6dfd6;border-radius:9px;background:#fff;color:#17211e;font-size:14px}.shop-table-tools>span{grid-column:1/-1;font-size:12px;color:#5b6a60}
.shop-quick-links{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:9px;font-size:12px}.shop-quick-links a{color:#316148;text-decoration:none;border-bottom:1px solid #c6d6c7}.shop-bot-state{color:#5b6a60}
.theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0 22px}.theme-choice{position:relative;cursor:pointer;border:1px solid #d6dfd6;border-radius:12px;padding:10px!important;display:grid!important;gap:10px!important;color:#17211e!important}.theme-choice:has(input:checked){border-color:#547548;box-shadow:0 0 0 2px #bcd5aa}.theme-choice input{min-height:0!important;width:16px;height:16px;position:absolute;top:17px;right:15px;accent-color:#547548}.theme-swatch{display:block;height:58px;border-radius:7px;background:linear-gradient(90deg,#1c2821 65%,#d8fa46 65%)}.theme-clean .theme-swatch{background:linear-gradient(90deg,#eee9df 65%,#b8b0a1 65%)}.theme-night .theme-swatch{background:linear-gradient(90deg,#141c18 65%,#43592c 65%)}.theme-choice b{font-size:11px;line-height:1.4}
.mini-preview{position:sticky;top:24px;align-self:start;border:1px solid #d8e0d6;border-radius:16px;overflow:hidden;box-shadow:0 15px 35px #17211e0a}.mini-preview .preview-hero{background:#1c2821;color:white;padding:25px}.mini-preview[data-theme="clean"] .preview-hero{background:#ece8df;color:#17211e}.mini-preview[data-theme="night"]{background:#141c18;color:#e9f1e9}.mini-preview[data-theme="night"] .preview-bar{background:#1e2922;color:#e9f1e9}.preview-logo{width:28px;height:28px;object-fit:contain;border-radius:6px}.preview-bar{gap:8px;align-items:center}

/* Payment and wallet */
.payment-page{padding:32px 18px;background:#f4f6f2;align-items:start}
.payment-card{width:min(100%,760px)!important;max-width:760px!important;margin:0 auto;padding:30px}
.payment-card>.brand{font-size:16px;overflow-wrap:anywhere}.payment-card #invoice-state{font-size:16px;line-height:1.6;margin:20px 0;color:#283b2d}
.payment-card #invoice-details>.panel{padding:22px;background:#f7f9f5;border:1px solid #dce5d9;border-radius:14px}
.payment-card #invoice-details>.panel p{font-size:14px;line-height:1.75;color:#263b2c;margin:12px 0}.payment-card #invoice-details small{font-size:12px}.payment-card code{font-size:14px;overflow-wrap:anywhere;user-select:all}.payment-card details{padding:17px 0}.payment-card details summary{font-size:14px;line-height:1.5;cursor:pointer}.payment-card .btn{min-height:44px;padding:11px 15px;border:1px solid #c7d7c3;border-radius:10px;background:#fff;font-size:14px}.payment-card .btn.primary{background:#d8fa46}.payment-card input[data-invoice-txid]{width:100%;min-height:44px;padding:10px;border:1px solid #c7d7c3;border-radius:9px;margin:9px 0;font-size:14px}
.payment-progress{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:22px 0;padding:0;list-style:none}.payment-progress li{display:grid;gap:9px;font-size:12px;line-height:1.4;color:#637266;border-top:2px solid #dce5d9;padding-top:12px}.payment-progress li>span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#eef2eb;color:#52644e;font-size:12px;font-weight:800}.payment-progress li.is-done{border-color:#577f43;color:#253c22}.payment-progress li.is-done>span{background:#d8fa46;color:#17211e}.payment-progress li[aria-current]{font-weight:800}
.payment-qr{margin:22px auto 10px;display:grid;justify-items:center;gap:12px;max-width:310px;text-align:center}.payment-qr svg{width:190px;height:190px;max-width:100%;padding:8px;background:white;border:1px solid #dce5d9;border-radius:12px}.payment-qr figcaption{font-size:12px;line-height:1.6;color:#52644e}.payment-updated{font-size:11px;text-align:center;color:#637266}.payment-alert{padding:14px;background:#fff0db;border:1px solid #edd7b9;border-radius:10px;font-size:14px;color:#745322}.payment-confirmations{font-size:14px;font-weight:700;color:#375e31}
.payment-delivery{margin:18px 0;padding:16px;background:#f2f8ec;border:1px solid #cfe0c2;border-radius:12px;display:grid;gap:10px}.payment-delivery h4{margin:0;font-size:14px;text-transform:uppercase;letter-spacing:.04em;color:#253c22}.payment-delivery p{margin:0;font-size:14px}.payment-delivery-shot{display:block;border-radius:10px;overflow:hidden;border:1px solid #cfe0c2;background:white}.payment-delivery-shot img{display:block;width:100%;height:auto}
.wallet-modal{width:min(680px,100%)}.wallet-subhead{font-size:16px;margin:24px 0 10px}.wallet-bal-row{grid-template-columns:95px minmax(0,1fr) auto;padding:18px 0;align-items:start}.wallet-addr-coin{font-size:14px}.wallet-bal-head small{font-size:12px;margin-top:4px}.wallet-amount-label{font-size:12px;color:#5b6a60}.wallet-bal-nums>b{font-size:25px;letter-spacing:-.025em;margin:3px 0 8px}.wallet-accounting{display:grid;gap:6px;margin:0;font-size:12px}.wallet-accounting>div{display:flex;justify-content:space-between;gap:14px}.wallet-accounting dt{color:#5b6a60}.wallet-accounting dd{margin:0;font-variant-numeric:tabular-nums}.wallet-bal-actions .primary-btn,.wallet-bal-actions .outline-btn,.wallet-copy{min-height:38px;font-size:12px;padding:9px 12px}.wallet-addr-value{font-size:12px;line-height:1.6}.wallet-reserve-note{font-size:13px;line-height:1.6;padding:14px}.wallet-wd-item{font-size:12px;line-height:1.6;border-bottom:1px solid #e4ebe1;padding:10px 0;flex-wrap:wrap}.wallet-seed-zone{background:#f7f9f5;border:1px solid #dce5d9;border-radius:12px;padding:16px}.wallet-seed-zone>.primary-btn{background:#fff;color:#263b2c;border:1px solid #c7d7c3;font-size:13px}

@media(max-width:1050px){.location-nav{flex-wrap:wrap;gap:12px}.location-shortcut{order:3;max-width:100%;width:100%}.location-shortcut span{max-width:none;white-space:normal}.location-nav-actions{margin-left:auto}.modern-admin-shell .admin-layout{grid-template-columns:200px minmax(0,1fr)}.modern-admin-main{padding:24px!important}.action-center{align-items:start;flex-direction:column}.super-main>.panel:first-of-type .shop-row{grid-template-columns:minmax(180px,1fr) auto auto}.theme-options{grid-template-columns:1fr}.theme-choice{grid-template-columns:65px 1fr!important;align-items:center}.theme-swatch{height:44px}}
@media(max-width:720px){
 .location-store{padding:0 14px 150px}.location-nav{padding:14px 0;min-height:70px}.location-nav .brand{font-size:15px}.location-nav .brand em{font-size:10px}.location-nav-actions{gap:4px}.location-nav-actions .nav-link{padding:8px;font-size:12px}.location-cart{min-width:52px;min-height:40px}.location-nav .brand-mark{width:32px;height:32px}.location-shortcut{padding:10px;font-size:12px}.location-shortcut svg{width:18px;height:18px}
 .location-hero{margin:16px 0!important;padding:25px 22px!important;border-radius:17px}.location-hero h1{font-size:32px!important}.location-hero-copy>p{font-size:14px!important}.location-hero-copy .catalog-primary{width:100%;justify-content:center}.location-contact-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))}.location-contact-btn{width:100%;overflow-wrap:anywhere}
 .location-panel{padding:18px!important;border-radius:17px!important}.location-panel-head h2{font-size:25px!important}.location-panel-head{align-items:start}.location-panel-head small{font-size:10px!important}.location-step{padding:15px!important}.location-step h3{font-size:22px!important}.location-choice-list{grid-template-columns:1fr!important}.location-choice{min-height:52px!important}.location-selected{align-items:start}.location-selected b{font-size:13px!important}.location-kind-filter{display:block!important}.location-kind-filter .chips{margin-top:10px;gap:7px}
 .location-store .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.location-product-card .product-body{padding:12px!important}.location-product-card h3{font-size:15px!important}.location-product-card .product-body small{font-size:11px!important}.location-product-card .price{font-size:17px!important}.location-product-card .product-description{font-size:12px!important}.location-product-card .add{width:38px!important;height:38px!important;flex:none}.location-product-card .product-foot{gap:6px;flex-wrap:wrap}.location-footer{font-size:12px;gap:10px;flex-wrap:wrap}
 .mobile-store-nav{position:fixed;z-index:25;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,1fr);background:#fffffff5;backdrop-filter:blur(14px);border-top:1px solid #dce4dc;padding:8px 8px calc(8px + env(safe-area-inset-bottom))}.mobile-store-nav button{display:grid;justify-items:center;gap:5px;background:transparent;color:#425343;min-height:46px;font-size:10px;border-radius:9px}.mobile-store-nav button:active{background:#eef4e8}.mobile-store-nav button:first-child{color:#223e20;font-weight:800}
 .cart-summary-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;position:fixed;bottom:calc(75px + env(safe-area-inset-bottom));left:14px;right:14px;z-index:24;border:1px solid #b4cc7c;min-height:48px;padding:12px 16px;background:var(--shop-accent);color:#18241d;border-radius:12px;box-shadow:0 8px 25px #17211e22;font-size:12px}.cart-summary-bar b{font-size:14px}
 .location-dialog{position:fixed;bottom:0;top:auto;margin:0;width:100%;max-width:none;max-height:90dvh;border-radius:22px 22px 0 0;padding:28px 22px calc(24px + env(safe-area-inset-bottom))}
 .modern-admin-shell .admin-globalbar{padding:0 15px;min-height:58px;height:auto;gap:12px}.admin-globalbar .admin-sync-indicator{font-size:10px}.modern-admin-shell .admin-layout{display:block}.modern-admin-shell .sidebar{padding:14px 12px;border-right:0;border-bottom:1px solid #dfe6df;position:sticky;top:0;z-index:15}.modern-admin-shell .side-menu{display:flex;overflow-x:auto;gap:6px}.modern-admin-shell .side-menu button{font-size:12px;min-height:42px;padding:10px 12px;flex:0 0 auto;width:auto;white-space:nowrap}.modern-admin-shell .side-menu button.active{box-shadow:none}.modern-admin-main{padding:22px 14px!important}.modern-admin-main .admin-top h1,.super-main .admin-top h1{font-size:28px}.modern-admin-main .panel,.super-main>.panel{padding:18px}.modern-admin-main .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.modern-admin-main .metric{padding:15px}.modern-admin-main .metric strong{font-size:28px}.modern-admin-main .metric-label,.modern-admin-main .metric-change{font-size:11px}.action-center>div:last-child{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.action-center .outline-btn{font-size:12px}.super-main{padding:24px 14px}.super-main>.panel:first-of-type .shop-row{grid-template-columns:1fr 1fr;gap:10px}.super-main>.panel:first-of-type .shop-row>div:first-child{grid-column:1/-1}.super-main>.panel:first-of-type .shop-row>.status{justify-self:start}.shop-table-tools{grid-template-columns:1fr 1fr;gap:10px}.shop-table-tools>label:first-child{grid-column:1/-1}.shop-quick-links{gap:9px}.editor-grid{grid-template-columns:1fr}.mini-preview{position:static}.theme-options{grid-template-columns:1fr}.field-grid{grid-template-columns:1fr}.geo-admin-grid{grid-template-columns:1fr}.geo-district-chip b{font-size:12px}
 .payment-page{padding:18px 12px}.payment-card{padding:22px 16px}.payment-card #invoice-details>.panel{padding:16px}.payment-card code{font-size:13px}.payment-progress{gap:8px}.payment-progress li{font-size:11px}.wallet-bal-row{grid-template-columns:1fr;gap:12px}.wallet-bal-actions{flex-direction:row;flex-wrap:wrap}.wallet-addr-row{grid-template-columns:1fr;gap:7px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media(max-width:720px){.location-store .location-nav{height:auto;min-height:0;display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;padding:14px 0}.location-store .location-nav .brand{flex:none}.location-store .location-nav-actions{flex:none;min-width:0;gap:7px;flex-wrap:nowrap;overflow:visible}.location-store .location-shortcut{grid-column:1/-1;order:3;width:100%;max-width:none}.location-store .location-nav .location-cart{min-width:58px}.location-store .location-nav .brand>span:last-child{display:block;font-size:12px;max-width:110px}.location-store .location-nav .brand em{font-size:10px}}
.media-separation-note,.delivery-product-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 0;border-top:1px solid var(--line,#e4e6eb)}
.media-separation-note p,.delivery-product-row small{display:block;margin:6px 0 0;color:#777;font-size:13px}
.media-private-panel .product-delivery-pool{border:0;padding:0;margin:0}
.media-private-panel .panel-kicker{color:#b3422f}
.delivery-product-list{margin-top:16px}
.catalog-cover-preview{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:20px}.catalog-cover-preview img{width:96px;height:96px;object-fit:cover;border-radius:10px}.catalog-cover-preview small{color:#777}
@media(max-width:600px){.media-separation-note,.delivery-product-row{align-items:flex-start;flex-direction:column}.product-admin-actions{flex-wrap:wrap}}

/* ==========================================================================
   Refresh layer: calmer surfaces, fewer boxes, clearer hierarchy.
   Admin, storefront, payment and delivery share one set of tokens.
   ========================================================================== */
:root{--ink:#14201a;--ink-soft:#4d5b53;--ink-faint:#7b887f;--hair:#e4e9e3;--wash:#f3f6f1;--card:#fff;--lime:#d8fa46;--lime-deep:#b8d92f;--coral:#ef5b3a;--ok:#2f7d4a;--ring:0 0 0 3px rgba(104,155,86,.28);--soft-shadow:0 1px 2px rgba(20,32,26,.04),0 12px 32px -12px rgba(20,32,26,.14);--ease:cubic-bezier(.2,.7,.2,1)}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
h1,h2,h3{letter-spacing:-.022em;text-wrap:balance}
p{text-wrap:pretty}
::selection{background:var(--lime);color:var(--ink)}

/* Buttons: one shape, clear states */
.primary-btn,.outline-btn,.btn{border-radius:999px;font-weight:700;letter-spacing:-.005em;transition:background .18s var(--ease),box-shadow .18s var(--ease),transform .18s var(--ease),border-color .18s var(--ease)}
.primary-btn{background:var(--ink);color:#fff;border:1px solid var(--ink)}
.primary-btn:hover{background:#22332a;box-shadow:0 8px 20px -8px rgba(20,32,26,.55);transform:translateY(-1px)}
.outline-btn,.btn{background:#fff;color:var(--ink);border:1px solid var(--hair)}
.outline-btn:hover,.btn:hover{border-color:#c9d3c8;box-shadow:0 6px 16px -10px rgba(20,32,26,.4);transform:translateY(-1px)}
.btn.primary{background:var(--lime);border-color:var(--lime);color:var(--ink)}
.btn.primary:hover{background:#e2ff62;border-color:#e2ff62}
.link-btn{background:none;border:0;padding:0;font:inherit;color:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer;font-weight:700}
.field input,.field select,.field textarea,.shop-manage-form input,.shop-manage-form select,.auth-card input{border-radius:12px;border:1px solid var(--hair);background:#fff;transition:border-color .15s,box-shadow .15s}
.field input:focus,.field select:focus,.field textarea:focus,.auth-card input:focus{border-color:#7fa874;box-shadow:var(--ring);outline:0}

/* Storefront */
.location-store{background:linear-gradient(180deg,#f7f9f4 0,#f1f4ee 420px)}
.location-store .location-nav{position:sticky;top:0;z-index:20;background:rgba(247,249,244,.82);backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid var(--hair)}
.location-hero{border-radius:28px;background:radial-gradient(ellipse at 95% -10%,rgba(216,250,70,.55) 0,transparent 52%),radial-gradient(ellipse at 0% 120%,rgba(104,155,86,.35) 0,transparent 50%),#15221b!important}
.location-hero h1{font-size:clamp(34px,5vw,58px);line-height:1.02;letter-spacing:-.035em}
.location-hero .hero-cta,.location-hero button{border-radius:999px;font-weight:800}
.product-card{border:0;border-radius:22px;background:var(--card);box-shadow:var(--soft-shadow);overflow:hidden;transition:transform .25s var(--ease),box-shadow .25s var(--ease)}
.product-card:hover{transform:translateY(-4px);box-shadow:0 2px 4px rgba(20,32,26,.05),0 22px 44px -16px rgba(20,32,26,.28)}
.product-card .product-visual{transition:transform .5s var(--ease)}
.product-card:hover .product-visual{transform:scale(1.03)}
.product-card .product-body{padding:18px 20px 20px}
.product-card .product-body small{text-transform:uppercase;letter-spacing:.08em;font-size:11px;color:var(--ink-faint);font-weight:700}
.product-card h3{font-size:19px;line-height:1.25;margin:6px 0 8px}
.product-card .price{font-size:22px;font-weight:800;letter-spacing:-.02em}
.product-card .add{width:44px;height:44px;border-radius:50%;background:var(--lime);color:var(--ink);font-weight:800;transition:transform .2s var(--ease),background .2s}
.product-card .add:hover{background:#e4ff6a;transform:scale(1.08) rotate(90deg)}
.chip{border-radius:999px;border:1px solid var(--hair);background:#fff}

/* Admin: flat sections instead of stacked cards */
.modern-admin-shell{background:#f6f8f4}
.modern-admin-shell .admin-globalbar{background:#101a15}
.modern-admin-shell .sidebar{background:#fff;border-right:1px solid var(--hair)}
.modern-admin-shell .side-menu button{border-radius:12px;font-weight:600;color:var(--ink-soft);transition:background .15s,color .15s,padding .2s var(--ease)}
.modern-admin-shell .side-menu button:hover{background:var(--wash);color:var(--ink);padding-left:18px}
.modern-admin-shell .side-menu button.active{background:var(--ink);color:#fff;box-shadow:0 8px 18px -10px rgba(20,32,26,.7)}
.modern-admin-main{background:transparent}
.admin-top h1{font-size:clamp(28px,3vw,38px);letter-spacing:-.03em}
.admin-main .panel{background:transparent;border:0;border-top:1px solid var(--hair);border-radius:0;box-shadow:none;padding:26px 0 8px;margin-top:8px}
.admin-main .panel.form-panel,.admin-main .panel.action-center{background:#fff;border:1px solid var(--hair);border-radius:22px;box-shadow:var(--soft-shadow);padding:26px;margin-top:16px}
.admin-main .metric-grid{gap:0;background:#fff;border:1px solid var(--hair);border-radius:22px;box-shadow:var(--soft-shadow);overflow:hidden}
.admin-main .metric{background:transparent;border:0;border-radius:0;border-right:1px solid var(--hair);padding:24px 26px;box-shadow:none}
.admin-main .metric:last-child{border-right:0}
.admin-main .metric b,.admin-main .metric strong{font-size:38px;letter-spacing:-.04em}
.panel-kicker{letter-spacing:.14em;color:var(--ink-faint);font-weight:800}
.product-admin-row{border:0;border-bottom:1px solid var(--hair);border-radius:0;background:transparent;padding:16px 0;transition:background .15s}
.product-admin-row:hover{background:linear-gradient(90deg,rgba(216,250,70,.12),transparent)}
.product-admin-media img{border-radius:14px}
.toast{border-radius:999px}

/* Payment and delivery pages */
.payment-page{background:radial-gradient(ellipse at 50% -10%,rgba(216,250,70,.35),transparent 55%),#f3f6f1}
.payment-card{border:0;border-radius:28px;box-shadow:var(--soft-shadow),0 40px 80px -40px rgba(20,32,26,.3)}
.payment-success{display:grid;justify-items:center;text-align:center;gap:10px;padding:18px 0 6px}
.payment-success h2{margin:0;font-size:28px;letter-spacing:-.03em}
.payment-success p{margin:0;color:var(--ink-soft);max-width:36ch}
.payment-success-mark{display:grid;place-items:center;width:72px;height:72px;border-radius:50%;background:var(--lime);color:var(--ink);font-size:34px;font-weight:800;animation:pay-pop .6s var(--ease) both;box-shadow:0 0 0 10px rgba(216,250,70,.28)}
.payment-success-mark.is-wait{background:#eef2eb;box-shadow:0 0 0 10px rgba(20,32,26,.04);animation:pay-pulse 1.6s ease-in-out infinite}
.payment-success-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:10px}
.payment-success-actions .btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 22px}
.payment-redirect{min-height:22px;font-size:14px;color:var(--ink-soft)}
.delivery-card{max-width:560px}
.delivery-place{font-size:16px!important}
.payment-delivery-shot{display:block;margin:16px 0 6px;border-radius:22px;overflow:hidden;border:0;box-shadow:var(--soft-shadow)}
.payment-delivery-shot img{display:block;width:100%;height:auto}
@keyframes pay-pop{0%{transform:scale(.4);opacity:0}70%{transform:scale(1.08)}100%{transform:scale(1);opacity:1}}
@keyframes pay-pulse{50%{transform:scale(1.06)}}

/* Motion respects the user's setting */
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Phones: fewer borders, bigger touch targets */
@media(max-width:700px){.admin-main .metric-grid{grid-template-columns:1fr 1fr}.admin-main .metric{border-right:0;border-bottom:1px solid var(--hair);padding:18px}.product-card:hover{transform:none}.payment-success h2{font-size:24px}.location-hero{border-radius:22px;padding:26px 22px!important}}

/* Long shop menus must wrap under the brand instead of squeezing it to one letter per line. */
.location-store .location-nav{flex-wrap:wrap;row-gap:10px}
.location-store .location-nav .brand{flex:1 1 220px;min-width:min(100%,200px)}
.location-nav .brand>span:last-child{overflow-wrap:break-word}
.location-store .location-nav-actions{flex:1 1 auto;min-width:0}

/* Layering: dialogs and toasts sit above every sticky bar (header 20, cart bar 24, mobile nav 25). */
.modal-backdrop{z-index:1000}
.toast{z-index:1100}
body:has(.modal-backdrop) .mobile-store-nav,body:has(.modal-backdrop) .cart-summary-bar{visibility:hidden}

/* Admin sidebar: icons, groups */
.modern-admin-shell .side-menu{display:flex;flex-direction:column;gap:2px}
.modern-admin-shell .side-menu button{display:flex;align-items:center;gap:12px;width:100%;text-align:left}
.modern-admin-shell .side-menu button svg{width:19px;height:19px;flex:none;stroke-width:1.7}
.side-menu .menu-group{display:block;margin:16px 14px 6px;font-size:10.5px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-faint)}
.side-menu .menu-group:first-child{margin-top:4px}
.side-menu .menu-exit{margin-top:14px;border-top:1px solid var(--hair);border-radius:0 0 12px 12px}
.admin-actions button.has-icon,.admin-top button.has-icon{display:inline-flex;align-items:center;gap:8px}
.admin-actions button.has-icon svg{width:17px;height:17px;flex:none}

/* Order rows: title and meta on separate lines instead of running together */
.order-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--hair)}
.order-row>span{display:block;min-width:0}
.order-row .order-id{display:block;margin-top:3px;color:var(--ink-faint);font-size:12px}
.order-row strong{white-space:nowrap}

/* Thumbnails keep their proportions whatever the source image is */
.product-admin-media img,.product-pool-photo img,.catalog-cover-preview img{width:100%;height:100%;object-fit:cover}
.catalog-cover-preview img{width:96px;height:96px;border-radius:12px}

/* Single-column admin: the menu is a horizontal strip again, without group captions */
@media(max-width:720px){
  .modern-admin-shell .side-menu{flex-direction:row;gap:6px;overflow-x:auto}
  .modern-admin-shell .side-menu button{width:auto;flex:0 0 auto;white-space:nowrap;min-height:42px}
  .side-menu .menu-group{display:none}
  .side-menu .menu-exit{margin-top:0;border-top:0;border-radius:10px}
}

/* ==========================================================================
   Polish layer: captcha, sign-in cards, payment page.
   ========================================================================== */

/* Sign-in and system pages share one calm backdrop */
.auth-page{background:radial-gradient(ellipse 70% 50% at 50% -8%,rgba(216,250,70,.38),transparent 62%),radial-gradient(ellipse 50% 40% at 100% 100%,rgba(104,155,86,.16),transparent 70%),#f3f6f1}
.auth-card{border:0;border-radius:28px;padding:34px 32px;box-shadow:var(--soft-shadow),0 40px 80px -44px rgba(20,32,26,.32)}
.auth-card .brand{gap:12px;margin-bottom:6px}
.auth-card .brand b{font-size:15px;letter-spacing:.12em}
.auth-card h1,.auth-card h2{letter-spacing:-.03em}
.auth-card label{font-weight:700;color:var(--ink-soft)}
.auth-card .primary-btn,.auth-card button[type="submit"]{width:100%;min-height:50px;font-size:15px}

/* Captcha: a rounded tile with a round refresh button */
.captcha-line{display:grid;grid-template-columns:minmax(0,1fr) 46px;gap:10px;align-items:stretch}
.captcha-image,.captcha-image[data-captcha-code]{position:relative;min-height:88px;padding:0;border:1px solid var(--hair);border-radius:18px;background:linear-gradient(135deg,#f5f8ff,#ecfaf3);overflow:hidden;box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 6px 18px -14px rgba(20,32,26,.5);color:var(--ink-faint);font-size:13px}
.captcha-image img,.captcha-image[data-captcha-code] img{display:block;width:100%;height:auto;animation:captcha-in .35s var(--ease) both}
.captcha-line .outline-btn,.captcha-line [data-captcha-refresh]{display:grid;place-items:center;width:46px;min-width:46px;height:auto;min-height:46px;padding:0;border-radius:16px;font-size:18px;line-height:1;align-self:center;aspect-ratio:1}
.captcha-line [data-captcha-refresh]:hover{transform:rotate(180deg);transition:transform .45s var(--ease),border-color .18s,box-shadow .18s}
.captcha-line+label,.captcha-line~.field{margin-top:12px}
@keyframes captcha-in{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}

/* Payment page */
.payment-card{width:min(100%,560px);padding:30px 30px 26px}
.payment-card .brand{margin-bottom:4px}
.payment-card #invoice-state{margin:10px 0 4px;font-size:17px;font-weight:700;letter-spacing:-.01em;color:var(--ink)}
.payment-progress{margin:20px 0 22px;gap:8px}
.payment-progress li{border-top:0;padding-top:0;position:relative;font-weight:600;color:var(--ink-faint)}
.payment-progress li::before{content:"";position:absolute;top:13px;left:calc(28px + 6px);right:-14px;height:2px;border-radius:2px;background:var(--hair)}
.payment-progress li:last-child::before{display:none}
.payment-progress li.is-done::before{background:linear-gradient(90deg,#8cc04a,var(--lime))}
.payment-progress li>span{position:relative;z-index:1;background:#fff;border:2px solid var(--hair);color:var(--ink-faint)}
.payment-progress li.is-done>span{background:var(--lime);border-color:var(--lime);color:var(--ink)}
.payment-progress li[aria-current]{color:var(--ink)}
.payment-progress li[aria-current]>span{box-shadow:0 0 0 5px rgba(216,250,70,.35)}
.payment-qr{margin:6px auto 18px;padding:18px 18px 14px;max-width:290px;border-radius:22px;background:#fff;border:1px solid var(--hair);box-shadow:var(--soft-shadow)}
.payment-qr svg{border:0;padding:0;width:200px;height:200px}
.payment-qr figcaption{font-size:12px;line-height:1.55;color:var(--ink-faint)}
.payment-updated{margin:0 0 10px}
.payment-card #invoice-details>.panel{background:var(--wash);border:0;border-radius:22px;box-shadow:none;padding:6px 20px 18px}
.payment-card #invoice-details>.panel>p{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:0;padding:13px 0;border-bottom:1px solid var(--hair);font-size:14px;line-height:1.5;color:var(--ink-soft)}
.payment-card #invoice-details>.panel>p:last-of-type{border-bottom:0}
.payment-card #invoice-details>.panel>p>b:first-child{flex:0 0 100%;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-faint)}
.payment-card code{display:inline-block;padding:6px 10px;border-radius:10px;background:#fff;border:1px solid var(--hair);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13.5px;color:var(--ink);overflow-wrap:anywhere;word-break:break-all}
.payment-card #invoice-details>.panel>p:nth-of-type(2) code{font-size:19px;font-weight:800;letter-spacing:-.01em;padding:8px 14px;background:var(--lime);border-color:var(--lime)}
.payment-card [data-copy-payment]{min-height:34px;padding:6px 14px;font-size:12px}
.payment-card [data-invoice-timer]{display:inline-block;padding:3px 10px;border-radius:999px;background:var(--ink);color:#fff;font-variant-numeric:tabular-nums;font-size:13px}
.payment-card [data-invoice-status]{font-weight:800;color:var(--ink)}
.payment-card .form-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 6px}
.payment-card .form-actions .btn{flex:1 1 180px}
.payment-card details{margin-top:6px;padding:14px 16px;border:1px solid var(--hair);border-radius:16px;background:#fff}
.payment-card details[open]{box-shadow:var(--soft-shadow)}
.payment-card details summary{font-weight:700;list-style:none}
.payment-card details summary::-webkit-details-marker{display:none}
.payment-card details summary::after{content:"+";float:right;font-weight:800;color:var(--ink-faint);transition:transform .2s var(--ease)}
.payment-card details[open] summary::after{transform:rotate(45deg)}
.payment-card input[data-invoice-txid]{border-radius:12px}
.payment-card .settings-note,.payment-card #invoice-details small{color:var(--ink-faint)}
.payment-alert{border-radius:16px}
.payment-confirmations{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;background:#eaf6e2;color:var(--ok)}
.payment-confirmations::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--ok);animation:pay-pulse 1.4s ease-in-out infinite}

@media(max-width:560px){
  .auth-card{padding:26px 20px}
  .payment-card{padding:22px 16px 20px}
  .payment-card #invoice-details>.panel{padding:4px 14px 14px}
  .payment-progress li{font-size:11px}
  .payment-progress li::before{left:calc(28px + 4px)}
  .payment-qr{padding:14px 14px 10px}
  .payment-qr svg{width:180px;height:180px}
}
.payment-card #invoice-details>.panel small{text-align:left}

/* Coin and network marks, copy feedback */
.coin-mark{width:26px;height:26px;flex:none;display:block}
.coin-badge,.net-chip{display:inline-flex;align-items:center;gap:8px;vertical-align:middle}
.coin-badge{padding:3px 12px 3px 4px;border-radius:999px;background:#fff;border:1px solid var(--hair);font-size:13px;letter-spacing:.02em}
.net-chip{padding:4px 14px 4px 5px;border-radius:999px;background:#fff;border:1px solid var(--hair);font-weight:700;color:var(--ink)}
.net-chip .coin-mark{width:22px;height:22px}
.payment-card [data-copy-payment].is-copied{background:var(--lime);border-color:var(--lime);color:var(--ink)}
.payment-card [data-copy-payment]{white-space:nowrap}

/* Review fixes: compact icon buttons, file pickers, aligned field grids, one focus ring */
.geo-icon-btn,.outline-btn.geo-icon-btn{min-height:32px;height:32px;min-width:32px;width:32px;padding:0;border-radius:10px;display:inline-grid;place-items:center;font-size:14px;line-height:1}
.remove-link{width:auto;min-height:32px;padding:6px 14px;border-radius:999px;border:1px solid #f1d4cd;background:#fff6f4;color:#b8412b;font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer;transition:background .15s,border-color .15s}
.remove-link:hover{background:#ffe9e4;border-color:#e9b9ae}
.geo-icon-btn.remove-link{width:32px;padding:0}
input[type="file"]{width:100%;font:inherit;font-size:13px;color:var(--ink-soft);padding:8px;border:1px dashed #c4d0c3;border-radius:14px;background:#fff;cursor:pointer}
input[type="file"]::file-selector-button{margin-right:12px;padding:9px 16px;border:0;border-radius:999px;background:var(--ink);color:#fff;font:inherit;font-weight:700;cursor:pointer;transition:background .18s}
input[type="file"]::file-selector-button:hover{background:#2a3d32}
.field-grid{align-items:start}
.primary-btn:focus-visible,.outline-btn:focus-visible,.btn:focus-visible,.remove-link:focus-visible{outline:0;box-shadow:var(--ring)}
.admin-main .primary-btn:hover{filter:brightness(1.06);transform:translateY(-1px)}
.admin-main .primary-btn:active,.admin-main .outline-btn:active{transform:translateY(0)}

/* ==========================================================================
   Phones: no sideways scrolling, a compact header, links as buttons in the hero
   ========================================================================== */
@media(max-width:720px){
  html,body{max-width:100%;overflow-x:hidden}
  .location-store{padding:0 14px calc(150px + env(safe-area-inset-bottom))}
  .location-store .location-nav{flex-wrap:wrap;gap:10px 8px;padding:10px 0 12px;min-height:0}
  .location-store .location-nav .brand{flex:1 1 0;min-width:0}
  .location-nav .brand>span:last-child{font-size:15px;line-height:1.25}
  .location-store .location-nav-actions{flex:0 0 auto;min-width:0;flex-wrap:nowrap;justify-content:flex-end;gap:6px;margin-left:auto}
  /* The shop's menu links already sit in the hero as buttons; the header keeps only sign-in and the cart. */
  .location-store .location-nav-actions a.nav-link{display:none}
  .location-store .location-nav-actions .nav-link{min-height:40px;padding:0 10px;white-space:nowrap}
  .location-shortcut{order:3;flex:1 1 100%;max-width:none;width:100%}
  .location-shortcut span{max-width:none;flex:1;text-align:left}
  .location-hero{margin:12px 0 14px;padding:24px 20px!important;border-radius:24px}
  .location-hero h1{font-size:clamp(28px,8.6vw,38px);overflow-wrap:anywhere}
  .location-hero .location-contact-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .location-hero .location-contact-actions a,.location-hero .location-contact-btn{min-width:0;overflow-wrap:anywhere;text-align:center;justify-content:center}
  .location-store main section,.location-store .panel{max-width:100%}
  img,svg,video{max-width:100%}
}

/* Order states: payment and fulfilment as coloured pills */
.pay-badge,.status[class*="status-"],.order-list-panel .status{display:inline-flex;align-items:center;gap:6px;margin:0;padding:5px 11px 5px 9px;border-radius:999px;font-size:12px;font-weight:700;line-height:1.2;white-space:nowrap}
.pay-badge::before,.status[class*="status-"]::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;flex:none}
.pay-paid{background:#e4f5ea;color:#1c7a40}
.pay-pending{background:#fff1d6;color:#92600a}
.pay-expired{background:#fde6e2;color:#b3382a}
.pay-cancelled{background:#eceeed;color:#5b6a60}
.status-new{background:#e4eeff;color:#2a56b5}
.status-confirmed{background:#dcf4ef;color:#12705f}
.status-processing{background:#efe8ff;color:#5a3bb0}
.status-shipped{background:#e4e8ff;color:#3846a8}
.status-completed,.status-paid,.status-fulfilled{background:#e4f5ea;color:#1c7a40}
.status-cancelled,.status-expired{background:#eceeed;color:#5b6a60}
.order-card-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.order-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.order-right{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.order-right .pay-badge,.order-right .status{font-size:11px}
.admin-main .admin-order-card{border:1px solid var(--hair);border-left:4px solid #cfd8cf;border-radius:16px;background:#fff;padding:18px 20px;box-shadow:none}
.admin-order-card[data-pay="paid"]{border-left-color:#3fae6a}
.admin-order-card[data-pay="pending"]{border-left-color:#f0b43a}
.admin-order-card[data-pay="expired"]{border-left-color:#e2705f}
.admin-order-card[data-pay="cancelled"]{border-left-color:#aeb8b0;background:#fafbfa}
.order-actions{display:flex;flex-wrap:wrap;gap:8px}
.order-actions select{min-height:40px;border-radius:12px;border:1px solid var(--hair);padding:0 12px;background:#fff;font:inherit}

/* Phones: order cards stack and their actions go full width */
@media(max-width:720px){
  .order-card-head{display:flex;flex-direction:column;gap:6px}
  .order-card-head>strong{font-size:20px}
  .admin-main .admin-order-card{padding:16px}
  .order-actions>*{flex:1 1 100%;width:100%}
  .order-row{align-items:flex-start}
  .order-right{align-items:flex-end}
}

/* Order lists: location line and the paid / waiting / all switch */
.order-place{margin:4px 0 2px;font-size:14px;font-weight:700;color:var(--ink)}
.order-place::before{content:"";display:inline-block;width:8px;height:8px;margin-right:8px;border-radius:50%;background:#3fae6a;vertical-align:middle}
.order-filter{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 14px}
.order-filter .chip{min-height:38px;padding:0 14px;font-weight:700;font-size:13px;cursor:pointer}
.order-filter .chip.active{background:var(--ink);border-color:var(--ink);color:#fff}

/* Buyer profile */
.profile-modal{width:min(560px,100%);max-height:calc(100dvh - 32px);overflow-y:auto}
.profile-orders{display:grid;gap:12px;margin:14px 0}
.profile-order{padding:16px;border:1px solid var(--hair);border-left:4px solid #cfd8cf;border-radius:16px;background:#fff}
.profile-order[data-pay="paid"]{border-left-color:#3fae6a}
.profile-order[data-pay="pending"]{border-left-color:#f0b43a}
.profile-order[data-pay="expired"]{border-left-color:#e2705f}
.profile-order[data-pay="cancelled"]{border-left-color:#aeb8b0}
.profile-order-head{display:flex;justify-content:space-between;gap:12px;align-items:baseline}
.profile-order p{margin:8px 0 0;color:var(--ink-soft);font-size:14px}
.profile-order .btn{margin-top:10px}
.profile-delivery .payment-delivery-shot{margin:12px 0 8px}
.profile-delivery .btn{text-decoration:none;display:inline-flex}
.auth-modal .form-error{min-height:20px;margin:8px 0 0;color:#b3382a;font-size:13px}

/* Geography tree and product on/off switch */
.geo-admin-grid{align-items:start}
.geo-tree{display:grid;gap:14px}
.geo-country{background:#fff;border:1px solid var(--hair);border-radius:20px;padding:6px 18px 10px;box-shadow:var(--soft-shadow);overflow:hidden}
.geo-country-head{padding:12px 0 10px;border-bottom:1px solid var(--hair)}
.geo-country-head>b{font-size:16px;letter-spacing:-.01em}
.geo-city{padding:14px 0;border-bottom:1px dashed var(--hair)}
.geo-city:last-child{border-bottom:0;padding-bottom:6px}
.geo-city-title>span{font-weight:700;font-size:14px;color:var(--ink)}
.geo-row-actions{flex-wrap:wrap;justify-content:flex-end}
.geo-district-list{gap:8px;padding-left:14px}
.geo-district-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 4px 4px 12px;border:1px solid var(--hair);border-radius:999px;background:var(--wash);transition:border-color .15s,background .15s}
.geo-district-chip:hover{border-color:#c9d6c4;background:#fff}
.geo-district-chip b{font-weight:600}
.geo-muted{padding-left:14px;color:var(--ink-faint)}
.geo-add-district-btn{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 14px;border:1px dashed #a9c07a;border-radius:999px;background:rgba(216,250,70,.22);color:var(--ink);font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
.geo-add-district-btn b{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--ink);color:var(--lime);font-size:13px;line-height:1}
.geo-add-district-btn:hover{background:var(--lime);border-style:solid;border-color:var(--lime-deep)}
.geo-add-district-btn:active{transform:scale(.97)}
.geo-add-district-btn:disabled{opacity:.5;cursor:wait}

.product-admin-info{display:grid;gap:3px;justify-items:start}
.product-admin-state{display:inline-flex;align-items:center;gap:6px;margin-top:3px;font-size:12px;font-weight:700;color:var(--ok)}
.product-admin-state i{width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 0 3px color-mix(in srgb,currentColor 18%,transparent)}
.product-admin-state.is-off{color:var(--ink-faint)}
.product-admin-state.is-empty{color:#b8741a}
.stock-pill{display:inline-block;padding:2px 10px;border-radius:999px;background:var(--wash);border:1px solid var(--hair);font-size:11.5px;font-weight:600;color:var(--ink-soft)}
.stock-pill.is-zero{background:#fff6ea;border-color:#f0dcbc;color:#b8741a}
.product-admin-row.is-off{background:repeating-linear-gradient(135deg,transparent 0 10px,rgba(20,32,26,.025) 10px 20px)}
.product-admin-row.is-off .product-admin-media,.product-admin-row.is-off .product-admin-info>b,.product-admin-row.is-off .product-admin-price{opacity:.45}
.product-admin-row.is-off .product-admin-media img{filter:grayscale(1)}
.product-switch{display:inline-flex;align-items:center;gap:9px;min-height:34px;padding:0 12px 0 4px;border:1px solid var(--hair);border-radius:999px;background:#fff;color:var(--ink-faint);font:inherit;font-size:12px;font-weight:700;cursor:pointer;transition:background .18s,border-color .18s,color .18s}
.product-switch i{position:relative;width:34px;height:20px;border-radius:999px;background:#cfd8cf;transition:background .18s}
.product-switch i::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(20,32,26,.3);transition:transform .18s}
.product-switch.is-on{color:var(--ink);border-color:#bcd77a;background:rgba(216,250,70,.2)}
.product-switch.is-on i{background:var(--ok)}
.product-switch.is-on i::after{transform:translateX(14px)}
.product-switch:hover{border-color:#a9c07a}
.product-switch:focus-visible,.geo-add-district-btn:focus-visible{outline:0;box-shadow:var(--ring)}
@media(max-width:620px){.geo-country{padding:4px 14px 8px}.geo-district-list{padding-left:0;display:flex}.geo-district-chip{display:inline-flex;grid-template-columns:none}.geo-city-title{flex-wrap:wrap}.product-switch{order:-1}}
@media(prefers-reduced-motion:reduce){.product-switch i,.product-switch i::after,.geo-add-district-btn{transition:none}}
.product-admin-actions{flex-wrap:wrap;justify-content:flex-end}

/* One product restocked in several districts */
.delivery-spot{margin:12px 0 16px}
.pool-spots{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.pool-spot{display:inline-flex;align-items:center;gap:8px;padding:5px 6px 5px 12px;border:1px solid var(--hair);border-radius:999px;background:var(--wash);font-size:12.5px}
.pool-spot b{font-weight:700}
.pool-spot small{color:var(--ink-faint)}
.pool-spot i{display:grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--ink);color:var(--lime);font-style:normal;font-size:12px;font-weight:700}
.pool-photo-spot,.product-admin-spots{color:var(--ink-soft)}

/* ---- Storefront redesign, 2026-10-31 -------------------------------------
   The first thing a buyer does is choose a district: the picker leads on a phone,
   the banner shrinks to a strip, the accent colour always carries readable text,
   and the contact buttons stay in one row. */
.location-store>main{display:flex;flex-direction:column}
.location-hero{padding:26px 32px!important}
.location-hero h1{font-size:clamp(26px,3.2vw,38px)!important}
@media(max-width:1050px){.location-hero-art{display:none!important}}
.location-hero-copy .catalog-primary,.location-store .catalog-primary{background:var(--shop-accent);color:var(--shop-accent-ink,#152018)}
.location-cart span{color:var(--shop-accent-ink,#17211e)}
@media(max-width:720px){
  .location-store>main>.location-panel{order:-1;margin-top:14px!important}
  .location-store>main>.location-hero{order:1;margin:14px 0!important;padding:18px!important}
  .location-hero h1{font-size:24px!important;margin:6px 0 8px!important}
  .location-hero-copy>p{display:none!important}
  .location-hero .location-contact-btn{min-height:38px}
}
.location-crumbs:empty{display:none}
/* Empty states say what to do instead of leaving a hole. */
.location-empty,.muted-empty{display:grid;gap:6px;justify-items:center;text-align:center;padding:28px 18px;border:1px dashed var(--border,#dce4dc);border-radius:14px;color:var(--secondary,#56635b);font-size:14px;line-height:1.5}
.location-empty b,.muted-empty b{color:var(--text,#18241d);font-size:15px}

/* Product cards: how much is left, and a button that says what it does. */
.location-product-card .product-visual{position:relative}
.stock-badge{position:absolute;top:10px;left:10px;padding:4px 10px;border-radius:999px;background:#fff6ea;border:1px solid #f0dcbc;color:#9a5d10;font-size:12px;font-weight:700;line-height:1.3;box-shadow:0 2px 8px #18241d1f}
.location-product-card .product-foot{display:grid!important;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:center}
.location-product-card .add{display:flex;align-items:center;justify-content:center;gap:8px;font-size:14px;font-weight:800;line-height:1}
.location-product-card .add span{font-weight:800}

/* Account button: the balance, and a dot while there is something new. */
.account-balance{display:inline-flex;align-items:center;gap:6px;margin-left:8px;padding:2px 9px;border-radius:999px;background:var(--shop-accent,#d8fa46);color:var(--shop-accent-ink,#152018);font-size:12px;font-weight:800;line-height:1.5;position:relative}
.account-balance.has-new::after{content:"";width:8px;height:8px;border-radius:50%;background:#e2483d;box-shadow:0 0 0 2px #fff}
.toast-action{display:flex!important;align-items:center;gap:14px;padding:10px 10px 10px 18px!important;border-radius:16px!important;max-width:calc(100vw - 32px)}
.toast-action button{min-height:36px;padding:0 14px;border:0;border-radius:10px;background:var(--shop-accent,#d8fa46);color:#152018;font-weight:800;cursor:pointer}

/* Cart: pay from the balance. */
.balance-pay{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:14px 0 4px;padding:12px 14px;border:1px solid #bcd77a;border-radius:14px;background:rgba(216,250,70,.18);font-size:14px}
.balance-pay .primary-btn,.balance-pay .outline-btn{min-height:40px;padding:8px 14px}

/* Profile page */
.profile-page{--surface:#fff;--canvas:#f4f6f2;--text:#18241d;--secondary:#56635b;--border:#dce4dc;min-height:100vh;background:var(--canvas);color:var(--text);padding:0 20px 56px}
.profile-page[data-theme="night"]{--surface:#1e2922;--canvas:#141c18;--text:#e9f1e9;--secondary:#a9b8ac;--border:#3b4c40}
.profile-bar,.profile-main{width:min(100%,920px);margin:0 auto}
.profile-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0;border-bottom:1px solid var(--border)}
.profile-brand{display:flex;align-items:center;gap:10px;min-width:0;font-size:16px}
.profile-brand b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-main{display:grid;gap:18px;padding-top:22px}
.profile-card,.profile-panel{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:22px}
.profile-guest{display:grid;gap:12px;justify-items:start;padding:34px}
.profile-guest h1{margin:0;font-size:28px;letter-spacing:-.03em}
.profile-guest p{margin:0;color:var(--secondary)}
.profile-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,340px);gap:18px;align-items:stretch}
.profile-id{display:flex;flex-direction:column;justify-content:center;gap:6px;min-width:0}
.profile-id h1{margin:0;font-size:clamp(26px,4vw,38px);letter-spacing:-.04em;overflow-wrap:anywhere}
.profile-id p{margin:4px 0 0;color:var(--secondary);font-size:14px;line-height:1.55;max-width:46ch}
.balance-card{display:grid;gap:6px;align-content:center;padding:22px;border-radius:20px;background:radial-gradient(ellipse at 100% 0%,#788c34 0%,transparent 55%),#1c2821;color:#fff}
.balance-card small{font-size:11px;letter-spacing:.12em;color:#d8fa46}
.balance-card strong{font-size:clamp(30px,5vw,40px);letter-spacing:-.04em;line-height:1.1}
.balance-actions{margin-top:12px}
.balance-actions .primary-btn{background:var(--shop-accent,#d8fa46);color:var(--shop-accent-ink,#152018);border:0;font-weight:800;min-height:46px}
.panel-head h2{margin:0 0 14px;font-size:20px;letter-spacing:-.02em}
.balance-history{display:grid;gap:8px}
.balance-row{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 12px;border:1px solid var(--border);border-radius:14px;background:var(--surface)}
.balance-row b{display:block;font-size:14px;overflow-wrap:anywhere}
.balance-row small{display:block;margin-top:2px;color:var(--secondary);font-size:12px}
.balance-row strong{font-size:15px;white-space:nowrap}
.balance-ico{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#e8f6ec;color:#1f7a45;font-size:20px;font-weight:700}
.balance-row.is-spend .balance-ico{background:#f3efe9;color:#6a5a47}
.balance-row.is-spend strong{color:var(--secondary)}
.balance-row.is-new{border-color:#bcd77a;background:rgba(216,250,70,.18)}
.topup-modal{width:min(440px,100%)}
.topup-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.topup-chips .chip{min-height:38px}
.topup-modal .field{display:grid;gap:6px;margin-bottom:12px}
.topup-modal .field input,.topup-modal .field select{width:100%;padding:0 12px;border:1px solid var(--hair,#dce4dc);border-radius:10px;background:#fff}
.topup-modal .primary-btn{width:100%;margin-top:6px}
@media(max-width:720px){
  .profile-page{padding:0 14px 96px}
  .profile-hero{grid-template-columns:1fr}
  .profile-card,.profile-panel{padding:16px;border-radius:16px}
  .balance-row{grid-template-columns:32px minmax(0,1fr);row-gap:4px}
  .balance-row strong{grid-column:2}
  .profile-bar .outline-btn{padding:8px 12px;min-height:40px}
}

/* Admin: stock per district, restock in one tap, orders by district. */
.stock-matrix-panel{margin-bottom:16px}
.stock-matrix-scroll{overflow-x:auto;margin-top:10px;-webkit-overflow-scrolling:touch}
.stock-matrix{width:100%;border-collapse:separate;border-spacing:0;font-size:13px}
.stock-matrix th,.stock-matrix td{padding:9px 12px;border-bottom:1px solid var(--hair);text-align:center;white-space:nowrap}
.stock-matrix thead th{font-size:12px;color:var(--ink-soft);vertical-align:bottom}
.stock-matrix thead th small{display:block;font-weight:400;color:var(--ink-faint)}
.stock-matrix tbody th{text-align:left;font-weight:700;position:sticky;left:0;background:#fff;max-width:200px;overflow:hidden;text-overflow:ellipsis}
.stock-matrix td{font-weight:800;font-variant-numeric:tabular-nums}
.stock-matrix td.is-ok{color:#1f7a45}
.stock-matrix td.is-low{background:#fff6ea;color:#b8741a}
.stock-matrix td.is-zero{background:#fdecea;color:#c0392b}
.stock-matrix td.is-none{color:var(--ink-faint);font-weight:400}
.product-restock{min-height:38px;padding:8px 14px;font-weight:800}
.order-district{display:inline-flex;align-items:center;gap:8px;margin-left:auto;font-size:13px;color:var(--ink-soft)}
.order-district select{min-height:38px;padding:0 10px;border:1px solid var(--hair);border-radius:999px;background:#fff;font:inherit}
@media(max-width:720px){
  .admin-main{padding-left:14px!important;padding-right:14px!important}
  .product-admin-actions>*{min-height:44px}
  .order-district{margin-left:0;width:100%}.order-district select{flex:1}
}
@media(max-width:720px){
  .location-product-card .product-foot{grid-template-columns:1fr!important;gap:10px}
  .location-product-card .add{width:100%!important}
}
.location-product-card .add{white-space:nowrap}
.toast-action{width:max-content;white-space:normal}
@media(max-width:720px){.toast-action{bottom:88px!important}}
.profile-bar .outline-btn{white-space:nowrap}

/* Free delivery photos: change the district and the note without deleting the photo. */
.pool-photo-note{display:block;margin-top:4px;color:var(--ink-soft);font-style:italic;overflow-wrap:anywhere}
.product-pool-photo .pool-photo-edit{grid-column:1/-1;margin:0;font-size:13px}
.pool-photo-edit summary{cursor:pointer;color:var(--accent,#2563eb);font-weight:600;list-style:none}
.pool-photo-edit summary::-webkit-details-marker{display:none}
.pool-photo-edit[open] summary{margin-bottom:8px}
.pool-photo-edit .delivery-photo-edit-form{display:grid;gap:8px}
.pool-photo-edit .field-grid{display:grid;grid-template-columns:1fr;gap:8px}
.pool-photo-edit .field-grid .field{margin:0}
.pool-photo-edit textarea{width:100%;box-sizing:border-box}
.delivery-note{margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere}

/* Product first: the card is the button, the district is asked afterwards. */
.product-first .location-step{margin-bottom:14px}
.location-product-card[data-pick-product]{cursor:pointer}
.location-product-card.is-picked{outline:3px solid var(--shop-accent,var(--accent,#ec5b39));outline-offset:2px;transition:outline-color .6s}
.place-group{margin:14px 0 0}
.place-group>b{display:block;margin-bottom:6px;font-size:13px;color:var(--ink-soft)}
/* Menu buttons: move up / down */
.link-row{grid-template-columns:1fr 1.4fr 110px auto 34px}
.link-row .link-move{display:inline-flex;gap:4px}
.link-row .link-move .outline-btn{padding:6px 10px;min-width:34px}
@media(max-width:650px){.link-row{grid-template-columns:1fr}}

/* Admin «Статистика»: tiles, SVG charts, funnel, table. Series colours follow the validated
   categorical order (site = blue, bot = orange, orders = aqua); the previous period is a dashed grey. */
.stats-controls,.stats-page{--stats-surface:#fcfcfb;--stats-ink:#0b0b0b;--stats-ink-2:#52514e;--stats-ink-3:#6f6e69;--stats-line:#e4e3de;--stats-up:#0b7a3b;--stats-down:#b42318;--series-site:#2a78d6;--series-bot:#eb6834;--series-orders:#1baf7a}
.stats-controls{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;margin:0 0 16px}
.stats-seg{display:inline-flex;border:1px solid var(--stats-line);border-radius:10px;overflow:hidden;background:#fff}
.stats-seg button{border:0;background:transparent;padding:9px 14px;font:inherit;font-size:13px;cursor:pointer;color:var(--stats-ink-2)}
.stats-seg button+button{border-left:1px solid var(--stats-line)}
.stats-seg button.is-on{background:var(--stats-ink);color:#fff}
.stats-check{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--stats-ink-2);cursor:pointer}
.stats-page{transition:opacity .2s;color:var(--stats-ink)}
.stats-page.is-loading{opacity:.55}
.stats-period{margin:0 0 14px;font-size:13px;color:var(--stats-ink-3)}
.stats-empty{padding:24px;text-align:center;color:var(--stats-ink-3);font-size:14px}
.stats-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px;margin-bottom:16px}
.stats-tile{background:var(--stats-surface);border:1px solid var(--stats-line);border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:4px;min-width:0}
.stats-tile small{font-size:12px;color:var(--stats-ink-2)}
.stats-tile b{font-size:26px;line-height:1.15;font-weight:700;letter-spacing:-.01em;overflow-wrap:anywhere}
.stats-tile em{font-style:normal;font-size:12px;color:var(--stats-ink-3)}
.stats-delta{font-size:12px;font-weight:600;color:var(--stats-ink-3)}
.stats-delta.is-up{color:var(--stats-up)}
.stats-delta.is-down{color:var(--stats-down)}
.stats-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px}
@media(max-width:900px){.stats-grid-2{grid-template-columns:minmax(0,1fr)}}
.stats-card{background:var(--stats-surface);border:1px solid var(--stats-line);border-radius:14px;padding:16px;min-width:0;margin-bottom:0}
.stats-page>.stats-card{margin-bottom:16px}
.stats-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:8px}
.stats-card h3{margin:0;font-size:15px}
.stats-card-head p{margin:2px 0 0;font-size:12px;color:var(--stats-ink-3)}
.stats-card-total{font-size:20px}
.stats-legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin:0 0 6px;font-size:12px;color:var(--stats-ink-2)}
.stats-legend span{display:inline-flex;align-items:center;gap:6px}
.stats-legend i{display:inline-block;width:14px;height:3px;border-radius:2px}
.stats-legend i.is-dash{height:0;background:none!important}
.stats-plot{position:relative}
.stats-svg{display:block;width:100%;height:auto;touch-action:pan-y}
.stats-grid{stroke:var(--stats-line);stroke-width:1}
.stats-axis{font-size:11px;fill:var(--stats-ink-3)}
.stats-cross{stroke:var(--stats-ink-3);stroke-width:1;stroke-dasharray:3 3}
.stats-tip{position:absolute;z-index:3;pointer-events:none;min-width:150px;background:#fff;border:1px solid var(--stats-line);border-radius:10px;padding:8px 10px;box-shadow:0 8px 24px rgba(0,0,0,.12);font-size:12px}
.stats-tip-date{color:var(--stats-ink-3);margin-bottom:4px}
.stats-tip-row{display:flex;align-items:center;gap:8px;line-height:1.7}
.stats-tip-row i{display:inline-block;width:12px;height:0;border-top:3px solid transparent;flex:none}
.stats-tip-row b{font-size:14px;color:var(--stats-ink)}
.stats-tip-row span{color:var(--stats-ink-2)}
.stats-funnel,.stats-rows{display:grid;gap:10px}
.stats-funnel-row{display:grid;grid-template-columns:150px minmax(0,1fr) 56px;gap:4px 12px;align-items:center;font-size:13px}
.stats-funnel-row small{grid-column:2/4;color:var(--stats-ink-3);font-size:11px;margin-top:-4px}
.stats-funnel-row b,.stats-row b{text-align:right}
.stats-row{display:grid;grid-template-columns:150px minmax(0,1fr) 56px;gap:12px;align-items:center;font-size:13px}
.stats-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stats-funnel-bar{height:12px;border-radius:0 6px 6px 0;background:transparent}
.stats-funnel-bar i{display:block;height:100%;background:var(--series-site);border-radius:0 4px 4px 0}
.stats-devices{display:flex;gap:18px;flex-wrap:wrap;margin-top:14px;font-size:13px;color:var(--stats-ink-2)}
.stats-table summary{cursor:pointer;font-weight:600;font-size:14px}
.stats-table-wrap{overflow-x:auto;margin-top:12px}
.stats-table table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}
.stats-table th,.stats-table td{padding:7px 10px;text-align:right;border-bottom:1px solid var(--stats-line)}
.stats-table th:first-child,.stats-table td:first-child{text-align:left}
.stats-table tfoot td{font-weight:700;border-top:2px solid var(--stats-line)}
@media(max-width:600px){.stats-funnel-row,.stats-row{grid-template-columns:110px minmax(0,1fr) 44px}.stats-tile b{font-size:22px}}
@media(max-width:600px){.stats-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stats-tile{padding:10px 12px}.stats-tile b{font-size:20px}.stats-card{padding:12px}}
/* statistics, round 2: columns, tap tooltip, readable on a phone */
.stats-cross{fill:rgba(11,11,11,.06);stroke:none}
.stats-legend i.is-line{height:0;background:none;border-radius:0}
.stats-nodata{font-size:13px}
.stats-note{margin:0 0 14px;padding:10px 12px;border-radius:10px;background:#eef3fb;color:#27415f;font-size:13px;line-height:1.45}
.stats-axis{font-size:12px}
.stats-tip-row i{width:10px;border-top-style:solid}
@media(max-width:600px){.stats-card-head h3{font-size:16px}.stats-card-total{font-size:22px}.stats-tip{font-size:13px}}

/* admin «Клиенты»: client list, balance and hand-over dialogs, unclaimed transfers */
.clients-panel{display:grid;gap:12px}.clients-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.clients-head h3{margin:0}
.clients-row{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 0;border-top:1px solid var(--line,#e4e3de)}
.clients-who,.clients-bal{display:grid;gap:2px;min-width:0}.clients-who b,.clients-bal b{overflow-wrap:anywhere}.clients-who small,.clients-bal small,.clients-tx small,.clients-cand small{color:var(--muted,#6f6e69);font-size:12px}
.clients-actions,.clients-cand-actions,.clients-tx-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.clients-tx{display:grid;gap:10px;padding:14px 0;border-top:1px solid var(--line,#e4e3de)}.clients-tx.is-done{opacity:.65}.clients-tx-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.clients-tx-head>div{display:grid;gap:2px}.clients-tx-head em{font-style:normal;font-size:13px}
.clients-cand{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:center;padding:10px 12px;border:1px solid var(--line,#e4e3de);border-radius:10px}.clients-cand>span:first-child{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}
.cl-overlay{position:fixed;inset:0;z-index:2000;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;padding:16px;overflow:auto}
.cl-modal{position:relative;width:min(480px,100%);max-height:calc(100vh - 32px);overflow:auto;background:var(--paper,#fff);color:inherit;border-radius:16px;padding:22px 20px;display:grid;gap:14px;box-shadow:0 20px 60px rgba(0,0,0,.3)}.cl-modal h3{margin:0 36px 0 0}
.cl-close{position:absolute;top:10px;right:10px;width:36px;height:36px;border:0;border-radius:10px;background:transparent;font-size:24px;line-height:1;cursor:pointer;color:inherit}
.cl-modal form{display:grid;gap:12px}.cl-error{margin:0;color:#b42318;font-size:13px}.cl-check{display:flex;gap:8px;align-items:flex-start;font-size:13px}
.cl-photo{display:flex;gap:12px;align-items:center}.cl-photo img{width:72px;height:72px;object-fit:cover;border-radius:10px;background:#0001}.cl-photo div{display:grid;gap:2px}.cl-photo small{color:var(--muted,#6f6e69)}
.cl-picker{display:grid;gap:8px}.cl-results{display:grid;gap:6px;max-height:220px;overflow:auto}.cl-result{display:grid;gap:2px;text-align:left;padding:10px 12px;border:1px solid var(--line,#e4e3de);border-radius:10px;background:transparent;color:inherit;cursor:pointer;font:inherit}.cl-result small{color:var(--muted,#6f6e69)}
.cl-result.cl-photo{display:flex;gap:12px;align-items:center}.cl-result.cl-photo img{width:56px;height:56px;flex:none}
.cl-chosen{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:10px 12px;border-radius:10px;background:#0000000d}
@media(max-width:640px){.clients-row{grid-template-columns:1fr 1fr}.clients-actions{grid-column:1/-1}}

.wallet-wd-quote{display:grid;gap:4px;font-size:13px;line-height:1.45;margin:2px 0 8px}.wallet-wd-quote code{word-break:break-all;font-size:12px}.wallet-quote-warn{color:#9a6700}.wallet-quote-bad{color:#b42318}

.cl-confirm-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}.cl-overlay{z-index:5000}

.cl-modal:has(.cl-order){width:min(620px,100%)}.cl-order{display:grid;gap:6px;padding:10px 0;border-top:1px solid var(--line,#e4e3de)}.cl-order small{color:var(--muted,#6f6e69)}.cl-order-head{display:flex;justify-content:space-between;gap:10px}
.cl-give{display:flex;gap:10px;align-items:center;padding:6px 0}.cl-give>span:last-child{display:grid;gap:2px}.cl-thumb{width:56px;height:56px;border-radius:8px;background:#0001;overflow:hidden;flex:none;display:grid;place-items:center}.cl-thumb img{width:100%;height:100%;object-fit:cover}
.cl-move{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-top:1px solid var(--line,#e4e3de);font-size:13px}

.partner-forms{display:grid;gap:8px;margin-top:8px}.partner-form{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;padding:8px 0;border-top:1px solid var(--line,#e4e3de)}.partner-form b{min-width:120px}.partner-form label{display:flex;gap:6px;align-items:center;font-size:13px}.partner-form input{width:64px}

.wallet-coins{display:grid;gap:8px;padding:12px 0;border-bottom:1px solid var(--line,#e4e3de);margin-bottom:8px}.wallet-coin-list{display:flex;flex-wrap:wrap;gap:6px 16px}.wallet-coin-list label{display:flex;gap:6px;align-items:center;font-size:14px}.wallet-coins small{color:var(--muted,#6f6e69)}

/* ---- referrals: the customer's page, the shop's settings, the partner block ---- */
.referral-panel{display:grid;gap:14px}
.referral-panel .panel-head h2{margin:0}
.ref-lead{margin:0;color:var(--secondary);font-size:14px;line-height:1.6;max-width:60ch}
.ref-lead b{color:var(--text);font-size:15px}
.ref-link{display:flex;gap:8px;flex-wrap:wrap}
.ref-link input{flex:1 1 240px;min-width:0;min-height:46px;padding:0 14px;border:1px solid var(--border);border-radius:12px;background:var(--canvas,#f4f6f2);color:var(--text);font:600 13px/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;text-overflow:ellipsis}
.ref-link .primary-btn{background:var(--shop-accent,#d8fa46);color:var(--shop-accent-ink,#152018);border:0;font-weight:800;min-height:46px;padding:0 18px}
.ref-link .outline-btn{min-height:46px;padding:0 16px}
.ref-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;font-size:13px;color:var(--secondary)}
.ref-code{display:inline-flex;align-items:center;margin-left:4px;padding:4px 10px;border:1px dashed var(--border);border-radius:999px;background:transparent;color:var(--text);font:800 13px/1.2 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.08em;cursor:pointer}
.ref-code:hover{border-color:var(--shop-accent,#8fa82a)}
.ref-by b{color:var(--text)}
.ref-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ref-tiles>div{display:grid;gap:4px;padding:14px 16px;border:1px solid var(--border);border-radius:16px;background:var(--surface)}
.ref-tiles small{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--secondary)}
.ref-tiles strong{font-size:clamp(18px,3.4vw,24px);letter-spacing:-.03em;overflow-wrap:anywhere}
.ref-tiles .is-earned{background:radial-gradient(ellipse at 100% 0%,rgba(216,250,70,.34),transparent 60%),var(--surface);border-color:#bcd77a}
.ref-list{display:grid;gap:8px}
.ref-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 12px;border:1px solid var(--border);border-radius:14px;background:var(--surface)}
.ref-row b{display:block;font-size:14px;overflow-wrap:anywhere}
.ref-row small{display:block;margin-top:2px;color:var(--secondary);font-size:12px}
.ref-row strong{font-size:15px;white-space:nowrap;color:#1f7a45}
.ref-row strong.is-zero{color:var(--secondary);font-weight:600}
.ref-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--shop-accent,#d8fa46);color:var(--shop-accent-ink,#152018);font-weight:800;font-size:15px}
.ref-empty{margin:0;padding:18px;border:1px dashed var(--border);border-radius:14px;color:var(--secondary);font-size:14px;line-height:1.55;text-align:center}
.profile-page[data-theme="night"] .ref-link input{background:#141c18}
.profile-page[data-theme="night"] .ref-row strong{color:#8fe0a8}
@media(max-width:720px){
  .ref-tiles{grid-template-columns:1fr 1fr}
  .ref-tiles .is-earned{grid-column:1/-1}
  .ref-link .primary-btn,.ref-link .outline-btn{flex:1 1 130px}
}

/* the shop admin's referral settings (Clients page) */
.ref-admin{display:grid;gap:14px}
.ref-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 18px}
.ref-form .field{display:grid;gap:6px;margin:0}
.ref-form input[type=number]{width:110px}
.ref-switch{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-weight:700;cursor:pointer}
.ref-switch input{width:20px;height:20px;accent-color:#2f7d4a}
.ref-admin-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ref-admin-tiles>div{padding:12px 14px;border:1px solid var(--ui-line,#dfe6df);border-radius:14px;background:#fff}
.ref-admin-tiles small{display:block;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--ui-muted,#5c6962)}
.ref-admin-tiles strong{display:block;margin-top:4px;font-size:20px;letter-spacing:-.02em}
.ref-top{display:grid;gap:6px}
.ref-top-row{display:grid;grid-template-columns:28px minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:8px 12px;border:1px solid var(--ui-line,#dfe6df);border-radius:12px;background:#fff;font-size:14px}
.ref-top-row i{font-style:normal;font-weight:800;color:var(--ui-muted,#5c6962)}
.ref-top-row small{color:var(--ui-muted,#5c6962)}
.ref-person{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px solid var(--ui-line,#dfe6df);font-size:13px}
@media(max-width:720px){.ref-admin-tiles{grid-template-columns:1fr 1fr}.ref-top-row{grid-template-columns:24px minmax(0,1fr) auto}.ref-top-row small{display:none}}

/* the partner programme inside the shop's wallet */
.partner-block{display:grid;gap:12px;margin:6px 0 4px}
.partner-card{display:grid;gap:10px;padding:16px;border:1px solid var(--line,#e4e3de);border-radius:16px;background:linear-gradient(135deg,rgba(216,250,70,.16),transparent 55%),#fff}
.partner-card h5{margin:0;font-size:15px}
.partner-card p,.partner-card small{margin:0;color:#5b6a60;font-size:13px;line-height:1.55}
.partner-code-line{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.partner-code{padding:6px 12px;border:1px dashed #a8b79f;border-radius:999px;background:#fff;font:800 15px/1.2 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.1em;cursor:pointer}
.partner-join{display:flex;flex-wrap:wrap;gap:8px}
.partner-join input{flex:1 1 180px;min-height:40px;padding:0 12px;border:1px solid #dce4dc;border-radius:10px;text-transform:uppercase;letter-spacing:.08em}
.partner-rows{display:grid;gap:8px}
.partner-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;align-items:center;padding:10px 12px;border:1px solid var(--line,#e4e3de);border-radius:12px;background:#fff}
.partner-row b{display:block;font-size:14px}
.partner-row small{color:#5b6a60;font-size:12px}
.partner-row .outline-btn{min-height:36px;padding:7px 12px;font-size:12px}
.partner-owed{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:13px}
.partner-owed b{font-size:18px;letter-spacing:-.02em}

.ref-textlink{padding:0;border:0;background:none;color:var(--text);font:700 13px/1.4 inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.ref-textlink:hover{color:#2f7d4a}
.ref-form .field span{font-size:12px;font-weight:700;color:var(--ui-muted,#5c6962)}.ref-form .field input{min-height:44px;padding:0 12px;border:1px solid var(--ui-line,#dfe6df);border-radius:10px}

.chip.chip-reset{border-style:dashed;color:var(--secondary,#748178)}
.location-empty .outline-btn{margin-top:8px}

/* Language button of the storefront (i18n.js): a globe and the two-letter code */
.lang-toggle{display:inline-flex;align-items:center;justify-content:center;gap:5px;width:auto!important;min-width:38px;padding:0 10px!important}
.lang-toggle svg{width:18px!important;height:18px!important;flex:none}
.lang-toggle b{font-size:12px;font-weight:700;letter-spacing:.04em}
.lang-list .lang-row{width:100%;border:0;background:transparent;text-align:left;font:inherit}
.lang-list .lang-row.is-selected .ios-row-label{font-weight:700}
.lang-list .lang-check{color:var(--tint,#0a84ff);font-size:18px;font-weight:700}
@media(max-width:700px){.lang-toggle b{display:none}.lang-toggle{min-width:38px;padding:0!important}}

/* Discounts: the old price struck through, the new one, a "Скидка" mark */
.price-sale{display:inline-flex;flex-direction:column;align-items:flex-start;gap:1px;line-height:1.1}
.price-sale .price-old{font-size:.62em;font-weight:600;opacity:.6;text-decoration:line-through}
.price-sale b{font-weight:inherit}
.discount-badge{align-self:flex-start;justify-self:start;width:max-content;max-width:100%;display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:999px;background:#ef5b3a;color:#fff;font-size:11px;font-weight:800;letter-spacing:.03em;white-space:nowrap}
.product-foot{flex-wrap:wrap;row-gap:8px}
.detail-price .discount-badge{margin-left:10px;vertical-align:middle;font-size:12px}
.detail-price .price-sale{vertical-align:middle}
.admin-discount{display:block;margin-top:2px;color:#ef5b3a;font-size:11px;font-weight:700}
.discount-field .field-hint{display:block;margin-top:6px}

/* Narrow screens: a long shop name or price must never push the layout out of the screen */
.product-card,.product-card .product-body{min-width:0}
.product-card h3,.product-card .product-description,.detail-copy h1,.detail-copy p{overflow-wrap:anywhere}
.product-foot .price,.product-foot .price-sale{min-width:0;overflow-wrap:anywhere}
@media(max-width:520px){
  .location-store .location-nav{gap:10px;padding-top:12px;padding-bottom:12px}
  .location-store .location-nav .brand{flex:1 1 100%;min-width:0;max-width:100%}
  .location-nav .brand>span:last-child{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
  .location-store .location-nav-actions{flex:1 1 100%;justify-content:flex-end;flex-wrap:wrap;margin-left:0}
}
@media(max-width:359px){.location-product-grid,.product-grid{grid-template-columns:minmax(0,1fr)!important}}
.price-sale .discount-badge{margin-top:4px}
.price-sale b{font-size:1em}
/* A card narrower than price + button stacks them instead of overflowing (the phone layout, up to tablet widths) */
@media(max-width:1100px){
  .location-product-card .product-foot{grid-template-columns:minmax(0,1fr)!important;gap:10px}
}
.payment-nomemo{margin:12px 0;padding:12px 14px;border:1px solid #d92d20;border-radius:12px;background:rgba(217,45,32,.08);color:#d92d20;font-size:14px;line-height:1.5}.payment-nomemo a{color:inherit;font-weight:700;text-decoration:underline}
[data-theme="night"] .payment-nomemo{color:#ff6b5e;border-color:#ff6b5e;background:rgba(255,107,94,.1)}

/* Full-page audit: long legacy forms and overlays use the same scroll container. */
.modal-backdrop,.cl-overlay{z-index:2000;display:flex;align-items:center;justify-content:center;padding:20px;overflow-y:auto;overscroll-behavior:contain}
.modal-backdrop>.modal,.cl-overlay>.cl-modal{flex:0 1 auto;min-width:0;max-width:100%;max-height:calc(100dvh - 40px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;margin:auto}
.modal :is(h1,h2,h3){padding-right:40px;line-height:1.3;overflow-wrap:anywhere}
.modal :is(input,select,textarea),.cl-modal :is(input,select,textarea){min-width:0;max-width:100%;font-weight:400;box-sizing:border-box}
.modal :is(label,.field),.cl-modal .field{min-width:0;line-height:1.5}
.modal :is(.form-actions,.shop-manage-actions){display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}
.modal :is(.form-actions,.shop-manage-actions)>*{min-height:44px;line-height:1.4;white-space:normal}
.modal-close,.cl-close{min-width:44px;min-height:44px;flex:none;line-height:1}
input[type="file"]{max-width:100%;font-size:14px;line-height:1.5}
input[type="file"]::file-selector-button{font:inherit;font-weight:600;min-height:40px;padding:8px 14px;margin-right:10px;border:1px solid var(--hair,#dfe6df);border-radius:10px;background:var(--soft,#f3f6f1);color:inherit;cursor:pointer}
@media(max-width:720px){.modal-backdrop,.cl-overlay{padding:12px}.modal-backdrop>.modal,.cl-overlay>.cl-modal{max-height:calc(100dvh - 24px)}.modal :is(input,select,textarea),.cl-modal :is(input,select,textarea){font-size:16px}}

.route-state{min-height:100dvh;display:grid;place-items:center;padding:32px 20px;background:var(--ios-bg,var(--soft,#f3f6f1));color:var(--ios-label,var(--ink,#14201a))}
.route-state>section{width:min(100%,560px);padding:clamp(24px,5vw,44px);border:1px solid var(--ios-sep,var(--hair,#dfe6df));border-radius:22px;background:var(--ios-card,#fff)}
.route-state h1{font-size:clamp(26px,4vw,36px);line-height:1.2;margin:16px 0}
.route-state p{color:var(--ios-label-2,var(--muted,#55645a));line-height:1.65;margin:0 0 24px}
.route-state .form-actions{display:flex;flex-wrap:wrap;gap:12px}
.route-state a{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px}

/* Success links and photo downloads have the same touch target as checkout actions. */
.payment-success>a.btn,.delivery-shot>a.btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 18px;border-radius:12px;text-decoration:none;line-height:1.4;gap:8px}
.delivery-shot>a.btn{margin-top:10px}
textarea{font-family:inherit;font-size:inherit;line-height:1.5}
