/* O resumo fica no diálogo; a área principal contém apenas a etapa atual. */
.storefront {
  min-height: 100vh;
  background: var(--background);
  color: var(--ink);
}
.logo-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header-background, #fff);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 16px;
  min-height: 108px;
}
.logo-header .logo-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  font-size: 2.3rem;
}
.logo-header img {
  width: auto;
  height: auto;
  max-width: min(220px, 70vw);
  max-height: 88px;
  object-fit: contain;
}
.order-heading {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.container.store-content {
  overflow-anchor: none;
  max-width: 980px;
  padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
}
.order-layout {
  display: block;
}
/* O mesmo formato de linha nas quatro etapas do cardápio. */
.choice-list {
  grid-template-columns: minmax(0, 1fr);
}
.choice-card {
  min-height: 74px;
}
.selection-card {
  width: 100%;
  text-align: left;
  background: white;
  color: var(--ink);
}
.choice-card > span:not(.product-placeholder) {
  min-width: 0;
  overflow-wrap: anywhere;
}
.choice-card > .choice-indicator:not(.product-placeholder) {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: transparent;
  font-size: 0.7rem;
}
.selection-card.selected > .choice-indicator {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}
.wizard-panel {
  position: relative;
  perspective: 1400px;
  overflow: clip;
}
#step-content {
  position: relative;
  backface-visibility: hidden;
}
.page-turn-previous {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  backface-visibility: hidden;
  background: white;
  box-shadow: 12px 0 24px -18px #33233a66;
}
.cart-button {
  position: fixed;
  right: max(24px, env(safe-area-inset-right, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 60px;
  padding: 12px 20px;
  border: 1px solid var(--primary);
  border-radius: 18px;
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 26px #33233a26;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: left;
}
.cart-button small {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  font-weight: 500;
}
.cart-count {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  margin-left: 7px;
  border-radius: 20px;
  background: white;
  color: var(--primary);
  font-size: 0.68rem;
}
.cart-dialog {
  position: fixed;
  inset: auto max(24px, env(safe-area-inset-right, 0px))
    calc(24px + env(safe-area-inset-bottom, 0px)) auto;
  width: min(420px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px - env(safe-area-inset-bottom, 0px));
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  color: var(--ink);
  box-shadow: 0 20px 70px #33233a30;
  overflow: hidden;
}
.cart-dialog[open] {
  display: flex;
  flex-direction: column;
}
.cart-dialog::backdrop {
  background: #24182c59;
}
.cart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.cart-heading h2 {
  margin: 0;
  font-size: 1.2rem;
}
.cart-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-size: 1.8rem;
}
.cart-close:hover {
  background: var(--background);
}
.cart-body {
  padding: 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.cart-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.cart-footer .button {
  width: 100%;
}
html.cart-open {
  overflow: hidden;
}
@media (max-width: 520px) {
  .cart-button {
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    padding: 11px 16px;
  }
  .cart-dialog {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
}
