/* Review-only presentation; narrow layouts receive no candidate geometry. */
#desktopMenuCartMount,#desktopCheckoutCartMount,#desktopSummaryActions,#desktopEditActions,#desktopCloseError,#desktopR3Summary,#desktopOriginalControls,#desktopCheckoutBrand,#desktopCheckoutTools{display:none}
@media(min-width:1367px){
 body[data-desktop-basket=true]{padding-right:370px!important;box-sizing:border-box}
 body[data-desktop-basket=true] .navbar-container{width:calc(100% - 370px)!important;left:0!important;right:370px!important;transform:none!important}
 body[data-desktop-basket=true] #desktopNavMenu{left:100px!important;right:390px!important;width:auto!important;overflow-x:auto}
 body[data-desktop-basket=true] #desktopNavMenu button{flex-shrink:0}
 body[data-desktop-basket=true] #desktopNavMenu #desktopNavCustomerGuest,body[data-desktop-basket=true] #desktopNavMenu #desktopNavCustomerButton{position:static!important;right:auto!important}
 body[data-desktop-basket=true] #desktopNavCartButton{display:none!important}
 body[data-desktop-basket=true]>.section-shell{width:calc(100% - 64px)!important;max-width:1100px!important;margin-inline:auto!important}
 body[data-desktop-basket=true] #desktopCartBackdrop{display:none!important}
 body[data-desktop-basket=true] #desktopMenuCartMount{display:block;position:fixed;right:0;top:0;width:350px;height:100dvh;z-index:90;overflow:auto;background:var(--site-surface,#fff)}
 body[data-desktop-basket=true] #mobileCart{position:static!important;transform:none!important;visibility:visible!important;display:block!important;pointer-events:auto!important;opacity:1!important;width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;box-shadow:none}
 #desktopMenuCartMount #mobileCart{margin:0}
 #desktopMenuCartMount #touchCartClose{display:none}
 [data-desktop-checkout=true] .customer-details-sheet{width:min(1100px,calc(100vw - 64px));max-width:none;max-height:calc(100dvh - 48px);height:calc(100dvh - 48px);display:grid;grid-template-columns:minmax(0,1.2fr) minmax(340px,1fr);grid-template-rows:auto minmax(0,1fr) auto auto;gap:12px 20px;overflow:hidden}
 [data-desktop-checkout=true] .customer-details-header{grid-column:1/-1}
 [data-desktop-checkout=true] #touchCustomerScroll{display:block;grid-column:1;grid-row:2;min-height:0;overflow:auto}
 [data-desktop-checkout=true] #desktopCheckoutCartMount{display:block;grid-column:2;grid-row:2;min-height:0;overflow:auto;overscroll-behavior:contain}
 [data-desktop-checkout=true] #desktopSummaryActions,[data-desktop-checkout=true] #desktopEditActions:not([hidden]){display:flex;gap:8px;grid-column:1;grid-row:3;flex-wrap:wrap}
 [data-desktop-checkout=true] #desktopEditActions:not([hidden])~#desktopSummaryActions{grid-row:4}
 [data-desktop-checkout=true] .touch-customer-footer{display:block;grid-column:2;grid-row:3 / 5;position:static}
 [data-desktop-checkout=true] #desktopCloseError:not([hidden]){display:block;grid-column:1/-1;overflow:auto}
 [data-desktop-checkout=true][data-desktop-view=summary] #customerDetailsFieldsMount.customer-details-fields-hidden,[data-desktop-checkout=true][data-desktop-view=summary] #customerDetailsLookupMount{display:none}
 [data-desktop-checkout=true] #customerDetailsSummary:not(.hidden){display:block}
 [data-desktop-checkout=true] .customer-details-compact-controls{display:flex;flex-direction:column;gap:16px}
 [data-desktop-checkout=true] #touchCustomerScroll>*{max-width:100%;min-width:0;box-sizing:border-box}
 [data-desktop-checkout=true] :is(.customer-details-order-toggle,.customer-details-payment-toggle){max-width:100%;width:100%;min-width:0;box-sizing:border-box}
 [data-desktop-checkout=true] .touch-customer-contact{display:block;margin-top:20px}
 [data-desktop-checkout=true] .customer-details-date-row{margin-top:16px}
 body[data-desktop-basket=true] #touchSuppliesToggle:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 12px;width:100%;padding:10px 0;background:none;border:0;border-radius:0;border-block:1px solid var(--site-line,#ccc);color:inherit;text-align:left}
 body[data-desktop-basket=true] #touchSuppliesToggle [data-supplies-label]{grid-column:1;grid-row:1;font-size:14px;font-weight:700}
 body[data-desktop-basket=true] #touchSuppliesSummary{grid-column:1;grid-row:2;font-size:12px}
 body[data-desktop-basket=true] #touchSuppliesToggle .touch-supplies-indicator{grid-column:2;grid-row:1 / 3;align-self:center;font-size:13px}
 body[data-desktop-basket=true] #touchSuppliesToggle .touch-supplies-indicator{color:var(--site-accent-text,#a23d32)}
 [data-desktop-checkout=true] .checkout-top-navbar,[data-desktop-checkout=true] #mobileCart .checkout-btn{display:none!important}
 [data-desktop-checkout=true] #mobileCheckoutButton,[data-desktop-checkout=true] .touch-cart-footer{display:none!important}
 [data-desktop-checkout=true] #desktopCheckoutCartMount .cart-section{padding:12px;margin:0}
 [data-desktop-checkout=true] #desktopCheckoutCartMount #cart{max-height:none;overflow:visible}
 [data-desktop-checkout=true] button{flex-shrink:0}
 #desktopEditActions button,#desktopSummaryActions button,#desktopCloseRetry{padding:10px 14px;border:1px solid var(--site-border,#ccc);border-radius:12px;background:var(--site-surface,#fff);color:inherit;cursor:pointer}
 html[data-theme=dark] body[data-desktop-basket=true] #mobileCart,
 html[data-theme=dark] body[data-desktop-basket=true] #mobileCart :is(.cart-left,.cart-summary,.price-details){background:var(--site-surface)!important;color:var(--site-ink)!important}
 html[data-theme=dark] body[data-desktop-basket=true] #mobileCart :is(.cart-item-name,.cart-item-price,.price-row,.cart-item-details){color:var(--site-ink)!important}
 html[data-theme=dark] body[data-desktop-basket=true] #mobileCart :is(.cart-qty-control,.apply-discount-btn){background:var(--site-raised)!important;color:var(--site-ink)!important}
 html[data-theme=dark] body[data-desktop-basket=true] #mobileCart :is(.touch-cart-choice-summary,.cart-item-toppings-token){color:var(--site-muted)!important}
 html[data-theme=dark] body[data-desktop-basket=true] #mobileCart :is(.cart-qty-display,.price-row>span,#totalDisplay){color:var(--site-ink)!important}
 body[data-desktop-basket=true] #mobileCart .cart-qty-button{background:var(--site-raised,#f0f1eb)!important;color:var(--site-accent-text,#b93830)!important}
 [data-desktop-checkout=true] #customerDetailsSave{background:var(--site-accent,#b83e33)!important;color:#fff!important}
}
/* Accepted r3: compact left cards, 420px order summary, readable fixed-height items.
   Every rule is desktop + acquired-view scoped; original narrow geometry is untouched. */
@media(min-width:1367px){
 #customerDetailsModal[data-desktop-checkout=true]{display:block;overflow-y:auto;padding:26px 0 48px;background:var(--site-canvas,#f7f6f2)}
 [data-desktop-checkout=true] .customer-details-backdrop{display:none}
 [data-desktop-checkout=true] .customer-details-sheet{position:relative;margin:0 auto;width:1100px;max-width:calc(100vw - 64px);height:auto;max-height:none;overflow:visible;grid-template-columns:minmax(0,1fr) 420px;grid-template-rows:auto auto auto auto;gap:0 24px;background:transparent;border:0;border-radius:0;box-shadow:none;padding:0}
 [data-desktop-checkout=true] .customer-details-header{padding:12px 0 24px;grid-column:1/-1;grid-row:1}
 [data-desktop-checkout=true] .customer-details-grabber{display:none}
 [data-desktop-checkout=true] #desktopR3Summary{display:block;grid-column:1;grid-row:2 / 4;min-width:0}
 [data-desktop-checkout=true] #touchCustomerScroll{display:none}
 [data-desktop-checkout=true] #desktopCheckoutCartMount{align-self:start;grid-column:2;grid-row:2;overflow:visible;border:1px solid var(--site-line,#e4e5dd);border-radius:14px 14px 0 0;background:var(--site-surface,#fff)}
 .desktop-r3-card{background:var(--site-surface,#fff);border:1px solid var(--site-line,#e4e5dd);border-radius:14px;padding:20px 24px;margin-bottom:18px;color:var(--site-ink,#242a26)}
 .desktop-r3-card h2,.desktop-r3-card-head h2{font-size:18px;margin:0 0 8px}
 .desktop-r3-head{display:flex;align-items:center;justify-content:space-between}
 #desktopModeBadge{font-size:11px;padding:4px 9px;border-radius:6px;background:var(--site-raised,#f0f1eb);color:var(--site-accent-text,#b93830)}
 .desktop-r3-row{display:grid;width:100%;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:14px;padding:17px 0;background:none;border:0;border-bottom:1px solid var(--site-line,#e4e5dd);border-radius:0;color:inherit;text-align:left;font:inherit;cursor:pointer}
 .desktop-r3-row:last-child{border-bottom:0;padding-bottom:2px}.desktop-r3-row>span:first-child{color:var(--site-accent-text,#b93830);font-size:20px}.desktop-r3-row strong{font-size:14px}
 .desktop-r3-row small,.desktop-r3-offer small{display:block;font-size:12px;color:var(--site-muted,#62695f);margin-top:3px;overflow-wrap:anywhere}
 .desktop-r3-note{background:var(--site-raised,#f0f1eb);color:var(--site-muted,#62695f);padding:11px 13px;border-radius:8px;font-size:12px}
 .desktop-r3-offer{display:flex;width:100%;align-items:center;justify-content:space-between;gap:14px;padding:9px 0;border:0;background:none;color:inherit;text-align:left;cursor:pointer;font-size:13px}
 .desktop-r3-offer>span:last-child{color:var(--site-accent-text,#b93830);font-size:12px;white-space:nowrap}
 .desktop-r3-footnote{font-size:11px;color:var(--site-muted,#62695f)}
 .desktop-r3-card-head{padding:20px 24px 16px}.desktop-r3-card-head>strong,.desktop-r3-card-head>small{display:block}.desktop-r3-card-head>strong{margin-top:18px}
 #desktopShowItems{background:none;border:0;color:var(--site-accent-text,#b93830);padding:5px 0;font-size:12px;cursor:pointer}
 [data-desktop-checkout=true] #desktopCheckoutCartMount .cart-section{padding:0!important;border:0;border-radius:0;background:transparent}
 [data-desktop-checkout=true] #mobileCart .cart-left,[data-desktop-checkout=true] #mobileCart .cart-summary{padding:0!important;border:0;box-shadow:none;background:transparent}
 [data-desktop-checkout=true] #mobileCart :is(.checkout-top-navbar,.cart-title,.touch-cart-header,.touch-remark-label,#remark,.discount-row,.touch-tip-row,.spacer){display:none!important}
 [data-desktop-checkout=true] #mobileCart #cart{box-sizing:border-box;height:240px;min-height:240px;max-height:240px;overflow-y:auto;padding:0 24px;margin:0;scrollbar-gutter:stable}
 [data-desktop-checkout=true][data-desktop-items=collapsed] #mobileCart #cart{display:none}
 [data-desktop-checkout=true] #cart li{overflow-wrap:anywhere;min-width:0}
 [data-desktop-checkout=true] #mobileCart .price-details{padding:17px 24px 12px!important;border-top:1px solid var(--site-line,#e4e5dd);border-radius:0}
 [data-desktop-checkout=true] .touch-customer-footer{grid-column:2;grid-row:3;align-self:start;padding:0 24px 20px;border:1px solid var(--site-line,#e4e5dd);border-top:0;border-radius:0 0 14px 14px;background:var(--site-surface,#fff)}
 [data-desktop-checkout=true] .touch-customer-total{display:none}
 [data-desktop-checkout=true] #customerDetailsSave{width:100%;border-radius:10px}
 [data-desktop-checkout=true] #desktopSummaryActions{grid-row:4;grid-column:1;margin:12px 0}
 [data-desktop-checkout=true] #desktopEditDetails{display:none}
 [data-desktop-checkout=true][data-desktop-view=edit] #desktopR3Summary{display:none}
 [data-desktop-checkout=true][data-desktop-view=edit] #touchCustomerScroll{display:block;grid-column:1;grid-row:2 / 4;overflow:visible;background:var(--site-surface,#fff);padding:24px;border:1px solid var(--site-line,#e4e5dd);border-radius:14px}
 [data-desktop-checkout=true][data-desktop-view=edit] #desktopEditActions{grid-row:4;grid-column:1;margin:12px 0}
 [data-desktop-checkout=true][data-desktop-view=edit] #desktopSummaryActions{grid-row:5}
 [data-desktop-checkout=true] #desktopEditActions:not([hidden])~#desktopSummaryActions{grid-row:5}
 [data-desktop-checkout=true][data-desktop-view=edit] #touchCustomerScroll :is(.touch-customer-intro,.touch-customer-order){display:none}
 [data-desktop-checkout=true][data-desktop-view=edit] #touchCustomerScroll :is(.touch-customer-schedule,.touch-customer-payment,.customer-details-date-row,.touch-customer-contact){display:none}
 [data-desktop-section=customer] #touchCustomerScroll .touch-customer-contact,[data-desktop-section=address] #touchCustomerScroll .touch-customer-contact{display:block!important}
 [data-desktop-section=time] #touchCustomerScroll :is(.touch-customer-schedule,.customer-details-date-row){display:block!important}
 [data-desktop-section=payment] #touchCustomerScroll .touch-customer-payment{display:block!important}
 [data-desktop-checkout=true][data-desktop-view=edit]:is([data-desktop-section=discount],[data-desktop-section=tip],[data-desktop-section=remark]) #touchCustomerScroll{display:none}
 [data-desktop-checkout=true][data-desktop-view=edit]:is([data-desktop-section=discount],[data-desktop-section=tip],[data-desktop-section=remark]) #desktopOriginalControls{display:block;grid-column:1;grid-row:2 / 4;background:var(--site-surface,#fff);padding:24px;border:1px solid var(--site-line,#e4e5dd);border-radius:14px}
 #desktopOriginalControls :is(select,textarea){max-width:100%;font:inherit;background:var(--site-raised,#f0f1eb);color:var(--site-ink,#242a26);border:1px solid var(--site-line,#e4e5dd);padding:12px;border-radius:8px}
 #desktopOriginalControls textarea{width:100%;min-height:90px}
 #desktopSuppliesMount #touchSuppliesToggle{border:0;padding:0}
 [data-desktop-checkout=true] .desktop-r3-card{background:var(--site-surface,#fff)!important;border:1px solid var(--site-line,#e4e5dd)!important;border-radius:14px!important;padding:20px 24px!important;margin:0 0 18px!important;box-shadow:none!important}
 [data-desktop-checkout=true] :is(.desktop-r3-card,.desktop-r3-card-head) h2{font-size:18px!important;margin:0 0 8px!important;text-align:left!important;line-height:1.4!important;letter-spacing:-.25px}
 [data-desktop-checkout=true] .customer-details-header{background:transparent!important}
 [data-desktop-checkout=true] .customer-details-sheet{background:transparent!important}
 [data-desktop-checkout=true] .customer-details-header{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center}
 [data-desktop-checkout=true] .customer-details-header>div:first-of-type{grid-column:2;grid-row:1}
 [data-desktop-checkout=true] .customer-details-header>div:not([id]){grid-column:1;grid-row:2}
 [data-desktop-checkout=true] #desktopCheckoutBrand{display:block;font-size:22px;grid-column:1;grid-row:1}
 [data-desktop-checkout=true] #desktopCheckoutTools{display:flex;gap:8px;align-items:center;grid-column:2;grid-row:1}
 [data-desktop-checkout=true] #desktopCheckoutTools #touchLanguage{display:block;border:1px solid var(--site-line,#ccc);border-radius:8px;background:var(--site-surface,#fff);color:inherit;padding:8px}
 [data-desktop-checkout=true] #customerDetailsClose{position:static;grid-column:2;grid-row:2;justify-self:end}
 [data-desktop-checkout=true] #customerDetailsTitle{font-size:26px!important;line-height:1.4!important;margin:0!important}
 [data-desktop-checkout=true] #cart :is(.cart-item-name,.cart-item-price){font-size:14px!important}
 [data-desktop-checkout=true] #cart .cart-item-details{font-size:12px!important}
 [data-desktop-checkout=true] #cart .cart-qty-control{flex-shrink:0}
 [data-desktop-checkout=true] #cart .cart-item{padding:12px 0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
}
@media(min-width:1367px) and (max-height:800px){
 [data-desktop-checkout=true] #desktopCheckoutCartMount{position:static;max-height:none}
 [data-desktop-checkout=true] .customer-details-sheet{height:auto;max-height:none}
}
/* r2 persistent menu basket. The original r3 mount and narrow layouts are excluded. */
@media(min-width:1367px){
 body[data-desktop-basket=true] #desktopMenuCartMount{right:16px;top:92px;width:340px;height:calc(100dvh - 116px);overflow:hidden;border:1px solid var(--site-line,#e4e5dd);border-radius:16px;box-sizing:border-box}
 body[data-desktop-basket=true] #desktopMenuCartMount #mobileCart{display:flex!important;flex-direction:column;height:100%!important;min-height:0!important;overflow:hidden;background:var(--site-surface,#fff)}
 #desktopMenuCartMount #mobileCart .cart-left{flex:1;min-height:0;background:var(--site-surface,#fff)}
 #desktopMenuCartMount #mobileCart .cart-items{display:flex;flex-direction:column;overflow:hidden;padding:0}
 #desktopMenuCartMount #mobileCart .checkout-top-navbar{flex:none;background:var(--site-surface,#fff)!important}
 #desktopMenuCartMount #mobileCart #cart{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;margin:0;padding:8px 16px 12px}
 #desktopMenuCartMount #mobileCart #cart li.cart-item{padding:12px 0;border:0;border-bottom:1px solid var(--site-line,#e4e5dd);border-radius:0;background:transparent;box-shadow:none}
 #desktopMenuCartMount #cart .cart-item-header{display:flex;flex-direction:column;align-items:stretch;gap:8px}
 #desktopMenuCartMount #cart .cart-item-label{width:100%;font-size:14px}
 #desktopMenuCartMount #cart .cart-item-name{overflow-wrap:normal;word-break:normal;font-size:14px}
 #desktopMenuCartMount #cart .cart-item-price{font-size:14px}
 #desktopMenuCartMount #cart .cart-qty-control{align-self:flex-end;font-size:14px}
 #desktopMenuCartMount #cart .touch-cart-choice-summary{font-size:12px;line-height:1.5}
 #desktopMenuCartMount #mobileCart .cart-summary{flex:none;max-height:calc(100% - 160px);overflow-y:auto;overscroll-behavior:contain;padding:12px 16px 16px;font-size:14px;background:var(--site-surface,#fff);border-top:1px solid var(--site-line,#e4e5dd)!important}
 #desktopMenuCartMount #mobileCart :is(#remark,.touch-remark-label,.price-details .price-row:not(.total-row),.price-details .spacer,.btw-note){display:none!important}
 #desktopMenuCartMount #mobileCart .price-details{padding:0!important;background:transparent}
 #desktopMenuCartMount #mobileCart .total-row{font-size:18px;line-height:1.4;padding:12px 0;margin:0;border:0}
 #desktopMenuCartMount #mobileCart .checkout-btn{margin:0;width:100%;height:48px;padding:12px 16px;border-radius:10px;background:var(--site-accent,#b93830)!important;color:#fff!important;box-shadow:none!important}
}
