:root{--brand:#82c6d1;--brand-dark:#286c76;--ink:#17343b;--muted:#6a7d82;--surface:#fff;--bg:#f2f7f8;--line:#dbe7e9;--danger:#c94141;--shadow:0 12px 36px rgba(20,64,72,.09);font-family:'Noto Sans TC',system-ui,sans-serif;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0;background:var(--bg);padding-bottom:104px}.hero{background:linear-gradient(145deg,#dff2f5,#b8e0e7);padding:28px 18px 34px}.hero-inner{max-width:760px;margin:auto;display:flex;align-items:center;gap:18px}.brand-mark{width:82px;height:82px;border:3px solid rgba(40,108,118,.25);border-radius:22px;display:grid;place-items:center;font-weight:800;font-size:20px;color:var(--brand-dark);background:rgba(255,255,255,.55)}.eyebrow{margin:0 0 4px;color:var(--brand-dark);font-weight:700;letter-spacing:.08em}.hero h1{font-size:clamp(28px,7vw,42px);margin:0;line-height:1.15}.hero-copy{margin:8px 0 0;color:#47727a}.page-shell{max-width:760px;margin:-14px auto 0;padding:0 14px 28px;display:grid;gap:16px}.panel{background:var(--surface);border-radius:22px;padding:20px;box-shadow:var(--shadow)}.section-heading{display:flex;gap:12px;align-items:flex-start;margin-bottom:18px}.section-heading h2{font-size:21px;margin:0}.section-heading p{margin:3px 0 0;color:var(--muted);font-size:14px}.step{flex:0 0 34px;height:34px;border-radius:12px;background:var(--brand);display:grid;place-items:center;font-weight:800;color:#fff}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field{display:grid;gap:7px}.field span,.choice-fieldset legend{font-weight:700;font-size:14px}.field input,.field select,.field textarea{width:100%;border:1px solid var(--line);border-radius:13px;background:#fff;padding:13px 14px;font:inherit;color:var(--ink);outline:none}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--brand-dark);box-shadow:0 0 0 3px rgba(130,198,209,.22)}.field.full{margin-top:16px}.choice-fieldset{border:0;padding:0;margin:18px 0 0}.segmented,.choice-cards{display:grid;gap:8px;margin-top:9px}.segmented{grid-template-columns:1fr 1fr}.choice-cards.three{grid-template-columns:repeat(3,1fr)}.segmented input,.choice-cards input{position:absolute;opacity:0;pointer-events:none}.segmented span,.choice-cards span{display:grid;place-items:center;min-height:46px;border:1px solid var(--line);border-radius:13px;font-weight:700;background:#fff}.segmented input:checked+span,.choice-cards input:checked+span{border-color:var(--brand-dark);background:#e0f3f6;color:var(--brand-dark)}.loading-card{padding:26px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:16px}.spinner{display:inline-block;width:18px;height:18px;border:3px solid #d5e9ec;border-top-color:var(--brand-dark);border-radius:50%;animation:spin .8s linear infinite;vertical-align:-4px;margin-right:8px}@keyframes spin{to{transform:rotate(360deg)}}.menu-root{display:grid;gap:12px}.menu-category{border:1px solid var(--line);border-radius:17px;overflow:hidden}.category-button{width:100%;border:0;background:#f8fbfc;padding:16px;display:flex;justify-content:space-between;align-items:center;font:inherit;font-weight:800;color:var(--ink);cursor:pointer}.category-count{font-size:12px;color:var(--brand-dark);background:#dff2f5;padding:5px 9px;border-radius:999px}.category-items{padding:8px 12px 12px;display:grid;gap:10px}.menu-item{border-top:1px solid #edf3f4;padding:13px 2px 4px}.menu-item:first-child{border-top:0}.item-main{display:flex;align-items:center;justify-content:space-between;gap:10px}.item-name{font-weight:700}.item-price{font-weight:800;color:var(--brand-dark);margin-top:3px}.stock-note{font-size:12px;color:var(--danger);margin-top:3px}.qty-control{display:flex;align-items:center;gap:10px}.qty-control button{width:39px;height:39px;border-radius:12px;border:1px solid var(--line);background:#fff;font-size:23px;color:var(--brand-dark);cursor:pointer}.qty-value{min-width:22px;text-align:center;font-weight:800}.custom-options{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px;padding:12px;border-radius:13px;background:#f3f8f9}.custom-options label{font-size:12px;font-weight:700}.custom-options select{width:100%;margin-top:5px;border:1px solid var(--line);border-radius:10px;padding:9px;background:#fff}.payment-box{margin-top:12px;background:#f2f8f9;border-radius:14px;padding:16px}.payment-box img{display:block;width:min(240px,80%);margin:14px auto;border-radius:10px}.payment-box dl{margin:10px 0 0}.payment-box dl div{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:9px 0}.payment-box dt{color:var(--muted)}.payment-box dd{margin:0;font-weight:700}.bottom-bar{position:fixed;left:0;right:0;bottom:0;z-index:20;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-top:1px solid var(--line);padding:12px max(14px,env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));display:flex;align-items:center;justify-content:space-between;gap:14px}.bottom-bar>div{display:grid}.bottom-bar small{color:var(--muted)}.total-price{font-size:25px}.primary-button{border:0;border-radius:14px;background:var(--brand-dark);color:#fff;font:inherit;font-weight:800;padding:14px 22px;cursor:pointer}.primary-button:disabled{opacity:.45;cursor:not-allowed}.toast{position:fixed;left:50%;bottom:110px;transform:translateX(-50%);background:#17343b;color:#fff;padding:12px 16px;border-radius:12px;z-index:40;max-width:calc(100% - 28px);box-shadow:var(--shadow)}.success-dialog{border:0;border-radius:22px;padding:30px;max-width:360px;width:calc(100% - 28px);text-align:center;box-shadow:0 20px 80px rgba(0,0,0,.2)}.success-dialog::backdrop{background:rgba(16,42,48,.55)}.success-icon{margin:auto;width:64px;height:64px;border-radius:50%;background:#dff2f5;color:var(--brand-dark);display:grid;place-items:center;font-size:34px;font-weight:800}.success-dialog h2{margin-bottom:8px}@media(max-width:620px){.hero{padding-top:22px}.brand-mark{width:68px;height:68px}.panel{padding:17px}.form-grid{grid-template-columns:1fr}.choice-cards.three{grid-template-columns:1fr 1fr 1fr}.custom-options{grid-template-columns:1fr}.bottom-bar .primary-button{min-width:145px}.page-shell{padding-left:10px;padding-right:10px}}@media(max-width:410px){.choice-cards.three{grid-template-columns:1fr}.hero-inner{align-items:flex-start}.brand-mark{flex-basis:68px}.bottom-bar{gap:8px}.bottom-bar .primary-button{min-width:130px;padding:13px 15px}}

/* 配菜許願池與好運輪盤 */
.wish-panel{background:linear-gradient(180deg,#fff,#fbf7ef)}
.wish-note{margin:10px 0 0;color:#8a6b35;font-size:13px;line-height:1.65}
.reward-panel{background:linear-gradient(135deg,#17343b,#286c76);color:#fff}
.reward-copy{display:flex;gap:14px;align-items:center}.reward-copy h2{margin:0;font-size:22px}.reward-copy p{margin:4px 0 0;color:#d8eef1;font-size:14px}.reward-emoji{font-size:42px}.reward-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.reward-tags span{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);padding:7px 12px;border-radius:999px;font-weight:700}.reward-rule{margin:12px 0 0;color:#cde3e7;font-size:12px}.coupon-field small{color:var(--muted);font-size:12px}.reward-progress{margin:16px 0;padding:14px;border-radius:15px;background:#f3f8f9}.reward-progress p{margin:5px 0 12px;color:var(--muted)}.spin-button{border:0;border-radius:14px;background:linear-gradient(135deg,#ffbf4f,#ed7f2e);color:#fff;font:inherit;font-weight:900;padding:13px 20px;cursor:pointer;box-shadow:0 9px 22px rgba(237,127,46,.28);transition:transform .18s ease,box-shadow .18s ease}.spin-button:not(:disabled):active{transform:translateY(2px);box-shadow:0 4px 12px rgba(237,127,46,.24)}.spin-button:disabled{opacity:.62}.wheel-dialog{border:1px solid rgba(255,255,255,.8);border-radius:28px;width:min(440px,calc(100% - 20px));padding:26px 22px;text-align:center;background:linear-gradient(180deg,#fff 0%,#f6fbfc 60%,#fff8e9 100%);box-shadow:0 28px 100px rgba(0,0,0,.3);overflow:visible}.wheel-dialog::backdrop{background:rgba(11,37,43,.7);backdrop-filter:blur(3px)}.wheel-dialog h2{margin:0 0 5px;font-size:25px;color:var(--brand-dark)}.wheel-dialog>p{margin:0 0 18px;color:var(--muted);font-size:13px}.dialog-close{position:absolute;z-index:8;right:13px;top:10px;border:0;background:rgba(255,255,255,.75);width:36px;height:36px;border-radius:50%;font-size:26px;line-height:1;color:var(--muted);cursor:pointer}.wheel-stage{position:relative;width:300px;height:300px;margin:15px auto 24px;filter:drop-shadow(0 18px 20px rgba(23,52,59,.22))}.wheel-stage::before{content:'';position:absolute;inset:-10px;border-radius:50%;background:conic-gradient(from 0deg,#ffd970,#5ab4c0,#ff9a6c,#8bd3dc,#ffd970);box-shadow:0 0 0 4px #fff,0 0 0 7px #286c76}.wheel-pointer{position:absolute;z-index:6;left:50%;top:-28px;transform:translateX(-50%);display:grid;place-items:center;width:50px;height:50px;border-radius:50%;background:linear-gradient(145deg,#ff6d62,#c83235);border:5px solid #fff;font-size:28px;line-height:1;color:#fff;text-shadow:0 2px 4px rgba(0,0,0,.2);box-shadow:0 7px 16px rgba(151,35,35,.35)}.prize-wheel{width:100%;height:100%;border-radius:50%;border:9px solid #fff;box-shadow:inset 0 0 0 3px rgba(40,108,118,.28);position:relative;overflow:hidden;background:conic-gradient(#ffd260 0 36deg,#65c2cf 36deg 72deg,#e5f1f2 72deg 108deg,#d6e8ea 108deg 144deg,#edf5f6 144deg 180deg,#d6e8ea 180deg 216deg,#edf5f6 216deg 252deg,#d6e8ea 252deg 288deg,#edf5f6 288deg 324deg,#d6e8ea 324deg 360deg);will-change:transform}.prize-wheel::before{content:'';position:absolute;inset:0;border-radius:50%;background:linear-gradient(120deg,rgba(255,255,255,.34),transparent 33%,transparent 65%,rgba(255,255,255,.18));pointer-events:none}.prize-wheel::after{content:'小野人';position:absolute;z-index:3;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:82px;height:82px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#fff,#e9f6f8);border:5px solid #fff;color:var(--brand-dark);font-weight:900;box-shadow:0 5px 18px rgba(0,0,0,.2),inset 0 0 0 2px #9bd3da}.wheel-label{--angle:0deg;position:absolute;z-index:2;left:50%;top:50%;width:48px;font-size:10px;line-height:1;font-weight:800;color:#416268;text-align:center;transform:translate(-50%,-50%) rotate(var(--angle)) translateY(-111px) rotate(calc(var(--angle) * -1));text-shadow:0 1px 0 rgba(255,255,255,.8)}.wheel-label.is-prize{font-size:12px;font-weight:900;color:#17343b}.wheel-stage.is-spinning .wheel-pointer{animation:pointerTick .13s ease-in-out infinite alternate}.wheel-stage.has-landed .wheel-pointer{animation:pointerLand .45s ease-out}.spin-result{margin-top:18px;padding:17px;border:1px solid #f2d590;border-radius:18px;background:linear-gradient(145deg,#fffaf0,#fff1ce);box-shadow:0 10px 28px rgba(197,107,18,.12);animation:resultPop .38s cubic-bezier(.2,.9,.25,1.25)}.spin-result p{margin:0;color:var(--muted)}.spin-result strong{display:block;font-size:27px;color:#c56b12;margin:5px 0}.coupon-code{font-size:22px;font-weight:900;letter-spacing:.08em;background:#fff;border:2px dashed #f0a13e;border-radius:12px;padding:10px;margin:10px 0}.spin-result small{color:var(--muted);line-height:1.55}.wheel-no-win .spin-result{background:linear-gradient(145deg,#f8fbfc,#eaf3f4);border-color:#cbdfe2}.wheel-no-win .spin-result strong{color:#55777d}.wheel-winner .wheel-stage{animation:winnerGlow 1.15s ease-in-out 2}@keyframes pointerTick{to{transform:translateX(-50%) rotate(9deg) scale(.96)}}@keyframes pointerLand{0%{transform:translateX(-50%) scale(1)}45%{transform:translateX(-50%) scale(1.18)}100%{transform:translateX(-50%) scale(1)}}@keyframes resultPop{from{opacity:0;transform:translateY(9px) scale(.94)}to{opacity:1;transform:none}}@keyframes winnerGlow{50%{filter:drop-shadow(0 0 28px rgba(255,185,60,.95))}}@media(max-width:390px){.wheel-dialog{padding-left:14px;padding-right:14px}.wheel-stage{width:264px;height:264px}.wheel-label{transform:translate(-50%,-50%) rotate(var(--angle)) translateY(-96px) rotate(calc(var(--angle) * -1));font-size:9px}.prize-wheel::after{width:72px;height:72px}.wheel-pointer{top:-26px;width:46px;height:46px}}


/* V1.3 餐點分類快速下拉與摺疊選單 */
.category-jump{display:grid;gap:7px;margin:0 0 14px;padding:14px;border:1px solid var(--line);border-radius:15px;background:#f5fafb}.category-jump>span{font-weight:800}.category-jump select{width:100%;border:1px solid var(--brand);border-radius:13px;background:#fff;padding:13px 42px 13px 14px;font:inherit;font-weight:700;color:var(--ink);outline:none}.category-jump select:focus{border-color:var(--brand-dark);box-shadow:0 0 0 3px rgba(130,198,209,.22)}.category-jump small{color:var(--muted);line-height:1.55}.menu-category{scroll-margin-top:14px}.category-meta{display:flex;align-items:center;gap:9px}.category-chevron{font-size:22px;line-height:1;transition:transform .2s ease;color:var(--brand-dark)}.category-button[aria-expanded="true"] .category-chevron{transform:rotate(180deg)}.category-button[aria-expanded="true"]{background:#e8f5f7;color:var(--brand-dark)}.category-items[hidden]{display:none!important}


/* V1.5 記住上次配送資料 */
.delivery-memory{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:15px;padding:13px 14px;border:1px solid var(--line);border-radius:14px;background:#f5fafb}.remember-choice{display:flex;align-items:flex-start;gap:10px;cursor:pointer}.remember-choice input{width:20px;height:20px;margin:2px 0 0;accent-color:var(--brand-dark);flex:0 0 auto}.remember-choice span{display:grid;gap:3px}.remember-choice strong{font-size:14px}.remember-choice small{color:var(--muted);font-size:12px;line-height:1.5}.text-button{border:0;background:transparent;color:var(--brand-dark);font:inherit;font-size:13px;font-weight:800;padding:8px;white-space:nowrap;cursor:pointer}@media(max-width:520px){.delivery-memory{align-items:flex-start}.text-button{padding-top:2px}}


/* V1.6 送單防重複與明確提示 */
.submit-overlay{position:fixed;inset:0;z-index:100;background:rgba(16,42,48,.68);display:grid;place-items:center;padding:20px;backdrop-filter:blur(4px)}
.submit-overlay[hidden]{display:none!important}.submit-overlay-card{width:min(360px,100%);background:#fff;border-radius:24px;padding:30px 24px;text-align:center;box-shadow:0 24px 80px rgba(0,0,0,.28)}
.submit-overlay-card h2{margin:16px 0 7px;font-size:24px}.submit-overlay-card p{margin:0;color:var(--ink);font-weight:800;line-height:1.6}.submit-overlay-card small{display:block;margin-top:10px;color:var(--muted)}
.submit-loader{width:64px;height:64px;margin:auto;border:7px solid #dceff2;border-top-color:var(--brand-dark);border-radius:50%;animation:spin .85s linear infinite}
body.is-submitting{overflow:hidden}.success-dialog[open]{animation:successPop .24s ease-out}@keyframes successPop{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:scale(1)}}

.order-fail-dialog .fail-icon{background:#fde6e3;color:#b63838}.order-fail-dialog .primary-button{background:#a93333}


/* v35 */
.menu-item.sold-out{opacity:.58;background:#f3f5f5}.menu-item.sold-out .qty-control button{cursor:not-allowed;background:#d9e0e2;color:#88989b}.sold-out-badge{display:inline-block;margin-left:7px;padding:3px 8px;border-radius:999px;background:#b6453c;color:#fff;font-size:12px;font-weight:800}.edit-banner{position:sticky;top:8px;z-index:30;margin:12px 0;padding:14px 16px;border-radius:16px;background:#fff0c9;border:2px solid #e0a92f;font-weight:800;box-shadow:0 6px 20px #0002}

.delivery-date-field{grid-column:1/-1}
.delivery-date-field input{font-size:1.05rem;font-weight:700}
.delivery-date-field small{display:block;margin-top:.4rem;color:#b45309;font-weight:700}
.success-date{padding:.65rem .8rem;border-radius:12px;background:#fff7ed;color:#9a3412}


/* v37.1 LINE Pay 後三碼核對 */
.payment-box[hidden]{display:none!important}.linepay-box{display:grid;gap:14px}
.linepay-warning{background:#fff2dc;border:2px solid #efb24b;border-radius:18px;padding:15px 16px;color:#5f4218;line-height:1.65}
.linepay-warning b{display:block;font-size:18px;margin-bottom:5px}
.linepay-warning ol{margin:6px 0 6px 22px;padding:0}
.linepay-warning p{margin:6px 0 0}
.linepay-warning strong{font-size:20px;color:#b25a00}
.linepay-last3-field{margin-top:2px}
.linepay-last3-field span{display:flex;align-items:center;gap:8px}
.linepay-last3-field em{font-style:normal;background:#b83c31;color:#fff;border-radius:999px;padding:3px 8px;font-size:12px}
.linepay-last3-field input{font-size:24px;font-weight:900;letter-spacing:.28em;text-align:center}
.linepay-confirm-check{display:flex;align-items:flex-start;gap:10px;background:#edf6f7;border-radius:14px;padding:13px 14px;font-weight:800;line-height:1.5}
.linepay-confirm-check input{width:22px;height:22px;flex:0 0 auto;margin-top:1px}
.success-linepay-notice{background:#fff2dc;border:2px solid #efb24b;border-radius:16px;padding:13px 14px;margin:12px 0;color:#5f4218}
.success-linepay-notice p{margin:5px 0 0}
.success-linepay-notice b{font-size:22px;color:#b25a00}

/* V40.6 下單完成滿版確認頁 */
.order-success-view{min-height:100dvh;padding:28px 14px calc(34px + env(safe-area-inset-bottom));background:linear-gradient(180deg,#dff2f5 0,#f2f7f8 260px)}
.order-success-view[hidden]{display:none!important}
.order-success-shell{width:min(680px,100%);margin:0 auto;text-align:center}
.order-success-mode{padding-bottom:0;overflow:auto}
.order-success-mode>.site-marquee,.order-success-mode>.hero,.order-success-mode>.page-shell,.order-success-mode>.bottom-bar{display:none!important}
.order-success-view .success-icon{width:76px;height:76px;font-size:40px;background:#fff;color:#1f7a54;box-shadow:0 12px 32px rgba(34,105,84,.16)}
.success-eyebrow{margin:14px 0 3px;color:#286c76;font-weight:900;letter-spacing:.12em}
.order-success-view h1{margin:0;font-size:clamp(30px,8vw,42px);color:#17343b}
.success-lead{margin:7px 0 20px;color:#526f76;font-weight:700}
.success-order-number{display:grid;gap:5px;margin:0 auto 14px;padding:18px;border:2px solid #83c7d2;border-radius:20px;background:#fff;box-shadow:0 12px 32px rgba(35,91,101,.09)}
.success-order-number span{color:#6a7d82;font-size:13px;font-weight:800}
.success-order-number strong{font-size:clamp(25px,7vw,34px);color:#1f626d;letter-spacing:.04em;word-break:break-all}
.success-order-number small{color:#9a6419;font-weight:700}
.success-payment-card,.success-detail-card{margin-top:14px;border:1px solid #d6e5e8;border-radius:20px;background:#fff;padding:18px;text-align:left;box-shadow:0 10px 28px rgba(31,76,84,.07)}
.success-payment-card{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.success-payment-card>div{display:grid;gap:4px;padding:12px;border-radius:14px;background:#f0f8f9}
.success-payment-card span{font-size:12px;color:#6a7d82;font-weight:800}
.success-payment-card strong{font-size:16px;color:#175d68}
.success-payment-card p{grid-column:1/-1;margin:0;padding:11px 12px;border-radius:12px;background:#fff7e8;color:#795615;font-size:13px;line-height:1.65;font-weight:700}
.success-detail-card h2{margin:0 0 12px;font-size:19px}
.success-items{list-style:none;margin:0;padding:0;border-top:1px solid #e3ecee}
.success-items li{display:flex;justify-content:space-between;gap:14px;padding:13px 0;border-bottom:1px solid #e3ecee}
.success-items li>div{display:grid;gap:3px;text-align:left}
.success-items li>div:last-child{text-align:right;white-space:nowrap}
.success-items small,.success-items span{color:#6a7d82;font-size:13px}
.success-empty-item{color:#6a7d82;text-align:center!important;display:block!important}
.success-total{display:flex;align-items:center;justify-content:space-between;margin-top:15px}
.success-total span{font-weight:800}.success-total strong{font-size:27px;color:#175d68}
.success-delivery-card dl{margin:0}
.success-delivery-card dl div{display:grid;grid-template-columns:92px 1fr;gap:12px;padding:10px 0;border-top:1px solid #e5edef}
.success-delivery-card dl div:first-child{border-top:0}
.success-delivery-card dt{color:#6a7d82;font-size:13px;font-weight:700}
.success-delivery-card dd{margin:0;text-align:right;font-weight:800;word-break:break-word}
.order-success-view .reward-progress{text-align:left;background:#fff;border:1px solid #d6e5e8;box-shadow:0 10px 28px rgba(31,76,84,.07)}
.success-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}
.success-actions button{min-height:52px;width:100%}
.success-secondary-button{border:1px solid #286c76;border-radius:14px;background:#fff;color:#286c76;font:inherit;font-weight:800;padding:13px 16px;cursor:pointer}
@media(max-width:480px){.order-success-view{padding-top:22px}.success-payment-card{grid-template-columns:1fr}.success-payment-card p{grid-column:1}.success-actions{grid-template-columns:1fr}.success-delivery-card dl div{grid-template-columns:82px 1fr}}


/* v37.2 營業狀態與公告 */
.site-marquee{
  position:sticky;top:0;z-index:80;overflow:hidden;
  background:#b94b3e;color:#fff;border-bottom:1px solid rgba(255,255,255,.28);
  min-height:42px;display:flex;align-items:center
}
.site-marquee[hidden]{display:none!important}
.marquee-track{width:100%;overflow:hidden;white-space:nowrap}
.marquee-track span{
  display:inline-block;padding-left:100%;font-weight:900;font-size:16px;
  animation:savage-marquee 16s linear infinite
}
@keyframes savage-marquee{from{transform:translateX(0)}to{transform:translateX(-100%)}}
.business-status-banner{
  margin:0 0 16px;padding:16px 18px;border-radius:18px;
  background:#fff1d8;border:2px solid #efb34d;color:#674717;
  box-shadow:0 10px 24px rgba(80,58,20,.08)
}
.business-status-banner[hidden]{display:none!important}
.business-status-banner.closed{background:#ffebe8;border-color:#d66a5e;color:#762d25}
.business-status-banner strong{display:block;font-size:21px;margin-bottom:5px}
.business-status-banner p{margin:0;line-height:1.65;font-weight:700}
.announcement-dialog{
  width:min(92vw,480px);border:0;border-radius:24px;padding:25px;
  color:#15363d;box-shadow:0 24px 70px rgba(11,39,44,.28)
}
.announcement-dialog::backdrop{background:rgba(14,37,42,.58);backdrop-filter:blur(3px)}
.announcement-icon{font-size:42px;text-align:center}
.announcement-dialog h2{text-align:center;margin:7px 0 10px;font-size:27px}
.announcement-dialog p{white-space:pre-wrap;line-height:1.75;font-size:17px;margin:0 0 18px}
.primary-button.ordering-closed{background:#8b9698!important;cursor:not-allowed}
@media(max-width:640px){
  .marquee-track span{font-size:15px}
  .business-status-banner{margin-left:0;margin-right:0}
}


/* v37.4 同品項多份餐盒可分別設定飯量 */
.portion-options{display:block!important;margin-top:12px;padding:13px;background:#f3f8f9;border:1px solid #d8e7e9;border-radius:16px}
.portion-options[hidden]{display:none!important}
.portion-options-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.portion-options-head strong{display:block;font-size:16px}
.portion-options-head small{display:block;margin-top:2px;color:#6c8186;line-height:1.4}
.apply-all-rice{border:1px solid #85bcc5;background:#fff;color:#27616b;border-radius:11px;padding:8px 10px;font-weight:850;white-space:nowrap}
.portion-list{display:grid;gap:9px}
.portion-row{display:grid;grid-template-columns:auto 1fr 1fr;gap:8px;align-items:end;background:#fff;border:1px solid #dce9eb;border-radius:13px;padding:10px}
.portion-number{font-weight:950;color:#2b6973;padding:0 5px 10px 1px;white-space:nowrap}
.portion-row label{display:grid;gap:4px}
.portion-row label span{font-size:12px;font-weight:850;color:#657b80}
.portion-row select{width:100%;min-height:42px;border:1px solid #ccdfe2;border-radius:10px;background:#fff;padding:8px;font:inherit;color:#17363d}
@media(max-width:640px){
  .portion-options-head{align-items:flex-start;flex-direction:column}
  .apply-all-rice{width:100%;min-height:42px}
  .portion-row{grid-template-columns:1fr 1fr}
  .portion-number{grid-column:1/-1;padding-bottom:0}
}


/* v37.5 LINE 身分驗證 */
.line-auth-panel{display:flex;align-items:center;gap:12px;margin:0 0 16px;padding:15px 18px;border:1px solid #d7e7e9;border-radius:18px;background:#fff;box-shadow:0 8px 22px rgba(23,54,61,.06)}
.line-auth-copy{display:grid;gap:3px;flex:1}.line-auth-copy strong{font-size:17px}.line-auth-copy span{font-size:13px;color:#647b80;line-height:1.5}
.line-auth-panel.verified{border-color:#78d6a1;background:#f2fff7}.line-auth-panel.verified .line-auth-copy span{color:#197443;font-weight:800}
.line-login-button{border:0;border-radius:12px;background:#06c755;color:#fff;padding:11px 16px;font:inherit;font-weight:900;cursor:pointer;white-space:nowrap}
@media(max-width:640px){.line-auth-panel{align-items:stretch;flex-direction:column}.line-login-button{width:100%;min-height:46px}}


/* v37.7 百元外送餐盒／餐盒加購優惠防呆 */
.addon-rule-note{margin:10px 12px 4px;padding:11px 13px;border-radius:12px;background:#fff4d8;border:1px solid #efc56b;color:#755414;font-weight:800;line-height:1.5}
.menu-category.addon-disabled .category-button{opacity:.82}
.menu-category.addon-disabled .menu-item{opacity:.66}
.menu-category.addon-disabled [data-action="plus"]{cursor:not-allowed;opacity:.45}
.menu-category.addon-disabled .addon-rule-note{background:#fff0ed;border-color:#efb5aa;color:#8a352a}


/* V38 歷史訂單查詢 */
.history-entry-card{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 20px;padding:18px 20px;border:1px solid #cfe4e7;border-radius:20px;background:linear-gradient(135deg,#f7fcfc,#eaf7f8);box-shadow:0 8px 24px rgba(31,79,88,.06)}
.history-entry-card strong{display:block;font-size:18px;color:#153f47}.history-entry-card p{margin:5px 0 0;color:#60777c;font-size:14px}.history-entry-button,.history-reorder-button{border:0;border-radius:14px;background:#176d79;color:#fff;font-weight:800;padding:12px 16px;white-space:nowrap;cursor:pointer}
.history-dialog{width:min(720px,calc(100vw - 24px));max-height:88vh;border:0;border-radius:24px;padding:22px;box-shadow:0 24px 70px rgba(0,0,0,.25);color:#173b42}.history-dialog::backdrop{background:rgba(9,32,37,.48)}.history-dialog-head{display:flex;align-items:center;gap:12px;padding-right:36px}.history-dialog-head h2{margin:0;font-size:24px}.history-dialog-head p{margin:3px 0 0;color:#71858a}.history-icon{font-size:32px}.history-login-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.history-lookup-button{width:100%;margin-top:12px}.history-help{font-size:12px;color:#7d8f93;line-height:1.6;margin:10px 2px}.history-loading{padding:20px;text-align:center;color:#60777c}.history-results{margin-top:16px;max-height:52vh;overflow:auto;padding-right:3px}.history-summary{font-size:13px;color:#60777c;margin-bottom:10px}.history-order-card{border:1px solid #dbe8ea;border-radius:18px;padding:15px;margin:0 0 12px;background:#fff}.history-order-top{display:flex;justify-content:space-between;gap:12px}.history-order-top strong{font-size:17px}.history-order-top small{display:block;margin-top:3px;color:#71858a}.history-status{align-self:flex-start;background:#e9f6f7;color:#176d79;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:700}.history-counter{margin:10px 0;color:#38565d;font-size:13px}.history-order-card ul{list-style:none;margin:0;padding:9px 0;border-top:1px dashed #e0eaec;border-bottom:1px dashed #e0eaec}.history-order-card li{display:flex;justify-content:space-between;gap:12px;padding:5px 0;font-size:14px}.history-order-card li small{color:#71858a}.history-order-bottom{display:flex;justify-content:space-between;align-items:end;gap:14px;margin-top:12px}.history-order-bottom>div{display:flex;flex-direction:column;gap:3px}.history-order-bottom small{color:#71858a}.history-order-bottom strong{font-size:19px}.history-error{padding:14px;border-radius:14px;background:#fff0ee;color:#a43c30}.history-empty{padding:22px;text-align:center;background:#f4f8f9;border-radius:14px;color:#71858a}
@media(max-width:640px){.history-entry-card{align-items:flex-start;flex-direction:column}.history-entry-button{width:100%}.history-login-grid{grid-template-columns:1fr}.history-dialog{padding:18px}.history-order-top{flex-direction:column}.history-status{align-self:flex-start}.history-order-card li{flex-direction:column;gap:1px}.history-order-bottom{align-items:center}.history-reorder-button{padding:11px 13px}}

/* V38.1 訂單取消 */
.history-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.history-cancel-button{border:1px solid #c84b4b;background:#fff;color:#b43838;border-radius:10px;padding:9px 12px;font-weight:700;cursor:pointer}.history-cancel-note{display:block;max-width:190px;color:#777;font-size:12px;line-height:1.4}
.cancel-order-btn{border:1px solid #c84b4b;background:#fff;color:#b43838;border-radius:10px;padding:9px 12px;font-weight:800;cursor:pointer}.order-card.cancelled{opacity:.7}.order-card.cancelled .counter{text-decoration:line-through}

/* V40 PWA */
.pwa-install-card{border:1px solid #b8dce2;background:linear-gradient(135deg,#f6fcfd,#eef8fa)}
.pwa-install-card[hidden]{display:none!important}
@media(display-mode:standalone){#pwaInstallCard{display:none!important}}

/* =========================================================
   V40.5 POS 操作區修正版
   一般模式＋專注模式
========================================================= */

.actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:14px;
  position:static;
  background:transparent;
  padding:0;
}

.actions select{
  grid-column:1 / -1;
  width:100%;
  min-height:48px;
  border:1px solid #cbd8db;
  border-radius:12px;
  background:#fff;
  padding:8px 12px;
  font-size:16px;
}

.actions button{
  min-height:54px;
  border-radius:13px;
  font-size:17px;
}

.key-btn{
  width:100%;
  border:0;
  background:var(--brand);
  color:#fff;
  font-weight:950;
  box-shadow:none;
}

.key-btn.cancel{
  background:#78898d;
}

.cancel-order-btn{
  width:100%;
  min-height:54px;
  border:1px solid #d36b6b;
  background:#fff;
  color:#b43838;
  border-radius:13px;
  padding:8px 10px;
  font-size:16px;
  font-weight:850;
}


/* ===== 專注模式 ===== */

body.focus-mode .order-card{
  min-height:auto;
  display:block;
  padding-bottom:94px;
}

body.focus-mode .order-card .actions{
  position:sticky;
  bottom:calc(8px + env(safe-area-inset-bottom));
  z-index:20;

  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;

  margin-top:18px;
  padding:9px;

  background:rgba(255,255,255,.96);
  backdrop-filter:blur(10px);

  border:1px solid #dce7e9;
  border-radius:17px;
  box-shadow:0 8px 28px rgba(23,52,59,.16);
}

body.focus-mode .actions select{
  grid-column:1 / -1;
  min-height:46px;
  font-size:15px;
}

body.focus-mode .key-btn{
  min-height:64px;
  font-size:20px;
}

body.focus-mode .cancel-order-btn{
  width:auto;
  min-width:92px;
  min-height:64px;
  padding:8px 13px;
  font-size:15px;
}


/* ===== 手機 ===== */

@media(max-width:640px){

  .actions{
    grid-template-columns:1fr 1fr;
  }

  .actions select{
    grid-column:1 / -1;
    min-height:48px;
    font-size:16px;
  }

  .actions button{
    width:100%;
    min-height:54px;
    font-size:17px;
  }

  body.focus-mode .actions{
    grid-template-columns:1fr auto;
  }

  body.focus-mode .actions select{
    grid-column:1 / -1;
  }

  body.focus-mode .key-btn{
    min-height:64px;
    font-size:21px;
  }

  body.focus-mode .cancel-order-btn{
    width:auto;
    min-width:88px;
    min-height:64px;
    font-size:14px;
  }
}
