/* Rebuild39 functional review surface. Native 1280x800 page-owned layout. */
.order-page{--cart-col:30%;width:100%;height:100%;min-width:0;min-height:0;display:grid;grid-template-columns:minmax(0,var(--cart-col)) minmax(0,1fr);gap:12px;overflow:hidden}.order-page[data-ratio="25-75"]{--cart-col:25%}.order-page[data-ratio="30-70"]{--cart-col:30%}.order-page[data-ratio="32-68"]{--cart-col:32%}
.order-cart,.order-products{min-width:0;min-height:0;background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden}.order-cart{display:grid;grid-template-rows:auto minmax(0,1fr) auto}.order-cart__head{min-height:64px;padding:10px 12px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:8px}.order-cart__head h1{margin:3px 0 0;font-size:19px}.test-badge{font-size:10px;font-weight:900;color:#9b4b28}.pending-button{min-height:38px;border:1px solid #ffd7c5;border-radius:10px;background:var(--accent-soft);color:var(--accent);font-weight:900}.order-cart__list{min-height:0;overflow:auto;padding:8px 10px}.cart-empty{height:100%;display:grid;place-content:center;gap:6px;text-align:center;color:var(--muted);padding:16px}.cart-empty strong{color:var(--text);font-size:15px}.cart-empty span{font-size:11px}.cart-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 8px;padding:9px 0;border-bottom:1px solid var(--line)}.cart-line__copy strong,.cart-line__copy span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cart-line__copy strong{font-size:13px}.cart-line__copy span{font-size:10px;color:var(--muted)}.cart-line__price{font-size:14px}.cart-line__actions{grid-column:1/-1;display:grid;grid-template-columns:34px 28px 34px 1fr 1fr;gap:4px;align-items:center}.cart-line__actions button{height:34px;border:1px solid var(--line);border-radius:8px;background:#fff;font-weight:900}.cart-line__actions span{text-align:center;font-weight:900}.cart-line__actions .modify{background:#f7f5f2}.cart-line__actions .delete{color:#9d382c}.order-cart__footer{padding:9px;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1.7fr;gap:7px}.order-cart__footer button{min-height:48px;border-radius:12px;font-weight:900}.secondary{border:1px solid var(--line);background:#fff}.checkout{border:0;background:var(--accent);color:#fff}.checkout:disabled{background:#ddd6d0;color:#8e8580}
.order-products{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto}.product-toolbar{min-height:58px;padding:8px 10px;border-bottom:1px solid var(--line);display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,31%);gap:8px}.category-strip{display:flex;gap:6px;overflow-x:auto}.category-strip button{min-width:max-content;height:40px;padding:0 12px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--muted);font-weight:850}.category-strip button[aria-selected="true"]{background:var(--accent-soft);border-color:#ffd7c5;color:var(--accent)}.search-box{height:40px;display:flex;align-items:center;gap:5px;border:1px solid var(--line);border-radius:11px;padding:0 7px}.search-box span{font-size:11px;font-weight:850;color:var(--muted)}.search-box input{width:100%;min-width:0;border:0;outline:0;font-size:16px;background:transparent}.search-box button{border:0;background:transparent;font-size:10px;color:var(--accent);font-weight:900}.order-test-controls{min-height:40px;padding:5px 10px;border-bottom:1px dashed #e2d7a0;background:#fffbed;display:flex;align-items:center;gap:8px;font-size:10px;font-weight:850}.ratio-switch{display:flex;gap:4px;margin-left:auto}.ratio-switch button,.order-test-controls>button{height:28px;padding:0 8px;border:1px solid #d9c66c;border-radius:8px;background:#fff;font-size:10px;font-weight:900}.ratio-switch button[aria-pressed="true"]{background:#ffe66d}.product-grid{min-height:0;overflow:auto;padding:10px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(112px,auto);gap:9px;align-content:start}.product-card{position:relative;min-width:0;min-height:112px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff;text-align:left;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:5px;color:var(--text)}.product-card__flag{justify-self:start;padding:3px 6px;border-radius:999px;background:#fff4bf;color:#6d5700;font-size:9px;font-weight:900}.product-card strong{font-size:15px}.product-card>span:not(.product-card__flag){font-size:10px;color:var(--muted)}.product-card b{font-size:20px;color:var(--accent)}.product-card--text{background:#faf9f7}.product-card--small{min-height:104px}.product-card.is-soldout{opacity:.55}.product-card.is-soldout::after{content:"售罄";position:absolute;right:9px;bottom:9px;padding:4px 7px;border-radius:8px;background:#2f241e;color:#fff;font-size:10px;font-weight:900}.product-empty{grid-column:1/-1;display:grid;place-items:center;color:var(--muted)}
.quick-drink-strip{min-height:48px;margin:0 10px 8px;padding:5px 7px;border:1px solid var(--line);border-radius:11px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:7px;align-items:center}.quick-drink-strip>strong{font-size:11px}.quick-drink-strip>div{display:flex;gap:5px;overflow-x:auto}.quick-drink-strip button{height:34px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:10px;font-weight:850;white-space:nowrap}.quick-drink-strip button[aria-pressed="true"]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}
.overlay{position:fixed;inset:0;background:rgba(31,25,21,.45);display:grid;place-items:center;z-index:40}.modal-card{width:min(420px,calc(100vw - 40px));max-height:620px;background:#fff;border-radius:18px;box-shadow:0 18px 60px rgba(0,0,0,.22);display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}.modal-card--wide{width:min(620px,calc(100vw - 40px))}.modal-card header,.modal-card footer{padding:12px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.modal-card footer{border-top:1px solid var(--line);border-bottom:0}.modal-card header button,.modal-card footer button{min-height:40px;border:1px solid var(--line);border-radius:10px;background:#fff;font-weight:900}.modal-card footer button{width:100%;background:var(--accent);color:#fff;border:0}.modal-body{min-height:0;overflow:auto;padding:12px}.modal-body fieldset{border:1px solid var(--line);border-radius:12px;margin:0 0 10px;padding:10px}.modal-body legend{font-weight:900}.modal-body fieldset button{min-height:40px;margin:4px;border:1px solid var(--line);border-radius:9px;background:#fff}.modal-body fieldset button[aria-pressed="true"]{background:var(--accent-soft);border-color:var(--accent)}.draft-row,.pending-row{width:100%;padding:12px;margin-bottom:8px;border:1px solid var(--line);border-radius:10px;background:#fff;text-align:left}.pending-row{display:grid;gap:5px}.quick-drawer{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.quick-drawer button{min-height:120px;border:1px solid var(--line);border-radius:12px;background:#fff;display:grid;gap:6px;padding:8px}.quick-drawer button[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft)}.fake-image{display:grid;place-items:center;min-height:64px;border-radius:8px;background:#f2efeb;color:var(--muted);font-size:10px}.checkout-summary,.checkout-actions{display:grid;gap:8px}.checkout-summary b{font-size:20px;margin-top:8px}.checkout-actions{grid-template-columns:repeat(3,1fr);margin-top:16px}.checkout-actions button{min-height:52px;border:1px solid var(--line);border-radius:10px;background:#fff;font-weight:900}