/* ── 外卖: warmer than the settings-page blue-gray (rounder cards, food photography does the
   colour work) but still the same soft-neumorphic surface language as the rest of 小手机. Prices/
   accents reuse .store-price (var(--accent-text)) and the wallet badge's var(--pri-deep) instead of
   inventing new colour tokens - see the contrast-audit test files for why that matters here. ── */
.delivery-shell{position:relative;flex:1;min-height:0;overflow:hidden}
.delivery-screen{position:absolute;inset:0;display:none;flex-direction:column;overflow:hidden}
/* Each screen's real content is rendered into a plain wrapper <div id="delivery-*-body"> (see
   delivery.js) - as a flex item with no `flex`/`min-height` of its own, a flex item's default
   min-height:auto means it refuses to shrink below its OWN content height, so it silently grew
   past .delivery-screen's bounded height instead of being clipped to it - and the .delivery-scroll
   div inside it (flex:1;min-height:0;overflow-y:auto) never actually overflowed *within* a bounded
   box, so there was nothing to scroll. Making this wrapper itself a properly-sized flex column
   fixes the whole chain: wrapper matches the screen's real height, .delivery-scroll then correctly
   overflows inside it and scrolls. */
.delivery-screen>div{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
.delivery-screen.active{display:flex}
.delivery-tabs{display:flex;border-top:1px solid var(--border);background:var(--bg)}
/* [hidden] and a class selector are equal specificity, and an author rule beats the UA default at a
   tie - so `.delivery-tabs{display:flex}` alone would silently win over the browser's own
   `[hidden]{display:none}` and the (still flex-row-occupying) tab bar would squeeze the screen above
   it instead of actually disappearing. This makes hiding it explicit and unambiguous. */
.delivery-tabs[hidden]{display:none}
.delivery-tabs button{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 0 calc(6px + var(--sab));border:none;background:none;color:var(--ink2);font-family:inherit;font-size:10.5px;cursor:pointer}
.delivery-tabs button svg{width:20px;height:20px;stroke-width:1.7}
.delivery-tabs button.active{color:var(--ink)}
.delivery-top,.delivery-detail-top{position:relative}
.delivery-wallet-chip{position:absolute;right:16px;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:5px;border:none;border-radius:999px;padding:6px 12px;font-size:12.5px;font-family:inherit;color:var(--ink);background:var(--surface-alt);cursor:pointer}
.delivery-wallet-chip svg{width:14px;height:14px}
.delivery-scroll{flex:1;min-height:0;overflow-y:auto;padding:4px 16px calc(20px + var(--sab));scrollbar-width:none}
.delivery-scroll::-webkit-scrollbar{display:none;width:0;height:0}

.delivery-greeting{display:flex;flex-direction:column;gap:2px;margin:10px 0 14px}
.delivery-greeting b{font-family:var(--font-display);font-size:22px;font-weight:700;color:var(--ink)}
.delivery-greeting span{font-size:13px;color:var(--ink2)}
.delivery-search-bar{display:flex;align-items:center;gap:8px;width:100%;border:none;border-radius:999px;padding:11px 16px;background:var(--surface);box-shadow:var(--shadow-in);color:var(--ink2);font-size:13.5px;font-family:inherit;cursor:pointer;margin-bottom:16px}
.delivery-search-bar svg{width:16px;height:16px;flex-shrink:0}

.delivery-cat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:18px}
.delivery-cat-item{display:flex;align-items:center;gap:8px;border:none;border-radius:14px;padding:10px 10px;background:var(--surface);box-shadow:var(--shadow);color:var(--ink);font-family:inherit;font-size:13px;cursor:pointer}
.delivery-cat-item svg{width:17px;height:17px;flex-shrink:0;color:var(--ink2)}
.delivery-cat-item.active{box-shadow:var(--shadow-in);color:var(--accent-text)}
.delivery-cat-item.active svg{color:var(--accent-text)}

.delivery-section-title{display:flex;align-items:center;justify-content:space-between;font-size:14px;font-weight:700;color:var(--ink);margin:4px 0 10px}
.delivery-clear-filter{border:none;background:none;color:var(--ink2);font-size:12px;font-family:inherit;cursor:pointer}

.delivery-feature-card{position:relative;display:block;width:100%;border:none;border-radius:18px;padding:0;overflow:hidden;box-shadow:var(--shadow);cursor:pointer;margin-bottom:18px;text-align:left}
.delivery-feature-card img{width:100%;height:150px;object-fit:cover;display:block}
/* Text-on-photo, so it needs the theme engine's own contrast-guaranteed scrim tokens, not an
   arbitrary hand-picked rgba - same construct as .photo-gallery-cell span (styles/theme.css). */
.delivery-feature-info{position:absolute;left:0;right:0;bottom:0;padding:12px 14px;background:linear-gradient(0deg,var(--overlay-scrim-deep),var(--overlay-scrim) 70%,rgba(12,18,28,0));display:flex;flex-direction:column;gap:2px}
.delivery-feature-info b{color:#fff;font-size:14.5px}
.delivery-feature-info span{color:#fff;font-size:11.5px;opacity:.88}

.delivery-store-list{display:flex;flex-direction:column;gap:12px}
.delivery-store-card{display:flex;gap:12px;width:100%;border:none;border-radius:16px;padding:10px;background:var(--surface);box-shadow:var(--shadow);cursor:pointer;text-align:left;font-family:inherit}
.delivery-store-card img{width:64px;height:64px;border-radius:12px;object-fit:cover;flex-shrink:0}
.delivery-store-card-info{display:flex;flex-direction:column;gap:3px;min-width:0}
.delivery-store-card-info b{font-size:14px;font-weight:700;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.delivery-store-meta{font-size:11.5px;color:var(--ink2)}

.delivery-store-cover{width:100%;height:150px;object-fit:cover;border-radius:16px;display:block;margin:4px 0 12px}
.delivery-store-header{display:flex;flex-direction:column;gap:4px;margin-bottom:8px}
.delivery-store-header b{font-family:var(--font-display);font-size:19px;font-weight:700;color:var(--ink)}
.delivery-world-tag{font-size:11px;color:var(--ink2);margin-top:2px}
.delivery-announcement{font-size:12.5px;color:var(--ink2);background:var(--surface-alt);border-radius:12px;padding:9px 12px;margin-bottom:14px}
.delivery-cat-tabs{display:flex;gap:18px;border-bottom:1px solid var(--line-soft,var(--border));margin-bottom:6px;overflow-x:auto;scrollbar-width:none}
.delivery-cat-tabs::-webkit-scrollbar{display:none}
.delivery-cat-tabs button{flex-shrink:0;border:none;background:none;color:var(--ink2);font-family:inherit;font-size:13.5px;padding:8px 0;cursor:pointer;border-bottom:2px solid transparent}
.delivery-cat-tabs button.active{color:var(--ink);font-weight:700;border-bottom-color:var(--pri-deep)}

.delivery-dish-list{display:flex;flex-direction:column}
.delivery-dish-row{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid var(--line-soft,var(--border));cursor:pointer}
.delivery-dish-list .delivery-dish-row:last-child{border-bottom:none}
.delivery-dish-row img{width:76px;height:76px;border-radius:12px;object-fit:cover;flex-shrink:0}
.delivery-dish-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.delivery-dish-info b{font-size:14px;font-weight:700;color:var(--ink)}
.delivery-dish-desc{font-size:11.5px;color:var(--ink2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.delivery-dish-sales{font-size:11px;color:var(--ink2)}
.delivery-dish-bottom{display:flex;align-items:center;gap:8px;margin-top:2px}
.delivery-dish-ctrl{margin-left:auto;display:flex;align-items:center;gap:6px}
.delivery-step{width:32px;height:32px;flex-shrink:0;border:none;border-radius:50%;background:var(--surface-alt);display:flex;align-items:center;justify-content:center;font-family:inherit;font-size:17px;line-height:1;color:var(--ink);cursor:pointer}
.delivery-step.plus{background:var(--pri-deep);color:var(--on-pri-deep,#fff)}
.delivery-step:disabled{opacity:.4;cursor:default}
.delivery-step-n{min-width:20px;text-align:center;font-size:14px;font-variant-numeric:tabular-nums;color:var(--ink)}
.delivery-spec-btn{height:32px;border:none;border-radius:999px;padding:0 14px;background:var(--pri-deep);color:var(--on-pri-deep,#fff);font-family:inherit;font-size:12.5px;font-weight:600;cursor:pointer}

/* var(--pri-deep) + var(--on-pri-deep) instead of var(--ink)/#fff: --ink is the theme's own TEXT
   token, so it flips light/dark across presets - pairing it with a hardcoded #fff would go unreadable
   in a light-on-dark theme. --pri-deep/--on-pri-deep is the same contrast-guaranteed pair the wallet
   badge already uses (see styles/wallet.css), so this needs no new contrast-audit registration. */
/* the whole bar is one <button> now (tapping anywhere on it opens the 已选商品 review sheet - see
   openDeliveryCartSheet()), not a div with a nested checkout button; "去结算" is just a label inside it. */
/* The bar is always there on a store page (empty: 起送/配送 only). Left part opens the cart panel, the
   right button goes to checkout - or says how much is missing and stays disabled. */
.delivery-detail-scroll{padding-bottom:calc(92px + var(--sab))}
.delivery-cart-bar{position:absolute;left:12px;right:12px;bottom:calc(12px + var(--sab));display:flex;align-items:center;gap:8px;border-radius:999px;padding:6px 6px 6px 8px;background:var(--pri-deep);box-shadow:var(--shadow-md,var(--shadow));z-index:2}
.delivery-cart-bar.is-empty{background:var(--surface)}
.delivery-cart-bar-main{flex:1;min-width:0;display:flex;align-items:center;gap:12px;border:none;background:transparent;padding:4px 8px;font-family:inherit;text-align:left;cursor:pointer}
.delivery-cart-bar-icon{position:relative;color:var(--on-pri-deep,#fff);display:flex;padding:6px}
.delivery-cart-bar.is-empty .delivery-cart-bar-icon{color:var(--ink2)}
.delivery-cart-bar-icon svg{width:22px;height:22px}
.delivery-cart-bar-icon i{position:absolute;top:-4px;right:-6px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--surface);color:var(--ink);font-style:normal;font-size:11px;font-weight:700;line-height:18px;text-align:center}
.delivery-cart-bar-sum{display:flex;flex-direction:column;min-width:0}
.delivery-cart-bar-sum b{color:var(--on-pri-deep,#fff);font-size:16px;font-variant-numeric:tabular-nums}
.delivery-cart-bar-sum small{color:var(--on-pri-deep,#fff);opacity:.85;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.delivery-cart-bar.is-empty .delivery-cart-bar-sum b{color:var(--ink)}
.delivery-cart-bar.is-empty .delivery-cart-bar-sum small{color:var(--ink2);opacity:1}
.delivery-cart-bar-cta{flex-shrink:0;height:44px;border:none;border-radius:999px;padding:0 18px;background:var(--surface);color:var(--accent-text);font-family:inherit;font-size:13.5px;font-weight:700;cursor:pointer}
.delivery-cart-bar-cta:disabled{color:var(--ink2);cursor:default}
/* panel: header and the checkout footer stay put, only the list scrolls */
.sheet.delivery-cart-sheet{display:flex;flex-direction:column;overflow:hidden;padding-bottom:0}
.delivery-cart-sheet-head{display:flex;align-items:center;justify-content:space-between}
.delivery-cart-clear{display:flex;align-items:center;gap:4px;min-height:36px;border:none;background:none;color:var(--ink2);font-family:inherit;font-size:12.5px;cursor:pointer}
.delivery-cart-clear svg{width:15px;height:15px}
.delivery-cart-sheet-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}
.delivery-cart-sheet-list::-webkit-scrollbar{display:none;width:0;height:0}
.delivery-cart-sheet-foot{flex-shrink:0;display:flex;flex-direction:column;gap:10px;padding:12px 0 calc(12px + var(--sab));border-top:1px solid var(--line-soft,var(--border))}
.delivery-cart-sheet-sum{display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-size:12px;color:var(--ink2)}
.delivery-cart-sheet-sum b{font-size:15px;color:var(--ink);font-variant-numeric:tabular-nums}
.delivery-cart-sheet-foot .s-btn{width:100%}
.delivery-cart-sheet-row{display:flex;align-items:flex-start;gap:10px;padding:12px 0;border-bottom:1px solid var(--line-soft,var(--border))}
.delivery-cart-sheet-row.focus{background:var(--surface-alt);border-radius:12px;padding:12px 10px}
.delivery-cart-sheet-side{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex-shrink:0}
.delivery-cart-sheet-side .store-price{font-variant-numeric:tabular-nums}
.delivery-cart-unit{font-variant-numeric:tabular-nums}
.delivery-cart-sheet-actions{display:flex;gap:4px;margin-top:2px}
.delivery-cart-sheet-actions button{min-height:32px;border:none;background:none;padding:0 8px 0 0;color:var(--ink2);font-family:inherit;font-size:12px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.delivery-cart-sheet-list .delivery-cart-sheet-row:last-child{border-bottom:none}
.delivery-cart-sheet-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.delivery-cart-sheet-info b{font-size:13.5px;color:var(--ink)}
.delivery-cart-sheet-info span{font-size:11.5px;color:var(--ink2);line-height:1.45}

.delivery-dish-sheet-img{width:100%;height:170px;object-fit:cover;border-radius:14px;margin-bottom:10px}
.delivery-dish-sheet-desc{font-size:12.5px;color:var(--ink2);margin-bottom:10px}
.delivery-sheet-group-title{font-size:13px;font-weight:600;color:var(--ink);margin:12px 0 6px}
.delivery-qty-row{display:flex;align-items:center;justify-content:space-between;margin:14px 0 4px;font-size:13.5px;color:var(--ink)}
.delivery-qty-stepper{display:flex;align-items:center;gap:12px}
.delivery-qty-stepper button{width:32px;height:32px;border-radius:50%;border:none;background:var(--surface-alt);color:var(--ink);font-size:15px;cursor:pointer}
.delivery-qty-stepper button:disabled{opacity:.4;cursor:default}
.delivery-qty-stepper b{min-width:18px;text-align:center}

.delivery-eta{font-size:13px;color:var(--ink2);margin:8px 0 14px}
.delivery-field-title{font-size:13px;font-weight:700;color:var(--ink);margin:14px 0 8px}
.delivery-address-list{display:flex;flex-direction:column;gap:8px}
.delivery-address-row{display:flex;align-items:center;gap:10px;width:100%;border:none;border-radius:14px;padding:12px 14px;background:var(--surface-alt);color:var(--ink);font-family:inherit;font-size:13.5px;cursor:pointer;text-align:left}
.delivery-address-row svg{width:16px;height:16px;color:var(--ink2);flex-shrink:0}
.delivery-address-row.active{box-shadow:0 0 0 1.5px var(--pri-deep) inset}
.delivery-address-add{color:var(--ink2)}
.delivery-address-remove{margin-left:auto;border:none;background:none;color:var(--ink2);cursor:pointer;display:flex}
.delivery-address-remove svg{width:15px;height:15px}

.delivery-order-items{display:flex;flex-direction:column;gap:8px;background:var(--surface-alt);border-radius:14px;padding:12px 14px}
.delivery-order-item{display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-size:13px;color:var(--ink)}
.delivery-order-item span{color:var(--ink2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.delivery-order-item b{flex-shrink:0;font-variant-numeric:tabular-nums}
.delivery-order-fee span{color:var(--ink)}

.delivery-toggle-row{display:flex;align-items:center;justify-content:space-between;margin-top:14px;font-size:13.5px;color:var(--ink)}
.delivery-toggle{border:none;border-radius:999px;padding:7px 14px;background:var(--surface-alt);color:var(--ink2);font-family:inherit;font-size:12.5px;cursor:pointer}
.delivery-toggle.on{color:var(--ink);box-shadow:var(--shadow-in)}
.delivery-total-row{display:flex;align-items:baseline;justify-content:flex-end;gap:6px;margin-top:18px;font-size:13.5px;color:var(--ink)}
.delivery-total-row b{font-family:var(--font-display);font-size:20px}
.delivery-checkout-blocked{margin-top:14px;font-size:13px;color:var(--ink);text-align:right}
.delivery-checkout-footer{padding:10px 16px calc(10px + var(--sab));border-top:1px solid var(--border);background:var(--bg)}

.delivery-status-eta{text-align:center;font-size:13px;color:var(--ink2);margin:14px 0 10px}
.delivery-status-icon{width:56px;height:56px;margin:0 auto 10px;border-radius:50%;background:var(--surface-alt);display:flex;align-items:center;justify-content:center;color:var(--accent-text)}
.delivery-status-icon svg{width:26px;height:26px}
.delivery-status-headline{text-align:center;font-family:var(--font-display);font-size:18px;font-weight:700;color:var(--ink)}
.delivery-status-sub{text-align:center;font-size:12.5px;color:var(--ink2);margin:2px 0 20px}
.delivery-status-track{display:flex;align-items:center;padding:0 6px}
.delivery-status-dot{width:9px;height:9px;border-radius:50%;background:var(--border);flex-shrink:0}
.delivery-status-dot.done{background:var(--pri-deep)}
.delivery-status-line{flex:1;height:2px;background:var(--border)}
.delivery-status-line.done{background:var(--pri-deep)}
.delivery-status-labels{display:flex;justify-content:space-between;margin:6px 0 20px;font-size:10.5px;color:var(--ink2)}

.delivery-order-card{display:block;width:100%;border:none;border-radius:16px;padding:14px;background:var(--surface);box-shadow:var(--shadow);cursor:pointer;text-align:left;font-family:inherit;margin-bottom:12px}
.delivery-order-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}
.delivery-order-card-top b{font-size:14px;color:var(--ink)}
.delivery-order-status-badge{font-size:11px;font-weight:600;color:var(--ink2)}
.delivery-order-status-badge.delivered{color:var(--green-text)}
.delivery-order-card-bottom{display:flex;align-items:baseline;justify-content:space-between;margin-top:8px;font-size:12px;color:var(--ink2)}
.delivery-order-card-bottom b{font-size:14px;color:var(--ink);font-variant-numeric:tabular-nums}

.delivery-wallet-card{display:flex;align-items:center;justify-content:space-between;width:100%;border:none;border-radius:14px;padding:14px 16px;background:var(--surface);box-shadow:var(--shadow);color:var(--ink2);font-family:inherit;font-size:13px;cursor:pointer;margin:6px 0 4px}
.delivery-wallet-card b{font-family:var(--font-display);font-size:18px;color:var(--ink)}

/* item label: name ×qty, its choices (规格/辣度/加料/备注) on a second line that wraps instead of being cut */
.delivery-order-item .delivery-item-label{display:flex;flex-direction:column;gap:2px;min-width:0;white-space:normal;color:var(--ink)}
.delivery-item-label em{font-style:normal}
.delivery-item-label small{font-size:11.5px;color:var(--ink2);line-height:1.45}
.delivery-order-meta{display:flex;justify-content:space-between;gap:16px;margin-top:12px;font-size:13px;color:var(--ink2)}
.delivery-order-meta b{font-weight:500;color:var(--ink);text-align:right;word-break:break-word}

/* note fields: n/max counter; over the limit it is said, never cut */
.delivery-limited>span{display:flex;align-items:baseline;justify-content:space-between}
.delivery-count{font-size:11px;color:var(--ink2);font-variant-numeric:tabular-nums}
.delivery-count.over{color:var(--ink);font-weight:700;text-decoration:underline}
.delivery-limited textarea{resize:none}
.delivery-remark-hint{margin:-4px 0 0;font-size:11.5px;color:var(--ink2);line-height:1.5}

/* ── 结算: address card → items → note → cutlery; total + submit always at the bottom ── */
.delivery-checkout-scroll{padding-bottom:calc(24px + var(--sab))}
.delivery-address-card{display:grid;grid-template-columns:auto 1fr auto;gap:4px 12px;align-items:start;width:100%;margin:8px 0 6px;padding:16px;border:none;border-radius:18px;background:var(--surface);box-shadow:var(--shadow);color:var(--ink);font-family:inherit;text-align:left}
button.delivery-address-card{cursor:pointer}
.delivery-address-card>svg{width:20px;height:20px;margin-top:2px;color:var(--ink2)}
.delivery-address-card-main{display:flex;flex-direction:column;gap:3px;min-width:0}
.delivery-address-card-main b{font-size:16px;font-weight:700;color:var(--ink);word-break:break-word}
.delivery-address-card-main b small{margin-left:8px;font-size:11.5px;font-weight:400;color:var(--ink2)}
.delivery-address-card-main span,.delivery-address-card-main small{font-size:12.5px;color:var(--ink2);line-height:1.5;word-break:break-word}
.delivery-address-card-main em{margin-left:8px;font-style:normal;font-size:11.5px;color:var(--ink);text-decoration:underline}
.delivery-address-change{align-self:center;min-height:36px;border:none;border-radius:999px;padding:0 14px;background:var(--surface-alt);color:var(--ink);font-family:inherit;font-size:12.5px;font-weight:600;cursor:pointer}
.delivery-address-card.is-problem .delivery-address-card-main small{color:var(--ink)}
.delivery-address-eta{grid-column:2 / -1;margin-top:6px;padding-top:8px;border-top:1px solid var(--line-soft,var(--border));font-size:12.5px;color:var(--ink2)}
.delivery-cutlery b{min-width:56px;font-size:13px;font-weight:600}
.delivery-submit-bar{display:flex;align-items:center;gap:14px}
.delivery-submit-total{flex:1;min-width:0;display:flex;align-items:baseline;gap:6px;color:var(--ink2);font-size:12.5px}
.delivery-submit-total b{font-family:var(--font-display);font-size:22px;color:var(--ink);font-variant-numeric:tabular-nums}
.delivery-submit-bar .s-btn{flex:0 0 auto;min-width:44%;height:48px;border-radius:999px;font-size:15px}

/* ── address panels (bottom sheets): header, scrollable middle, buttons stay visible ── */
.sheet.delivery-address-sheet{display:flex;flex-direction:column;max-height:86dvh;overflow:hidden}
.delivery-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.delivery-sheet-head h2{margin:0}
.delivery-sheet-note{margin:6px 0;font-size:12px;color:var(--ink2);line-height:1.5}
.delivery-store-world{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px 0 12px;padding:10px 12px;border-radius:14px;background:var(--surface-alt);font-size:12.5px;color:var(--ink2)}
.delivery-store-world b{color:var(--ink)}
.delivery-store-world button,.delivery-address-edit{flex-shrink:0;min-height:32px;border:none;background:none;padding:0 4px;color:var(--ink);font-family:inherit;font-size:12.5px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.delivery-address-options,.delivery-option-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;display:flex;flex-direction:column;gap:8px}
.delivery-address-options::-webkit-scrollbar,.delivery-option-list::-webkit-scrollbar,.delivery-editor-scroll::-webkit-scrollbar{display:none;width:0;height:0}
.delivery-address-option{display:flex;align-items:center;gap:8px;padding:4px 8px 4px 4px;border:1px solid var(--border);border-radius:14px}
.delivery-address-option.active{border-color:var(--pri-deep);box-shadow:inset 0 0 0 1px var(--pri-deep)}
.delivery-address-pick{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;padding:10px;border:none;background:none;color:var(--ink);font-family:inherit;text-align:left;cursor:pointer}
.delivery-address-pick b{font-size:14px}
.delivery-address-pick span{font-size:12px;color:var(--ink2);line-height:1.45}
.delivery-address-warn{font-size:12px;color:var(--ink);line-height:1.5}
.delivery-address-none{margin:8px 0;font-size:13px;color:var(--ink2)}
.delivery-address-add-btn{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;margin-top:12px;flex-shrink:0}
.delivery-address-add-btn svg{width:16px;height:16px}
.delivery-option-row{display:flex;align-items:center;gap:10px;min-height:48px;padding:8px 12px;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--ink);font-family:inherit;font-size:14px;text-align:left;cursor:pointer}
.delivery-option-row small{margin-left:auto;font-size:12px;color:var(--ink2)}
.delivery-option-row.active{border-color:var(--pri-deep);box-shadow:inset 0 0 0 1px var(--pri-deep)}
.delivery-editor-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;padding-bottom:8px}
.delivery-step-title{display:flex;align-items:center;gap:8px;margin:16px 0 8px;font-size:14px;font-weight:700;color:var(--ink)}
.delivery-step-title i{width:20px;height:20px;border-radius:50%;background:var(--pri-deep);color:var(--on-pri-deep,#fff);font-style:normal;font-size:11px;display:flex;align-items:center;justify-content:center}
.delivery-world-tabs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin-bottom:10px}
.delivery-world-tabs::-webkit-scrollbar{display:none}
.delivery-world-tabs button{flex-shrink:0;min-height:36px;border:1px solid var(--border);border-radius:999px;padding:0 14px;background:var(--surface);color:var(--ink2);font-family:inherit;font-size:13px;cursor:pointer}
.delivery-world-tabs button.active{border-color:var(--pri-deep);color:var(--ink);font-weight:600;box-shadow:inset 0 0 0 1px var(--pri-deep)}
.delivery-place-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:8px}
.delivery-place-card{display:flex;align-items:center;gap:6px;min-height:48px;padding:8px 10px;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--ink);font-family:inherit;font-size:13px;text-align:left;cursor:pointer}
.delivery-place-card svg{width:16px;height:16px;flex-shrink:0;color:var(--ink2)}
.delivery-place-card b{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.delivery-place-card.active{border-color:var(--pri-deep);background:var(--surface-alt);box-shadow:inset 0 0 0 1px var(--pri-deep)}
.delivery-place-card.active svg{color:var(--ink)}
.delivery-place-home-badge{flex-shrink:0;padding:1px 6px;border-radius:999px;font-size:10.5px;background:var(--surface-alt);color:var(--ink2)}
.delivery-place-card.active .delivery-place-home-badge{background:rgba(255,255,255,.3)}
.delivery-place-empty{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:14px;border-radius:14px;background:var(--surface-alt);font-size:12.5px;color:var(--ink2)}
.delivery-place-empty b{color:var(--ink);font-size:14px}
.delivery-map-link{display:inline-flex;align-items:center;gap:4px;min-height:32px;border:none;background:none;padding:0;color:var(--ink);font-family:inherit;font-size:12.5px;font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.delivery-map-link svg{width:15px;height:15px}
.delivery-char-row{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none;padding:2px 0 6px}
.delivery-char-row::-webkit-scrollbar{display:none}
.delivery-char-row button{flex-shrink:0;display:flex;flex-direction:column;align-items:center;gap:4px;width:64px;padding:6px 2px;border:1px solid transparent;border-radius:14px;background:none;color:var(--ink);font-family:inherit;font-size:12px;cursor:pointer}
.delivery-char-row button.active{border-color:var(--pri-deep);background:var(--surface-alt)}
.delivery-char-row button span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.delivery-editor-sheet .sheet-btns{flex-shrink:0;padding-top:10px}
.delivery-address-row-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.delivery-address-row-text small{font-size:11.5px;color:var(--ink2);line-height:1.45}

/* ── 下单成功 ── */
.delivery-done{display:flex;flex-direction:column;align-items:stretch;padding-top:28px}
.delivery-done .delivery-status-sub{margin-bottom:24px}
.delivery-done-btn{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;height:48px;margin-bottom:12px;border-radius:999px}
.delivery-done-btn svg{width:16px;height:16px}
.delivery-char-row img,.delivery-char-row .avatar-placeholder,.delivery-option-row img,.delivery-option-row .avatar-placeholder{width:40px;height:40px;flex-shrink:0;border-radius:50%;object-fit:cover;display:flex;align-items:center;justify-content:center;background:var(--surface-alt);color:var(--ink2)}
.delivery-char-row .avatar-placeholder svg,.delivery-option-row .avatar-placeholder svg{width:20px;height:20px}
.delivery-sheet-head .wa-close{flex-shrink:0;width:36px;height:36px;padding:0;border:none;border-radius:12px;background:transparent;color:var(--ink);display:flex;align-items:center;justify-content:center;cursor:pointer}
.delivery-sheet-head .wa-close svg{width:22px;height:22px;stroke-width:1.6}
/* ── store page + dish page refresh (design: 店铺 / 菜品详情) ── */
.delivery-store-header b{font-size:24px}
.delivery-store-meta-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.delivery-world-tag{display:flex;align-items:center;gap:4px;margin-top:0;font-size:12.5px}
.delivery-world-tag svg{width:15px;height:15px}
.delivery-announcement{background:none;border-radius:0;padding:2px 0 4px}
.delivery-dish-row img{width:92px;height:92px;border-radius:14px}
.delivery-dish-info b{font-size:15px}
.delivery-dish-picked{display:flex;align-items:center;gap:8px;min-width:0;margin-top:2px}
.delivery-dish-picked-chip{flex-shrink:1;min-width:0;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:999px;padding:3px 10px;background:var(--surface-alt);color:var(--ink);font-size:11.5px}
.delivery-dish-edit{flex-shrink:0;display:flex;align-items:center;gap:2px;min-height:28px;border:none;background:none;padding:0;color:var(--ink2);font-family:inherit;font-size:12px;cursor:pointer}
.delivery-dish-edit svg{width:13px;height:13px}
.delivery-dish-bottom .store-price{font-size:17px;font-weight:700}
.delivery-dish-price-note{font-size:11px;color:var(--ink2)}
.delivery-step,.delivery-qty-stepper button{width:36px;height:36px}
.delivery-qty-stepper button.plus{background:var(--pri-deep);color:var(--on-pri-deep,#fff)}

/* cart bar: bag | 商品 ¥x / 配送费 ¥y | 去结算 */
.delivery-cart-bar-sum{position:relative;padding-left:14px}
.delivery-cart-bar-sum::before{content:"";position:absolute;left:0;top:4px;bottom:4px;width:1px;background:var(--on-pri-deep,#fff);opacity:.45}
.delivery-cart-bar.is-empty .delivery-cart-bar-sum::before{background:var(--ink2);opacity:.35}
.delivery-cart-bar.is-empty .delivery-cart-bar-main{cursor:default}
/* the empty bar's checkout pill keeps the place (same size as the filled bar's) but reads as not available */
.delivery-cart-bar-cta.is-off{display:flex;align-items:center;background:var(--surface-alt);color:var(--ink2);cursor:default}
.delivery-cart-bar-sum b{font-size:17px}
.delivery-cart-bar-sum small{font-size:12px}
.delivery-cart-bar-cta{height:48px;padding:0 24px;font-size:15px}

/* dish page */
.delivery-dish-sheet-img{height:200px;border-radius:18px;margin-bottom:14px}
.delivery-dish-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:6px}
.delivery-dish-head h2{font-family:var(--font-display);font-size:22px;font-weight:700;color:var(--ink)}
.delivery-dish-head .delivery-dish-sheet-desc{margin:4px 0 0}
.delivery-dish-from{flex-shrink:0;font-family:var(--font-display);font-size:20px;font-weight:700;color:var(--ink2);font-variant-numeric:tabular-nums}
.delivery-dish-from small{font-size:12px;font-weight:400;margin-left:1px}
.delivery-sheet-group-title{font-size:14px;margin:18px 0 10px}
.delivery-sheet-group-title small{font-size:12px;font-weight:400;color:var(--ink2)}
.delivery-option-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
.delivery-option-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:64px;padding:12px 10px;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--ink);font-family:inherit;cursor:pointer;text-align:center}
.delivery-option-card b{font-size:15px;font-weight:700}
.delivery-option-card span{font-size:12.5px;color:var(--ink2);font-variant-numeric:tabular-nums}
.delivery-option-card.active{background:var(--surface-alt);border-color:var(--pri-deep);box-shadow:inset 0 0 0 1px var(--pri-deep)}
.delivery-option-check{position:absolute;top:8px;right:8px;width:20px;height:20px;border-radius:50%;background:var(--pri-deep);color:var(--on-pri-deep,#fff);display:flex;align-items:center;justify-content:center}
.delivery-option-check svg{width:12px;height:12px;stroke-width:2.6}
#delivery-dish .delivery-limited{margin-top:18px}
.delivery-dish-footer{display:flex;align-items:center;gap:14px;padding:12px 16px calc(12px + var(--sab));background:var(--surface);border-top:1px solid var(--border)}
.delivery-dish-total{flex:1;min-width:0;display:flex;flex-direction:column}
.delivery-dish-total b{font-family:var(--font-display);font-size:24px;color:var(--ink);font-variant-numeric:tabular-nums}
.delivery-dish-total small{font-size:12px;color:var(--ink2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.delivery-dish-footer .s-btn{flex:0 0 auto;min-width:46%;height:50px;border-radius:999px;font-size:15px}
#delivery-dish .delivery-detail-top .app-title{flex:1;text-align:center}

/* ── 已选商品 panel (design): photo | name + 小计 / choices · 单价 / 修改规格 | 删除 + stepper; 商品小计, 配送费, 合计 + 去结算 ── */
.delivery-cart-sheet-head{gap:10px}
.delivery-cart-sheet-head h2{margin:0;font-family:var(--font-display);font-size:22px}
.delivery-cart-count{margin-right:auto;padding:3px 12px;border-radius:999px;background:var(--surface-alt);color:var(--ink2);font-size:12.5px}
.delivery-cart-clear{font-size:13.5px}
.delivery-cart-clear svg{width:18px;height:18px}
.delivery-cart-sheet-row{align-items:center;gap:14px;padding:16px 0}
.delivery-cart-thumb{width:88px;height:88px;flex-shrink:0;border-radius:14px;object-fit:cover;background:var(--surface-alt)}
.delivery-cart-sheet-info{gap:4px}
.delivery-cart-line-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.delivery-cart-line-top b{font-family:var(--font-display);font-size:16px;font-weight:700;color:var(--ink);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.delivery-cart-line-top .store-price{flex-shrink:0;font-size:17px;font-variant-numeric:tabular-nums}
.delivery-cart-sheet-info .delivery-cart-unit{font-size:12.5px;color:var(--ink2)}
.delivery-cart-line-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:4px}
.delivery-cart-sheet-actions{display:flex;align-items:center;gap:0;margin:0;min-width:0}
.delivery-cart-sheet-actions button{display:flex;align-items:center;gap:4px;min-height:36px;padding:0 10px 0 0;text-decoration:none;font-size:12.5px;color:var(--ink2)}
.delivery-cart-sheet-actions button+button{padding-left:10px;border-left:1px solid var(--border)}
.delivery-cart-sheet-actions svg{width:15px;height:15px}
.delivery-cart-sheet-foot{gap:8px;padding-top:14px}
.delivery-cart-sum-row{display:flex;justify-content:space-between;font-size:13.5px;color:var(--ink2);font-variant-numeric:tabular-nums}
.delivery-cart-total-row{display:flex;align-items:center;gap:14px;margin-top:6px;padding-top:12px;border-top:1px solid var(--line-soft,var(--border))}
.delivery-cart-total{flex:1;min-width:0;display:flex;align-items:baseline;gap:8px}
.delivery-cart-total small{font-family:var(--font-display);font-size:17px;color:var(--ink)}
.delivery-cart-total b{font-family:var(--font-display);font-size:24px;color:var(--ink);font-variant-numeric:tabular-nums}
.delivery-cart-sheet-foot .delivery-cart-total-row .s-btn{width:auto;flex:0 0 48%;height:50px;border-radius:999px;font-size:16px}

/* ── checkout polish ── */
.delivery-order-items-head{font-size:14px;font-weight:700;color:var(--ink);padding-bottom:6px;margin-bottom:2px;border-bottom:1px solid var(--line-soft,var(--border))}
.delivery-checkout-items{margin-top:14px}
.delivery-checkout-scroll .delivery-limited{margin-top:18px}
.delivery-checkout-scroll textarea#delivery-checkout-remark{min-height:0;height:auto}
.delivery-checkout-scroll .delivery-toggle-row{margin-top:16px;padding:10px 14px;border-radius:14px;background:var(--surface-alt)}
.delivery-submit-wrap{display:flex;flex-direction:column;gap:8px}
.delivery-checkout-blocked{margin:0;font-size:12.5px;color:var(--ink);text-align:center}
.delivery-address-change.is-primary{display:flex;align-items:center;gap:4px;background:var(--pri-deep);color:var(--on-pri-deep,#fff)}
.delivery-address-change.is-primary svg{width:14px;height:14px}
.delivery-address-card>svg{width:22px;height:22px}
.delivery-address-tick{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;margin-right:6px;border-radius:50%;background:var(--pri-deep);color:var(--on-pri-deep,#fff);vertical-align:-3px}
.delivery-address-tick svg{width:11px;height:11px;stroke-width:2.8}
div.delivery-address-none{display:flex;flex-direction:column;align-items:center;gap:6px;padding:22px 12px;text-align:center;font-size:12.5px;color:var(--ink2);line-height:1.5}
div.delivery-address-none svg{width:28px;height:28px;color:var(--ink2)}
div.delivery-address-none b{font-size:15px;color:var(--ink)}
.delivery-order-meta-card{margin-top:12px;padding:4px 14px 12px;border-radius:14px;background:var(--surface-alt)}

/* ── designs: 确认订单 / 收货地址 / 新增地址 ── */
.delivery-cart-sheet-actions button{white-space:nowrap}
.delivery-cart-line-bottom .delivery-qty-stepper{gap:8px}
/* 确认订单: address card, store card (photo rows + 配送费), 用餐信息 card (餐具, 备注); hint + 合计 + 提交 at the bottom */
.delivery-address-card{box-shadow:none;border-radius:20px}
.delivery-address-card.is-empty .delivery-address-change.is-primary{padding:0 20px}
.delivery-checkout-card{margin-top:12px;padding:14px 16px;border-radius:20px;background:var(--surface)}
.delivery-checkout-card-head{display:flex;align-items:center;gap:10px;padding-bottom:12px;border-bottom:1px solid var(--line-soft,var(--border))}
.delivery-checkout-card-head svg{width:22px;height:22px;color:var(--ink2)}
.delivery-checkout-card-head b{font-family:var(--font-display);font-size:17px;color:var(--ink)}
.delivery-checkout-card-title{font-family:var(--font-display);font-size:17px;font-weight:700;color:var(--ink);margin-bottom:4px}
.delivery-checkout-line{display:flex;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid var(--line-soft,var(--border))}
.delivery-checkout-line img,.delivery-checkout-thumb{width:72px;height:56px;flex-shrink:0;border-radius:10px;object-fit:cover;background:var(--surface-alt)}
.delivery-checkout-line-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.delivery-checkout-line-main b{font-size:15px;color:var(--ink)}
.delivery-checkout-line-main small{font-size:12px;color:var(--ink2);line-height:1.4}
.delivery-checkout-line-price{flex-shrink:0;font-size:15px;color:var(--ink);font-variant-numeric:tabular-nums}
.delivery-checkout-fee{display:flex;justify-content:space-between;padding-top:12px;font-size:14px;color:var(--ink)}
.delivery-checkout-fee b{font-variant-numeric:tabular-nums}
.delivery-checkout-card .delivery-toggle-row{margin:6px 0 0;padding:8px 0 14px;border-radius:0;background:none;border-bottom:1px solid var(--line-soft,var(--border))}
.delivery-checkout-card .delivery-limited{margin-top:14px}
.delivery-checkout-card textarea#delivery-checkout-remark{border:none;border-radius:12px;background:var(--surface-alt);box-shadow:none}
.delivery-checkout-card .delivery-remark-hint{margin:6px 0 0}
.delivery-checkout-blocked{display:flex;align-items:center;gap:8px;text-align:left;color:var(--ink2)}
.delivery-checkout-blocked svg{width:18px;height:18px;flex-shrink:0}
.delivery-submit-wrap{background:var(--surface)}
/* 收货地址: the store's world as a tappable row; an explained empty state; 新增地址 full width */
button.delivery-store-world{display:flex;align-items:center;gap:12px;width:100%;padding:14px;border:none;border-radius:16px;background:var(--surface-alt);color:var(--ink);font-family:inherit;text-align:left;cursor:pointer}
button.delivery-store-world>svg{width:28px;height:28px;flex-shrink:0;color:var(--ink2)}
.delivery-store-world-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.delivery-store-world-main b{font-size:15px}
.delivery-store-world-main small{font-size:12.5px;color:var(--ink2)}
.delivery-store-world-go{display:flex;align-items:center;gap:2px;flex-shrink:0;font-size:13px;color:var(--ink2)}
.delivery-store-world-go svg{width:15px;height:15px}
div.delivery-address-none{padding:28px 12px}
div.delivery-address-none svg{width:34px;height:34px}
div.delivery-address-none b{font-family:var(--font-display);font-size:17px}
.delivery-address-add-btn{height:50px;border-radius:999px;font-size:15px}
/* 新增地址: plain section titles with the counter on the right, bordered fields, ticks on what is chosen */
.delivery-editor-sheet .delivery-sheet-head h2{font-family:var(--font-display);font-size:22px}
.delivery-editor-sheet .delivery-step-title{justify-content:space-between;margin:18px 0 10px;font-size:15px}
.delivery-step-title .delivery-count{font-weight:400}
.delivery-step-field{display:flex;flex-direction:column;gap:8px}
.delivery-step-field>span{font-size:12.5px;color:var(--ink2)}
.delivery-input{width:100%;box-sizing:border-box;height:46px;padding:0 14px;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--ink);font-family:inherit;font-size:14px;outline:none}
.delivery-input:focus{border-color:var(--pri-deep)}
.delivery-place-card{min-height:52px;padding:10px 14px;font-size:14px}
.delivery-place-card.active svg{color:var(--ink)}
.delivery-recipient-tabs button{display:flex;align-items:center;gap:6px;min-width:64px;justify-content:center;min-height:40px}
.delivery-recipient-tabs button svg{width:15px;height:15px}
.delivery-char-row{gap:14px;padding:6px 0 8px}
.delivery-char-row button{width:60px;border:none;padding:0;gap:6px;background:none}
.delivery-char-row img,.delivery-char-row .avatar-placeholder{width:52px;height:52px;border:2px solid transparent}
.delivery-char-row button.active img,.delivery-char-row button.active .avatar-placeholder{border-color:var(--pri-deep)}
.delivery-char-row button.active{background:none}
.delivery-char-row button.active span{font-weight:700}
.delivery-editor-sheet .sheet-btns{display:grid;grid-template-columns:1fr 1.35fr;gap:12px;padding-top:12px;border-top:1px solid var(--line-soft,var(--border))}
.delivery-editor-sheet .sheet-btns .s-btn{height:50px;border-radius:999px;font-size:15px}
.sheet.delivery-address-sheet input.delivery-input{background:var(--surface);box-shadow:none;border-radius:14px;padding:0 14px}

/* 下单成功 (design): light check, store name under the title; 预计送达 | 实付金额, then the dishes; outlined share button */
.delivery-done{padding-top:36px}
.delivery-done .delivery-status-icon{width:72px;height:72px;margin-bottom:16px;background:var(--surface);color:var(--ink)}
.delivery-done .delivery-status-icon svg{width:32px;height:32px}
.delivery-done .delivery-status-headline{font-size:24px}
.delivery-done .delivery-status-sub{margin:6px 0 24px;font-size:14px}
.delivery-done-card{margin:0 0 20px;padding:20px 20px 16px;border-radius:20px;background:var(--surface)}
.delivery-done-facts{display:grid;grid-template-columns:1fr 1fr;padding-bottom:16px;border-bottom:1px solid var(--line-soft,var(--border))}
.delivery-done-facts div{display:flex;flex-direction:column;align-items:center;gap:4px}
.delivery-done-facts div+div{border-left:1px solid var(--line-soft,var(--border))}
.delivery-done-facts small{font-size:13px;color:var(--ink2)}
.delivery-done-facts b{font-family:var(--font-display);font-size:24px;color:var(--ink);font-variant-numeric:tabular-nums}
.delivery-done-items{display:flex;align-items:flex-start;gap:14px;padding-top:14px}
.delivery-done-items>svg{width:24px;height:24px;flex-shrink:0;color:var(--ink2)}
.delivery-done-items span{display:flex;flex-direction:column;gap:6px;min-width:0}
.delivery-done-items b{font-size:15px;color:var(--ink)}
.delivery-done-btn{height:50px;border-radius:999px;font-size:15px}
#delivery-done-share{background:var(--surface);border:1px solid var(--border);color:var(--ink)}

/* 订单详情 (design): 进度 / 商品 / 配送信息 cards; two buttons side by side */
.delivery-order-detail{padding-top:8px}
.delivery-progress-card{margin-top:4px}
.delivery-progress-head{display:flex;align-items:center;gap:14px;margin-bottom:18px}
.delivery-progress-icon{width:56px;height:56px;flex-shrink:0;border-radius:50%;background:var(--surface-alt);color:var(--ink);display:flex;align-items:center;justify-content:center}
.delivery-progress-icon svg{width:26px;height:26px}
.delivery-progress-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.delivery-progress-text .delivery-status-headline{text-align:left;font-size:20px}
.delivery-progress-text small{font-size:12.5px;color:var(--ink2)}
.delivery-progress-eta{flex-shrink:0;display:flex;flex-direction:column;align-items:center;gap:2px;padding-left:14px;border-left:1px solid var(--line-soft,var(--border))}
.delivery-progress-eta small{font-size:12px;color:var(--ink2)}
.delivery-progress-eta b{font-family:var(--font-display);font-size:22px;color:var(--ink);font-variant-numeric:tabular-nums}
.delivery-progress-card .delivery-status-track{padding:0 8px}
.delivery-progress-card .delivery-status-labels{margin:8px 0 0}
.delivery-status-labels span.current{color:var(--ink);font-weight:700}
button.delivery-order-store{width:100%;border:none;border-bottom:1px solid var(--line-soft,var(--border));background:none;font-family:inherit;text-align:left;cursor:pointer;padding-top:0}
button.delivery-order-store b{flex:1}
button.delivery-order-store svg:last-child{width:18px;height:18px}
.delivery-order-paid{display:flex;align-items:baseline;justify-content:flex-end;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line-soft,var(--border));font-size:13.5px;color:var(--ink2)}
.delivery-order-paid b{font-family:var(--font-display);font-size:24px;color:var(--ink);font-variant-numeric:tabular-nums}
.delivery-ship-head{border-bottom:none;padding-bottom:8px}
.delivery-ship-place{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border-radius:14px;background:var(--surface-alt)}
.delivery-ship-place>svg{width:18px;height:18px;flex-shrink:0;margin-top:2px;color:var(--ink2)}
.delivery-ship-place span{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}
.delivery-ship-place b{font-size:15px;color:var(--ink);word-break:break-word}
.delivery-ship-place small{padding:2px 10px;border-radius:999px;background:var(--surface);font-size:12px;color:var(--ink2)}
.delivery-order-detail .delivery-order-meta{margin-top:0;padding:12px 0;border-top:1px solid var(--line-soft,var(--border))}
.delivery-order-detail .delivery-ship-place+.delivery-order-meta{margin-top:12px}
.delivery-order-actions{display:flex;gap:10px;margin:14px 0 16px}
.delivery-order-actions button{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;height:50px;border:1px solid var(--border);border-radius:16px;background:var(--surface);color:var(--ink);font-family:inherit;font-size:14px;cursor:pointer}
.delivery-order-actions svg{width:18px;height:18px;color:var(--ink2)}

/* 分享给谁: a centred dialog */
.sheet-ov.delivery-center-ov{align-items:center;padding:16px 16px calc(16px + var(--sab))}
.sheet.delivery-share-dialog{width:100%;max-width:400px;max-height:calc(100dvh - 48px);border-radius:24px;padding:20px 20px 12px;animation:fadeIn .2s}
.delivery-share-dialog .delivery-sheet-head h2{font-family:var(--font-display);font-size:21px}
.delivery-share-order{display:flex;align-items:center;gap:12px;margin:6px 0 8px;padding:12px 14px;border:1px solid var(--border);border-radius:14px;font-size:14px;color:var(--ink)}
.delivery-share-order svg{width:20px;height:20px;flex-shrink:0;color:var(--ink2)}
.delivery-share-list{gap:0}
.delivery-share-row{display:flex;align-items:center;gap:14px;min-height:64px;padding:6px 2px;border:none;background:none;color:var(--ink);font-family:inherit;font-size:15px;text-align:left;cursor:pointer}
.delivery-share-row>span:not(.avatar-placeholder){flex:1;align-self:stretch;display:flex;align-items:center;border-bottom:1px solid var(--line-soft,var(--border))}
.delivery-share-row:last-child>span:not(.avatar-placeholder){border-bottom:none}
.delivery-share-row>svg{width:18px;height:18px;color:var(--ink2)}
.delivery-share-row img,.delivery-share-row .avatar-placeholder{width:46px;height:46px;flex-shrink:0;border-radius:50%;object-fit:cover;display:flex;align-items:center;justify-content:center;background:var(--surface-alt);color:var(--ink2)}
.delivery-share-row .avatar-placeholder svg{width:22px;height:22px}

/* 底部 dock: a floating rounded bar; it stays in the layout flow (not overlaid), so lists end above it */
.delivery-tabs{margin:0 16px calc(10px + var(--sab));padding:6px;gap:6px;border:none;border-radius:24px;background:var(--surface);box-shadow:var(--shadow)}
.delivery-tabs button{padding:8px 0 6px;border-radius:18px;font-size:11.5px}
.delivery-tabs button svg{width:22px;height:22px}
.delivery-tabs button.active{background:var(--surface-alt);color:var(--ink);font-weight:700}

/* 订单 (design): day headers; card = store + status / first dish photo + 实付 / 下单时间 + 查看详情 */
.delivery-orders-day{margin:14px 4px 10px;font-size:13.5px;color:var(--ink2)}
.delivery-orders-day:first-child{margin-top:6px}
.delivery-order-card{padding:16px;border-radius:20px;box-shadow:none}
.delivery-order-card-top{margin-bottom:12px}
.delivery-order-card-store{display:flex;align-items:center;gap:8px;min-width:0;padding:0;border:none;background:none;font-family:inherit;cursor:pointer}
.delivery-order-card-store svg:first-child{width:22px;height:22px;color:var(--ink2);flex-shrink:0}
.delivery-order-card-store b{font-family:var(--font-display);font-size:16px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.delivery-order-card-store svg:last-child{width:15px;height:15px;color:var(--ink2);flex-shrink:0}
.delivery-order-status-badge{flex-shrink:0;padding:4px 12px;border-radius:999px;background:var(--surface-alt);font-size:12px}
.delivery-order-card-body{display:flex;align-items:center;gap:14px}
.delivery-order-card-body img{width:80px;height:64px;flex-shrink:0;border-radius:12px;object-fit:cover}
.delivery-order-card-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.delivery-order-card-main b{font-size:15px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.delivery-order-card-main small{font-size:12.5px;color:var(--ink2)}
.delivery-order-card-paid{flex-shrink:0;display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.delivery-order-card-paid small{font-size:12px;color:var(--ink2)}
.delivery-order-card-paid b{font-family:var(--font-display);font-size:20px;color:var(--ink);font-variant-numeric:tabular-nums}
.delivery-order-card-bottom{align-items:center;margin-top:12px;padding-top:12px;border-top:1px solid var(--line-soft,var(--border))}
.delivery-order-card-more{display:flex;align-items:center;gap:2px;color:var(--ink2)}
.delivery-order-card-more svg{width:14px;height:14px}

/* 我的 (design): wallet card; 收货地址 + 新增; address cards with 编辑 */
.delivery-wallet-card{justify-content:flex-start;gap:16px;padding:20px;border-radius:20px;margin:8px 0 6px}
.delivery-wallet-card>svg{width:36px;height:36px;flex-shrink:0;color:var(--ink2)}
.delivery-wallet-main{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.delivery-wallet-main small{font-size:13.5px;color:var(--ink2)}
.delivery-wallet-card .delivery-wallet-main b{font-size:28px;font-variant-numeric:tabular-nums}
.delivery-me-head{display:flex;align-items:center;justify-content:space-between;margin:20px 2px 10px}
.delivery-me-head b{font-family:var(--font-display);font-size:18px;color:var(--ink)}
.delivery-me-head button{display:flex;align-items:center;gap:4px;min-height:36px;border:none;background:none;color:var(--ink2);font-family:inherit;font-size:14px;cursor:pointer}
.delivery-me-head button svg{width:18px;height:18px}
.delivery-me-addresses{display:flex;flex-direction:column;gap:10px}
.delivery-me-address{display:flex;align-items:flex-start;gap:14px;padding:16px;border-radius:18px;background:var(--surface)}
.delivery-me-address>svg{width:24px;height:24px;flex-shrink:0;margin-top:2px;color:var(--ink2)}
.delivery-me-address-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.delivery-me-address-main b{font-size:15.5px;color:var(--ink)}
.delivery-me-address-main small{font-size:13px;color:var(--ink2);line-height:1.5;word-break:break-word}
.delivery-me-address-actions{display:flex;align-items:center;gap:2px;flex-shrink:0}
.delivery-me-edit{display:flex;align-items:center;gap:4px;min-height:36px;padding:0 6px;border:none;background:none;color:var(--ink2);font-family:inherit;font-size:13.5px;cursor:pointer}
.delivery-me-edit svg,.delivery-me-address-actions .delivery-address-remove svg{width:17px;height:17px}
.delivery-me-address-actions .delivery-address-remove{margin-left:0;min-width:36px;min-height:36px;align-items:center;justify-content:center}

/* the shared-order card inside a chat (only this card; the chat's own bubbles are not touched) */
.delivery-chat-card{display:flex;flex-direction:column;width:min(240px,64vw);padding:12px 14px;border:none;border-radius:18px;background:var(--surface);box-shadow:var(--shadow);color:var(--ink);font-family:inherit;text-align:left;cursor:pointer}
.delivery-chat-card-head{display:flex;align-items:center;gap:8px;padding-bottom:10px;border-bottom:1px solid var(--line-soft,var(--border))}
.delivery-chat-card-head svg{width:18px;height:18px;flex-shrink:0;color:var(--ink2)}
.delivery-chat-card-head b{font-size:14.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.delivery-chat-card-dish{display:flex;align-items:center;gap:12px;padding:12px 0 8px}
.delivery-chat-card-dish img{width:72px;height:60px;flex-shrink:0;border-radius:10px;object-fit:cover}
.delivery-chat-card-dish>span{display:flex;flex-direction:column;gap:4px;min-width:0}
.delivery-chat-card-dish b{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.delivery-chat-card-dish small{font-size:12.5px;color:var(--ink2)}
.delivery-chat-card-paid{display:flex;align-items:baseline;gap:6px;padding-bottom:10px}
.delivery-chat-card-paid small{font-size:12.5px;color:var(--ink2)}
.delivery-chat-card-paid b{font-size:16px;font-variant-numeric:tabular-nums}
.delivery-chat-card-foot{display:flex;align-items:center;gap:6px;padding-top:8px;border-top:1px solid var(--line-soft,var(--border));font-size:12px;color:var(--ink2)}
.delivery-chat-card-foot svg{width:14px;height:14px}

/* 旧共用数据: an explicit import offer in 订单 / 我的 */
.delivery-legacy-card{display:flex;align-items:center;gap:12px;margin:6px 0 12px;padding:14px;border-radius:18px;background:var(--surface)}
.delivery-legacy-card>svg{width:24px;height:24px;flex-shrink:0;color:var(--ink2)}
.delivery-legacy-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.delivery-legacy-main b{font-size:14px;color:var(--ink)}
.delivery-legacy-main small{font-size:12px;color:var(--ink2);line-height:1.5}
.delivery-legacy-import{flex-shrink:0;min-height:36px;padding:0 14px;border:none;border-radius:999px;background:var(--pri-deep);color:var(--on-pri-deep,#fff);font-family:inherit;font-size:13px;font-weight:600;cursor:pointer}

/* === delivery v1 redesign (hand-written, keep LAST) === */

/* ═══ 外卖 redesign v1 (hand-written, keep LAST) ═══
   外卖 = 小票 + 珊瑚红：暖白底、白卡片、珊瑚红只用在价格、加号、进度和印章上；颜色固定，不跟主题色。 */
:is(#v-delivery,#delivery-address-panel,#delivery-address-editor,#delivery-store-world-sheet,#delivery-share-sheet){--dl-ac:#e0705a;--dl-ac-deep:#c4573f;--dl-ac-soft:#fbe6e0;--dl-bg:#f6f4f2;--dl-card:#fff;--dl-ink:#2e3440;--dl-ink2:#767b87;--dl-line:rgba(46,52,64,.09);--dl-dash:rgba(46,52,64,.2);--dl-shadow:0 4px 14px rgba(60,45,40,.07);--dl-cap:#2e3440;}
#v-delivery{background:var(--dl-bg);color:var(--dl-ink)}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) :is(#v-delivery,#delivery-address-panel,#delivery-address-editor,#delivery-store-world-sheet,#delivery-share-sheet){--dl-ac:#ee8a74;--dl-ac-deep:#f3a08c;--dl-ac-soft:rgba(238,138,116,.16);--dl-bg:#1d1b1b;--dl-card:#292626;--dl-ink:#efe9e6;--dl-ink2:#a59d99;--dl-line:rgba(255,255,255,.07);--dl-dash:rgba(255,255,255,.18);--dl-shadow:0 4px 14px rgba(0,0,0,.3);--dl-cap:#3a3434}}
:root[data-theme="dark"] :is(#v-delivery,#delivery-address-panel,#delivery-address-editor,#delivery-store-world-sheet,#delivery-share-sheet){--dl-ac:#ee8a74;--dl-ac-deep:#f3a08c;--dl-ac-soft:rgba(238,138,116,.16);--dl-bg:#1d1b1b;--dl-card:#292626;--dl-ink:#efe9e6;--dl-ink2:#a59d99;--dl-line:rgba(255,255,255,.07);--dl-dash:rgba(255,255,255,.18);--dl-shadow:0 4px 14px rgba(0,0,0,.3);--dl-cap:#3a3434}
#v-delivery .delivery-screen,#v-delivery .delivery-shell{background:var(--dl-bg)}
#v-delivery .app-title,#v-delivery .app-back{color:var(--dl-ink)}
#v-delivery .delivery-top,#v-delivery .delivery-detail-top{background:transparent}
#v-delivery .delivery-scroll{padding-left:16px;padding-right:16px}

/* tab bar */
#v-delivery .delivery-tabs{background:color-mix(in srgb,var(--dl-card) 92%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 8px 24px rgba(60,45,40,.1);border:none}
#v-delivery .delivery-tabs button{color:var(--dl-ink2);background:none}
#v-delivery .delivery-tabs button.active{color:var(--dl-ac);background:none;font-weight:700}
#v-delivery .delivery-wallet-chip{background:var(--dl-card);color:var(--dl-ink);box-shadow:var(--dl-shadow);border:none}

/* 首页 · time card */
.delivery-hero{position:relative;overflow:hidden;border-radius:26px;padding:18px 16px 14px;margin:6px 0 0;color:#fff;background:linear-gradient(150deg,#3b3f58 0%,#5b4a6b 55%,#c9796a 125%)}
.delivery-hero[data-slot="morning"]{background:linear-gradient(150deg,#f2b49a 0%,#e8907a 55%,#c9796a 120%)}
.delivery-hero[data-slot="noon"]{background:linear-gradient(150deg,#e8846c 0%,#d9694f 60%,#b8513b 120%)}
.delivery-hero[data-slot="tea"]{background:linear-gradient(150deg,#e9a4a0 0%,#d98a86 55%,#b9707c 120%)}
.delivery-hero[data-slot="evening"]{background:linear-gradient(150deg,#6b4f6b 0%,#a65f63 55%,#e0705a 120%)}
.delivery-hero small{font-size:11px;letter-spacing:.18em;opacity:.8}
.delivery-hero h2{margin:6px 0 0;font-family:var(--font-display);font-size:24px;font-weight:600;line-height:1.3}
.delivery-hero-moon{position:absolute;right:20px;top:16px;width:44px;height:44px;border-radius:50%;box-shadow:-10px 6px 0 0 #f6dccd;transform:rotate(-20deg);opacity:.92}
.delivery-hero:not([data-slot="night"]) .delivery-hero-moon{box-shadow:none;background:radial-gradient(circle,rgba(255,240,225,.95) 0 38%,rgba(255,240,225,.25) 40%,transparent 66%);transform:none;width:52px;height:52px;right:14px;top:10px}
.delivery-hero-picks{display:flex;gap:8px;margin-top:14px}
.delivery-hero-pick{flex:1;min-width:0;border:none;border-radius:16px;background:rgba(255,255,255,.15);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);padding:7px;color:#fff;font-family:inherit;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:2px}
.delivery-hero-pick img{width:100%;height:60px;border-radius:11px;object-fit:cover;margin-bottom:4px}
.delivery-hero-pick b{font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.delivery-hero-pick i{font-style:normal;font-size:11px;opacity:.82;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#v-delivery .delivery-search-bar{margin:14px 0 0;height:46px;border-radius:16px;background:var(--dl-card);box-shadow:var(--dl-shadow);border:none;color:var(--dl-ink2)}
#v-delivery .delivery-cat-grid{display:flex;justify-content:space-between;gap:4px;margin:16px 2px 0}
#v-delivery .delivery-cat-item{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:6px;background:none;box-shadow:none;border:none;padding:0;color:var(--dl-ink);font-size:12px}
.delivery-cat-ic{width:46px;height:46px;border-radius:16px;display:grid;place-items:center;background:var(--dl-card);box-shadow:var(--dl-shadow);color:var(--dl-ac)}
#v-delivery .delivery-cat-item svg{width:21px;height:21px;color:var(--dl-ac);stroke-width:1.7}
#v-delivery .delivery-cat-item.active .delivery-cat-ic{background:var(--dl-ac);color:#fff}
#v-delivery .delivery-cat-item.active svg{color:#fff}
#v-delivery .delivery-cat-item.active{background:none;color:var(--dl-ac);font-weight:700}
#v-delivery .delivery-section-title{display:flex;align-items:baseline;justify-content:space-between;margin:20px 4px 10px;font-family:var(--font-display);font-size:16px;font-weight:600;color:var(--dl-ink)}
.delivery-section-sub{font-family:inherit;font-size:12px;font-weight:400;color:var(--dl-ink2)}
#v-delivery .delivery-clear-filter{color:var(--dl-ac);background:none;border:none;font-family:inherit;font-size:12px}
#v-delivery .delivery-store-card{background:var(--dl-card);border-radius:20px;box-shadow:var(--dl-shadow);border:none;padding:10px;gap:12px}
#v-delivery .delivery-store-card img{width:76px;height:76px;border-radius:15px}
#v-delivery .delivery-store-card-info b{font-size:15.5px;color:var(--dl-ink)}
#v-delivery .delivery-store-meta{color:var(--dl-ink2)}
.delivery-store-tags{display:flex;gap:5px;margin-top:5px}
.delivery-store-tags i{font-style:normal;font-size:10.5px;padding:2px 7px;border-radius:6px;background:var(--dl-ac-soft);color:var(--dl-ac-deep)}

/* TA 给你点的 / 送给 TA */
.delivery-gift-card{width:100%;margin:12px 0 0;display:flex;align-items:center;gap:11px;border:1px solid var(--dl-ac-soft);border-radius:20px;background:var(--dl-card);padding:11px 13px;box-shadow:0 6px 18px rgba(224,112,90,.13);color:var(--dl-ink);font-family:inherit;text-align:left;cursor:pointer}
.delivery-gift-card.is-static{cursor:default;margin-top:14px}
.delivery-gift-av{width:40px;height:40px;border-radius:14px;overflow:hidden;flex:none;display:grid;place-items:center;background:var(--ca,var(--dl-ac));color:#fff;font-weight:700}
.delivery-gift-av img{width:100%;height:100%;object-fit:cover}
.delivery-gift-av .character-avatar-fallback,.delivery-gift-av .avatar-placeholder{width:100%;height:100%;display:grid;place-items:center;color:#fff}
.delivery-gift-av svg{width:55%;height:55%}
.delivery-gift-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.delivery-gift-main b{font-size:13.5px}
.delivery-gift-main small{font-size:11.5px;color:var(--dl-ink2)}
.delivery-gift-card em{font-style:normal;font-size:11.5px;font-weight:700;color:var(--dl-ac-deep);background:var(--dl-ac-soft);padding:4px 9px;border-radius:999px;white-space:nowrap}
.delivery-echo{font-size:13.5px;line-height:1.6;color:var(--dl-ink);margin-top:2px}

/* 搜索 */
.delivery-search-field{flex:1;display:flex;align-items:center;gap:8px;height:42px;border-radius:14px;background:var(--dl-card);box-shadow:var(--dl-shadow);padding:0 12px;color:var(--dl-ink2)}
.delivery-search-field svg{width:17px;height:17px}
.delivery-search-field input{flex:1;min-width:0;border:none;background:none;outline:none;color:var(--dl-ink);font-family:inherit;font-size:14px}
.delivery-search-hint{text-align:center;color:var(--dl-ink2);font-size:13px;margin:40px 0}
.delivery-search-row{width:100%;display:flex;align-items:center;gap:12px;border:none;background:var(--dl-card);border-radius:18px;padding:9px;margin-top:10px;box-shadow:var(--dl-shadow);color:var(--dl-ink);font-family:inherit;text-align:left;cursor:pointer}
.delivery-search-row img{width:52px;height:52px;border-radius:12px;object-fit:cover;flex:none}
.delivery-search-row span{display:flex;flex-direction:column;gap:3px;min-width:0}
.delivery-search-row b{font-size:14.5px}.delivery-search-row small{font-size:11.5px;color:var(--dl-ink2)}

/* 店铺 */
#v-delivery .delivery-detail-scroll{padding:0 0 110px}
.delivery-store-hero{position:relative;height:250px}
#v-delivery .delivery-store-hero .delivery-store-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:0;margin:0}
.delivery-store-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.18),rgba(0,0,0,0) 38%,rgba(0,0,0,.6));pointer-events:none}
#v-delivery .delivery-round-back{position:absolute;left:14px;top:calc(var(--sat,0px) + 12px);z-index:2;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.88);color:#2e3440;display:grid;place-items:center;box-shadow:0 4px 12px rgba(0,0,0,.15)}
#v-delivery .delivery-store-hero .delivery-store-header{position:absolute;left:18px;right:18px;bottom:26px;z-index:2;color:#fff;padding:0;background:none;display:flex;flex-direction:column;gap:3px}
#v-delivery .delivery-store-hero .delivery-store-header b{font-family:var(--font-display);font-size:26px;font-weight:600;color:#fff}
#v-delivery .delivery-store-hero .delivery-store-meta{color:rgba(255,255,255,.88);font-size:12.5px}
#v-delivery .delivery-announcement{position:relative;z-index:3;margin:-16px 16px 0;background:var(--dl-card);border-radius:18px;padding:11px 14px;font-size:12.5px;color:var(--dl-ink2);box-shadow:0 6px 16px rgba(60,45,40,.1);display:flex;gap:8px}
#v-delivery .delivery-announcement b{color:var(--dl-ink);flex:none}
.delivery-menu{display:flex;align-items:flex-start;margin-top:12px}
#v-delivery .delivery-menu .delivery-cat-tabs{position:sticky;top:0;flex:none;width:84px;display:flex;flex-direction:column;gap:2px;padding:0 0 0 10px;border:none;overflow:visible;margin:0}
#v-delivery .delivery-menu .delivery-cat-tabs button{position:relative;text-align:left;border:none;border-radius:14px 0 0 14px;background:none;color:var(--dl-ink2);font-size:13px;padding:13px 10px;margin:0}
#v-delivery .delivery-menu .delivery-cat-tabs button.active{background:var(--dl-card);color:var(--dl-ink);font-weight:700}
#v-delivery .delivery-menu .delivery-cat-tabs button.active::after{display:none}
#v-delivery .delivery-menu .delivery-cat-tabs button.active::before{content:"";position:absolute;left:3px;top:15px;bottom:15px;width:3px;border-radius:2px;background:var(--dl-ac)}
#v-delivery .delivery-menu .delivery-dish-list{flex:1;min-width:0;min-height:360px;background:var(--dl-card);border-radius:20px 0 0 20px;padding:4px 14px 4px 12px;margin:0}
#v-delivery .delivery-dish-row{border-bottom:1px solid var(--dl-line);padding:12px 0;gap:11px;background:none}
#v-delivery .delivery-dish-row img{width:78px;height:78px;border-radius:14px}
#v-delivery .delivery-dish-info b{font-size:14.5px;color:var(--dl-ink)}
#v-delivery .delivery-dish-desc,#v-delivery .delivery-dish-sales{color:var(--dl-ink2)}
#v-delivery .store-price{color:var(--dl-ac);font-weight:700}
#v-delivery .delivery-step{border:none;background:var(--dl-ac-soft);color:var(--dl-ac-deep)}
#v-delivery .delivery-step.plus{background:var(--dl-ac);color:#fff}
#v-delivery .delivery-spec-btn{border:none;background:var(--dl-ac);color:#fff;border-radius:999px}
#v-delivery .delivery-dish-picked-chip{background:var(--dl-ac-soft);color:var(--dl-ac-deep)}
#v-delivery .delivery-dish-edit{color:var(--dl-ac-deep)}

/* the cart capsule */
#v-delivery .delivery-cart-bar{left:14px;right:14px;bottom:calc(16px + var(--sab,0px));height:58px;border-radius:999px;background:var(--dl-cap);color:#fff;box-shadow:0 10px 24px rgba(0,0,0,.25);padding:0 6px 0 10px;border:none}
#v-delivery .delivery-cart-bar.is-empty{background:color-mix(in srgb,var(--dl-cap) 82%,var(--dl-bg))}
#v-delivery .delivery-cart-bar-icon{width:46px;height:46px;border-radius:50%;background:var(--dl-ac);color:#fff;margin-top:-18px;border:4px solid var(--dl-bg);display:grid;place-items:center;position:relative}
#v-delivery .delivery-cart-bar.is-empty .delivery-cart-bar-icon{background:#5d5655}
#v-delivery .delivery-cart-bar-icon i{background:#fff;color:var(--dl-ac-deep)}
#v-delivery .delivery-cart-bar-sum b,#v-delivery .delivery-cart-bar.is-empty .delivery-cart-bar-sum b{color:#fff}
#v-delivery .delivery-cart-bar-sum small,#v-delivery .delivery-cart-bar.is-empty .delivery-cart-bar-sum small{color:rgba(255,255,255,.65)}
#v-delivery .delivery-cart-bar-main{background:none;color:#fff}
#v-delivery .delivery-cart-bar-cta{background:var(--dl-ac);color:#fff;border-radius:999px;font-weight:700;border:none}
#v-delivery .delivery-cart-bar-cta:disabled,#v-delivery .delivery-cart-bar-cta.is-off{background:rgba(255,255,255,.14);color:rgba(255,255,255,.6)}

/* 订单详情 = 小票 */
.delivery-mono{font-family:"SF Mono","Menlo","Consolas","Noto Sans Mono","DejaVu Sans Mono",monospace;font-variant-numeric:tabular-nums;white-space:pre}
.delivery-receipt{position:relative;margin:16px 4px 0;background:var(--dl-card);padding:22px 18px 18px;filter:drop-shadow(0 8px 16px rgba(60,45,40,.08))}
.delivery-receipt::before,.delivery-receipt::after{content:"";position:absolute;left:0;right:0;height:10px;background:radial-gradient(circle at 6px 0,transparent 6px,var(--dl-card) 6.5px) 0 0/12px 10px repeat-x}
.delivery-receipt::before{top:-10px;transform:scaleY(-1)}
.delivery-receipt::after{bottom:-10px}
.delivery-receipt-head{text-align:center;display:flex;flex-direction:column;align-items:center;gap:4px}
.delivery-receipt-head small{font-size:10.5px;letter-spacing:.22em;color:var(--dl-ink2)}
#v-delivery .delivery-receipt .delivery-order-store{display:inline-flex;align-items:center;gap:4px;border:none;background:none;padding:0;color:var(--dl-ink);font-family:inherit;cursor:pointer}
.delivery-receipt .delivery-order-store b{font-family:var(--font-display);font-size:20px;font-weight:600}
.delivery-receipt .delivery-order-store svg{width:15px;height:15px;color:var(--dl-ink2)}
.delivery-receipt-from{font-size:11.5px;color:var(--dl-ac-deep);background:var(--dl-ac-soft);border-radius:999px;padding:3px 10px}
.delivery-track{position:relative;height:34px;margin:14px 0 4px}
.delivery-track-line{position:absolute;left:4%;right:4%;top:16px;border-top:2px dotted var(--dl-dash)}
.delivery-track-fill{position:absolute;left:4%;top:15px;border-top:3px solid var(--dl-ac);border-radius:2px}
.delivery-track-scooter{position:absolute;top:1px;transform:translateX(-50%);width:32px;height:32px;border-radius:50%;background:var(--dl-ac);color:#fff;display:grid;place-items:center;box-shadow:0 4px 10px rgba(224,112,90,.4)}
.delivery-track-scooter svg{width:17px;height:17px;stroke-width:1.8}
#v-delivery .delivery-receipt .delivery-status-labels{display:flex;justify-content:space-between;font-size:11px;color:var(--dl-ink2)}
#v-delivery .delivery-receipt .delivery-status-labels .current{color:var(--dl-ac-deep);font-weight:700}
.delivery-receipt-sub{margin:8px 0 0;text-align:center;font-size:12px;color:var(--dl-ink2)}
.delivery-receipt-rule{border-top:1.5px dashed var(--dl-dash);margin:14px 0}
.delivery-receipt-line{display:flex;justify-content:space-between;gap:12px;font-size:13px;padding:3px 0;color:var(--dl-ink)}
.delivery-receipt-line>span:first-child{min-width:0;display:flex;flex-direction:column}
.delivery-receipt-line>span:last-child{text-align:right}
.delivery-receipt-line small{font-size:11px;color:var(--dl-ink2)}
.delivery-receipt-line.muted{color:var(--dl-ink2)}
.delivery-receipt-line.muted>span:last-child{color:var(--dl-ink)}
.delivery-receipt-total{display:flex;justify-content:space-between;align-items:baseline;font-size:13px}
.delivery-receipt-total b{font-size:23px;color:var(--dl-ac)}
.delivery-receipt-total{position:relative}
.delivery-stamp{position:absolute;right:150px;top:-34px;width:86px;height:86px;border-radius:50%;border:2.5px solid color-mix(in srgb,var(--dl-ac) 75%,transparent);color:color-mix(in srgb,var(--dl-ac) 85%,transparent);display:grid;place-items:center;transform:rotate(-14deg);font-weight:700;font-size:15px;letter-spacing:.12em;pointer-events:none}
.delivery-stamp::before{content:"";position:absolute;inset:5px;border-radius:50%;border:1px solid color-mix(in srgb,var(--dl-ac) 50%,transparent)}
#v-delivery .delivery-order-actions{margin-top:16px}
#v-delivery .delivery-order-actions button{background:var(--dl-card);color:var(--dl-ink);box-shadow:var(--dl-shadow);border:none;border-radius:999px}

/* 下单成功 */
#v-delivery .delivery-done-badge{background:var(--dl-ac);color:#fff;box-shadow:0 10px 24px rgba(224,112,90,.35)}
#v-delivery .delivery-done-card{background:var(--dl-card);box-shadow:var(--dl-shadow);border:none}
#v-delivery .delivery-done-btn.ok{background:var(--dl-ac);color:#fff}
#v-delivery .delivery-done-btn.cancel{background:var(--dl-card);color:var(--dl-ink)}

/* 订单 / 我的 / 结算 cards */
#v-delivery .delivery-order-card,#v-delivery .delivery-checkout-card,#v-delivery .delivery-wallet-card,#v-delivery .delivery-me-address,#v-delivery .delivery-address-card{background:var(--dl-card);border:none;border-radius:20px;box-shadow:var(--dl-shadow);color:var(--dl-ink)}
#v-delivery .delivery-order-card-paid b,#v-delivery .delivery-order-paid b{color:var(--dl-ac)}
#v-delivery .delivery-checkout-footer{background:color-mix(in srgb,var(--dl-card) 94%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:none}
#v-delivery .delivery-checkout-footer .s-btn.ok,#v-delivery #delivery-submit{background:var(--dl-ac);color:#fff}
#v-delivery .delivery-checkout-footer .s-btn.ok:disabled,#v-delivery #delivery-submit:disabled{background:color-mix(in srgb,var(--dl-ac) 30%,var(--dl-bg));color:#fff}

/* 地址：内容多 → 全屏页（不是底部弹窗）；店铺所在世界 → 居中弹窗 */
:is(#delivery-address-panel,#delivery-address-editor).sheet-ov{padding:0;align-items:stretch}
:is(#delivery-address-panel,#delivery-address-editor) .sheet{max-width:none;width:100%;height:100%;max-height:none;border-radius:0;animation:none;padding:calc(var(--sat,0px) + 18px) 18px calc(18px + var(--sab,0px));display:flex;flex-direction:column;background:var(--dl-bg);color:var(--dl-ink)}
:is(#delivery-address-panel,#delivery-address-editor) .sheet-bar{display:none}
:is(#delivery-address-panel,#delivery-address-editor) .delivery-editor-scroll,:is(#delivery-address-panel) .delivery-address-options{flex:1;min-height:0;overflow-y:auto}
#delivery-store-world-sheet.sheet-ov{align-items:center;padding:20px}
#delivery-store-world-sheet .sheet{max-width:360px;border-radius:24px;animation:none}
#delivery-store-world-sheet .sheet-bar{display:none}
/* coral everywhere a control is "on" (checkout, dish page, address pages) */
:is(#v-delivery,#delivery-address-panel,#delivery-address-editor,#delivery-store-world-sheet,#delivery-share-sheet) .s-btn.ok{background:var(--dl-ac);color:#fff}
:is(#v-delivery,#delivery-address-panel,#delivery-address-editor,#delivery-store-world-sheet,#delivery-share-sheet) .s-btn.ok:disabled{background:color-mix(in srgb,var(--dl-ac) 30%,var(--dl-bg));color:#fff}
:is(#v-delivery,#delivery-address-panel,#delivery-address-editor,#delivery-store-world-sheet,#delivery-share-sheet) .s-btn.cancel{background:var(--dl-card);color:var(--dl-ink)}
#v-delivery .delivery-qty-stepper button{background:var(--dl-ac-soft);color:var(--dl-ac-deep);border:none}
#v-delivery .delivery-qty-stepper button.plus{background:var(--dl-ac);color:#fff}
#v-delivery .delivery-qty-stepper button:disabled{opacity:.4}
#v-delivery .delivery-address-change{background:var(--dl-ac-soft);color:var(--dl-ac-deep);border:none}
#v-delivery .delivery-address-change.is-primary{background:var(--dl-ac);color:#fff}
:is(#delivery-address-panel,#delivery-address-editor,#delivery-store-world-sheet) :is(.delivery-place-card,.delivery-world-tabs button,.delivery-option-row,.delivery-address-option).active{border-color:var(--dl-ac);background:var(--dl-ac-soft);color:var(--dl-ac-deep);box-shadow:inset 0 0 0 1.5px var(--dl-ac)}
:is(#delivery-address-panel,#delivery-address-editor) :is(.delivery-place-card,.delivery-world-tabs button,.delivery-address-option,.delivery-input,.delivery-store-world){background:var(--dl-card);color:var(--dl-ink)}
:is(#delivery-address-panel,#delivery-address-editor) .delivery-map-link{color:var(--dl-ac-deep)}
.delivery-search-field input:focus,.delivery-search-field input:focus-visible{box-shadow:none!important;border:none!important;outline:none!important}
.delivery-search-field:focus-within{box-shadow:0 0 0 2px color-mix(in srgb,var(--dl-ac) 45%,transparent),var(--dl-shadow)}
#v-delivery .delivery-store-hero .delivery-store-header{bottom:32px}
#v-delivery .delivery-dish-sheet-desc,#v-delivery .delivery-sheet-group-title{color:var(--dl-ink2)}

#v-delivery .delivery-receipt .delivery-order-store{width:auto;justify-content:center}

/* focus polish (hand-written, keep LAST): .delivery-search-field already rings itself via :focus-within
   (line ~759) - this just adds the appearance reset for iOS's native type=search chrome. */
.delivery-search-field input{-webkit-appearance:none;appearance:none}
