/* Phase 1 (phones): one-line categories, compact dish rows, one-tap Add with − n +, quick extras, bag + checkout on one screen. */
body:not(.brand-urjo) .topline:empty { display:none; }
@media(max-width:767px){
 #categories.categories{display:flex!important;flex-wrap:nowrap;overflow-x:auto;grid-template-columns:none!important;gap:8px;padding:8px 0;align-items:center}
 #categories.categories button{flex:none;flex-direction:row;min-height:40px!important;height:40px;padding:0 15px!important;white-space:nowrap;font-size:14px;gap:6px}
 #categories .category-count{display:none}
 .menu-controls{gap:8px}
 #filters.filters{max-width:100%;min-width:0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
 #filters.filters::-webkit-scrollbar{display:none}
 #filters.filters button{flex:none;min-height:36px;padding:6px 12px}

 #items .items,#items .mobile-category-items{gap:0}
 #items .item-card{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 92px;grid-template-rows:auto 1fr auto auto;column-gap:14px;row-gap:0;padding:12px 2px 14px!important;margin:0;min-height:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none}
 #items .item-card:hover{transform:none;box-shadow:none}
 #items .item-card.in-bag{border-color:var(--line)}
 #items .item-card .item-info{grid-column:1;grid-row:1/3;min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:7px;row-gap:3px;align-content:start;align-items:center}
 #items .item-card .item-info>*{grid-column:1/-1}
 #items .item-card .badges{display:contents;font-size:11px}
 #items .item-card .badges>*{grid-column:1/-1;justify-self:start}
 #items .item-card .badges .diet-label{grid-column:1;grid-row:1;font-size:0;gap:0;padding:0;margin:0;background:none;border:0}
 #items .item-card .badges .diet-label .diet{margin:0}
 #items .item-card .item-info>.item-open{grid-column:2;grid-row:1}
 #items .item-card .item-info:not(:has(.diet-label))>.item-open{grid-column:1/-1}
 #items .item-card .item-open{font-size:17px;line-height:1.25;margin:0;text-align:left}
 #items .item-card .item-info>p:not(.urjo-nutrition){display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0;font-size:13px;line-height:1.4}
 #items .item-card p.urjo-nutrition{margin:0}
 #items .item-card .item-media{grid-column:2;grid-row:1/4;position:relative;width:92px;height:88px;aspect-ratio:auto;align-self:start;border-radius:14px}
 #items .item-card .item-bottom{display:contents}
 #items .item-card .item-bottom .price{grid-column:1;grid-row:3;align-self:end;padding-top:6px;font-size:16px;font-weight:600}
 #items .item-card .add-button,#items .item-card .qty-stepper{grid-column:2;grid-row:1/5;align-self:start;justify-self:center;position:relative;z-index:1;margin-top:68px;width:86px;min-width:0;height:38px;min-height:38px;border-radius:999px;box-shadow:0 3px 10px rgba(66,24,5,.18)}
 #items .item-card .add-button{background:#fffaf4;color:var(--brown);border:1.5px solid var(--brown);font-size:15px;font-weight:700;padding:0}
 #items .item-card .add-button:disabled{background:#efe3d4;color:#7b6552;border-color:#d9c6b0;box-shadow:none;font-size:13px}
 #items .item-card .card-foot{grid-column:1/-1;grid-row:4;margin:10px 0 0;display:flex;flex-direction:column;align-items:flex-start;gap:4px}
 #items .item-card .card-foot:empty{display:none}
 #items .item-card .custom-label{display:none}
 #items .item-card .card-foot:not(:has(.quick-addons,.in-bag-line)){display:none}
 .menu-category-section{padding-top:0;margin-bottom:6px}
 .menu-category-section .section-heading{margin:10px 0 0}
}
/* − n + stepper and quick extras (all sizes) */
.qty-stepper{display:inline-flex;align-items:center;justify-content:space-between;background:var(--brown);color:#fffaf4;border-radius:999px;height:40px;min-width:96px;overflow:hidden}
.qty-stepper button{width:34px;height:100%;border:0;background:transparent;color:inherit;font-size:20px;font-weight:600;line-height:1;cursor:pointer;padding:0}
.qty-stepper button:disabled{opacity:.4}
.qty-stepper output{font-weight:700;font-size:15px;min-width:16px;text-align:center}
.quick-addons{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;gap:6px;align-items:center;max-width:100%}.quick-addons::-webkit-scrollbar{display:none}.addon-chip{flex:none}
.addon-chip{height:32px;padding:0 11px;border-radius:999px;border:1px dashed #b89a7c;background:#fffaf4;color:var(--brown);font-size:12.5px;font-weight:600;white-space:nowrap;cursor:pointer}
.addon-chip.on{background:var(--brown);border:1px solid var(--brown);color:#fffaf4}
.options-link{height:32px;padding:0 4px;border:0;background:none;color:var(--rust);font-size:12.5px;font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.in-bag-line{display:flex;align-items:center;gap:6px;margin:0;font-size:12px;color:var(--muted)}.in-bag-line .options-link{height:28px}
.item-card .card-foot .quick-addons:empty{display:none}
body.brand-urjo .qty-stepper,.urjo-card .qty-stepper{background:#1F3D2B}
body.brand-urjo .addon-chip.on,.urjo-card .addon-chip.on{background:#1F3D2B;border-color:#1F3D2B}
body.brand-urjo .addon-chip,.urjo-card .addon-chip{border-color:#9fb795;color:#1F3D2B;background:#fff}
body.brand-urjo #items .item-card .add-button,#items .item-card.urjo-card .add-button{background:#fff;color:#1F3D2B;border-color:#1F3D2B}
body.brand-urjo .options-link,.urjo-card .options-link{color:#2f6b47}

/* Bag + checkout, one screen */
#cart-dialog .checkout-form{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
#cart-dialog .customer-fields{display:grid;gap:12px}
#cart-dialog .checkout-footer{display:flex;flex-direction:column;gap:10px;align-items:stretch}
#cart-dialog #checkout-overview{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0;margin:0;background:none}
#cart-dialog #checkout-overview div{display:flex;flex-direction:column;gap:2px;min-width:0}
#cart-dialog #checkout-overview div strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#cart-dialog #checkout-overview span{font-size:13px;color:var(--muted)}
#cart-dialog #checkout-overview>strong{font-size:19px;white-space:nowrap}
#cart-dialog .checkout-footer{gap:8px}
#cart-dialog #place-order{width:100%;min-height:52px}
#cart-dialog #checkout-error:empty,#cart-dialog #checkout-status:empty{display:none}

html[data-theme="dark"] .qty-stepper{background:#e1d1bd;color:#291e0f}
html[data-theme="dark"] .addon-chip{background:#281d0f;color:#e9dccb;border-color:#6b5843}
html[data-theme="dark"] .addon-chip.on{background:#e1d1bd;color:#291e0f;border-color:#e1d1bd}
html[data-theme="dark"] .options-link{color:#e2a77d}
html[data-theme="dark"] #items .item-card .add-button{background:#281d0f;color:#f1e4d3;border-color:#e1d1bd}
html[data-theme="dark"] body.brand-urjo .qty-stepper,html[data-theme="dark"] .urjo-card .qty-stepper{background:#90c480;color:#0f1a13}
html[data-theme="dark"] body.brand-urjo .addon-chip,html[data-theme="dark"] .urjo-card .addon-chip{background:#121c15;color:#b4d9c3;border-color:#3e5c47}
html[data-theme="dark"] body.brand-urjo .addon-chip.on,html[data-theme="dark"] .urjo-card .addon-chip.on{background:#90c480;color:#0f1a13;border-color:#90c480}
html[data-theme="dark"] body.brand-urjo #items .item-card .add-button,html[data-theme="dark"] #items .item-card.urjo-card .add-button{background:#121c15;color:#b4d9c3;border-color:#90c480}
.item-card .card-foot:has(.quick-addons,.in-bag-line){flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:4px}
/* Live offer strip (offer-banner.js) */
.offer-banner{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 10px;padding:9px 16px;background:#2b140b;color:#f3e6d4;font-size:14px;line-height:1.35;text-align:center}
.offer-banner strong{background:#b5452a;color:#fff7ee;border-radius:999px;padding:2px 10px;font-size:12px;letter-spacing:.06em;text-transform:uppercase}
.offer-banner.upcoming strong{background:transparent;border:1px solid #e0904f;color:#e0904f}
.offer-banner[hidden]{display:none}
.bill-reward span:first-child{color:#b5452a;font-weight:600}
/* Tap-to-apply offer card in the bag + celebration (offer-apply.js) */
#offer-apply{margin:14px 0 4px;display:grid;gap:10px}
.offer-ticket{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:16px;border:1.5px dashed #c9733f;background:linear-gradient(135deg,#fff4e4,#fbe6cc);color:#3a1a0b}
.offer-ticket div{flex:1;min-width:0}.offer-ticket strong{display:block;font-size:16px}.offer-ticket small{display:block;color:#7a4a2a;font-size:13px;margin-top:2px}
.offer-gift{font-size:24px;line-height:1}
.offer-apply-btn{border:0;border-radius:999px;background:#b5452a;color:#fff7ee;font-weight:700;padding:10px 20px;font-size:15px;cursor:pointer;box-shadow:0 4px 12px rgba(181,69,42,.3);animation:offer-glow 2s ease-in-out infinite}
.offer-ticket.applied{border-style:solid;border-color:#3f6b3a;background:#eef5e9}.offer-ticket.applied .offer-gift{color:#3f6b3a;font-weight:800}.offer-ticket.applied small{color:#2f5a2b;font-weight:600}
.offer-ticket.locked{opacity:.8;border-color:#d8b99a}
#offer-apply.nudge .offer-ticket:not(.applied){animation:offer-shake .5s ease 2}
@keyframes offer-glow{50%{box-shadow:0 4px 20px rgba(181,69,42,.55)}}
@keyframes offer-shake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
.offer-celebrate{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;background:rgba(30,12,4,.45);animation:offer-fade .2s ease}
.offer-celebrate.out{opacity:0;transition:opacity .25s}
.offer-pop{position:relative;width:min(320px,84vw);text-align:center;background:#fff8ee;color:#3a1a0b;border-radius:24px;padding:26px 22px 20px;box-shadow:0 20px 50px rgba(0,0,0,.3);animation:offer-pop .45s cubic-bezier(.2,1.4,.4,1)}
.offer-pop-gift{font-size:46px;display:block}.offer-pop-kicker{margin:6px 0 2px;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#a35221}
.offer-pop strong{display:block;font-family:"Playfair Display",Georgia,serif;font-size:24px;line-height:1.2}.offer-pop p{margin:8px 0 0}.offer-pop b{color:#3f6b3a;font-size:20px}
.offer-pop button{margin-top:16px;border:0;border-radius:999px;background:#3a1a0b;color:#fff7ee;font-weight:700;padding:10px 28px;font-size:15px}
.offer-burst{position:absolute;inset:50% auto auto 50%;width:0;height:0}
.offer-burst i{position:absolute;width:9px;height:14px;border-radius:2px;opacity:0;animation:offer-bit 1.1s ease-out forwards}
@keyframes offer-bit{0%{opacity:1;transform:translate(0,0) rotate(0)}100%{opacity:0;transform:translate(var(--x),calc(var(--y) + 120px)) rotate(var(--r))}}
@keyframes offer-pop{0%{transform:scale(.6);opacity:0}100%{transform:scale(1);opacity:1}}
@keyframes offer-fade{from{opacity:0}}
@media (prefers-reduced-motion:reduce){.offer-apply-btn,.offer-burst i,.offer-pop,#offer-apply.nudge .offer-ticket{animation:none}.offer-burst{display:none}}
html[data-theme="dark"] .offer-ticket{background:#3a2216;color:#f3e6d4;border-color:#c9733f}html[data-theme="dark"] .offer-ticket small{color:#e3c4a4}
html[data-theme="dark"] .offer-ticket.applied{background:#1f3320;border-color:#6fa865}html[data-theme="dark"] .offer-ticket.applied small{color:#a9d39f}
