/* Page-scoped styles for /catering-preview. Uses tokens from style.css. */
.est-hero{padding-top:48px;padding-bottom:24px}
/* Homepage h1 uses min-height:2.55em for the two-line hero; override it here so the title sits tight on the intro. */
.est-hero h1,
.est-hero h1.sec{
  min-height:0;
  font-size:clamp(44px,6vw,72px);
  line-height:1;
  margin-bottom:12px;
}
.est-hero .lead{margin:0 auto 16px;text-align:center;max-width:720px}
.est-preview-note{text-align:center;font-size:13px;color:#3d3d3d;margin:0 auto 8px}

.est-guests{display:flex;flex-wrap:wrap;gap:20px;align-items:flex-end;justify-content:space-between}
.est-guests label{display:block;font-weight:700;font-size:14px}
.est-guests input[type=number]{width:140px;margin-top:6px;padding:11px;border:1.5px solid #0002;border-radius:10px;font:inherit;background:#fffdf8}
.est-pan-guide{flex:1;min-width:220px;font-size:14px;color:#3d3d3d}
.est-pan-guide strong{display:block;font-family:"Bebas Neue",Impact,sans-serif;font-size:22px;letter-spacing:.04em;color:var(--ink);font-weight:400;margin-bottom:4px}

.est-layout{display:grid;gap:28px;align-items:start;padding-top:8px;padding-bottom:48px}
.est-section{margin:0 0 22px}
.est-section h2{font-size:clamp(32px,5vw,44px);margin:0 0 8px}
.est-section .sec-note{font-size:14px;color:#3d3d3d;margin:0 0 14px}

.est-accordion{padding:0;overflow:hidden}
.est-acc-heading{margin:0;font-size:inherit}
.est-acc-toggle{
  width:100%;
  display:flex;
  align-items:center;
  gap:12px;
  text-align:left;
  background:transparent;
  border:0;
  padding:16px 22px;
  cursor:pointer;
  color:var(--ink);
  font-family:"Bebas Neue",Impact,sans-serif;
  font-size:clamp(28px,4.5vw,40px);
  letter-spacing:.03em;
  font-weight:400;
  line-height:1.1;
  min-height:56px;
}
.est-acc-toggle:focus-visible{outline:3px solid var(--gold);outline-offset:-3px}
.est-acc-title{flex:1;min-width:0}
.est-acc-count{
  flex:none;
  font-family:Inter,system-ui,sans-serif;
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  background:var(--gold);
  color:var(--ink);
  border-radius:999px;
  padding:5px 10px;
  line-height:1.2;
}
.est-acc-count[hidden]{display:none!important}
.est-acc-chevron{
  flex:none;
  width:12px;
  height:12px;
  border-right:2px solid var(--ink);
  border-bottom:2px solid var(--ink);
  transform:rotate(45deg);
  transition:transform .2s;
  margin-top:-6px;
}
.est-accordion.is-open .est-acc-chevron{
  transform:rotate(-135deg);
  margin-top:4px;
}
.est-acc-panel{padding:0 22px 22px}
.est-acc-panel[hidden]{display:none!important}

.est-tiers{display:grid;gap:10px}
.est-tier{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:flex-start;padding:14px 16px;border:1.5px solid #0002;border-radius:16px;background:#fff;cursor:pointer}
.est-tier:has(input:checked:not([data-tier=''])){border-color:var(--red);box-shadow:0 0 0 2px #d7262e33}
.est-tier input{margin-top:5px;accent-color:var(--red)}
.est-tier h3{font-family:Inter,system-ui,sans-serif;font-size:16px;letter-spacing:0;font-weight:800;margin:0 0 4px}
.est-tier p{font-size:13px;opacity:.75;margin:0}
.est-tier .price{font-weight:800;color:var(--red);white-space:nowrap}

.est-options{margin-top:14px;padding:14px 16px;border-radius:16px;background:#fff;border:1.5px solid #0002}
.est-options h4{font-family:Inter,system-ui,sans-serif;font-size:14px;letter-spacing:0;font-weight:800;margin:0 0 10px}
.est-proteins{display:flex;flex-wrap:wrap;gap:8px}
.est-proteins label{display:inline-flex;align-items:center;gap:6px;border:1.5px solid #0002;border-radius:999px;padding:7px 12px;font-size:13px;font-weight:600;cursor:pointer;background:#fffdf8}
.est-proteins label:has(input:checked){border-color:var(--red);background:#d7262e10;color:var(--ink)}
.est-proteins input{accent-color:var(--red)}
.est-drink{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}
.est-drink label{font-size:14px;font-weight:600;display:inline-flex;gap:6px;align-items:center}
.est-notice{margin-top:10px;padding:10px 12px;border-radius:12px;background:#fff4d6;color:#6a3e00;font-size:13px;font-weight:600}
.est-warn{margin-top:8px;font-size:13px;color:var(--red);font-weight:600}

.est-rows{display:grid;gap:8px}
.est-row{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px dashed #0002}
.est-row:last-child{border-bottom:0}
.est-row h3{font-family:Inter,system-ui,sans-serif;font-size:15px;letter-spacing:0;font-weight:800;margin:0}
.est-row p{font-size:13px;opacity:.7;margin:2px 0 0}
.est-row .price{font-weight:800;color:var(--red);white-space:nowrap;min-width:4.5em;text-align:right}
.est-qty{width:72px;padding:8px;border:1.5px solid #0002;border-radius:10px;font:inherit;background:#fffdf8;text-align:center}
.est-row-opts{grid-column:1/-1;padding:0 0 8px}

.est-stepper{display:inline-flex;align-items:center;gap:4px}
.est-step{
  width:36px;
  height:36px;
  border-radius:10px;
  border:1.5px solid #0002;
  background:#fffdf8;
  color:var(--ink);
  font-size:22px;
  line-height:1;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  flex:none;
}
.est-step:hover:not(:disabled),
.est-step:focus-visible{border-color:var(--red);color:var(--red)}
.est-step:disabled{opacity:.35;cursor:not-allowed}
.est-stepper .est-qty{width:56px;margin:0;padding:8px 4px}

.est-summary-col .card{padding:22px}
.est-summary h2{font-size:36px;margin:0 0 12px;text-align:left}
.est-lines{list-style:none;padding:0;margin:0 0 14px;font-size:14px}
.est-lines li{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px dashed #0002}
.est-lines .empty{opacity:.6;border:0}
.est-total{display:flex;justify-content:space-between;align-items:baseline;font-weight:800;margin:8px 0 4px}
.est-total span:last-child{color:var(--red);font-size:28px;font-family:"Bebas Neue",Impact,sans-serif;letter-spacing:.03em;font-weight:400}
.est-avg{font-size:13px;color:#3d3d3d;margin:0 0 14px}
.est-progress{margin:0 0 10px}
.est-progress .bar{height:10px;border-radius:999px;background:#0001;overflow:hidden}
.est-progress .bar > i{display:block;height:100%;background:var(--green);width:0;border-radius:inherit}
.est-progress.unlocked .bar > i{background:var(--green)}
.est-progress p{font-size:13px;margin:8px 0 0;font-weight:600}
.est-disclaimer{font-size:12px;color:#3d3d3d;margin:12px 0 0}
.est-method{display:flex;flex-wrap:wrap;gap:14px;margin:12px 0}
.est-method label{font-weight:700;font-size:14px;display:inline-flex;gap:6px;align-items:center}
.est-summary-actions{margin-top:10px}
.est-copy{width:100%;margin-top:10px}
.est-copy.ghost,
.est-clear.ghost{color:var(--ink)!important;border-color:var(--ink);background:transparent}
.est-request{width:100%;margin-top:8px}
.est-request:disabled,
.est-clear:disabled{
  opacity:.5;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}
.est-request-hint{margin:12px 0 0;font-size:13px;color:#3d3d3d}
.est-request-hint[hidden]{display:none!important}
.est-clear{width:100%;margin-top:8px}

.est-form h2{text-align:left;font-size:36px;margin:0 0 8px}
.est-form .hint{margin-top:8px}
.est-check{display:flex;align-items:flex-start;gap:10px;font-weight:600;font-size:14px;margin:12px 0}
.est-check input{width:auto;margin-top:3px;accent-color:var(--red)}
.est-address[hidden]{display:none!important}

.est-form-sheet[hidden]{display:none!important}
.est-form-panel{position:relative}
.est-form-close{
  position:absolute;
  top:8px;
  right:8px;
  z-index:2;
  width:44px;
  height:44px;
  border:0;
  background:transparent;
  font-size:32px;
  line-height:1;
  cursor:pointer;
  color:var(--ink);
  border-radius:10px;
}
.est-form-close:hover,
.est-form-close:focus-visible{background:#0001}
.est-form-success[hidden]{display:none!important}
.est-form-success h2{font-size:36px;margin:0 0 8px;text-align:left}
.est-form-success p{margin:0}
.est-form-success .btn{width:100%;margin-top:16px}

.est-sticky-bar{
  display:none;
  appearance:none;
  -webkit-appearance:none;
  border:0;
  font:inherit;
  cursor:pointer;
  text-align:left;
}

@media(min-width:1024px){
  .est-layout{grid-template-columns:1fr 380px;gap:32px}
  .est-summary-col{position:sticky;top:88px}
  .est-tiers{grid-template-columns:1fr 1fr}
  .est-tier.span2{grid-column:1/-1}
}
@media(min-width:768px){
  .est-form-sheet:not([hidden]){display:block;margin-top:16px;position:relative}
  .est-form-backdrop{display:none}
  .est-form-panel .est-form.card,
  .est-form-panel .est-form-success{margin:0;padding-top:28px}
}
@media(max-width:1023px){
  .est-sticky-bar{display:flex;position:fixed;left:16px;right:16px;bottom:16px;z-index:61;background:#111;color:#fff;border-radius:999px;padding:12px 18px;align-items:center;justify-content:space-between;gap:12px;box-shadow:0 10px 30px #0005;text-decoration:none}
  .est-sticky-bar strong{font-family:"Bebas Neue",Impact,sans-serif;font-size:28px;letter-spacing:.03em;color:var(--gold);font-weight:400}
  .est-sticky-bar span{font-size:13px;font-weight:700}
  .est-layout{padding-bottom:48px}
  /* Clear the estimate bar when the Order Now FAB is hidden (640–1023px). */
  footer .legal{padding-bottom:calc(16px + 64px + 28px)}
}
@media(max-width:767px){
  .est-form-sheet:not([hidden]){
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    position:fixed;
    inset:0;
    z-index:80;
  }
  .est-form-backdrop{
    position:absolute;
    inset:0;
    background:#0007;
  }
  .est-form-panel{
    position:relative;
    width:100%;
    max-height:90vh;
    max-height:90dvh;
    overflow-x:hidden;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    background:var(--cream);
    border-radius:20px 20px 0 0;
    box-shadow:0 -10px 40px #0005;
    padding:8px 12px calc(32px + env(safe-area-inset-bottom, 0px));
  }
  .est-form-panel .est-form.card,
  .est-form-panel .est-form-success{
    margin:0;
    padding-top:36px;
    padding-bottom:calc(28px + env(safe-area-inset-bottom, 0px));
  }
  .est-form input,
  .est-form textarea,
  .est-form select{font-size:16px}
  body.est-form-open{overflow:hidden}
  body.est-form-open .fab,
  body.est-form-open .est-sticky-bar{display:none!important;visibility:hidden;pointer-events:none}
}
@media(max-width:639px){
  /* Sit the estimate bar 12px above the site's sticky Order Now button (bottom:16px, ~64px tall). */
  .est-sticky-bar{bottom:calc(16px + 64px + 12px + env(safe-area-inset-bottom, 0px))}
  /* Clear both sticky bars so the form and footer are not hidden behind them. */
  footer .legal{padding-bottom:calc(16px + 64px + 12px + 64px + 28px + env(safe-area-inset-bottom, 0px))}
}
@media(max-width:767px){
  .est-tier{grid-template-columns:auto 1fr; }
  .est-tier .price{grid-column:2;justify-self:start}
  .est-row{grid-template-columns:1fr auto}
  .est-row .price{grid-column:1;justify-self:start}
  .est-row .est-stepper{grid-column:2;grid-row:1/span 2}
}
