.commerce-panel{max-width:1120px;margin:24px auto;padding:20px;border:1px solid #ecd5df;border-radius:20px;background:#fff}.commerce-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px}.commerce-panel article{padding:16px;border:1px solid #ecd5df;border-radius:16px;min-width:0}.commerce-panel img{width:100%;aspect-ratio:1;object-fit:contain;border-radius:12px}.commerce-panel label{display:flex;flex-direction:column;gap:6px;margin:12px 0}.commerce-panel input,.commerce-panel select,.commerce-panel textarea{max-width:100%;min-width:0;box-sizing:border-box;padding:10px;font:inherit}.commerce-panel button,.commerce-panel a{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:6px;margin:4px;padding:10px 16px}.commerce-panel output{display:block;font-weight:700;margin:14px 0}.commerce-panel small{display:block;line-height:1.6}.commerce-panel [hidden]{display:none!important}.commerce-cart-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.commerce-cart-row input{width:80px}.commerce-panel fieldset{border:0;padding:0;min-width:0}.commerce-panel summary{cursor:pointer;padding:14px 0;font-weight:700}

@media print{body.commerce-print *{visibility:hidden}body.commerce-print .commerce-batches,body.commerce-print .commerce-batches *{visibility:visible}body.commerce-print .commerce-batches{position:absolute;top:0;left:0;width:100%;margin:0;padding:0;border:0}body.commerce-print .commerce-batches button{display:none}body.commerce-print .commerce-batches article{break-inside:avoid}}

.commerce-store-nav{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}.commerce-store-nav a{display:inline-flex;align-items:center;min-height:44px;padding:8px 16px;border:1px solid #ecd5df;border-radius:24px;text-decoration:none;font-weight:700}.commerce-group-schedule [hidden]{display:none!important}

.commerce-panel{overflow-wrap:anywhere}.commerce-panel button,.commerce-panel a{border:1px solid #e7bfd1;border-radius:22px;background:#fff8fb;color:#833453;font:inherit;font-weight:700;text-decoration:none;max-width:100%;box-sizing:border-box;cursor:pointer}.commerce-panel button:disabled{opacity:.55;cursor:default}.commerce-panel input,.commerce-panel select,.commerce-panel textarea{border:1px solid #dcbacb;border-radius:10px;background:#fff}.commerce-panel article+article{margin-top:12px}.commerce-order-status{display:inline-flex;padding:5px 12px;border-radius:18px;background:#fff0dc;color:#784d23;font-weight:700}.commerce-panel p{line-height:1.6}.commerce-panel input[type=checkbox]{width:22px;height:22px}.commerce-panel summary{min-height:44px}
@media(max-width:600px){body:has(.commerce-panel) .merchant-bottom-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:6px 8px max(6px,env(safe-area-inset-bottom))}body:has(.commerce-panel) .merchant-bottom-nav>a,body:has(.commerce-panel) .merchant-bottom-nav>button{min-width:0;white-space:normal;overflow-wrap:normal;font-size:11px;line-height:1.3;padding:6px 3px;text-align:center;min-height:44px;margin:0}}

.commerce-grid{align-items:start}

.commerce-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));gap:.75rem}.commerce-summary-grid>div{padding:1rem;background:#fff5f8;border-radius:16px;display:grid;gap:.4rem}.commerce-summary-grid strong{font-size:1.5rem;color:#9e345f}.commerce-summary-grid span{overflow-wrap:anywhere}#merchant-orders>.commerce-panel{margin:1rem 0;width:100%;box-sizing:border-box}

.commerce-grid>article.commerce-order-expanded{grid-column:1/-1}

@media(max-width:600px){body:has(#commerce-summary) .merchant-workspace{grid-template-columns:minmax(0,1fr)}}
body:has(#commerce-summary) .merchant-workspace>*,.commerce-summary-grid>div{min-width:0}

/* Ordering UX: shared storefront only; checkout rules remain server-authoritative. */
#commerce-products{margin-top:16px}#commerce-products .commerce-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}#commerce-products .commerce-grid>article{display:grid;grid-template-columns:104px minmax(0,1fr);gap:8px 14px;margin:0;padding:16px}#commerce-products .commerce-grid>article img{grid-row:1/6;width:104px;height:104px;object-fit:contain;background:#fff8f2}#commerce-products h3{font-size:18px;margin:0;line-height:1.4}#commerce-products .commerce-grid strong{font-size:20px;color:#a42960}#commerce-products .commerce-grid small{grid-column:2}#commerce-products .commerce-grid button{grid-column:2;justify-self:start;background:#bc2868;color:white;margin:0}#commerce-products .commerce-checkout{margin-top:24px;padding:20px;border-radius:20px;background:#fff8fb;border:1px solid #edd4df;scroll-margin-top:100px}#commerce-products .commerce-checkout input,#commerce-products .commerce-checkout select{min-height:48px;font-size:16px}#commerce-products .commerce-cart-row{padding:12px 0;border-bottom:1px solid #eadbe2}#commerce-products .commerce-cart-row>span{flex:1;min-width:110px}#commerce-products .commerce-basket-bar{position:fixed;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:80;width:calc(100% - 32px);max-width:560px;background:#b92565;color:#fff;border:0;box-shadow:0 8px 28px #63243d40;min-height:56px;margin:0}body:has(.commerce-basket-bar:not([hidden])){padding-bottom:100px}#commerce-products .commerce-basket-bar:focus-visible{outline:3px solid #51273d;outline-offset:3px}@media print{.commerce-basket-bar{display:none!important}}

#commerce-products .commerce-product-card:not(:has(img)){grid-template-columns:minmax(0,1fr)}#commerce-products .commerce-product-card:not(:has(img))>*{grid-column:1}#commerce-orders{scroll-margin-top:100px}

#commerce-products .commerce-basket-bar{justify-content:space-between;padding:12px 18px;gap:14px;font-size:15px;line-height:1.3}#commerce-products .commerce-basket-summary{display:flex;align-items:center;flex-wrap:wrap;gap:6px}#commerce-products .commerce-basket-summary strong{white-space:nowrap;color:inherit;font-size:18px}#commerce-products .commerce-basket-bar>span:last-child{white-space:nowrap}

.commerce-agreement-note{padding:1rem;border:1px solid #ecd29a;border-radius:16px;background:#fff7e6;color:#704920;line-height:1.6}.commerce-checkout input[type="datetime-local"]{min-width:0;width:100%;box-sizing:border-box}

/* cart1 (20261102): signed-out checkout = one big primary button */
.commerce-panel a.commerce-login-cta{display:flex;width:100%;min-height:56px;margin:16px 0 6px;padding:14px 20px;border:0;border-radius:16px;background:#d94f83;color:#fff;font-size:1.12rem;font-weight:800;letter-spacing:.03em;text-align:center;box-shadow:0 8px 20px rgba(217,79,131,.32);cursor:pointer;-webkit-tap-highlight-color:transparent}
.commerce-panel a.commerce-login-cta:hover{background:#c63f72}.commerce-panel a.commerce-login-cta:active{background:#a92f63;transform:translateY(1px)}
.commerce-panel a.commerce-login-cta:focus-visible{outline:3px solid #a92f63;outline-offset:3px}
.commerce-panel a.commerce-login-cta::after{content:"→";margin-left:4px}
.commerce-login-hint{margin:2px 4px 10px;color:#8e7185;font-size:.92rem;line-height:1.5;text-align:center}
.commerce-return-cue{margin:0 0 12px;padding:10px 14px;border-radius:12px;background:#fff0f6;border:1px solid #f4cfe0;color:#833453;font-weight:700;line-height:1.5}
/* cart1: guest checkout (免註冊) */
/* CHECKOUT1CLICK 20261110-checkout1click: remaining primary CTA uses homepage coral */
.commerce-panel button.commerce-primary-cta{display:flex;width:100%;min-height:56px;margin:16px 0 6px;padding:14px 20px;border:0;border-radius:16px;background:#ff744f;color:#fff;font-size:1.12rem;font-weight:800;letter-spacing:.03em;box-shadow:0 8px 20px rgba(255,116,79,.32)}
.commerce-panel button.commerce-primary-cta:hover:not(:disabled){background:#e85a36}.commerce-panel button.commerce-primary-cta:focus-visible{outline:3px solid #d4532e;outline-offset:3px}
.commerce-guest-hint{margin:2px 4px 12px;color:#6b4a5e;font-size:.95rem;line-height:1.5;text-align:center}
.commerce-signin-row{display:flex;flex-direction:column;align-items:center;gap:2px;margin:14px 0 4px;padding-top:12px;border-top:1px dashed #edd4df;text-align:center}
.commerce-panel .commerce-signin-row a{min-height:44px;border:0;background:none;color:#a92f63;text-decoration:underline;text-underline-offset:3px}
.commerce-signin-row small{color:#8e7185}
.commerce-guest-link{margin:16px 0;padding:16px;border:2px solid #f2b8cf;border-radius:16px;background:#fff}
.commerce-guest-link h4{margin:0 0 6px;font-size:1.1rem;color:#833453}.commerce-guest-link p{margin:0 0 8px;line-height:1.6}
.commerce-panel input.commerce-guest-url{width:100%;margin:8px 0;font-size:.85rem;color:#6b4a5e;background:#fff8fb}
.commerce-guest-actions{display:flex;flex-wrap:wrap;gap:4px}.commerce-guest-actions>*{flex:1 1 140px}
.commerce-guest-recent{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:16px 0 0;padding:10px 14px;border-radius:12px;background:#fff0f6;border:1px solid #f4cfe0}
.commerce-panel .commerce-guest-recent a{min-height:36px;padding:6px 12px}
.guest-order-page{max-width:720px;margin:0 auto;padding:0 12px}
.commerce-guest-order h3{margin:0 0 6px}.commerce-guest-order p{margin:6px 0}
.commerce-guest-code{font-size:1.4rem;font-weight:800;color:#833453;background:#fff0f6;border-radius:12px;padding:10px 14px}
.commerce-guest-pay{margin:12px 0;padding:12px 14px;border-radius:12px;background:#fff8fb;border:1px solid #edd4df}.commerce-guest-pay h4{margin:0 0 4px}
.commerce-guest-tools{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px}
.commerce-guest-action summary{color:#833453}
/* GUEST2 (20261103-guest2): 團購免登入 / 用電話查訂單 / order number */
.commerce-order-number{margin:12px 0;padding:12px 14px;border:2px dashed #d94f83;border-radius:14px;background:#fff7fa;text-align:center}
.commerce-order-number>span{display:block;font-size:.9rem;color:#6b5560}
.commerce-order-number-value{display:block;margin:2px 0 6px;font-size:2rem;letter-spacing:.14em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#a92f63}
.commerce-order-number p{margin:4px 0;font-size:.92rem;line-height:1.5}
.commerce-order-number .commerce-lookup-link{font-size:.88rem}
.commerce-order-kind{display:inline-block;margin-right:6px;padding:2px 8px;border-radius:999px;background:#ffe7c2;color:#7a4a00;font-size:.8rem;font-weight:700}
.commerce-group-pay article{margin:10px 0;padding:10px;border:1px solid #eee;border-radius:12px;background:#fff}
.commerce-group-pay .payment-open{display:inline-block;margin-top:6px;padding:8px 12px;border-radius:10px;background:#06c755;color:#fff;text-decoration:none;font-weight:700}
.commerce-lookup{max-width:520px;margin:8px auto;padding:4px 0}
.commerce-lookup form{display:grid;gap:10px;margin:12px 0}
.commerce-lookup label{display:grid;gap:4px;font-weight:600}
.commerce-lookup input{min-height:48px;padding:10px 12px;border:1px solid #cfc3c8;border-radius:12px;font-size:1.05rem}
.commerce-lookup input[name=code]{text-transform:uppercase;letter-spacing:.1em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.commerce-lookup button[type=submit]{min-height:52px;border:0;border-radius:14px;background:#d94f83;color:#fff;font-size:1.08rem;font-weight:800}
.commerce-lookup button[disabled]{opacity:.6}
.commerce-lookup-status:empty{display:none}
.commerce-lookup-status{margin:0;padding:10px 12px;border-radius:12px;background:#f5f1f3}
.commerce-lookup-status.error{background:#fff0f0;color:#9b1c1c}
.commerce-lookup-status.ok{background:#eefbf2;color:#14532d}
.commerce-lookup small,.commerce-lookup p{line-height:1.55}
.commerce-lookup-miss{padding:10px 12px;border-radius:12px;background:#fff7e6}
.commerce-guest-tools .commerce-lookup-link{margin-left:12px}
.guest-join{max-width:560px;margin:0 auto}
.guest-join h1{font-size:1.45rem;margin:4px 0}
.guest-join-lead{color:#6b5560;margin:0 0 10px}
.guest-join-summary{padding:12px;border:1px solid #f0dfe6;border-radius:16px;background:#fff}
.guest-join-photo{display:block;width:100%;max-height:220px;object-fit:cover;border-radius:12px;margin-bottom:8px}
.guest-join-store{margin:0;color:#6b5560;font-size:.92rem}
.guest-join-summary h2{margin:2px 0 8px;font-size:1.25rem}
.guest-join dl{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;margin:8px 0}
.guest-join dt{color:#6b5560}.guest-join dd{margin:0;font-weight:600}
.guest-join-form{display:grid;gap:12px;margin:14px 0}
.guest-join-form label{display:grid;gap:4px;font-weight:600}
.guest-join-form small{font-weight:400;color:#6b5560}
.guest-join-form input,.guest-join-form select{min-height:48px;padding:10px 12px;border:1px solid #cfc3c8;border-radius:12px;font-size:1.05rem;background:#fff}
.guest-join .commerce-primary{min-height:56px;width:100%;border:0;border-radius:16px;background:#d94f83;color:#fff;font-size:1.12rem;font-weight:800}
.guest-join .commerce-primary[disabled]{opacity:.6}
.guest-join .secondary-action{margin-top:8px;width:100%;min-height:44px;border-radius:12px}
.guest-join-review{margin:14px 0;padding:12px;border-radius:16px;background:#fff7fa}
.guest-join-review-line{font-size:1.05rem;font-weight:700}
.guest-join-rules{font-size:.9rem;color:#5b4650;line-height:1.55}
.guest-join-warn{padding:10px 12px;border-radius:12px;background:#fff7e6}
.guest-join-msg{padding:10px 12px;border-radius:12px;background:#f5f1f3}.guest-join-msg.error{background:#fff0f0;color:#9b1c1c}
.guest-join-done h2{text-align:center}
.guest-join .commerce-signin-row{margin-top:12px;text-align:center}
.commerce-guest-join-cue{margin:0 0 14px;padding:12px;border:2px solid #d94f83;border-radius:16px;background:#fff7fa;text-align:center}
.commerce-guest-join-cue a.commerce-guest-join-btn{display:flex;align-items:center;justify-content:center;min-height:52px;border-radius:14px;background:#d94f83;color:#fff;font-weight:800;text-decoration:none}
.commerce-guest-join-cue small{display:block;margin-top:6px;color:#6b5560}
.ll-sheet a.ll-guest{margin-top:10px}

/* STOREROW5 20261109-storerow5: MENUPRO1 storefront rows — neutralize legacy 104px grid (store-only) */
#commerce-products .store-menu.commerce-grid > article.commerce-product-card{
  display:flex !important;
  grid-template-columns:none !important;
  grid-template-rows:none !important;
  gap:4px !important;
  padding:10px 0 10px 12px !important;
  align-items:stretch !important;
  margin:0 !important;
  border-radius:0 !important;
}
#commerce-products .store-menu.commerce-grid > article.commerce-product-card img{
  grid-row:auto !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  background:transparent !important;
  border-radius:inherit !important;
  aspect-ratio:auto !important;
}
#commerce-products .store-menu.commerce-grid > article.commerce-product-card .store-add-btn,
#commerce-products .store-menu.commerce-grid > article.commerce-product-card button.store-add-btn{
  grid-column:auto !important;
  justify-self:auto !important;
  background:var(--store-accent,#ff744f) !important;
  color:#fff !important;
}
@media (max-width:720px){
  #commerce-products .store-menu.commerce-grid > article.commerce-product-card{
    padding:8px 0 8px 10px !important;
    gap:4px !important;
  }
}

/* PAYUI2 20261110-payui2: one title + barcode per payment method */
.commerce-store-pay article,
.commerce-group-pay article{
  margin:12px 0;
  padding:12px 12px 14px;
  border:1px solid #ead9cf;
  border-radius:14px;
  background:#fff;
}
.commerce-store-pay .payment-method-title,
.commerce-group-pay .payment-method-title{
  display:block;
  text-align:center;
  margin:0 0 6px;
  font-size:1.05rem;
  color:#3d342f;
}
.commerce-store-pay .payment-qr-caption,
.commerce-group-pay .payment-qr-caption{
  display:block;
  text-align:center;
  margin:0;
  font-size:.85rem;
  color:#6b5e56;
}
.commerce-store-pay .payment-qr,
.commerce-group-pay .payment-qr{
  display:block;
  max-width:100%;
  width:260px;
  height:auto;
  margin:10px auto;
}
.commerce-store-pay .payment-qr-payload,
.commerce-group-pay .payment-qr-payload{
  display:block;
  word-break:break-all;
  text-align:center;
  font-size:.8rem;
  margin:6px 8px 0;
}
.commerce-store-pay .payment-open,
.commerce-group-pay .payment-open{
  display:block;
  width:fit-content;
  margin:10px auto 0;
  padding:8px 14px;
  border-radius:999px;
  background:#06c755;
  color:#fff;
  text-decoration:none;
  font-weight:700;
}

/* PAYHELP1 20261110-payhelp1: same-phone barcode payment help */
.commerce-store-pay .payment-barcode-help,
.commerce-group-pay .payment-barcode-help{
  margin:8px 0 0;
  padding:10px 12px;
  border-radius:12px;
  background:#fff7f2;
  color:#3d342f;
  font-size:.9rem;
  line-height:1.45;
}
.commerce-store-pay .payment-barcode-help p,
.commerce-group-pay .payment-barcode-help p{
  margin:0 0 6px;
  font-weight:700;
}
.commerce-store-pay .payment-barcode-help ol,
.commerce-group-pay .payment-barcode-help ol{
  margin:0;
  padding-left:1.25em;
}
.commerce-store-pay .payment-barcode-help li,
.commerce-group-pay .payment-barcode-help li{
  margin:0 0 4px;
}
.commerce-store-pay .payment-barcode-help li:last-child,
.commerce-group-pay .payment-barcode-help li:last-child{
  margin-bottom:0;
}
.commerce-store-pay .payment-line-help,
.commerce-group-pay .payment-line-help{
  display:block;
  margin:8px auto 0;
  text-align:center;
  font-size:.88rem;
  color:#3d342f;
}
.commerce-store-pay .payment-qr-save,
.commerce-group-pay .payment-qr-save{
  display:block;
  margin:0 auto 6px;
  padding:6px 12px;
  border:1px solid #ead9cf;
  border-radius:999px;
  background:#fff;
  color:#ff744f;
  font-size:.88rem;
  font-weight:700;
  cursor:pointer;
}
