html[data-customer-view="restaurant"] .restaurant-inline-quantity{display:inline-flex;align-items:center;gap:9px;background:var(--surface-muted);color:var(--text);border:1px solid var(--border);border-radius:22px;padding:3px;min-height:36px}
html[data-customer-view="restaurant"] .restaurant-inline-quantity button{border:0;border-radius:50%;background:transparent;color:var(--primary);height:32px;width:32px;font-size:21px;padding:0}
html[data-customer-view="restaurant"] .restaurant-inline-quantity span{position:static;display:block;padding:0;background:transparent;font-size:13px;color:var(--text);min-width:16px;text-align:center}
html[data-customer-view="restaurant"] [data-restaurant-menu-add][hidden]{display:none!important}
.restaurant-preview-dish>.restaurant-inline-quantity,.restaurant-recommendation-grid article>.restaurant-inline-quantity{position:absolute;right:5px;top:5px}
@media(min-width:701px){
html[data-restaurant-detail] .mobile-bottom-nav{display:block}
html[data-restaurant-detail] .mobile-bottom-nav .profile-nav-source,html[data-restaurant-detail] .mobile-bottom-nav .active-order-actions{display:none}
html[data-restaurant-detail] .floating-cart.has-items{display:flex;align-items:center;justify-content:center;position:fixed;right:36px;top:100px;width:68px;height:68px;border:2px solid #dff8ff;border-radius:50%;padding:0;background:linear-gradient(145deg,#3fd1f0,#168fcf,#3157dc);color:#fff;z-index:45;box-shadow:0 13px 30px #087da657}
html[data-restaurant-detail] .floating-cart-copy{display:none}
html[data-restaurant-detail] .floating-cart-icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:2}
html[data-restaurant-detail] .floating-cart-eta{display:block;position:absolute;right:-24px;top:-15px;background:#ffd33e;color:#593c00;border:2px solid #fff;border-radius:999px;padding:4px 7px;font-size:10px}
html[data-restaurant-detail] .floating-cart>strong{position:absolute;left:-12px;top:-9px;background:#ff713d;border:2px solid #fff;border-radius:50%;padding:3px 6px;font-size:11px}
body:has(#cart-modal:not(.hidden)) .floating-cart,body:has(#checkout-modal:not(.hidden)) .floating-cart{display:none!important}
}
html[data-customer-view="restaurant"] #cart-modal>.modal-content{background:var(--surface);color:var(--text);padding:20px;max-width:600px;display:flex;flex-direction:column;height:min(620px,90dvh);overflow:hidden;box-sizing:border-box}
html[data-customer-view="restaurant"] #cart-modal h2{font-size:23px;padding-right:38px;margin:4px 0 14px;flex-shrink:0}
.restaurant-cart-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.restaurant-cart-footer{flex-shrink:0;border-top:1px solid var(--border);padding:10px 0 max(0px,env(safe-area-inset-bottom));background:var(--surface)}
html[data-customer-view="restaurant"] #cart-modal .restaurant-cart-footer .cart-summary{margin:0 0 8px;padding:8px 12px;border-radius:10px;font-size:13px}
html[data-customer-view="restaurant"] #cart-items{display:flex;flex-direction:column;gap:8px;overflow-x:hidden;scrollbar-width:thin;padding:2px 0 10px;margin:0;max-height:none}
html[data-customer-view="restaurant"] #cart-modal .cart-item{position:relative;display:grid;grid-template-columns:1fr auto;gap:8px;flex:0 0 auto;width:100%;min-width:0;box-sizing:border-box;align-content:start;border:1px solid var(--border);background:var(--surface-muted);padding:10px;border-radius:14px}
html[data-customer-view="restaurant"] #cart-modal .cart-item:has(.restaurant-cart-image){grid-template-columns:60px minmax(0,1fr)}
.restaurant-cart-image{padding:0;border:0;background:transparent;grid-row:1/3}.restaurant-cart-image img{width:60px;height:60px;object-fit:cover;border-radius:12px}
html[data-customer-view="restaurant"] #cart-modal .cart-item-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px}
html[data-customer-view="restaurant"] #cart-modal .cart-item-name{cursor:pointer;font-size:14px;margin:0 0 5px;color:var(--text)}
html[data-customer-view="restaurant"] #cart-modal .cart-item-store{font-size:11px;color:var(--muted);margin:0}
html[data-customer-view="restaurant"] #cart-modal .quantity-control{background:var(--surface-muted);border-color:var(--border)}
html[data-customer-view="restaurant"] #cart-modal .quantity-button{background:transparent;color:var(--primary)}
html[data-customer-view="restaurant"] #cart-modal .cart-summary{background:var(--surface);color:var(--text)}
html[data-customer-view="restaurant"] #checkout-button{position:static;min-height:50px;margin:0;border-radius:14px;width:100%}
.restaurant-order-note{clear:both;padding:10px 0;border-bottom:1px solid var(--border)}.restaurant-order-note[hidden]{display:none}
.restaurant-order-note summary{cursor:pointer;color:var(--text);font-size:14px}
.restaurant-order-note>label{display:grid;gap:6px;margin-top:8px}
.restaurant-resume-dialog{box-sizing:border-box;width:min(420px,calc(100% - 32px));border:1px solid var(--border);border-radius:22px;padding:24px;background:var(--surface);color:var(--text);box-shadow:0 24px 80px #0005}
.restaurant-resume-dialog::backdrop{background:#0009}
.restaurant-resume-dialog [data-switch-no]{background:var(--surface-muted);color:var(--text);border:1px solid var(--border)}
.restaurant-resume-dialog>span{font-size:34px}.restaurant-resume-dialog h2{font-size:22px;margin:12px 0}.restaurant-resume-dialog p{color:var(--muted);font-size:14px;line-height:1.6}.restaurant-resume-dialog small{display:block;color:#ef4444;margin-bottom:12px}.restaurant-resume-dialog button{width:100%;min-height:48px;border-radius:12px;margin-top:8px}.restaurant-resume-dialog [data-resume-no]{background:var(--surface-muted);color:var(--text);border:1px solid var(--border)}
.restaurant-order-note textarea{box-sizing:border-box;width:100%;resize:vertical;border:1px solid var(--border);border-radius:12px;padding:12px;background:var(--surface-muted);color:var(--text);font:inherit}
.restaurant-order-note small{color:var(--muted);text-align:right}
.restaurant-add-more{background:var(--surface-muted);color:var(--primary);border:1px solid var(--border);border-radius:12px;padding:9px 13px;margin-bottom:12px}
html[data-customer-view="restaurant"] #cart-modal .cart-item{animation:none!important;opacity:1!important;transform:none!important}
html[data-customer-view="restaurant"] #cart-modal .cart-summary{background:var(--surface-muted)!important;color:var(--text)!important}
.restaurant-cart-recommendations h3{font-size:16px;margin:20px 0 12px}
.restaurant-recommendation-grid{display:flex;gap:10px;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:var(--border) transparent;padding:0 0 8px}
.restaurant-recommendation-grid article{position:relative;flex:0 0 155px;min-width:0;scroll-snap-align:start;overflow:hidden;border-radius:13px;background:var(--surface-muted)}
.restaurant-highlight-track{display:flex;gap:10px;overflow:auto;scroll-snap-type:x proximity;scrollbar-width:none;padding:3px 0 10px}
.restaurant-highlight-track article{position:relative;flex:0 0 145px;overflow:hidden;border-radius:13px;background:var(--surface-muted);scroll-snap-align:start}
.restaurant-highlight-track article>button{display:grid;width:100%;border:0;background:transparent;color:var(--text);text-align:left;padding:0 0 10px;gap:7px}
.restaurant-highlight-track img{width:145px;height:105px;object-fit:cover}
.restaurant-highlight-track b,.restaurant-highlight-track article>button>span{padding:0 10px;font-size:12px}
.restaurant-highlight-track .restaurant-inline-quantity{position:absolute;right:4px;top:4px}
.restaurant-menu-highlights h3{font-size:16px;margin:18px 0 10px}
.restaurant-recommendation-grid article>button{display:grid;width:100%;padding:0 0 10px;border:0;background:transparent;color:var(--text);text-align:left;gap:6px}
.restaurant-recommendation-grid img{width:100%;height:115px;object-fit:cover}
.restaurant-recommendation-grid b,.restaurant-recommendation-grid article>button>span{padding:0 10px;font-size:12px}.restaurant-recommendation-grid b{color:var(--primary)}
#restaurant-order-editor{border:1px solid var(--border);border-radius:22px;background:var(--surface);color:var(--text);padding:0;width:min(520px,calc(100% - 24px));max-height:90dvh;overflow:auto}
#restaurant-order-editor::backdrop{background:#0009}
#restaurant-order-editor [data-editor-save]{flex:1;background:var(--primary);color:#fff;font-weight:700}
html[data-customer-view="restaurant"] #checkout-modal .checkout-content{background:var(--surface);color:var(--text)}
html[data-customer-view="restaurant"] #checkout-modal .checkout-block{background:var(--surface-muted);border-color:var(--border)}
html[data-customer-view="restaurant"] #checkout-modal input,html[data-customer-view="restaurant"] #checkout-modal textarea{background:var(--surface);color:var(--text);border-color:var(--border)}
@media(max-width:600px){html[data-customer-view="restaurant"] #cart-modal>.modal-content{width:100%;height:min(620px,100%);max-height:100%;min-height:0;border-radius:22px 22px 0 0;padding:16px}html[data-customer-view="restaurant"] #cart-modal{padding:0!important}#restaurant-order-editor{align-self:end;margin:auto auto 0;width:100%;max-width:600px;border-radius:22px 22px 0 0}}
.restaurant-resume-dialog{background:rgba(245,249,255,.24);border:1px solid #ffffff70;backdrop-filter:blur(9px) saturate(130%);-webkit-backdrop-filter:blur(9px) saturate(130%);box-shadow:0 20px 60px #07132930,inset 0 1px 0 #ffffff60;color:#102348}
.restaurant-resume-dialog::backdrop{background:rgba(10,20,35,.18)}
.restaurant-resume-dialog h2{color:inherit;text-shadow:0 1px 1px #ffffff50}
.restaurant-resume-dialog p{color:#253d61}
.restaurant-resume-dialog :is([data-resume-no],[data-switch-no]){background:#ffffff20;border-color:#ffffff65;color:inherit;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
html[data-theme="dark"] .restaurant-resume-dialog{background:rgba(28,43,68,.26);color:#f4f7ff;border-color:#ffffff40;text-shadow:0 1px 4px #07132970}
html[data-theme="dark"] .restaurant-resume-dialog p{color:#e1eaf9}
/* A single, calm checkout footer; the total need not repeat inside the button. */
html body #cart-modal .restaurant-cart-footer{
  margin-top:10px;padding:12px!important;border:1px solid rgba(160,182,226,.45);
  border-radius:20px;background:linear-gradient(135deg,rgba(255,255,255,.95),rgba(235,242,255,.94));
  box-shadow:0 8px 24px rgba(24,53,105,.12),inset 0 1px 0 #fff;
}
html body #cart-modal .restaurant-cart-footer .cart-summary{
  background:transparent!important;border:0!important;box-shadow:none!important;
  padding:2px 2px 12px!important;margin:0!important;border-radius:0;font-size:12px;
}
html body #cart-modal .restaurant-cart-footer .cart-summary::after{display:none}
html body #cart-modal .restaurant-cart-footer #cart-total{font-size:25px;line-height:1.2;letter-spacing:-.03em;text-shadow:none}
html body #cart-modal .restaurant-cart-footer #cart-summary-label{font-size:12px;font-weight:600;color:#52617a}
html body #cart-modal .restaurant-cart-footer #checkout-button{
  min-height:48px;margin:0!important;padding:12px 46px 12px 12px;font-size:14px;
  border-radius:13px;line-height:1.4;white-space:normal;
}
html[data-theme="dark"] body #cart-modal .restaurant-cart-footer{background:linear-gradient(135deg,#263650,#203049);border-color:#465976;box-shadow:0 8px 24px #08132233}
html[data-theme="dark"] body #cart-modal .restaurant-cart-footer #cart-summary-label{color:#c4d0e5}
