/* UPDATE 219 — FOOTER PLATFORM PARITY
   The approved Home footer is the visual master. This final layer makes the
   Pre-Order, Pizza At Yours and Dough & Co. footers use the same computed
   geometry at matching desktop, tablet and mobile viewports. No header, hero,
   action, form or ordering rule is changed here. */

:root{
  --u219-footer-desktop:82px;
  --u219-footer-portrait:122px;
  --u219-footer-landscape:66px;
}

/* Reassert the approved desktop component after every legacy page layer. */
body.customer-site>.customer-footer,
body.customer-site.customer-dining-page .pay-screen-four>.customer-footer{
  position:relative!important;
  inset:auto!important;
  z-index:20!important;
  display:grid!important;
  grid-template-columns:minmax(280px,1fr) auto auto!important;
  grid-template-rows:1fr!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:var(--u219-footer-desktop)!important;
  min-height:var(--u219-footer-desktop)!important;
  max-height:var(--u219-footer-desktop)!important;
  margin:0!important;
  padding:12px 5.4vw!important;
  gap:clamp(18px,2vw,34px)!important;
  overflow:hidden!important;
  border:0!important;
  border-top:1px solid rgba(244,235,219,.28)!important;
  background:linear-gradient(180deg,rgba(0,0,0,.88),rgba(0,0,0,.99))!important;
  color:#f4ebdb!important;
  box-sizing:border-box!important;
  align-items:center!important;
  justify-content:stretch!important;
  text-align:left!important;
}

body.customer-site>.customer-footer .brand-promise,
body.customer-site.customer-dining-page .pay-screen-four>.customer-footer .brand-promise{
  grid-column:auto!important;
  grid-row:auto!important;
  display:flex!important;
  flex-direction:row!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  gap:clamp(9px,.8vw,14px)!important;
  color:#f4ebdb!important;
  -webkit-text-fill-color:#f4ebdb!important;
  font:400 clamp(20px,1.7vw,27px)/1 Georgia,"Times New Roman",serif!important;
  letter-spacing:.015em!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  justify-self:start!important;
}

body.customer-site>.customer-footer .brand-dot,
body.customer-site.customer-dining-page .pay-screen-four>.customer-footer .brand-dot{
  display:block!important;
  flex:0 0 auto!important;
  width:7px!important;
  height:7px!important;
  margin:0!important;
  border:0!important;
  border-radius:50%!important;
  background:#c7372a!important;
}

body.customer-site>.customer-footer>span,
body.customer-site.customer-dining-page .pay-screen-four>.customer-footer>span{
  grid-column:auto!important;
  grid-row:auto!important;
  display:block!important;
  width:auto!important;
  max-width:none!important;
  margin:0!important;
  color:#f4ebdb!important;
  font:500 9px/1.4 Montserrat,Arial,sans-serif!important;
  letter-spacing:.1em!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
  text-align:left!important;
  justify-self:end!important;
}

body.customer-site>.customer-footer .customer-socials,
body.customer-site.customer-dining-page .pay-screen-four>.customer-footer .customer-socials{
  position:static!important;
  inset:auto!important;
  grid-column:auto!important;
  grid-row:auto!important;
  display:flex!important;
  width:auto!important;
  margin:0!important;
  gap:9px!important;
  opacity:1!important;
  visibility:visible!important;
  align-items:center!important;
  justify-self:end!important;
}

body.customer-site>.customer-footer .customer-socials a,
body.customer-site.customer-dining-page .pay-screen-four>.customer-footer .customer-socials a{
  display:grid!important;
  flex:0 0 38px!important;
  width:38px!important;
  height:38px!important;
  padding:0!important;
  border:1px solid rgba(244,235,219,.72)!important;
  border-radius:50%!important;
  background:transparent!important;
  color:#f4ebdb!important;
  opacity:1!important;
  visibility:visible!important;
  place-items:center!important;
}

/* Keep each page's established flow while giving the footer its own space. */
body.customer-preorder:not(.preorder-menu-open):not(.checkout-active)>.customer-footer{
  flex:0 0 var(--u219-footer-desktop)!important;
}
body.customer-event-page:not(.dough-invite-mode){
  grid-template-rows:minmax(0,1fr) var(--u219-footer-desktop)!important;
}
body.customer-event-page:not(.dough-invite-mode)>.customer-footer{grid-row:2!important}
body.customer-dining-page .pay-screen-four{
  display:flex!important;
  flex-direction:column!important;
}
body.customer-dining-page .pay-screen-four>.customer-footer{
  flex:0 0 var(--u219-footer-desktop)!important;
  margin-top:auto!important;
}

/* Phone and tablet portrait use the approved Home two-row composition. */
@media(max-width:900px) and (orientation:portrait){
  body.customer-site>.customer-footer,
  body.customer-site.customer-dining-page .pay-screen-four>.customer-footer{
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto auto!important;
    width:100%!important;
    height:var(--u219-footer-portrait)!important;
    min-height:var(--u219-footer-portrait)!important;
    max-height:var(--u219-footer-portrait)!important;
    padding:13px clamp(28px,5vw,44px) calc(13px + env(safe-area-inset-bottom))!important;
    column-gap:16px!important;
    row-gap:8px!important;
  }

  body.customer-site>.customer-footer .brand-promise,
  body.customer-site.customer-dining-page .pay-screen-four>.customer-footer .brand-promise{
    grid-column:1/-1!important;
    grid-row:1!important;
    width:auto!important;
    max-width:100%!important;
    margin:0!important;
    gap:9px!important;
    font-size:clamp(20px,3.1vw,24px)!important;
    line-height:1!important;
    white-space:nowrap!important;
    justify-self:center!important;
  }

  body.customer-site>.customer-footer .brand-dot,
  body.customer-site.customer-dining-page .pay-screen-four>.customer-footer .brand-dot{
    width:6px!important;
    height:6px!important;
  }

  body.customer-site>.customer-footer>span,
  body.customer-site.customer-dining-page .pay-screen-four>.customer-footer>span{
    grid-column:1!important;
    grid-row:2!important;
    width:auto!important;
    max-width:100%!important;
    font-size:clamp(7px,1.15vw,9px)!important;
    letter-spacing:.08em!important;
    line-height:1.4!important;
    white-space:normal!important;
    align-self:center!important;
    justify-self:start!important;
  }

  body.customer-site>.customer-footer .customer-socials,
  body.customer-site.customer-dining-page .pay-screen-four>.customer-footer .customer-socials{
    grid-column:2!important;
    grid-row:2!important;
    gap:9px!important;
    align-self:center!important;
    justify-self:end!important;
  }

  body.customer-site>.customer-footer .customer-socials a,
  body.customer-site.customer-dining-page .pay-screen-four>.customer-footer .customer-socials a{
    flex-basis:34px!important;
    width:34px!important;
    height:34px!important;
  }

  body.customer-preorder:not(.preorder-menu-open):not(.checkout-active)>.customer-footer{
    flex-basis:var(--u219-footer-portrait)!important;
  }
  body.customer-event-page:not(.dough-invite-mode){
    grid-template-rows:minmax(0,1fr) var(--u219-footer-portrait)!important;
  }
  body.customer-dining-page .pay-screen-four>.customer-footer{
    flex-basis:var(--u219-footer-portrait)!important;
  }
}

/* Phone and tablet landscape retain the same content in one compact row. */
@media(max-width:900px) and (orientation:landscape){
  body.customer-site>.customer-footer,
  body.customer-site.customer-dining-page .pay-screen-four>.customer-footer{
    grid-template-columns:minmax(210px,1fr) auto auto!important;
    grid-template-rows:1fr!important;
    width:100%!important;
    height:var(--u219-footer-landscape)!important;
    min-height:var(--u219-footer-landscape)!important;
    max-height:var(--u219-footer-landscape)!important;
    padding:8px 32px!important;
    gap:14px!important;
  }

  body.customer-site>.customer-footer .brand-promise,
  body.customer-site.customer-dining-page .pay-screen-four>.customer-footer .brand-promise{
    grid-column:auto!important;
    grid-row:auto!important;
    gap:8px!important;
    font-size:16px!important;
    justify-self:start!important;
  }
  body.customer-site>.customer-footer .brand-dot,
  body.customer-site.customer-dining-page .pay-screen-four>.customer-footer .brand-dot{
    width:5px!important;
    height:5px!important;
  }
  body.customer-site>.customer-footer>span,
  body.customer-site.customer-dining-page .pay-screen-four>.customer-footer>span{
    grid-column:auto!important;
    grid-row:auto!important;
    font-size:6.5px!important;
    white-space:nowrap!important;
    justify-self:end!important;
  }
  body.customer-site>.customer-footer .customer-socials,
  body.customer-site.customer-dining-page .pay-screen-four>.customer-footer .customer-socials{
    grid-column:auto!important;
    grid-row:auto!important;
    gap:7px!important;
  }
  body.customer-site>.customer-footer .customer-socials a,
  body.customer-site.customer-dining-page .pay-screen-four>.customer-footer .customer-socials a{
    flex-basis:32px!important;
    width:32px!important;
    height:32px!important;
  }

  body.customer-preorder:not(.preorder-menu-open):not(.checkout-active)>.customer-footer{
    flex-basis:var(--u219-footer-landscape)!important;
  }
  body.customer-event-page:not(.dough-invite-mode){
    grid-template-rows:minmax(0,1fr) var(--u219-footer-landscape)!important;
  }
  body.customer-dining-page .pay-screen-four>.customer-footer{
    flex-basis:var(--u219-footer-landscape)!important;
  }
}

@media(prefers-reduced-transparency:reduce){
  body.customer-site>.customer-footer,
  body.customer-site.customer-dining-page .pay-screen-four>.customer-footer{
    background:#050505!important;
  }
}
