/* UPDATE 218 — SHARED CUSTOMER FOOTER
   One final footer component for Home, Pre-Order, Pizza At Yours and Dough &
   Co. It deliberately leaves all headers, hero copy, actions and customer
   functionality untouched. */

:root{
  --u218-cream:#f4ebdb;
  --u218-red:#c7372a;
  --u218-black:#050505;
  --u218-footer-height:82px;
}

body.customer-site .customer-footer,
body.customer-site.customer-event-page:not(.dough-invite-mode)>.customer-footer,
body.customer-site.customer-preorder>.customer-footer,
body.customer-site.customer-dining-page .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;
  gap:clamp(18px,2vw,34px)!important;
  width:100%!important;
  height:var(--u218-footer-height)!important;
  min-height:var(--u218-footer-height)!important;
  max-height:var(--u218-footer-height)!important;
  margin:0!important;
  padding:12px 5.4vw!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:var(--u218-cream)!important;
  box-sizing:border-box!important;
  align-items:center!important;
  justify-content:stretch!important;
  text-align:left!important;
  box-shadow:none!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}

body.customer-site .customer-footer::before,
body.customer-site .customer-footer::after{
  content:none!important;
  display:none!important;
}

body.customer-site .customer-footer .brand-promise,
body.customer-site.customer-event-page:not(.dough-invite-mode)>.customer-footer .brand-promise,
body.customer-site.customer-preorder>.customer-footer .brand-promise,
body.customer-site.customer-dining-page .customer-footer .brand-promise{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:clamp(9px,.8vw,14px)!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  color:var(--u218-cream)!important;
  -webkit-text-fill-color:var(--u218-cream)!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;
  text-align:left!important;
  justify-self:start!important;
}

body.customer-site .customer-footer .brand-dot,
body.customer-site.customer-event-page:not(.dough-invite-mode)>.customer-footer .brand-dot,
body.customer-site.customer-preorder>.customer-footer .brand-dot,
body.customer-site.customer-dining-page .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:var(--u218-red)!important;
}

body.customer-site .customer-footer>span,
body.customer-site.customer-event-page:not(.dough-invite-mode)>.customer-footer>span,
body.customer-site.customer-preorder>.customer-footer>span,
body.customer-site.customer-dining-page .customer-footer>span{
  display:block!important;
  margin:0!important;
  color:var(--u218-cream)!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 a{
  color:var(--u218-cream)!important;
}

body.customer-site .customer-footer .customer-socials,
body.customer-site.customer-event-page:not(.dough-invite-mode)>.customer-footer .customer-socials,
body.customer-site.customer-preorder>.customer-footer .customer-socials,
body.customer-site.customer-dining-page .customer-footer .customer-socials{
  display:flex!important;
  grid-column:auto!important;
  grid-row:auto!important;
  gap:9px!important;
  margin:0!important;
  justify-self:end!important;
  align-items:center!important;
}

body.customer-site .customer-footer .customer-socials a,
body.customer-site.customer-event-page:not(.dough-invite-mode)>.customer-footer .customer-socials a,
body.customer-site.customer-preorder>.customer-footer .customer-socials a,
body.customer-site.customer-dining-page .customer-footer .customer-socials a{
  display:grid!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:var(--u218-cream)!important;
  place-items:center!important;
}

body.customer-site .customer-footer .customer-socials svg{
  width:18px!important;
  height:18px!important;
  overflow:visible!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.7!important;
}
body.customer-site .customer-footer .customer-socials svg path,
body.customer-site .customer-footer .customer-socials svg .social-fill{
  fill:currentColor!important;
  stroke:none!important;
}

body.customer-site .customer-footer .customer-socials a:hover,
body.customer-site .customer-footer .customer-socials a:focus-visible,
body.customer-site .customer-footer .customer-socials a:active{
  border-color:var(--u218-red)!important;
  background:rgba(199,55,42,.12)!important;
}

/* Home remains a single fixed composition. The new shared footer receives its
   own row; the action rail stays at the bottom of the remaining hero area. */
body.cinematic-home{
  display:grid!important;
  grid-template-rows:minmax(0,1fr) var(--u218-footer-height)!important;
  height:100svh!important;
  min-height:100svh!important;
  overflow:hidden!important;
}
body.cinematic-home .cinematic-home-main{
  grid-row:1!important;
  height:auto!important;
  min-height:0!important;
}
body.cinematic-home>.customer-footer{
  grid-row:2!important;
}

/* Replace the old oversized phone footer allocation on the Pre-Order gateway
   with the same shared component used everywhere else. */
body.customer-preorder:not(.preorder-menu-open):not(.checkout-active)>.customer-shell{
  flex:1 1 auto!important;
  min-height:0!important;
}
body.customer-preorder:not(.preorder-menu-open):not(.checkout-active)>.customer-footer{
  flex:0 0 var(--u218-footer-height)!important;
}

/* Dough & Co. keeps its existing one-screen two-row structure. */
body.customer-event-page:not(.dough-invite-mode)>.customer-footer{
  grid-row:2!important;
}

@media(max-width:700px) and (orientation:portrait){
  :root{--u218-footer-height:122px}

  body.customer-site .customer-footer,
  body.customer-site.customer-event-page:not(.dough-invite-mode)>.customer-footer,
  body.customer-site.customer-preorder>.customer-footer,
  body.customer-site.customer-dining-page .customer-footer{
    grid-template-columns:1fr auto!important;
    grid-template-rows:auto auto!important;
    column-gap:16px!important;
    row-gap:8px!important;
    padding:13px 28px calc(13px + env(safe-area-inset-bottom))!important;
  }

  body.customer-site .customer-footer .brand-promise{
    grid-column:1/-1!important;
    grid-row:1!important;
    gap:9px!important;
    font-size:20px!important;
    justify-self:center!important;
  }

  body.customer-site .customer-footer .brand-dot{
    width:6px!important;
    height:6px!important;
  }

  body.customer-site .customer-footer>span{
    grid-column:1!important;
    grid-row:2!important;
    font-size:7px!important;
    letter-spacing:.08em!important;
    white-space:normal!important;
    justify-self:start!important;
  }

  body.customer-site .customer-footer .customer-socials{
    grid-column:2!important;
    grid-row:2!important;
  }

  body.customer-site .customer-footer .customer-socials a{
    width:34px!important;
    height:34px!important;
  }
}

@media(max-width:900px) and (orientation:landscape){
  :root{--u218-footer-height:66px}

  body.customer-site .customer-footer,
  body.customer-site.customer-event-page:not(.dough-invite-mode)>.customer-footer,
  body.customer-site.customer-preorder>.customer-footer,
  body.customer-site.customer-dining-page .customer-footer{
    grid-template-columns:minmax(210px,1fr) auto auto!important;
    gap:14px!important;
    padding:8px 32px!important;
  }

  body.customer-site .customer-footer .brand-promise{
    gap:8px!important;
    font-size:16px!important;
  }
  body.customer-site .customer-footer .brand-dot{
    width:5px!important;
    height:5px!important;
  }
  body.customer-site .customer-footer>span{font-size:6.5px!important}
  body.customer-site .customer-footer .customer-socials{gap:7px!important}
  body.customer-site .customer-footer .customer-socials a{
    width:32px!important;
    height:32px!important;
  }
  body.customer-site .customer-footer .customer-socials svg{
    width:15px!important;
    height:15px!important;
  }
}

@media(prefers-reduced-transparency:reduce){
  body.customer-site .customer-footer{background:var(--u218-black)!important}
}
