/* Delta layout only. The existing builder owns navigation, actions and pricing. */
body.delta-builder {
  --delta-footer-height: 64px;
  --delta-stage-height: 47px;
  --delta-stage-gap: 10px;
  --delta-content-gap: 10px;
}
body.delta-builder #delta-footer {
  display: flex;
  align-items: center;
  height: calc(var(--delta-footer-height) + env(safe-area-inset-bottom, 0px));
  min-height: 0;
  padding: 9px 20px calc(9px + env(safe-area-inset-bottom, 0px));
  gap: 12px;
  z-index: 20;
}
#delta-footer .footer-actions,
#delta-footer .footer-summary-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  width: auto;
  margin: 0 0 0 auto;
}
#delta-footer .footer-summary-actions .primary { margin: 0; }
#delta-footer button { min-height: 44px; }
#delta-footer .footer-price { min-width: 0; gap: 8px; }
#delta-footer .footer-price strong { font-size: 19px; }
body.delta-builder #delta-workspace,
body.delta-builder #delta-items,
body.delta-builder #delta-summary {
  height: calc(100dvh - var(--bc-shared-header-height, 66px) - var(--delta-stage-height) - var(--delta-stage-gap) - var(--delta-content-gap) - var(--delta-footer-height) - env(safe-area-inset-bottom, 0px));
}
body.delta-builder #delta-summary { margin-bottom: var(--delta-content-gap); }
body.delta-builder .undo-toast {
  bottom: calc(var(--delta-footer-height) + env(safe-area-inset-bottom, 0px) + 12px);
}
@media (max-width: 820px) {
  body.delta-builder {
    --delta-footer-height: 56px;
    --delta-stage-height: 44px;
    --delta-stage-gap: 8px;
    --delta-content-gap: 8px;
  }
  body.delta-builder.delta-can-price { --delta-footer-height: 80px; }
  body.delta-builder #delta-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 5px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    gap: 4px;
  }
  #delta-footer .footer-actions,
  #delta-footer .footer-summary-actions {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    width: 100%;
    gap: 6px;
    margin: 0;
  }
  #delta-footer button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    height: 44px;
    padding: 4px 5px;
    font-size: 12px;
    line-height: 1.15;
    white-space: normal;
  }
  #delta-footer .footer-price {
    flex-wrap: nowrap;
    align-items: baseline;
    min-height: 20px;
    gap: 6px;
    line-height: 20px;
  }
  #delta-footer .footer-price > span:first-child { font-size: 11px; }
  #delta-footer .footer-price strong { font-size: 16px; }
  #delta-footer #footer-price-note {
    margin-left: auto;
    font-size: 10px;
    white-space: nowrap;
  }
  body.delta-builder #delta-workspace,
  body.delta-builder #delta-items,
  body.delta-builder #delta-summary {
    height: calc(100dvh - var(--bc-shared-header-height, 56px) - var(--delta-stage-height) - var(--delta-stage-gap) - var(--delta-content-gap) - var(--delta-footer-height) - env(safe-area-inset-bottom, 0px));
  }
}
@media print {
  body.delta-builder #delta-footer { display: none !important; }
  body.delta-builder #delta-summary { height: auto; overflow: visible; }
  body.delta-builder #delta-workspace { height: 900px; }
}

/* Bottom actions replace top step tabs; keep the existing step controls alive. */
body.delta-builder > .product-nav{display:none!important}
body.delta-builder{--delta-stage-height:0px;--delta-stage-gap:0px}
@media(max-width:820px){
 body.delta-builder{--delta-stage-height:0px;--delta-stage-gap:0px}
}
@media print{
 body.delta-builder .bc-shared-header{display:none!important}
}
