/* Palette lives at document level. The cart bar, sheets and toast are SIBLINGS
   of .mc-shop, not children — scoping the custom properties to .mc-shop left
   them undefined, so background:var(--mc-ink) painted nothing and the cart bar
   showed as a transparent white box over the menu. */
:root{
 --mc-ink:#2A1B0C; --mc-muted:#7A6249; --mc-mango:#F0870F; --mc-leaf:#0E5B4C;
 --mc-paper:#FFF4E2; --mc-paper2:#FBE8CC; --mc-line:rgba(42,27,12,.1);
}
.mc-shop, .mc-shop *, .mc-itemsheet, .mc-itemsheet *, .mc-checkout, .mc-checkout *,
.mc-cartbar, .mc-cartbar *, .mc-toast, .mc-sheet-scrim { box-sizing: border-box; }

/* Mellow Chic Core — online ordering storefront. */
.mc-shop{max-width:920px;margin:0 auto;padding-bottom:120px}

/* fulfilment */
.mc-shop__top{padding:4px 0 18px}
.mc-shop__modes{display:inline-flex;background:var(--mc-paper2);border-radius:999px;padding:4px;gap:2px}
.mc-shop__mode{border:0;background:none;font:inherit;font-weight:700;font-size:.92rem;color:var(--mc-muted);
 padding:11px 26px;border-radius:999px;cursor:pointer;transition:background .2s,color .2s}
.mc-shop__mode.is-on{background:#fff;color:var(--mc-ink);box-shadow:0 2px 8px rgba(42,27,12,.12)}
.mc-shop__meta{margin:12px 0 0;font-size:.88rem;color:var(--mc-muted)}

/* sticky rail */
.mc-shop__rail{position:sticky;top:64px;z-index:30;background:#fff;
 border-bottom:1px solid var(--mc-line);padding:10px 0 12px;max-width:100%}
.mc-shop__cats{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.mc-shop__cats::-webkit-scrollbar{display:none}
.mc-shop__cat{flex:none;border:1.5px solid var(--mc-line);background:#fff;border-radius:999px;
 padding:9px 18px;font:inherit;font-size:.86rem;font-weight:700;color:var(--mc-muted);cursor:pointer;white-space:nowrap;
 transition:background .18s,color .18s,border-color .18s}
.mc-shop__cat.is-on{background:var(--mc-ink);color:var(--mc-paper);border-color:var(--mc-ink)}
.mc-shop__searchwrap{display:flex;align-items:center;gap:9px;margin-top:10px;
 border:1.5px solid var(--mc-line);border-radius:12px;padding:0 13px;background:#fff;color:var(--mc-muted)}
.mc-shop__searchwrap input{flex:1;border:0;outline:0;font:inherit;font-size:.95rem;padding:12px 0;background:none;color:var(--mc-ink)}

/* sections */
.mc-shop__sec{padding-top:30px;scroll-margin-top:150px}
.mc-shop__sech{font-family:var(--wp--preset--font-family--display,Georgia,serif);
 font-size:1.5rem;margin:0 0 16px;letter-spacing:-.015em}
.mc-shop__grid{display:grid;gap:12px}

/* dish card */
.mc-dish{position:relative;display:flex;gap:14px;align-items:stretch;background:#fff;
 border:1px solid var(--mc-line);border-radius:16px;padding:16px 16px 16px 18px;
 transition:box-shadow .2s,border-color .2s,transform .2s;cursor:pointer}
.mc-dish:hover{box-shadow:0 12px 28px -10px rgba(42,27,12,.22);border-color:rgba(240,135,15,.4);transform:translateY(-2px)}
.mc-dish__bd{flex:1;min-width:0;display:flex;flex-direction:column}
.mc-dish__t{font-size:1.04rem;font-weight:700;margin:0 0 5px;line-height:1.28;padding-right:8px}
.mc-dish__d{font-size:.87rem;color:var(--mc-muted);margin:0 0 10px;line-height:1.5}
.mc-dish__p{margin:auto 0 0;font-weight:800;font-size:1rem;color:var(--mc-leaf);display:flex;align-items:center;gap:8px}
.mc-dish__spice{font-size:.8rem}
.mc-dish__img{flex:none;width:112px;border-radius:12px;overflow:hidden;background:#f2ede3}
.mc-dish__img img{width:100%;height:100%;object-fit:cover;min-height:104px}
.mc-dish__add{position:absolute;right:12px;bottom:12px;width:38px;height:38px;border-radius:50%;
 border:0;background:#fff;color:var(--mc-ink);font-size:1.35rem;line-height:1;cursor:pointer;
 box-shadow:0 3px 12px rgba(42,27,12,.26);transition:background .18s,color .18s,transform .18s}
.mc-dish__add:hover{background:var(--mc-mango);color:#1B1004;transform:scale(1.08)}
.mc-dish.is-out{opacity:.5;pointer-events:none}
.mc-dish__out{position:absolute;right:14px;bottom:14px;font-size:.7rem;font-weight:800;
 text-transform:uppercase;letter-spacing:.06em;color:#b32d2e}
.mc-shop__noresults{text-align:center;color:var(--mc-muted);padding:50px 10px}
@media(max-width:560px){.mc-dish__img{width:92px}.mc-dish__img img{min-height:88px}}

/* sheets */
.mc-sheet-scrim{position:fixed;inset:0;z-index:300;background:rgba(21,14,6,.6);
 opacity:0;visibility:hidden;transition:.28s}
.mc-sheet-scrim.is-open{opacity:1;visibility:visible}
.mc-itemsheet,.mc-checkout{position:fixed;inset:auto 0 0;z-index:310;background:#fff;color:var(--mc-ink);
 border-radius:22px 22px 0 0;max-height:92svh;display:flex;flex-direction:column;
 transform:translateY(102%);transition:transform .34s cubic-bezier(.3,1,.4,1);
 box-shadow:0 -12px 44px rgba(0,0,0,.3)}
.mc-itemsheet.is-open,.mc-checkout.is-open{transform:none}
@media(min-width:720px){
 .mc-itemsheet,.mc-checkout{inset:0 0 0 auto;width:460px;max-height:none;border-radius:22px 0 0 22px;transform:translateX(102%)}
 .mc-itemsheet.is-open,.mc-checkout.is-open{transform:none}}
.mc-itemsheet__x{position:absolute;top:14px;right:14px;z-index:5;width:36px;height:36px;border-radius:50%;
 border:0;background:rgba(255,255,255,.92);font-size:1.5rem;line-height:1;cursor:pointer;
 box-shadow:0 2px 10px rgba(0,0,0,.18);color:var(--mc-ink)}
.mc-itemsheet__body{overflow-y:auto;flex:1}
.mc-item__hero{width:100%;aspect-ratio:16/10;object-fit:cover}
.mc-item__in{padding:20px}
.mc-item__t{font-family:var(--wp--preset--font-family--display,Georgia,serif);font-size:1.5rem;margin:0 0 8px}
.mc-item__d{color:var(--mc-muted);font-size:.94rem;margin:0 0 18px;line-height:1.6}
.mc-item__grp{margin-bottom:18px}
.mc-item__grph{font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;font-weight:800;
 color:var(--mc-muted);margin:0 0 10px}
.mc-opt{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--mc-line);cursor:pointer}
.mc-opt:last-child{border-bottom:0}
.mc-opt input{appearance:none;width:22px;height:22px;border:2px solid rgba(42,27,12,.28);border-radius:6px;
 flex:none;cursor:pointer;position:relative;transition:.18s}
.mc-opt input:checked{background:var(--mc-mango);border-color:var(--mc-mango)}
.mc-opt input:checked::after{content:"✓";position:absolute;inset:0;display:grid;place-items:center;
 color:#1B1004;font-size:.85rem;font-weight:900}
.mc-opt span{font-size:.95rem}
.mc-item__notes{width:100%;font:inherit;padding:12px 14px;border:1.5px solid var(--mc-line);
 border-radius:12px;resize:vertical;color:var(--mc-ink)}
.mc-itemsheet__foot{display:flex;align-items:center;gap:12px;padding:14px 18px;
 border-top:1px solid var(--mc-line);background:#FBF7EF}
.mc-qty{display:flex;align-items:center;gap:14px;border:1.5px solid var(--mc-line);border-radius:999px;padding:5px 8px}
.mc-qty button{width:32px;height:32px;border-radius:50%;border:0;background:none;font-size:1.2rem;cursor:pointer;color:var(--mc-ink)}
.mc-qty b{min-width:20px;text-align:center}
.mc-itemsheet__add{flex:1;justify-content:space-between}

/* cart bar — deliberately heavy so it reads as a fixed action bar, not a card */
.mc-cartbar{position:fixed;left:50%;bottom:max(16px,env(safe-area-inset-bottom));
 transform:translateX(-50%);z-index:290;
 display:flex;align-items:center;gap:14px;width:min(460px,calc(100vw - 28px));
 background:#2A1B0C;color:#FFF4E2;border:0;border-radius:16px;
 padding:16px 20px;font:inherit;font-weight:700;font-size:1rem;cursor:pointer;
 box-shadow:0 18px 44px -10px rgba(21,14,6,.6),0 4px 12px rgba(21,14,6,.3);
 text-align:left}
.mc-cartbar:hover{background:#1B1004}
.mc-cartbar__n{flex:none;background:var(--mc-mango);color:#1B1004;border-radius:10px;
 min-width:30px;height:30px;display:grid;place-items:center;font-size:.92rem;font-weight:800}
.mc-cartbar__t{flex:1;letter-spacing:.01em}
.mc-cartbar__p{flex:none;font-size:1.06rem;font-weight:800;font-variant-numeric:tabular-nums}
.mc-cartbar[hidden]{display:none}

/* checkout */
.mc-checkout__head{display:flex;align-items:center;padding:20px;border-bottom:1px solid var(--mc-line)}
.mc-checkout__head h3{margin:0;font-size:1.25rem}
.mc-checkout__head .mc-itemsheet__x{position:static;margin-left:auto;box-shadow:none;background:none}
.mc-checkout__body{overflow-y:auto;flex:1;padding:18px 20px}
.mc-checkout__foot{padding:16px 20px;border-top:1px solid var(--mc-line);background:#FBF7EF}
.mc-line{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--mc-line)}
.mc-line__q{font-weight:800;color:var(--mc-mango);flex:none}
.mc-line__b{flex:1;min-width:0}
.mc-line__n{font-weight:600;font-size:.95rem}
.mc-line__m{font-size:.8rem;color:var(--mc-muted);margin-top:2px}
.mc-line__p{font-weight:700;white-space:nowrap}
.mc-line__x{border:0;background:none;color:var(--mc-muted);cursor:pointer;font-size:1.1rem;padding:0 2px}
.mc-sum{display:flex;justify-content:space-between;padding:7px 0;font-size:.94rem}
.mc-sum--total{font-weight:800;font-size:1.18rem;border-top:1px solid var(--mc-line);margin-top:8px;padding-top:12px}
.mc-fld{display:block;margin-bottom:14px}
.mc-fld span{display:block;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;
 font-weight:800;color:var(--mc-muted);margin-bottom:6px}
.mc-fld input,.mc-fld textarea,.mc-fld select{width:100%;font:inherit;padding:12px 14px;
 border:1.5px solid var(--mc-line);border-radius:12px;color:var(--mc-ink)}
.mc-pays{display:grid;gap:10px;grid-template-columns:1fr 1fr}
.mc-pay-opt{border:1.5px solid var(--mc-line);border-radius:14px;padding:14px;text-align:center;
 cursor:pointer;font-weight:700;font-size:.9rem;transition:.18s}
.mc-pay-opt.is-on{border-color:var(--mc-mango);background:#FFF6EA}
.mc-shop-qr{text-align:center;padding:10px 0}
.mc-shop-qr img{display:block;margin:0 auto;image-rendering:pixelated;
 background:#fff;padding:10px;border-radius:14px;box-shadow:0 4px 16px rgba(0,0,0,.1)}
.mc-done{text-align:center;padding:34px 10px}
.mc-done__tick{width:62px;height:62px;margin:0 auto 16px;border-radius:50%;
 background:var(--mc-leaf);color:#fff;font-size:1.9rem;display:grid;place-items:center}
.mc-done__ref{font-family:ui-monospace,monospace;font-weight:800;letter-spacing:.06em;
 background:var(--mc-paper2);border-radius:8px;padding:5px 12px;display:inline-block;margin-top:8px}
.mc-btn--wide{width:100%;justify-content:center}
.mc-toast{position:fixed;left:50%;bottom:calc(96px + env(safe-area-inset-bottom));
 transform:translate(-50%,180%);
 background:var(--mc-ink);color:var(--mc-paper);padding:12px 20px;border-radius:14px;
 font-weight:700;font-size:.9rem;z-index:340;max-width:calc(100vw - 32px);
 display:flex;align-items:center;gap:9px;text-align:left;
 transition:transform .34s cubic-bezier(.3,1.2,.4,1),opacity .24s;opacity:0;
 box-shadow:0 14px 36px rgba(0,0,0,.34);pointer-events:none}
.mc-toast.is-show{transform:translate(-50%,0);opacity:1}
.mc-toast::before{content:"✓";flex:none;width:20px;height:20px;border-radius:50%;
 background:#3CD070;color:#0B2E16;font-size:.72rem;font-weight:900;
 display:grid;place-items:center}
.mc-toast.is-err::before{content:"!";background:#FF7A6E;color:#3B0D08}
/* while a sheet is open the toast would land on the action button */
body.mc-shop-locked .mc-toast{bottom:calc(50% - 24px)}
@media(prefers-reduced-motion:reduce){.mc-itemsheet,.mc-checkout,.mc-sheet-scrim,.mc-toast{transition:none}}

/* ============================================================ mobile polish
   The sheet footer could overflow its own width on narrow screens, pushing the
   Add button off the right edge. */
.mc-itemsheet__foot{flex-wrap:nowrap;min-width:0}
.mc-itemsheet__add{min-width:0;flex:1 1 auto;padding-left:18px;padding-right:18px;gap:10px}
.mc-itemsheet__add span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.mc-itemsheet__add b{flex:none;white-space:nowrap}
.mc-qty{flex:none}

@media(max-width:420px){
 .mc-itemsheet__foot{padding:12px 14px;gap:10px}
 .mc-qty{gap:8px;padding:4px 6px}
 .mc-qty button{width:30px;height:30px}
 .mc-itemsheet__add{padding:14px 16px;font-size:.92rem}
}

/* the sheet must never be a stub: give it real height on phones */
@media(max-width:719px){
 .mc-itemsheet{min-height:52svh}
 .mc-itemsheet__body{min-height:120px}
}

/* body scroll lock (class-based so it cannot be clobbered by inline styles) */
body.mc-shop-locked{overflow:hidden}

/* cart bar: make its arrival obvious */
.mc-cartbar{transition:transform .3s cubic-bezier(.3,1.5,.5,1),box-shadow .3s}
.mc-cartbar.is-pop{animation:mc-cartpop .42s cubic-bezier(.3,1.4,.5,1)}
@keyframes mc-cartpop{
 0%{transform:translateX(-50%) scale(.86);opacity:.4}
 60%{transform:translateX(-50%) scale(1.04)}
 100%{transform:translateX(-50%) scale(1);opacity:1}
}
body.mc-has-cart .mc-shop{padding-bottom:132px}
@media(prefers-reduced-motion:reduce){.mc-cartbar.is-pop{animation:none}}

/* dish cards: tighter, more scannable on a phone */
@media(max-width:560px){
 .mc-shop__grid{gap:10px}
 .mc-dish{padding:14px}
 .mc-dish__t{font-size:.98rem}
 .mc-dish__d{font-size:.83rem;margin-bottom:8px}
 .mc-dish__add{width:34px;height:34px;font-size:1.2rem;right:10px;bottom:10px}
 .mc-dish__img{width:84px}
 .mc-dish__img img{min-height:82px}
 .mc-shop__sech{font-size:1.28rem}
}


/* ============================================================ overflow guards */
.mc-shop, .mc-shop__list, .mc-shop__sec, .mc-shop__grid { max-width: 100%; min-width: 0; }
.mc-dish, .mc-dish__bd { min-width: 0; }
.mc-dish__t, .mc-dish__d { overflow-wrap: anywhere; }
.mc-itemsheet, .mc-checkout { max-width: 100vw; }
.mc-itemsheet__body, .mc-checkout__body, .mc-item__in { max-width: 100%; }
.mc-item__hero { max-width: 100%; height: auto; }
.mc-btn--wide, .mc-itemsheet__add { max-width: 100%; }
.mc-line { min-width: 0; }
.mc-line__b { min-width: 0; overflow-wrap: anywhere; }

/* guest vs account choice */
.mc-pays--how{margin-bottom:18px}
.mc-pays--how .mc-pay-opt{text-align:left;padding:13px 15px;line-height:1.3}
.mc-pays--how .mc-pay-opt b{display:block;font-size:.92rem}
.mc-pays--how .mc-pay-opt small{display:block;font-weight:400;font-size:.78rem;
 color:var(--mc-muted);margin-top:3px}

/* ============================================================ checkout v2 */
/* step headings so the form reads as a sequence, not one long list */
.mc-step__h{font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;font-weight:800;
 color:var(--mc-muted);margin:22px 0 10px;padding-top:16px;border-top:1px solid var(--mc-line)}
.mc-checkout__body > .mc-step__h:first-child{margin-top:0;padding-top:0;border-top:0}

/* two fields side by side where they belong together */
.mc-fld__row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mc-fld__row .mc-fld{margin-bottom:14px}
@media(max-width:420px){.mc-fld__row{grid-template-columns:1fr;gap:0}}

/* guest vs account, now the first decision */
.mc-pays--how{margin-bottom:6px}
.mc-pays--how .mc-pay-opt{text-align:left;padding:14px 15px;line-height:1.3}
.mc-pays--how .mc-pay-opt b{display:block;font-size:.94rem}
.mc-pays--how .mc-pay-opt small{display:block;font-weight:400;font-size:.78rem;
 color:var(--mc-muted);margin-top:4px}
.mc-pays--how .mc-pay-opt.is-on b{color:#B85C00}

/* editable cart lines */
.mc-line{align-items:flex-start}
.mc-line__ctl{display:flex;align-items:center;gap:10px;margin-top:9px}
.mc-lqty{display:inline-flex;align-items:center;gap:2px;
 border:1.5px solid var(--mc-line);border-radius:999px;padding:2px}
.mc-lqty button{width:28px;height:28px;border:0;background:none;border-radius:50%;
 font-size:1.05rem;line-height:1;cursor:pointer;color:var(--mc-ink)}
.mc-lqty button:hover{background:var(--mc-paper2)}
.mc-lqty b{min-width:22px;text-align:center;font-size:.9rem;font-variant-numeric:tabular-nums}
.mc-line__x{border:0;background:none;color:var(--mc-muted);cursor:pointer;
 font-size:.8rem;font-weight:600;text-decoration:underline;padding:0}
.mc-line__x:hover{color:#b32d2e}
.mc-line__p{font-weight:800;padding-top:2px}

.mc-btn--link{background:none;color:var(--mc-muted);font-weight:600;margin-top:6px}
.mc-btn--link:hover{color:var(--mc-ink)}

/* ============================================================ add more + upsell */
.mc-cart__addmore{margin:0 0 4px;text-align:center}
.mc-cart__addmore .mc-btn{width:100%}

.mc-upsell{margin:18px 0 6px;padding-top:14px;border-top:1px solid var(--mc-line)}
.mc-upsell__h{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;
 font-weight:800;color:var(--mc-muted);margin:0 0 10px}
.mc-upsell__h:not(:first-child){margin-top:16px}
.mc-upsell__row{display:flex;gap:10px;overflow-x:auto;padding-bottom:4px;
 scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.mc-upsell__row::-webkit-scrollbar{display:none}
.mc-upsell__card{flex:none;width:112px;scroll-snap-align:start;
 border:1px solid var(--mc-line);border-radius:14px;overflow:hidden;background:#fff}
.mc-upsell__im{width:100%;height:74px;background:#f2ede3;overflow:hidden}
.mc-upsell__im img{width:100%;height:100%;object-fit:cover;display:block}
.mc-upsell__n{padding:8px 9px 0;font-size:.8rem;font-weight:700;line-height:1.3;
 min-height:2.4em;color:var(--mc-ink)}
.mc-upsell__row2{display:flex;align-items:center;justify-content:space-between;
 padding:6px 9px 9px}
.mc-upsell__p{font-size:.8rem;font-weight:800;color:var(--mc-leaf)}
.mc-upsell__add{width:26px;height:26px;border-radius:50%;border:0;
 background:var(--mc-mango);color:#1B1004;font-size:1.05rem;line-height:1;
 cursor:pointer;transition:transform .15s,background .15s;flex:none}
.mc-upsell__add:hover{transform:scale(1.08);background:#DE7A08}
.mc-upsell__add:active{transform:scale(.94)}

/* ============================================================ welcome back / sign in */
.mc-welcome{display:flex;align-items:center;gap:13px;
 background:linear-gradient(135deg,#EAF6F2,#DFF1EA);
 border:1px solid rgba(14,91,76,.18);border-radius:14px;padding:14px 16px;margin-bottom:6px}
.mc-welcome__ic{flex:none;width:32px;height:32px;border-radius:50%;
 background:var(--mc-leaf);color:#fff;display:grid;place-items:center;
 font-size:.9rem;font-weight:900}
.mc-welcome__tx{min-width:0}
.mc-welcome__tx b{display:block;font-size:1rem;color:var(--mc-ink);line-height:1.3}
.mc-welcome__tx small{display:block;font-size:.82rem;color:var(--mc-muted);margin-top:2px;
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mc-welcome__note{margin:8px 0 0;font-size:.82rem;color:#0B7D61}

.mc-signin{margin-top:12px;padding-top:12px;border-top:1px dashed var(--mc-line)}
.mc-signin__ask{margin:0;font-size:.9rem;color:var(--mc-muted);text-align:center}
.mc-signin__link{border:0;background:none;padding:0;font:inherit;font-size:.9rem;
 font-weight:800;color:#B85C00;cursor:pointer;text-decoration:underline}
.mc-signin__link:hover{color:var(--mc-ink)}
.mc-signin__form{margin-top:12px;background:#FFF9EF;border:1px solid rgba(240,135,15,.24);
 border-radius:14px;padding:16px}
.mc-signin__hint{margin:0 0 12px;font-size:.84rem;color:var(--mc-muted);line-height:1.5}
.mc-signin__row{display:flex;align-items:center;gap:14px;margin-top:2px}
.mc-signin__row .mc-btn{flex:1}
.mc-signin__msg{margin:10px 0 0;font-size:.84rem;min-height:1.1em;color:var(--mc-muted)}
.mc-signin__msg.is-err{color:#b32d2e}
.mc-signin__forgot{margin:10px 0 0;font-size:.82rem;text-align:center}
.mc-signin__forgot a{color:var(--mc-muted)}
