/* UPDATE 191 — PHONE FOOTER, PROPORTIONAL MENU PHOTOS AND ORDER BAR.
   This is a narrow corrective layer. The approved hero, gateway and footer
   dimensions remain unchanged. */
@media(max-width:700px) and (orientation:portrait){
  /* Keep the promise fully inside the existing locked footer height. */
  body.customer-preorder:not(.preorder-menu-open):not(.checkout-active)>.customer-footer{
    row-gap:5px!important;
  }
  body.customer-preorder:not(.preorder-menu-open):not(.checkout-active)>.customer-footer>.brand-promise{
    max-width:330px!important;
    margin:0 auto!important;
    color:#f4ebdb!important;
    -webkit-text-fill-color:#f4ebdb!important;
    font-size:20px!important;
    line-height:.96!important;
    text-align:center!important;
  }
  body.customer-preorder:not(.preorder-menu-open):not(.checkout-active)>.customer-footer>span{
    margin:0 auto!important;
    line-height:1.25!important;
  }

  /* The source files are genuine square crops. Preserve their proportions and
     let the rounded frame clip the edges cleanly without stretching. */
  body.customer-preorder .menu-item>picture{
    position:absolute!important;
    inset:7px auto auto 7px!important;
    display:block!important;
    width:106px!important;
    height:106px!important;
    overflow:hidden!important;
    border-radius:6px!important;
    background:#090909!important;
  }
  body.customer-preorder .menu-item>picture>.menu-photo{
    position:static!important;
    inset:auto!important;
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    aspect-ratio:1/1!important;
    object-fit:cover!important;
    object-position:center!important;
    border-radius:0!important;
    background:none!important;
    transform:none!important;
  }

  /* TOTAL and the action are two stable columns on one row. The older
     display:contents rule split the label and value into separate grid cells. */
  body.customer-preorder .customer-basket,
  body.customer-preorder.checkout-active .customer-basket{
    grid-template-columns:minmax(105px,.72fr) minmax(0,1.28fr)!important;
    grid-template-rows:auto!important;
    align-items:center!important;
    gap:12px!important;
    min-height:72px!important;
    padding:9px 13px calc(9px + env(safe-area-inset-bottom))!important;
  }
  body.customer-preorder .customer-basket .order-total,
  body.customer-preorder.checkout-active .customer-basket .order-total{
    grid-column:1!important;
    grid-row:1!important;
    display:grid!important;
    grid-template-columns:auto 1fr!important;
    align-items:baseline!important;
    gap:8px!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
  }
  body.customer-preorder .customer-basket .order-total span{
    font-size:8px!important;
    line-height:1!important;
  }
  body.customer-preorder .customer-basket .order-total strong{
    font-size:25px!important;
    line-height:1!important;
  }
  body.customer-preorder .customer-basket .primary-button,
  body.customer-preorder.checkout-active .customer-basket .primary-button{
    grid-column:2!important;
    grid-row:1!important;
    width:100%!important;
    min-width:0!important;
    min-height:50px!important;
    margin:0!important;
    padding:10px 8px!important;
    white-space:nowrap!important;
  }
}
