/* This file intentionally loads after the legacy theme cascade. */
.restaurant-results-mobile-header{display:none}
@media (min-width:901px){
  footer .footer-container{grid-template-columns:minmax(280px,1fr) minmax(220px,.7fr)!important}
  footer .footer-container>.footer-col:nth-child(n+3),footer .footer-bottom{display:none!important}
}

/* Cart mobile action layout: keep total price and Remove on separate rows. */
@media(max-width:900px){
  .cart-item-row{grid-template-rows:auto auto auto!important;padding-bottom:12px!important;overflow:visible!important}
  .cart-item-row .cart-item-img{grid-row:1/4!important}
  .cart-item-row .cart-item-price{grid-column:3!important;grid-row:2!important;align-self:center!important;justify-self:end!important;margin:0!important;transform:none!important}
  .cart-item-row .cart-item-remove{position:static!important;grid-column:3!important;grid-row:3!important;align-self:start!important;justify-self:end!important;margin:0!important;padding:2px 0 0!important;transform:none!important;z-index:1!important}
}

/* Nearby / From-To mobile results: keep exactly three compact restaurant
   entries in one results viewport, matching the customer-app composition. */
@media(max-width:900px){
  body.restaurant-results-view.nearby-results-view .restaurant-results-grid,
  body.restaurant-results-view.route-results-view .restaurant-results-grid{display:block!important;width:100%!important;padding:0 0 86px!important;gap:0!important}
  body.restaurant-results-view.nearby-results-view .restaurant-result-card,
  body.restaurant-results-view.route-results-view .restaurant-result-card{box-sizing:border-box!important;display:block!important;width:100%!important;height:calc((100svh - 215px)/3)!important;min-height:190px!important;max-height:248px!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden!important;background:#fff!important}
  body.restaurant-results-view.nearby-results-view .restaurant-result-card+.restaurant-result-card,
  body.restaurant-results-view.route-results-view .restaurant-result-card+.restaurant-result-card{border-top:7px solid #eaf6f8!important}
  body.restaurant-results-view.nearby-results-view .restaurant-result-card>div[onclick],
  body.restaurant-results-view.route-results-view .restaurant-result-card>div[onclick]{display:grid!important;grid-template-rows:minmax(86px,46%) minmax(0,54%)!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;overflow:hidden!important}
  body.restaurant-results-view.nearby-results-view .restaurant-result-card img,
  body.restaurant-results-view.route-results-view .restaurant-result-card img{display:block!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;object-fit:cover!important;object-position:center!important;border-radius:0!important}
  body.restaurant-results-view.nearby-results-view .restaurant-result-copy,
  body.restaurant-results-view.route-results-view .restaurant-result-copy{box-sizing:border-box!important;display:block!important;width:100%!important;height:100%!important;min-height:0!important;padding:6px 42px 6px 12px!important;background:#fff!important;color:#17324d!important;overflow:hidden!important}
  body.restaurant-results-view.nearby-results-view .restaurant-result-copy h3,
  body.restaurant-results-view.route-results-view .restaurant-result-copy h3{max-width:100%!important;margin:0 0 3px!important;font-size:.92rem!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.restaurant-results-view.nearby-results-view .restaurant-card-eta,
  body.restaurant-results-view.route-results-view .restaurant-card-eta{margin:0 0 2px!important;font-size:.66rem!important;line-height:1.1!important;white-space:nowrap!important}
  body.restaurant-results-view.nearby-results-view .restaurant-cuisine,
  body.restaurant-results-view.route-results-view .restaurant-cuisine,
  body.restaurant-results-view.nearby-results-view .restaurant-open-instruction,
  body.restaurant-results-view.route-results-view .restaurant-open-instruction{margin:1px 0!important;font-size:.62rem!important;line-height:1.1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.restaurant-results-view.nearby-results-view .restaurant-menu-categories,
  body.restaurant-results-view.route-results-view .restaurant-menu-categories{display:flex!important;flex-wrap:nowrap!important;gap:3px!important;margin:3px 0!important;max-height:23px!important;overflow:hidden!important}
  body.restaurant-results-view.nearby-results-view .restaurant-menu-categories span,
  body.restaurant-results-view.route-results-view .restaurant-menu-categories span{flex:0 0 auto!important;padding:2px 7px!important;font-size:.57rem!important;line-height:1.15!important}
  body.restaurant-results-view.nearby-results-view .restaurant-meta-row,
  body.restaurant-results-view.route-results-view .restaurant-meta-row{display:flex!important;align-items:center!important;gap:7px!important;margin:2px 0 0!important;font-size:.61rem!important;line-height:1.05!important;white-space:nowrap!important}
  body.restaurant-results-view.nearby-results-view .restaurant-status-pill,
  body.restaurant-results-view.route-results-view .restaurant-status-pill{top:6px!important;right:10px!important;padding:3px 9px!important;font-size:.58rem!important}
}

/* Mobile cart: match the customer app without changing desktop checkout. */
.mobile-cart-title,.mobile-clear-label{display:none}
@media(max-width:900px){
  .toast-container{top:max(10px,env(safe-area-inset-top))!important;bottom:auto!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:min(94vw,390px)!important;gap:6px!important;align-items:center!important;z-index:2147483647!important}
  .toast{box-sizing:border-box!important;width:auto!important;max-width:min(92vw,360px)!important;min-height:0!important;padding:9px 12px!important;gap:8px!important;border-left-width:3px!important;border-radius:10px!important;font-size:.72rem!important;line-height:1.3!important;font-weight:700!important}
  .toast i{font-size:.86rem!important;flex:0 0 auto!important}
  #payment-success-modal{padding:8px!important;align-items:center!important}
  #payment-success-modal .success-card{width:calc(100% - 12px)!important;max-width:420px!important;max-height:calc(100dvh - 24px)!important;padding:18px 14px!important;border-radius:20px!important;overflow-y:auto!important}
  #payment-success-modal .success-icon{font-size:2.55rem!important;margin-bottom:9px!important}
  #payment-success-modal .success-card h3{margin:0 0 5px!important;font-size:1.12rem!important;line-height:1.2!important}
  #payment-success-modal #receipt-payment-status{margin:0 0 4px!important;font-size:.76rem!important;line-height:1.25!important}
  #payment-success-modal #receipt-delivery-message{margin:0!important;font-size:.7rem!important;line-height:1.35!important}
  #payment-success-modal .success-details{margin:11px 0!important;padding:11px!important;border-radius:13px!important;font-size:.7rem!important;line-height:1.3!important}
  #payment-success-modal .success-details div{margin-bottom:5px!important;gap:10px!important}
  #payment-success-modal>.success-card>.btn{min-height:40px!important;margin-bottom:7px!important;padding:8px 10px!important;font-size:.72rem!important;border-radius:11px!important}
  #payment-success-modal .modal-close{top:9px!important;right:11px!important;font-size:1.05rem!important}
  body:has(.cart-section),body:has(#arrival-eta-section){overflow-x:hidden!important;background:#eef8fa!important}
  body:has(.cart-section) .page-container{width:100%!important;max-width:100%!important;padding:0 0 94px!important;overflow-x:hidden!important}
  body:has(.cart-section) .menu-section{margin:0!important;padding:16px 20px 12px!important;background:#fff!important;border-bottom:1px solid #d9e8ec!important}
  body:has(.cart-section) .menu-section .section-header{margin:0!important;display:flex!important;align-items:center!important;justify-content:space-between!important}
  body:has(.cart-section) .menu-section .section-tag,body:has(.cart-section) #cart-flow-subtitle{display:none!important}
  body:has(.cart-section) .menu-section .section-title{margin:0!important;font-size:1.35rem!important;line-height:1.1!important;color:#17324d!important}
  .desktop-cart-title,.desktop-clear-label{display:none!important}.mobile-cart-title,.mobile-clear-label{display:inline!important}
  .cart-section{display:block!important;width:100%!important;max-width:100%!important;margin:0!important;padding:12px 14px!important;overflow:visible!important}
  .cart-left-column,.cart-right-column{width:100%!important;max-width:100%!important;min-width:0!important;gap:12px!important}
  .cart-ordering-from{box-sizing:border-box!important;display:flex!important;flex-direction:column!important;gap:2px!important;margin:-2px -14px 10px!important;padding:10px 14px 12px!important;border-bottom:1px solid #dcebed!important;background:#fff!important;color:#718995!important;font-size:.75rem!important;line-height:1.25!important}
  .cart-ordering-from[style*="display:none"],.cart-ordering-from[style*="display: none"]{display:none!important}
  .cart-ordering-from strong{color:#17324d!important;font-size:.9rem!important;line-height:1.2!important;overflow-wrap:anywhere!important}
  .dining-edit-order{box-sizing:border-box!important;margin:0 0 12px!important;padding:17px 14px!important;border:1px solid #dcebed!important;border-radius:24px!important;background:#fff!important;box-shadow:0 8px 22px rgba(23,50,77,.06)!important}
  .dining-edit-order h3{margin:0 0 7px!important;font-family:Georgia,serif!important;font-size:1.18rem!important;color:#17324d!important}
  .dining-edit-order p{margin:0 0 13px!important;color:#718995!important;font-size:.72rem!important;line-height:1.45!important}
  .dining-edit-order .btn{width:100%!important;min-height:46px!important;border:2px solid #ff8841!important;border-radius:16px!important;background:#fff!important;color:#ef8745!important;font-size:.84rem!important;font-weight:800!important}
  .cart-items-container,.priority-section,#arrival-eta-section,.cart-summary-container{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;border:1px solid #dcebed!important;border-radius:24px!important;background:#fff!important;box-shadow:0 8px 22px rgba(23,50,77,.06)!important;overflow:hidden!important}
  .cart-items-container{padding:17px 14px!important}
  .cart-items-heading{margin:0 0 14px!important}
  .cart-items-heading h3{font-family:Georgia,serif!important;font-size:1.2rem!important;color:#17324d!important}
  .cart-clear-button{border:0!important;padding:4px!important;color:#ef8745!important;background:transparent!important;font-size:.78rem!important;box-shadow:none!important}
  .cart-clear-button i{display:none!important}
  .cart-items-list{display:flex!important;flex-direction:column!important;gap:10px!important;min-width:0!important}
  .cart-item-row{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;display:grid!important;grid-template-columns:78px minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;column-gap:12px!important;row-gap:7px!important;padding:13px!important;border:0!important;border-radius:18px!important;background:#fff!important;box-shadow:0 5px 18px rgba(23,50,77,.08)!important;overflow:hidden!important;transform:none!important}
  .cart-item-row .drag-handle{display:none!important}
  .cart-item-row .cart-item-img{grid-column:1!important;grid-row:1/3!important;width:78px!important;height:78px!important;min-width:78px!important;object-fit:cover!important;border-radius:13px!important;align-self:center!important}
  .cart-item-row .cart-item-info{grid-column:2!important;grid-row:1!important;min-width:0!important;align-self:start!important;overflow:hidden!important}
  .cart-item-row .cart-item-name{margin:0 0 3px!important;font-size:.88rem!important;line-height:1.15!important;color:#17324d!important;white-space:normal!important;overflow-wrap:anywhere!important}
  .cart-parcel-covered{display:inline-flex!important;align-items:center!important;gap:4px!important;margin:2px 0 4px!important;padding:3px 7px!important;border-radius:999px!important;background:#fff2e5!important;color:#ef8745!important;font-size:.6rem!important;font-weight:800!important;white-space:nowrap!important}
  .cart-item-row .cart-item-name i,.cart-item-row .cart-food-meta,.cart-item-row .cart-food-description,.cart-item-row .cart-customer-line{display:none!important}
  .cart-item-row .cart-item-info:after{content:'₹' attr(data-unit-price);display:none}
  .cart-item-row .cart-qty-controls{grid-column:2!important;grid-row:2!important;align-self:end!important;justify-self:start!important;display:flex!important;align-items:center!important;gap:9px!important;min-width:0!important}
  .cart-item-row .qty-btn{width:29px!important;height:29px!important;min-width:29px!important;padding:0!important;border:1px solid #d5e7eb!important;border-radius:9px!important;background:#f8fcfd!important;color:#17324d!important;font-size:.9rem!important}
  .cart-item-row .qty-val{min-width:12px!important;font-size:.82rem!important;font-weight:800!important;color:#17324d!important;text-align:center!important}
  .cart-item-row .cart-item-price{grid-column:3!important;grid-row:2!important;align-self:center!important;justify-self:end!important;font-size:.78rem!important;font-weight:800!important;color:#ef8745!important;white-space:nowrap!important}
  .cart-item-row .cart-priority-button{grid-column:3!important;grid-row:1!important;align-self:start!important;justify-self:end!important;width:auto!important;min-width:0!important;max-width:86px!important;min-height:30px!important;margin:0!important;padding:5px 10px!important;border:1px solid #f4d8c1!important;border-radius:999px!important;background:#fff7ef!important;color:#ef8745!important;font-size:.68rem!important;line-height:1!important;white-space:nowrap!important;box-shadow:none!important}
  .cart-item-row .cart-item-remove{grid-column:3!important;grid-row:2!important;align-self:end!important;justify-self:end!important;width:auto!important;height:auto!important;min-width:0!important;margin:0!important;padding:4px 0!important;border:0!important;background:transparent!important;color:#708a95!important;font-size:0!important;transform:translateY(24px)!important}
  .cart-item-row .cart-item-remove:after{content:'Remove';font-size:.68rem;font-weight:700;padding:5px 10px;border:1px solid #dbe7ea;border-radius:999px;background:#fff;color:#49636e}
  #priority-section{margin:14px 0 0!important;padding:17px 14px!important;overflow:visible!important}
  .priority-section-header{align-items:flex-start!important;gap:8px!important}
  .priority-section-header h3{font-family:Georgia,serif!important;font-size:1.15rem!important;color:#17324d!important}
  .priority-section-header p{font-size:.72rem!important;line-height:1.4!important;color:#718995!important}
  .priority-tag{flex:0 0 auto!important;padding:7px 9px!important;font-size:.6rem!important;line-height:1.2!important;border-radius:999px!important}
  .priority-dropzone{min-height:92px!important;margin-top:12px!important;padding:14px!important;border:1.5px dashed #d6e6ea!important;border-radius:16px!important;background:#f9fcfd!important}
  .priority-placeholder{font-size:.72rem!important;line-height:1.45!important;text-align:center!important;color:#78909b!important}
  .priority-dropzone:has(.priority-card){min-height:0!important;padding:8px!important;gap:7px!important}
  .priority-card{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;gap:4px 8px!important;padding:8px!important;border-radius:13px!important;background:#fff!important;border:1px solid #e1ecef!important;box-shadow:0 3px 10px rgba(23,50,77,.06)!important;transform:none!important}
  .priority-card-head{grid-column:1/-1!important;gap:6px!important;min-height:20px!important}
  .priority-order-badge{font-size:.59rem!important;letter-spacing:.2px!important;color:#ef8745!important}
  .priority-remove-btn{width:22px!important;height:22px!important;min-width:22px!important;font-size:.62rem!important;background:#fff5f2!important;color:#e85d4a!important}
  .priority-card-body{grid-column:1!important;grid-row:2!important;min-width:0!important;gap:8px!important}
  .priority-card-body img{width:44px!important;height:44px!important;min-width:44px!important;border-radius:9px!important}
  .priority-card-copy{min-width:0!important}
  .priority-card-copy h4{margin:0 0 2px!important;font-size:.72rem!important;line-height:1.12!important;color:#17324d!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .priority-card-copy p,.priority-item-meta{margin:0!important;font-size:.6rem!important;line-height:1.2!important;color:#718995!important}
  .priority-card .cart-customer-line{display:none!important}
  .priority-card-actions{grid-column:2!important;grid-row:2!important;align-self:center!important;gap:5px!important}
  .priority-card-actions .qty-btn{width:24px!important;height:24px!important;min-width:24px!important;padding:0!important;border-radius:7px!important;background:#f8fcfd!important;color:#17324d!important;font-size:.72rem!important}
  .priority-card-actions .qty-val{min-width:10px!important;font-size:.68rem!important;color:#17324d!important;text-align:center!important}
  #arrival-eta-section{margin-top:12px!important;padding:17px 14px!important;overflow:visible!important}
  #arrival-eta-section>h3{margin:0 0 8px!important;font-family:Georgia,serif!important;font-size:1.2rem!important;color:#17324d!important}
  #arrival-eta-section>p{margin:0 0 13px!important;font-size:.72rem!important;line-height:1.4!important;color:#718995!important}
  #arrival-eta-section .eta-options-container{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;margin:0!important;align-items:stretch!important}
  #arrival-eta-section .eta-option-card{box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:132px!important;margin:0!important;padding:13px 10px!important;display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;align-items:center!important;gap:8px!important;border:1.5px solid #17324d!important;border-radius:18px!important;background:#fff!important;overflow:hidden!important}
  #arrival-eta-section .eta-option-card.selected{border:2px solid #ef8745!important;background:#fff5ec!important;box-shadow:0 5px 14px rgba(239,135,69,.14)!important}
  #arrival-eta-section .eta-icon{width:38px!important;height:38px!important;min-width:38px!important;margin:0!important;box-shadow:none!important}
  #arrival-eta-section .eta-content{min-width:0!important;overflow:hidden!important}
  #arrival-eta-section .eta-content h4{margin:0 0 4px!important;font-family:inherit!important;font-size:.82rem!important;line-height:1.15!important;color:#17324d!important;overflow-wrap:anywhere!important}
  #arrival-eta-section .eta-content p{margin:0!important;font-size:.66rem!important;line-height:1.28!important;color:#718995!important;overflow-wrap:anywhere!important}
  #manual-eta-picker-container{grid-column:1/-1!important;min-width:0!important;margin-top:3px!important}
  #manual-eta-picker-container input{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important}
  #eta-helper-text{grid-column:1/-1!important;margin:11px 0 0!important;font-size:.68rem!important;line-height:1.4!important;color:#718995!important;overflow-wrap:anywhere!important}
  .cart-summary-container{margin-top:12px!important;padding:17px 14px!important;overflow:visible!important}
  .cart-summary-container .summary-title{font-family:Georgia,serif!important;font-size:1.2rem!important;color:#17324d!important}
  .cart-summary-container .summary-row{font-size:.76rem!important;gap:12px!important}
  .cart-summary-container *{min-width:0;overflow-wrap:anywhere}
  #summary-bill-details{border-top:1px solid #dcebed!important;padding-top:10px!important}
  .cart-summary-container .summary-row{display:flex!important;justify-content:space-between!important;align-items:center!important;margin:0!important;padding:9px 0!important;border-bottom:1px solid #eef4f6!important;color:#718995!important}
  .cart-summary-container .summary-row[style*="display:none"],.cart-summary-container .summary-row[style*="display: none"]{display:none!important}
  .cart-summary-container .summary-row.total{margin-top:3px!important;border-top:2px solid #dcebed!important;color:#17324d!important;font-weight:900!important;font-size:.86rem!important}
  .cart-summary-container .summary-row.total span:last-child{color:#ef8745!important;font-size:1.02rem!important}
  #dining-advance-row{box-sizing:border-box!important;margin:8px 0 0!important;padding:11px 10px!important;border:1.5px solid #f6b9a8!important;border-radius:14px!important;background:#fff8f5!important;color:#17324d!important}
  #dining-advance-row span:last-child{color:#ef8745!important;font-size:.9rem!important}
  #dining-balance-row{color:#718995!important}
  #dining-advance-note{box-sizing:border-box!important;flex-direction:column!important;gap:4px!important;margin:11px 0 0!important;padding:12px!important;border:1.5px solid #f7c7b8!important;border-radius:15px!important;background:#fff5f1!important;color:#17324d!important;font-size:.68rem!important;line-height:1.35!important}
  #dining-advance-note[style*="display:none"],#dining-advance-note[style*="display: none"]{display:none!important}
  #dining-advance-note strong{margin-bottom:3px!important;color:#ef8745!important;font-size:.78rem!important}
  #service-context-box{margin-top:11px!important;padding:11px!important;border-color:#f1d9bb!important;background:#fff!important}
  #service-context-box>div:first-child{font-size:.74rem!important}
  #service-mode-status{font-size:.78rem!important;color:#17324d!important}
  #service-mode-subtext{font-size:.66rem!important;line-height:1.4!important}
  #proceed-payment-trigger{width:100%!important;min-height:48px!important;margin-top:13px!important;border-radius:16px!important;background:#ff6b00!important;color:#fff!important;font-size:.86rem!important;font-weight:800!important}
  .checkout-add-more{width:100%!important;min-height:46px!important;margin-top:9px!important;border:2px solid #ff8841!important;border-radius:16px!important;background:#fff!important;color:#ef8745!important;font-size:.82rem!important;font-weight:800!important}
}
@media (max-width:900px) {
  body.restaurant-results-view .restaurant-results-mobile-header{display:grid!important;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;gap:8px;min-height:74px;padding:10px 16px;background:#fff;border-bottom:1px solid #dce8ed;color:#17324d}
  body.restaurant-results-view .restaurant-results-mobile-header a,body.restaurant-results-view .restaurant-results-mobile-header button{width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:14px;background:#f3f9fb;color:#17324d;font-size:1rem}
  body.restaurant-results-view .restaurant-results-mobile-header strong{font-family:var(--font-heading);font-size:1.34rem;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.restaurant-results-view.nearby-results-view .restaurant-discovery-section,
  body.restaurant-results-view.route-results-view .restaurant-discovery-section{padding:0 0 72px!important;background:#eff8fa!important}
  body.restaurant-results-view.nearby-results-view #restaurant-results-panel,
  body.restaurant-results-view.route-results-view #restaurant-results-panel{width:100vw!important;max-width:none!important;margin:0 0 0 calc(50% - 50vw)!important}
  body.restaurant-results-view.nearby-results-view #restaurant-results-panel .section-header,
  body.restaurant-results-view.route-results-view #restaurant-results-panel .section-header{position:relative;margin:0!important;padding:22px 92px 20px 20px!important;background:#fff!important;text-align:left!important;border-bottom:1px solid #dce8ed}
  body.restaurant-results-view.nearby-results-view #restaurant-results-panel .section-tag,
  body.restaurant-results-view.route-results-view #restaurant-results-panel .section-tag{display:none!important}
  body.restaurant-results-view.nearby-results-view #restaurant-results-panel .section-title,
  body.restaurant-results-view.route-results-view #restaurant-results-panel .section-title{display:none!important}
  body.restaurant-results-view.nearby-results-view #restaurant-results-panel .section-header p,
  body.restaurant-results-view.route-results-view #restaurant-results-panel .section-header p{margin:0!important;font-family:var(--font-heading);font-size:1.12rem!important;line-height:1.12!important;font-weight:800!important;color:#17324d!important}
  body.restaurant-results-view .restaurant-results-count{position:absolute;right:20px;bottom:20px;width:64px;color:#ff7d3b;font-size:.92rem;line-height:1.15;text-align:left}
  body.restaurant-results-view .restaurant-results-grid{display:block!important;width:100%!important;padding:0!important}
  body.restaurant-results-view .restaurant-result-card{display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden!important;background:#fff!important}
  body.restaurant-results-view .restaurant-result-card+ .restaurant-result-card{border-top:8px solid #eaf6f8!important}
  body.restaurant-results-view .restaurant-result-card>div[onclick]{display:block!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
  body.restaurant-results-view .restaurant-result-card img{display:block!important;width:100%!important;height:245px!important;min-height:0!important;object-fit:cover!important;object-position:center!important;border-radius:0!important}
  body.restaurant-results-view .restaurant-result-copy{display:block!important;padding:10px 20px 14px!important;background:#fff!important;overflow:hidden!important}
  body.restaurant-results-view .restaurant-result-copy h3{max-width:calc(100% - 66px)!important;font-size:1.2rem!important;line-height:1.05!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.restaurant-results-view .restaurant-cuisine{display:block!important;margin:3px 0!important;font-size:.72rem!important;line-height:1.15!important;color:#6f8992!important}
  body.restaurant-results-view .restaurant-open-instruction{display:block!important;margin:3px 0!important;color:#ef7d3f!important;font-size:.72rem!important;line-height:1.15!important;font-weight:800!important}
  body.restaurant-results-view .restaurant-meta-row{display:flex!important;align-items:center!important;gap:9px!important;margin:5px 0 0!important;color:#17324d!important;font-size:.68rem!important;font-weight:800!important}
  body.restaurant-results-view .restaurant-meta-row i{color:#f4b31f!important}
  body.restaurant-results-view .restaurant-menu-categories{margin:5px 0!important;gap:4px!important;max-height:none!important}
  body.restaurant-results-view .restaurant-menu-categories span{padding:2px 8px!important;font-size:.66rem!important}
  body.restaurant-results-view .restaurant-service-tags,body.restaurant-results-view .restaurant-favorite-chip{display:none!important}
  .restaurant-inline-invite-panel,.restaurant-invite-panel,.invite-share-panel{padding:10px!important;border-radius:16px!important;gap:7px!important}
  .restaurant-inline-invite-panel .invite-share-header .section-tag,.restaurant-inline-invite-panel .invite-share-header p{display:none!important}
  .restaurant-inline-invite-panel .invite-share-header{margin:0!important;padding:0!important}
  .restaurant-inline-invite-panel .invite-share-header .section-title{font-size:1.05rem!important;margin:0 0 5px!important}
  .restaurant-inline-invite-panel .invite-link-card{padding:8px!important;border-radius:12px!important}
  .restaurant-inline-invite-panel .invite-link-card label{font-size:.72rem!important;margin-bottom:4px!important}
  .restaurant-inline-invite-panel .invite-link-row{gap:6px!important}
  .restaurant-inline-invite-panel .invite-link-row .form-control{min-height:38px!important;height:38px!important;font-size:.7rem!important;padding:0 8px!important}
  .restaurant-inline-invite-panel .invite-link-row .btn{min-height:38px!important;padding:6px 10px!important;font-size:.7rem!important}
  .restaurant-menu-grid{gap:8px!important}
  .restaurant-menu-grid .product-card{grid-template-columns:72px minmax(0,1fr)!important;min-height:92px!important;border-radius:14px!important}
  .restaurant-menu-grid .product-image-container{width:72px!important;min-height:92px!important;height:100%!important}
  .restaurant-menu-grid .product-details{padding:8px 9px!important}
  .restaurant-menu-grid .product-title{font-size:.94rem!important;line-height:1.08!important;margin:0!important}
  .restaurant-menu-grid .product-desc{font-size:.68rem!important;line-height:1.18!important;margin:2px 0!important}
  .restaurant-menu-grid .product-price{font-size:.96rem!important}
  .restaurant-menu-grid .product-card-actions .btn{width:36px!important;height:36px!important;min-width:36px!important;border-radius:10px!important}

  body:has(.restaurant-page-section){background:#eff8fa!important}
  .restaurant-page-section{padding:0 0 94px!important;gap:10px!important}
  .restaurant-page-card{border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;overflow:visible!important}
  .restaurant-page-image{height:270px!important;position:relative!important;background:#dcebef!important}
  .restaurant-page-image img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:0!important}
  .restaurant-image-controls{position:absolute;inset:22px 18px auto;display:flex;align-items:center;gap:10px;z-index:4}
  .restaurant-image-controls>a,.restaurant-image-controls>button,.restaurant-image-controls #restaurant-favorite-btn .btn{width:46px!important;height:46px!important;min-width:46px!important;padding:0!important;display:grid!important;place-items:center;border:0!important;border-radius:13px!important;background:#fff!important;color:#17324d!important;box-shadow:0 5px 16px rgba(23,50,77,.12)!important;font-size:0!important}
  .restaurant-image-controls>button{margin-left:auto!important;font-size:.95rem!important}
  .restaurant-image-controls #restaurant-favorite-btn .btn i,.restaurant-image-controls>a i{font-size:.95rem!important}
  .restaurant-page-copy{width:calc(100% - 28px)!important;margin:-30px auto 0!important;padding:20px 16px 18px!important;position:relative!important;z-index:3!important;border:1px solid #d8e8ed!important;border-radius:28px!important;background:#fff!important;box-shadow:0 10px 26px rgba(23,50,77,.08)!important}
  .restaurant-page-copy h1{margin:0 0 8px!important;font-size:1.35rem!important;line-height:1.08!important;color:#17324d!important}
  .restaurant-page-address{display:none!important}
  .restaurant-status-summary{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:7px!important;margin:0 0 14px!important;color:#718995!important;font-size:.75rem!important}
  .restaurant-status-summary .fa-star{color:#ffd72e!important;font-size:1.05rem!important}
  .restaurant-status-summary .restaurant-page-cuisine{display:inline!important;margin:0!important;color:#718995!important;font-size:.75rem!important}
  .restaurant-open-now{color:#12a8b7!important;font-weight:800!important}
  .restaurant-open-now i{font-size:.46rem!important;vertical-align:middle!important}
  .restaurant-page-meta{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important;margin:0 0 14px!important}
  .restaurant-page-meta span{min-width:0!important;min-height:82px!important;padding:10px 3px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;border:1px solid #d5e7ec!important;border-radius:18px!important;background:#f8fcfd!important;color:#17324d!important;text-align:center!important}
  .restaurant-page-meta span i{width:30px;height:30px;display:grid!important;place-items:center!important;border-radius:50%!important;background:#f1f8f8!important;color:#17324d!important;font-size:.92rem!important;margin:0!important}
  .restaurant-page-meta span:nth-child(2) i{color:#e94b63!important}.restaurant-page-meta span:nth-child(4) i{color:#f7c619!important}
  .restaurant-page-meta strong{max-width:100%;font-size:.72rem!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .restaurant-page-meta small{color:#718995!important;font-size:.62rem!important;font-weight:800!important}
  .restaurant-available-types>strong{display:block;color:#6e8794;font-size:.72rem;letter-spacing:.4px;margin-bottom:7px}
  #restaurant-available-type-chips{display:flex;flex-wrap:wrap;gap:6px}
  #restaurant-available-type-chips span{padding:4px 10px;border:1px solid #d3e5ea;border-radius:999px;background:#f7fbfc;color:#698491;font-size:.64rem;font-weight:800}
  .restaurant-reviews-section{order:2!important;width:calc(100% - 28px)!important;margin:0 auto!important;padding:8px!important;border:1px solid #d8e8ed!important;border-radius:20px!important;background:#fff!important;box-shadow:0 7px 18px rgba(23,50,77,.06)!important}
  .restaurant-reviews-section #restaurant-reviews-toggle{min-height:58px!important;padding:8px 12px!important;border:0!important;background:#fff!important;color:#17324d!important;font-size:0!important}
  .restaurant-reviews-section #restaurant-reviews-toggle>span{display:flex!important;align-items:center!important;gap:10px!important;font-size:0!important;text-align:left!important}
  .restaurant-reviews-section #restaurant-reviews-toggle>span:after{content:'Customer reviews\A Tap to view reviews';white-space:pre;font-size:.8rem;line-height:1.25;font-weight:800;color:#17324d}
  .restaurant-reviews-section #restaurant-reviews-toggle .fa-star{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#f3faf7;color:#ffd72e;font-size:1.2rem!important}
  .restaurant-reviews-section #restaurant-reviews-chevron{font-size:.85rem!important}
  .restaurant-service-chooser{order:3!important;width:calc(100% - 28px)!important;margin:0 auto!important;padding:17px 15px!important;border:1px solid #d8e8ed!important;border-radius:24px!important;background:#fff!important;box-shadow:0 8px 20px rgba(23,50,77,.06)!important}
  .restaurant-service-chooser h3{margin:0 0 12px!important;color:#6e8794!important;font-size:.76rem!important;letter-spacing:.5px!important}
  .restaurant-service-chooser>p{margin:12px 0 0!important;color:#718995!important;font-size:.72rem!important}
  .restaurant-service-chooser .restaurant-page-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin:0!important}
  .restaurant-service-chooser .restaurant-service-btn{min-width:0!important;min-height:72px!important;padding:8px 3px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;border-radius:18px!important;font-size:.68rem!important;white-space:normal!important}
  .restaurant-service-chooser .restaurant-service-btn:nth-child(1){background:#f1f4ff!important;border-color:#cfd9fa!important;color:#3e55a4!important}
  .restaurant-service-chooser .restaurant-service-btn:nth-child(2){background:#fff4eb!important;border-color:#f4d8c1!important;color:#a95a22!important}
  .restaurant-service-chooser .restaurant-service-btn:nth-child(3){background:#ecfbf5!important;border-color:#bee9d7!important;color:#21825e!important}
  .restaurant-order-flow{order:4!important}
  .restaurant-inline-invite-panel .invite-link-row .btn{min-height:34px!important;padding:5px 8px!important;font-size:.64rem!important}
  .restaurant-inline-invite-panel .invite-link-row .form-control{min-height:34px!important;height:34px!important;font-size:.64rem!important}
  .restaurant-menu-grid .product-card{grid-template-columns:64px minmax(0,1fr)!important;min-height:82px!important}
  .restaurant-menu-grid .product-image-container{width:64px!important;min-height:82px!important}
  .restaurant-menu-grid .product-details{padding:6px 8px!important}
  .restaurant-menu-grid .product-title{font-size:.86rem!important}.restaurant-menu-grid .product-desc{font-size:.62rem!important}.restaurant-menu-grid .product-price{font-size:.88rem!important}
  .restaurant-menu-grid .product-card-actions .btn{width:32px!important;height:32px!important;min-width:32px!important}
}

/* Final cascade: Nearby / From-To show three complete compact entries per
   mobile results viewport. Keep this block last. */
@media(max-width:900px){
  body.restaurant-results-view.nearby-results-view .restaurant-results-grid,
  body.restaurant-results-view.route-results-view .restaurant-results-grid{display:block!important;width:100%!important;padding:0 0 86px!important;gap:0!important}
  body.restaurant-results-view.nearby-results-view .restaurant-result-card,
  body.restaurant-results-view.route-results-view .restaurant-result-card{box-sizing:border-box!important;display:block!important;width:100%!important;height:calc((100svh - 215px)/3)!important;min-height:190px!important;max-height:248px!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden!important;background:#fff!important}
  body.restaurant-results-view.nearby-results-view .restaurant-result-card+.restaurant-result-card,
  body.restaurant-results-view.route-results-view .restaurant-result-card+.restaurant-result-card{border-top:7px solid #eaf6f8!important}
  body.restaurant-results-view.nearby-results-view .restaurant-result-card>div[onclick],
  body.restaurant-results-view.route-results-view .restaurant-result-card>div[onclick]{display:grid!important;grid-template-rows:minmax(86px,46%) minmax(0,54%)!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;overflow:hidden!important}
  body.restaurant-results-view.nearby-results-view .restaurant-result-card img,
  body.restaurant-results-view.route-results-view .restaurant-result-card img{display:block!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;object-fit:cover!important;object-position:center!important;border-radius:0!important}
  body.restaurant-results-view.nearby-results-view .restaurant-result-copy,
  body.restaurant-results-view.route-results-view .restaurant-result-copy{box-sizing:border-box!important;display:block!important;width:100%!important;height:100%!important;min-height:0!important;padding:6px 42px 6px 12px!important;background:#fff!important;color:#17324d!important;overflow:hidden!important}
  body.restaurant-results-view.nearby-results-view .restaurant-result-copy h3,
  body.restaurant-results-view.route-results-view .restaurant-result-copy h3{max-width:100%!important;margin:0 0 3px!important;font-size:.92rem!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.restaurant-results-view.nearby-results-view .restaurant-card-eta,
  body.restaurant-results-view.route-results-view .restaurant-card-eta{margin:0 0 2px!important;font-size:.66rem!important;line-height:1.1!important;white-space:nowrap!important}
  body.restaurant-results-view.nearby-results-view .restaurant-cuisine,
  body.restaurant-results-view.route-results-view .restaurant-cuisine,
  body.restaurant-results-view.nearby-results-view .restaurant-open-instruction,
  body.restaurant-results-view.route-results-view .restaurant-open-instruction{margin:1px 0!important;font-size:.62rem!important;line-height:1.1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.restaurant-results-view.nearby-results-view .restaurant-menu-categories,
  body.restaurant-results-view.route-results-view .restaurant-menu-categories{display:flex!important;flex-wrap:nowrap!important;gap:3px!important;margin:3px 0!important;max-height:23px!important;overflow:hidden!important}
  body.restaurant-results-view.nearby-results-view .restaurant-menu-categories span,
  body.restaurant-results-view.route-results-view .restaurant-menu-categories span{flex:0 0 auto!important;padding:2px 7px!important;font-size:.57rem!important;line-height:1.15!important}
  body.restaurant-results-view.nearby-results-view .restaurant-meta-row,
  body.restaurant-results-view.route-results-view .restaurant-meta-row{display:flex!important;align-items:center!important;gap:7px!important;margin:2px 0 0!important;font-size:.61rem!important;line-height:1.05!important;white-space:nowrap!important}
  body.restaurant-results-view.nearby-results-view .restaurant-status-pill,
  body.restaurant-results-view.route-results-view .restaurant-status-pill{top:6px!important;right:10px!important;padding:3px 9px!important;font-size:.58rem!important}
}

/* Reference layout correction: full-width horizontal image with restaurant
   information directly below it. Three image-led entries remain visible in a
   normal long mobile scroll, without side-by-side grid leakage. */
@media(max-width:900px){
  body.restaurant-results-view.nearby-results-view .restaurant-results-grid,
  body.restaurant-results-view.route-results-view .restaurant-results-grid{display:block!important;width:100%!important;padding:0 0 86px!important;gap:0!important}
  body.restaurant-results-view.nearby-results-view .restaurant-result-card,
  body.restaurant-results-view.route-results-view .restaurant-result-card{box-sizing:border-box!important;display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden!important;background:#fff!important}
  body.restaurant-results-view.nearby-results-view .restaurant-result-card+.restaurant-result-card,
  body.restaurant-results-view.route-results-view .restaurant-result-card+.restaurant-result-card{border-top:9px solid #eaf6f8!important}
  body.restaurant-results-view.nearby-results-view .restaurant-result-card>div[onclick],
  body.restaurant-results-view.route-results-view .restaurant-result-card>div[onclick]{display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
  body.restaurant-results-view.nearby-results-view .restaurant-result-card img,
  body.restaurant-results-view.route-results-view .restaurant-result-card img{box-sizing:border-box!important;display:block!important;grid-column:auto!important;grid-row:auto!important;width:100%!important;height:245px!important;min-height:0!important;max-height:245px!important;object-fit:cover!important;object-position:center!important;border-radius:0!important;background:#edf7f9!important}
  body.restaurant-results-view.nearby-results-view .restaurant-result-copy,
  body.restaurant-results-view.route-results-view .restaurant-result-copy{box-sizing:border-box!important;display:block!important;grid-column:auto!important;grid-row:auto!important;width:100%!important;height:auto!important;min-height:0!important;padding:12px 18px 16px!important;background:#fff!important;color:#17324d!important;overflow:hidden!important}
  body.restaurant-results-view.nearby-results-view .restaurant-result-copy h3,
  body.restaurant-results-view.route-results-view .restaurant-result-copy h3{max-width:calc(100% - 66px)!important;margin:0 0 5px!important;font-size:1.2rem!important;line-height:1.08!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#17324d!important}
  body.restaurant-results-view.nearby-results-view .restaurant-card-eta,
  body.restaurant-results-view.route-results-view .restaurant-card-eta{margin:3px 0!important;font-size:.76rem!important;line-height:1.18!important;color:#5f7f87!important;white-space:normal!important}
  body.restaurant-results-view.nearby-results-view .restaurant-card-eta strong,
  body.restaurant-results-view.route-results-view .restaurant-card-eta strong{color:#ef8745!important}
  body.restaurant-results-view.nearby-results-view .restaurant-cuisine,
  body.restaurant-results-view.route-results-view .restaurant-cuisine{display:block!important;margin:3px 0!important;font-size:.72rem!important;line-height:1.15!important;color:#6f8992!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.restaurant-results-view.nearby-results-view .restaurant-open-instruction,
  body.restaurant-results-view.route-results-view .restaurant-open-instruction{display:block!important;margin:3px 0!important;font-size:.72rem!important;line-height:1.15!important;font-weight:800!important;color:#ef7d3f!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.restaurant-results-view.nearby-results-view .restaurant-menu-categories,
  body.restaurant-results-view.route-results-view .restaurant-menu-categories{display:flex!important;flex-wrap:nowrap!important;gap:4px!important;margin:5px 0!important;max-height:25px!important;overflow:hidden!important}
  body.restaurant-results-view.nearby-results-view .restaurant-menu-categories span,
  body.restaurant-results-view.route-results-view .restaurant-menu-categories span{flex:0 0 auto!important;padding:2px 8px!important;font-size:.66rem!important;line-height:1.15!important}
  body.restaurant-results-view.nearby-results-view .restaurant-meta-row,
  body.restaurant-results-view.route-results-view .restaurant-meta-row{display:flex!important;align-items:center!important;gap:9px!important;margin:5px 0 0!important;font-size:.68rem!important;line-height:1.1!important;font-weight:800!important;color:#17324d!important;white-space:nowrap!important}
  body.restaurant-results-view.nearby-results-view .restaurant-open-badge,
  body.restaurant-results-view.route-results-view .restaurant-open-badge{padding:4px 10px!important;border-radius:999px!important;font-size:.64rem!important;line-height:1!important}
}

/* Final requested mobile composition: two complete image-led restaurant cards
   plus the beginning of the third in a normal phone viewport. Content uses its
   natural height so restaurant details are never clipped. */
@media(max-width:900px){
  body.restaurant-results-view.nearby-results-view .restaurant-results-grid,
  body.restaurant-results-view.route-results-view .restaurant-results-grid{display:block!important;width:100%!important;padding:0 0 82px!important;gap:0!important}
  body.restaurant-results-view.nearby-results-view .restaurant-result-card,
  body.restaurant-results-view.route-results-view .restaurant-result-card{box-sizing:border-box!important;display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important;background:#fff!important}
  body.restaurant-results-view.nearby-results-view .restaurant-result-card+.restaurant-result-card,
  body.restaurant-results-view.route-results-view .restaurant-result-card+.restaurant-result-card{border-top:6px solid #eaf6f8!important}
  body.restaurant-results-view.nearby-results-view .restaurant-result-card>div[onclick],
  body.restaurant-results-view.route-results-view .restaurant-result-card>div[onclick]{box-sizing:border-box!important;display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
  body.restaurant-results-view.nearby-results-view .restaurant-result-card img,
  body.restaurant-results-view.route-results-view .restaurant-result-card img{box-sizing:border-box!important;display:block!important;grid-column:auto!important;grid-row:auto!important;width:100%!important;height:clamp(175px,36vw,225px)!important;min-height:175px!important;max-height:225px!important;object-fit:cover!important;object-position:center!important;border-radius:0!important;background:#edf7f9!important}
  body.restaurant-results-view.nearby-results-view .restaurant-result-copy,
  body.restaurant-results-view.route-results-view .restaurant-result-copy{box-sizing:border-box!important;display:block!important;grid-column:auto!important;grid-row:auto!important;width:100%!important;height:auto!important;min-height:142px!important;max-height:none!important;padding:8px 14px 10px!important;background:#fff!important;color:#17324d!important;overflow:visible!important}
  body.restaurant-results-view.nearby-results-view .restaurant-result-heading-row,
  body.restaurant-results-view.route-results-view .restaurant-result-heading-row{min-height:22px!important;margin:0!important;gap:6px!important}
  body.restaurant-results-view.nearby-results-view .restaurant-result-copy h3,
  body.restaurant-results-view.route-results-view .restaurant-result-copy h3{max-width:calc(100% - 62px)!important;margin:0 0 2px!important;font-size:1rem!important;line-height:1.08!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#17324d!important}
  body.restaurant-results-view.nearby-results-view .restaurant-open-badge,
  body.restaurant-results-view.route-results-view .restaurant-open-badge{flex:0 0 auto!important;padding:4px 10px!important;border-radius:999px!important;font-size:.62rem!important;line-height:1!important}
  body.restaurant-results-view.nearby-results-view .restaurant-card-eta,
  body.restaurant-results-view.route-results-view .restaurant-card-eta{margin:2px 0!important;font-size:.68rem!important;line-height:1.12!important;color:#5f7f87!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.restaurant-results-view.nearby-results-view .restaurant-card-eta strong,
  body.restaurant-results-view.route-results-view .restaurant-card-eta strong{color:#ef8745!important}
  body.restaurant-results-view.nearby-results-view .restaurant-route-label,
  body.restaurant-results-view.route-results-view .restaurant-route-label{display:none!important}
  body.restaurant-results-view.nearby-results-view .restaurant-cuisine,
  body.restaurant-results-view.route-results-view .restaurant-cuisine,
  body.restaurant-results-view.nearby-results-view .restaurant-open-instruction,
  body.restaurant-results-view.route-results-view .restaurant-open-instruction{display:block!important;margin:2px 0!important;font-size:.66rem!important;line-height:1.12!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.restaurant-results-view.nearby-results-view .restaurant-cuisine,
  body.restaurant-results-view.route-results-view .restaurant-cuisine{color:#6f8992!important}
  body.restaurant-results-view.nearby-results-view .restaurant-open-instruction,
  body.restaurant-results-view.route-results-view .restaurant-open-instruction{font-weight:800!important;color:#ef7d3f!important}
  body.restaurant-results-view.nearby-results-view .restaurant-menu-categories,
  body.restaurant-results-view.route-results-view .restaurant-menu-categories{display:flex!important;flex-wrap:wrap!important;gap:4px!important;margin:4px 0!important;max-height:43px!important;overflow:hidden!important}
  body.restaurant-results-view.nearby-results-view .restaurant-menu-categories span,
  body.restaurant-results-view.route-results-view .restaurant-menu-categories span{flex:0 0 auto!important;padding:2px 8px!important;font-size:.59rem!important;line-height:1.12!important}
  body.restaurant-results-view.nearby-results-view .restaurant-meta-row,
  body.restaurant-results-view.route-results-view .restaurant-meta-row{display:flex!important;align-items:center!important;gap:8px!important;margin:4px 0 0!important;font-size:.65rem!important;line-height:1.08!important;font-weight:800!important;color:#17324d!important;white-space:nowrap!important;overflow:hidden!important}
  body.restaurant-results-view.nearby-results-view .restaurant-favorite-chip,
  body.restaurant-results-view.route-results-view .restaurant-favorite-chip,
  body.restaurant-results-view.nearby-results-view .restaurant-service-tags,
  body.restaurant-results-view.route-results-view .restaurant-service-tags{display:none!important}
}

/* Mobile restaurant menu: compact row card with a true square food image. */
@media(max-width:900px){
  .restaurant-menu-grid{gap:10px!important}
  .restaurant-menu-grid .product-card{box-sizing:border-box!important;position:relative!important;display:grid!important;grid-template-columns:94px minmax(0,1fr)!important;min-height:108px!important;height:108px!important;max-height:108px!important;border-radius:16px!important;overflow:hidden!important}
  .restaurant-menu-grid .product-image-container{box-sizing:border-box!important;position:relative!important;display:grid!important;place-items:center!important;align-self:center!important;width:82px!important;height:82px!important;min-height:82px!important;max-height:82px!important;aspect-ratio:1/1!important;margin:9px 0 9px 10px!important;border-radius:14px!important;overflow:hidden!important}
  .restaurant-menu-grid .product-image-container.menu-dot-veg{background:#e1f8fa!important}.restaurant-menu-grid .product-image-container.menu-dot-nonveg{background:#fff1df!important}.restaurant-menu-grid .product-image-container.menu-dot-egg{background:#fff8d9!important}
  .restaurant-menu-grid .menu-item-placeholder-dot{display:block!important;width:40px!important;height:40px!important;border-radius:50%!important;box-shadow:inset -3px -4px 0 rgba(0,0,0,.08),inset 3px 3px 0 rgba(255,255,255,.18)!important}
  .restaurant-menu-grid .menu-dot-veg .menu-item-placeholder-dot,.restaurant-menu-grid .menu-item-title-dot.menu-dot-veg{background:#7dbd3b!important}.restaurant-menu-grid .menu-dot-nonveg .menu-item-placeholder-dot,.restaurant-menu-grid .menu-item-title-dot.menu-dot-nonveg{background:#f44336!important}.restaurant-menu-grid .menu-dot-egg .menu-item-placeholder-dot,.restaurant-menu-grid .menu-item-title-dot.menu-dot-egg{background:#f4a14a!important}
  .restaurant-menu-grid .product-image-container.has-menu-image .menu-item-placeholder-dot{display:none!important}
  .restaurant-menu-grid .product-image-container img{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;aspect-ratio:1/1!important;object-fit:cover!important;object-position:center!important}
  .restaurant-menu-grid .product-details{box-sizing:border-box!important;display:block!important;min-width:0!important;height:108px!important;padding:10px 54px 8px 9px!important;overflow:hidden!important}
  .restaurant-menu-grid .product-title{display:flex!important;align-items:center!important;gap:6px!important;max-width:100%!important;margin:0 0 5px!important;font-size:.92rem!important;line-height:1.12!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .restaurant-menu-grid .menu-item-title-dot{display:inline-block!important;flex:0 0 12px!important;width:12px!important;height:12px!important;border-radius:50%!important}
  .restaurant-menu-grid .product-desc{display:none!important}
  .restaurant-menu-grid .product-serving{display:inline-flex!important;margin:1px 0 4px!important;padding:3px 7px!important;border-radius:999px!important;background:#fff6e9!important;color:#9b571c!important;font-size:.6rem!important;line-height:1!important;font-weight:800!important}
  .restaurant-menu-grid .product-price{font-size:.92rem!important;line-height:1.1!important}
  .restaurant-menu-grid .product-footer{margin-top:5px!important}
  .restaurant-menu-grid .quantity-selector{display:none!important}
  .restaurant-menu-grid .product-card-actions{position:absolute!important;z-index:2!important;right:16px!important;top:50%!important;transform:translateY(-50%)!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important;width:32px!important;margin:0!important;padding:0!important}
  .restaurant-menu-grid .product-card-actions .btn{display:grid!important;place-items:center!important;width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;padding:0!important;margin:0!important;border-radius:10px!important}
}

/* Final cart override: total and Remove must never occupy the same grid cell. */
@media(max-width:900px){
  .cart-item-row{grid-template-rows:auto auto auto!important;padding-bottom:12px!important;overflow:visible!important}
  .cart-item-row .cart-item-img{grid-row:1/4!important}
  .cart-item-row .cart-item-price{grid-column:3!important;grid-row:2!important;align-self:center!important;justify-self:end!important;margin:0!important;transform:none!important}
  .cart-item-row .cart-item-remove{position:static!important;grid-column:3!important;grid-row:3!important;align-self:start!important;justify-self:end!important;margin:0!important;padding:2px 0 0!important;transform:none!important;z-index:1!important}
}
