/* V139 quick-purchase dialog and feedback. Scoped to avoid changing merchant/admin buttons. */
.m139-quickcart,.m139-cart-toast{--m139-accent:var(--m119-primary,var(--lm-brand-primary,#16894a));--m139-accent-ink:var(--m139-action-ink,var(--m119-primary-ink,#fff));--m139-text-accent:var(--m119-text-accent,#146739);--m139-ink:#20372b;--m139-muted:#63736a;--m139-line:#dde6df;font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei",system-ui,sans-serif;font-size:14px;line-height:1.6;color:var(--m139-ink);text-align:left;overflow-wrap:anywhere;-webkit-text-size-adjust:100%}
.m139-quickcart *,.m139-cart-toast *{box-sizing:border-box}.m139-quickcart[hidden],.m139-cart-toast[hidden],.m139-quickcart [hidden]{display:none!important}
.m139-quickcart{position:fixed;inset:0;z-index:190000;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(18,32,24,.55);backdrop-filter:blur(3px);isolation:isolate;overscroll-behavior:contain}
.m139-quickcart .m139-qc-dialog{width:min(100%,590px);max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);display:flex;flex-direction:column;min-height:0;background:#fff;border:1px solid #dce5dd;border-radius:22px;box-shadow:0 24px 100px #07160d45;overflow:hidden;animation:m139-dialog-in .18s ease-out}
.m139-quickcart h2,.m139-quickcart h3,.m139-quickcart p,.m139-quickcart fieldset{margin:0}.m139-quickcart button,.m139-quickcart input,.m139-cart-toast button{font:inherit;touch-action:manipulation;letter-spacing:normal;box-shadow:none;transform:none}.m139-quickcart button{cursor:pointer;white-space:normal}.m139-quickcart button:disabled{cursor:not-allowed;opacity:1}.m139-quickcart button:focus-visible,.m139-quickcart a:focus-visible,.m139-quickcart input:focus-visible,.m139-cart-toast a:focus-visible,.m139-cart-toast button:focus-visible{outline:3px solid #b78b22!important;outline-offset:3px}.m139-quickcart a{color:var(--m139-text-accent);text-decoration:none}.m139-quickcart a:hover{text-decoration:underline}
.m139-qc-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:21px 24px 18px;border-bottom:1px solid var(--m139-line);flex-shrink:0}.m139-qc-heading{min-width:0}.m139-qc-eyebrow{display:block;color:var(--m139-text-accent);font-size:11px;font-weight:700;letter-spacing:.12em;margin-bottom:3px}.m139-quickcart .m139-qc-head h2{font-size:21px;line-height:1.45;font-weight:700;color:var(--m139-ink);outline:none}.m139-quickcart .m139-qc-close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;margin:0;padding:0;border:1px solid #e4e9e5;border-radius:50%;background:#f6f8f6;color:#4c6053;-webkit-text-fill-color:#4c6053;font-family:system-ui,sans-serif;font-size:28px;line-height:1}.m139-quickcart .m139-qc-close:hover{background:#edf2ed}
.m139-qc-body{padding:22px 24px 18px;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.m139-qc-product{display:flex;align-items:center;gap:16px;padding-bottom:21px;border-bottom:1px solid var(--m139-line);margin-bottom:22px}.m139-quickcart .m139-qc-image{display:block;width:88px;height:88px;flex:0 0 88px;object-fit:contain;background:#f7f7f2;border:1px solid #edf0e8;border-radius:12px}.m139-qc-product-copy{min-width:0;flex:1}.m139-qc-store{font-size:11px;color:var(--m139-muted);display:block;margin-bottom:4px}.m139-quickcart .m139-qc-product-copy h3{font-size:16px;line-height:1.55;font-weight:650;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.m139-quickcart .m139-qc-detail{display:inline-flex;align-items:center;min-height:44px;padding:4px 0;font-size:12px;font-weight:500}
.m139-quickcart .m139-qc-group,.m139-quickcart .m139-qc-addons{border:0;padding:0;min-width:0;margin:0 0 19px}.m139-quickcart .m139-qc-group legend,.m139-quickcart .m139-qc-addons legend{display:flex;align-items:center;flex-wrap:wrap;gap:7px 9px;padding:0;margin:0 0 11px;width:100%;font-size:14px;font-weight:700;line-height:1.6;color:var(--m139-ink)}.m139-qc-required{font-size:10px;line-height:1.5;border-radius:5px;padding:2px 6px;color:#8a6420;background:#fbf4e5;font-weight:600}.m139-qc-picked{margin-left:auto;font-size:11px;font-weight:400;color:var(--m139-muted);max-width:64%;text-align:right}.m139-qc-values{display:flex;gap:9px;flex-wrap:wrap}.m139-quickcart .m139-qc-choice{position:relative;display:flex;align-items:center;justify-content:flex-start;gap:7px;min-height:44px;max-width:100%;padding:10px 13px;border:1px solid #d9e3db;border-radius:9px;background:#fff;background-image:none;color:#3f5547;-webkit-text-fill-color:#3f5547;font-size:13px;font-weight:500;line-height:1.55;margin:0;box-shadow:none;text-align:left;transition:border-color .12s,background .12s}.m139-choice-label{min-width:0}.m139-choice-check{display:none;flex:0 0 16px;width:16px;height:16px;align-items:center;justify-content:center;border-radius:50%;background:var(--m139-accent);color:var(--m139-accent-ink);-webkit-text-fill-color:var(--m139-accent-ink);font-size:11px;font-weight:800;line-height:1}.m139-quickcart .m139-qc-choice[aria-pressed=true]{border-color:var(--m139-accent);background:color-mix(in srgb,var(--m139-accent) 8%,white);color:var(--m139-text-accent);-webkit-text-fill-color:var(--m139-text-accent);font-weight:650;box-shadow:inset 0 0 0 1px var(--m139-accent)}.m139-qc-choice[aria-pressed=true] .m139-choice-check{display:flex}.m139-quickcart .m139-qc-choice:not(:disabled):hover{border-color:var(--m139-accent);background:#f5f9f4}.m139-quickcart .m139-qc-choice:disabled{background:#f4f5f3;color:#939b94;-webkit-text-fill-color:#939b94;border-color:#e6e9e3}.m139-choice-hint{font-size:10px;font-weight:400;color:#8b7961;white-space:nowrap}.m139-qc-choice:disabled .m139-choice-hint{color:#89938a}.m139-quickcart .m139-qc-choice.is-incompatible{border-style:dashed}.m139-quickcart .m139-qc-clear{min-height:44px;margin:-8px 0 4px;padding:8px 0;background:transparent;color:#65776a;-webkit-text-fill-color:#65776a;font-size:12px;text-decoration:underline;text-underline-offset:3px;border:0;border-radius:0}.m139-quickcart .m139-qc-clear:disabled{color:#a6afa7;-webkit-text-fill-color:#a6afa7}
.m139-quickcart .m139-qc-addons{margin:10px 0 22px}.m139-qc-addons legend small{font-size:11px;font-weight:400;color:var(--m139-muted)}.m139-qc-addon{display:flex;align-items:center;gap:12px;width:100%;padding:13px 14px;margin-bottom:8px;border:1px solid #e0e7de;background:#f9faf7;border-radius:10px;cursor:pointer;min-height:68px}.m139-qc-addon:has(input:checked){border-color:#bdd3be;background:#f2f7ee}.m139-qc-addon:has(input:disabled){cursor:default}.m139-quickcart .m139-qc-addon input{width:20px;height:20px;min-width:20px;min-height:20px;flex:0 0 20px;padding:0;margin:0;accent-color:var(--m139-accent);border-radius:4px;background:#fff;appearance:auto;box-shadow:none}.m139-addon-copy{flex:1;min-width:0;display:grid;gap:3px}.m139-addon-copy strong{font-size:13px;font-weight:600;color:#324e39}.m139-addon-copy small{font-size:10px;color:#71806a;line-height:1.6}.m139-addon-price{display:grid;gap:3px;justify-items:end;flex:0 0 auto;text-align:right;font-size:12px;color:var(--m139-text-accent);font-weight:650}.m139-addon-required{display:block;color:#7d7f5e;font-size:10px;font-weight:400}
.m139-qc-quantity{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid var(--m139-line);padding-top:20px;margin-top:7px}.m139-qc-quantity-copy{min-width:0}.m139-quickcart .m139-qc-quantity h3{font-size:14px;font-weight:700}.m139-quickcart .m139-qc-qty-hint{font-size:11px;color:var(--m139-muted);margin-top:5px;line-height:1.6}.m139-qc-stepper{display:flex;align-items:center;border:1px solid #d6e1d6;border-radius:9px;overflow:hidden;background:#fff;flex-shrink:0}.m139-quickcart .m139-qc-stepper button{width:44px;height:44px;min-height:44px;padding:0;margin:0;border:0;border-radius:0;background:#f1f5ee;color:#416137;-webkit-text-fill-color:#416137;font-size:20px;font-weight:500;line-height:1;display:grid;place-items:center}.m139-quickcart .m139-qc-stepper button:disabled{background:#f7f8f5;color:#b0b9ab;-webkit-text-fill-color:#b0b9ab}.m139-quickcart .m139-qc-stepper input{width:46px;min-width:0;height:44px;min-height:44px;padding:6px 0;margin:0;border:0;border-radius:0;background:#fff;color:var(--m139-ink);-webkit-text-fill-color:var(--m139-ink);font-size:16px;line-height:1.5;text-align:center;appearance:textfield;box-shadow:none;outline-offset:-3px}.m139-qc-stepper input::-webkit-inner-spin-button,.m139-qc-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.m139-quickcart .m139-qc-stepper input:disabled{background:#f6f7f3;color:#899583;-webkit-text-fill-color:#899583}
.m139-quickcart .m139-qc-status{font-size:11px;color:#826936;background:#fcf8ef;border-radius:8px;padding:10px 12px;margin:16px 0 0;line-height:1.7}.m139-quickcart .m139-qc-status.is-ready{color:#466f3d;background:#eff6eb}.m139-quickcart .m139-qc-error{color:#923e31;background:#fff0eb;border:1px solid #f0d8ce;border-radius:8px;font-size:12px;line-height:1.7;padding:11px 12px;margin-top:12px}
.m139-qc-footer{padding:15px 24px 22px;border-top:1px solid var(--m139-line);background:#fff;flex-shrink:0;box-shadow:0 -5px 18px #213e1b06}.m139-quickcart .m139-qc-summary{color:var(--m139-muted);font-size:11px;line-height:1.65;max-height:3.3em;overflow:auto;margin:0 0 8px}.m139-qc-total{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:13px}.m139-qc-total>span{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;font-size:13px;font-weight:600}.m139-qc-total small{color:#899481;font-size:10px;font-weight:400}.m139-qc-total strong{font-size:25px;line-height:1.4;letter-spacing:-.02em;color:var(--m139-text-accent);white-space:nowrap}.m139-quickcart .m139-qc-add{display:flex;align-items:center;justify-content:center;width:100%;min-height:50px;padding:12px 18px;margin:0;border:1px solid transparent;border-radius:10px;background:var(--m139-accent);background-image:none;color:var(--m139-accent-ink);-webkit-text-fill-color:var(--m139-accent-ink);font-size:15px;font-weight:700;line-height:1.6;box-shadow:none}.m139-quickcart .m139-qc-add:not(:disabled):hover{filter:brightness(.96)}.m139-quickcart .m139-qc-add:disabled{background:#e9eee5;color:#7b8c70;-webkit-text-fill-color:#7b8c70;border-color:#e4eadf;filter:none}.m139-quickcart .m139-qc-add[aria-busy=true]{background:#e9eee5;color:#5d7750;-webkit-text-fill-color:#5d7750}
.m139-qc-state{min-height:230px;padding:36px 12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;text-align:center;color:var(--m139-muted)}.m139-qc-state strong{font-size:16px;color:var(--m139-ink)}.m139-quickcart .m139-qc-state p{font-size:13px;max-width:30em;line-height:1.8}.m139-qc-state-icon{display:grid;place-items:center;width:36px;height:36px;background:#fbecdc;color:#976428;border-radius:50%;font-size:20px;font-weight:700}.m139-quickcart .m139-qc-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 18px;margin:3px 0 0;border:1px solid #d1dfcd;border-radius:9px;color:var(--m139-text-accent);-webkit-text-fill-color:var(--m139-text-accent);background:#f5f8f1;font-size:13px;font-weight:600;text-decoration:none}
.m139-spinner{width:18px;height:18px;flex:0 0 18px;display:inline-block;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:m139-spin .8s linear infinite}.m139-qc-state .m139-spinner{width:28px;height:28px;flex-basis:28px;color:var(--m139-text-accent)}.m139-cart-loading{gap:8px!important}.m139-cart-loading .m139-spinner{width:15px;height:15px;flex-basis:15px}
.m139-cart-toast{position:fixed;z-index:200000;left:50%;bottom:calc(92px + env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:center;gap:12px;width:max-content;max-width:min(650px,calc(100vw - 32px));padding:12px 12px 12px 16px;border:1px solid #4d7356;border-radius:13px;background:#244831;color:#fff;box-shadow:0 8px 40px #172d1833;font-size:13px;line-height:1.6}.m139-toast-icon{display:grid;place-items:center;width:22px;height:22px;flex:0 0 22px;background:#ffffff25;border-radius:50%;font-size:13px;font-weight:700}.m139-toast-message{min-width:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.m139-cart-toast .m139-toast-action{display:flex;align-items:center;justify-content:center;min-height:44px;flex-shrink:0;padding:7px 12px;border:1px solid #ffffff48;border-radius:7px;background:#ffffff13;color:#fff!important;-webkit-text-fill-color:#fff;font-size:12px;font-weight:600;line-height:1.5;text-decoration:none;cursor:pointer;margin:0}.m139-cart-toast .m139-toast-action:hover{background:#ffffff25}.m139-cart-toast .m139-toast-dismiss{width:44px;min-width:44px;min-height:44px;flex-shrink:0;background:transparent;color:#fff;-webkit-text-fill-color:#fff;border:0;border-radius:7px;padding:0;margin:0;cursor:pointer;font-family:system-ui,sans-serif;font-size:21px;line-height:1}.m139-cart-toast.is-error{background:#624637;border-color:#88634b}
@keyframes m139-spin{to{transform:rotate(360deg)}}@keyframes m139-dialog-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){.m139-quickcart{align-items:flex-end;padding:14px 0 0;background:rgba(18,32,24,.58)}.m139-quickcart .m139-qc-dialog{width:100%;max-height:calc(100vh - 14px);max-height:calc(100dvh - 14px);border:0;border-radius:20px 20px 0 0}.m139-qc-head{padding:16px 18px 13px;gap:12px}.m139-quickcart .m139-qc-head h2{font-size:19px}.m139-qc-body{padding:18px 18px 16px}.m139-qc-product{gap:13px;padding-bottom:17px;margin-bottom:18px}.m139-quickcart .m139-qc-image{width:74px;height:74px;flex-basis:74px}.m139-quickcart .m139-qc-product-copy h3{font-size:14px;-webkit-line-clamp:2}.m139-qc-store{font-size:10px}.m139-qc-group legend{font-size:13px}.m139-quickcart .m139-qc-choice{padding:10px 12px;font-size:12px}.m139-qc-values{gap:8px}.m139-qc-picked{font-size:10px}.m139-qc-addon{padding:11px 12px;gap:10px}.m139-addon-copy strong{font-size:12px}.m139-addon-copy small{font-size:10px}.m139-addon-price{font-size:11px;max-width:95px}.m139-qc-quantity{align-items:center;gap:10px}.m139-quickcart .m139-qc-qty-hint{font-size:10px}.m139-qc-stepper{flex:0 0 130px}.m139-quickcart .m139-qc-stepper button{width:44px}.m139-quickcart .m139-qc-stepper input{width:40px}.m139-qc-footer{padding:12px 18px calc(16px + env(safe-area-inset-bottom))}.m139-qc-total{margin-bottom:10px}.m139-qc-total strong{font-size:23px}.m139-quickcart .m139-qc-add{min-height:50px}.m139-cart-toast{max-width:calc(100vw - 24px);width:calc(100vw - 24px);gap:9px;padding:10px 9px 10px 12px;font-size:12px}.m139-toast-icon{width:20px;height:20px;flex-basis:20px}.m139-cart-toast .m139-toast-action{padding:7px 9px;font-size:11px}.m139-cart-toast .m139-toast-dismiss{width:44px;min-width:44px}.m139-toast-message{flex:1}}
@media(max-width:360px){.m139-qc-head{padding-left:15px;padding-right:15px}.m139-qc-body{padding-left:15px;padding-right:15px}.m139-qc-footer{padding-left:15px;padding-right:15px}.m139-qc-quantity{flex-wrap:wrap}.m139-qc-stepper{margin-left:auto}.m139-choice-hint{white-space:normal}.m139-qc-total strong{font-size:21px}.m139-cart-toast{gap:7px}.m139-toast-icon{display:none}}
@media(prefers-reduced-motion:reduce){.m139-quickcart .m139-qc-dialog,.m139-spinner{animation:none}.m139-quickcart .m139-qc-choice{transition:none}}

.m139-quickcart .m139-qc-cart-link{display:flex;align-items:center;justify-content:center;min-height:44px;margin-top:8px;color:var(--m139-text-accent);font-size:12px;text-decoration:underline;text-underline-offset:3px}
