/* =========================================================================
   Destampa · flow.css
   Sacola, finalizar, pedido e conta. O arquivo carrega em toda pagina, entao
   tudo aqui usa o prefixo flow- (os tokens vem de base.css).
   Clima: a "comanda" da lanchonete. Papel, friso cereja, linhas tracejadas.
   ========================================================================= */

/* Sem JS aparecem os botoes "Atualizar" e "Aplicar"; com JS o flow.js envia sozinho. */
.js .flow-nojs { display: none !important; }

.flow-wrap { padding-bottom: 8px; }
.flow-wrap > .notice { max-width: 860px; }

/* ---------- Grade principal + lateral ---------- */
.flow-grid { display: grid; gap: 24px; align-items: start; }
.flow-main { min-width: 0; }
.flow-main > * + * { margin-top: 20px; }
.flow-side { min-width: 0; }
.flow-side > * + * { margin-top: 20px; }
@media (min-width: 960px) {
  .flow-grid { grid-template-columns: minmax(0, 1fr) 372px; gap: 32px; }
  .flow-grid--checkout .flow-side { grid-column: 2; grid-row: 1; }
  .flow-grid--checkout .flow-main { grid-column: 1; grid-row: 1; }
}
@media (min-width: 960px) and (min-height: 900px) {
  .flow-grid > .flow-side { position: sticky; top: 104px; }
  .flow-grid--order > .flow-side { position: static; }
}
/* Ate 1079 px o cabecalho tem duas linhas (base.css): o resumo grudado desce junto. */
@media (min-width: 960px) and (max-width: 1079px) and (min-height: 900px) {
  .flow-grid > .flow-side { top: 150px; }
}

/* ---------- Itens da sacola ---------- */
.flow-lines { list-style: none; display: grid; gap: 16px; }
.flow-line {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  grid-template-areas: 'media body' 'media total' 'ctrl ctrl';
  gap: 8px 16px;
  padding: 14px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard-sm);
  scroll-margin-top: 150px;
}
.flow-line.has-issue { border-color: var(--danger); box-shadow: 2px 2px 0 var(--danger); }
.flow-line__media {
  grid-area: media; align-self: start; display: block; padding: 4px;
  background: var(--chrome); border: 2px solid var(--ink); border-radius: 12px;
}
.flow-line__img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 7px; background: var(--cream-2);
}
.flow-line__body { grid-area: body; min-width: 0; }
.flow-line__name {
  font-family: var(--font-display); font-weight: 400; font-size: 1.45rem;
  letter-spacing: 0.02em; text-transform: uppercase; line-height: 1;
  overflow-wrap: anywhere;
}
.flow-line__name a { color: var(--ink); text-decoration: none; }
.flow-line__name a:hover { color: var(--cherry-ink); text-decoration: underline; }
.flow-line__detail { margin: 6px 0 0; font-weight: 700; font-size: 0.95rem; }
.flow-line__unit { margin: 2px 0 0; font-size: 0.9rem; color: var(--ink-soft); }
.flow-line__fee { white-space: nowrap; }
.flow-line__kit { margin-top: 8px; font-size: 0.9rem; }
.flow-line__kit summary { cursor: pointer; font-weight: 700; color: var(--cherry-ink); }
.flow-line__kit ul { margin-top: 6px; padding-left: 1.1em; display: grid; gap: 2px; }
.flow-line__kit li span { color: var(--ink-soft); }
.flow-line__issue {
  margin: 10px 0 0; padding: 6px 10px; border-radius: var(--radius-sm);
  background: var(--danger-soft); color: var(--danger); font-weight: 800; font-size: 0.9rem;
}
.flow-line__total { grid-area: total; margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.flow-line__total-label { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.flow-line__total .num { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; letter-spacing: 0.02em; }
.flow-line__ctrl {
  grid-area: ctrl; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding-top: 12px; margin-top: 4px; border-top: 2px dashed var(--line);
}
.flow-line__ctrl form { margin: 0; }
@media (min-width: 640px) {
  .flow-line {
    grid-template-columns: 128px minmax(0, 1fr) auto;
    grid-template-areas: 'media body total' 'media ctrl ctrl';
    gap: 10px 20px; padding: 16px;
  }
  .flow-line__total { flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
}

/* Quantidade: - [n] + */
.flow-qty { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.flow-qty__label { font-weight: 800; font-size: 0.85rem; }
.flow-stepper {
  display: inline-flex; align-items: stretch; overflow: hidden;
  background: #fff; border: 2px solid var(--ink); border-radius: 999px; box-shadow: var(--shadow-hard-sm);
}
.flow-stepper__btn {
  width: 44px; min-height: 44px; padding: 0; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--mustard-soft); color: var(--ink);
  transition: background-color 0.15s;
}
.flow-stepper__btn:hover { background: var(--mustard); }
.flow-stepper__btn:disabled { opacity: 0.4; cursor: not-allowed; background: var(--cream-2); }
.flow-stepper__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.flow-stepper__input {
  width: 3.1em; min-height: 44px; padding: 0 4px; border: 0;
  border-left: 2px solid var(--ink); border-right: 2px solid var(--ink);
  background: #fff; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums;
  appearance: textfield; -moz-appearance: textfield;
}
.flow-stepper__input::-webkit-outer-spin-button,
.flow-stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.flow-stepper__btn:focus-visible, .flow-stepper__input:focus-visible { outline: 3px solid var(--teal-deep); outline-offset: -3px; border-radius: 0; }
.flow-stepper__input:focus { outline: 3px solid var(--teal-deep); outline-offset: -3px; }

/* Interruptor "Dividir em 2" */
.flow-split { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; flex: 1 1 230px; min-width: 0; }
.flow-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.flow-switch__input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.flow-switch__track {
  position: relative; flex: none; width: 46px; height: 28px; border-radius: 999px;
  background: var(--cream-2); border: 2px solid var(--ink); transition: background-color 0.2s;
}
.flow-switch__track::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink); transition: transform 0.25s var(--ease-pop), background-color 0.2s;
}
.flow-switch__input:checked + .flow-switch__track { background: var(--teal-deep); }
.flow-switch__input:checked + .flow-switch__track::after { transform: translateX(18px); background: var(--mustard); }
.flow-switch__input:focus-visible + .flow-switch__track { outline: 3px solid var(--teal-deep); outline-offset: 3px; }
.flow-switch__text { font-weight: 700; font-size: 0.95rem; line-height: 1.3; }
.flow-switch__text small { display: block; font-weight: 400; font-size: 0.84rem; color: var(--ink-soft); }

/* Remover */
.flow-remove { margin-left: auto; }
.flow-remove__btn {
  padding: 6px 2px; border: 0; background: none; cursor: pointer;
  color: var(--cherry-ink); font-weight: 700; font-size: 0.9rem;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
.flow-remove__btn:hover { color: var(--ink); }

.flow-keep { margin-top: 18px; color: var(--ink-soft); }

/* ---------- Comanda (resumo) ---------- */
.flow-summary {
  position: relative; padding: 0 20px 22px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
}
.flow-summary::before {
  content: ''; display: block; height: 14px; margin: 0 -20px 16px;
  border-radius: calc(var(--radius) - 3px) calc(var(--radius) - 3px) 0 0;
  border-bottom: 2px solid var(--ink);
  background-color: var(--cherry);
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 50%, transparent 50% 100%);
  background-size: 18px 100%;
}
.flow-summary__title {
  font-family: var(--font-display); font-weight: 400; font-size: 2rem;
  letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; margin-bottom: 6px;
}
.flow-summary__go { margin-top: 18px; }
.flow-summary__why { margin: 16px 0 0; font-weight: 700; font-size: 0.92rem; color: var(--danger); }
.flow-summary__why + .flow-summary__go { margin-top: 10px; }
.flow-summary__edit { margin: 14px 0 0; font-size: 0.92rem; }
.flow-summary__items { border-bottom: 2px dashed var(--line); padding-bottom: 6px; }
.flow-summary__items summary { cursor: pointer; padding: 6px 0; font-weight: 700; }
.flow-summary__items summary::marker { color: var(--cherry); }

.flow-mini { list-style: none; display: grid; gap: 10px; padding: 6px 0 8px; }
.flow-mini li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: baseline; font-size: 0.9rem; }
.flow-mini__qty { font-weight: 800; }
.flow-mini__name { overflow-wrap: anywhere; }
.flow-mini__name small { display: block; color: var(--ink-soft); font-size: 0.82rem; }
.flow-mini__price { font-weight: 700; white-space: nowrap; }

.flow-totals { margin: 0; display: grid; }
.flow-totals__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 9px 0; border-bottom: 2px dashed var(--line);
}
.flow-totals dt { font-weight: 600; min-width: 0; }
.flow-totals dt small { display: block; font-weight: 400; font-size: 0.82rem; color: var(--ink-soft); }
.flow-totals dd { margin: 0; font-weight: 800; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.flow-totals__soft { font-weight: 600; color: var(--ink-soft); font-size: 0.9rem; }
.flow-totals__free { color: var(--ok); }
.flow-totals__row--discount dd { color: var(--ok); }
.flow-totals__row--total { border-bottom: 0; border-top: 3px solid var(--ink); margin-top: 6px; padding-top: 12px; align-items: center; }
.flow-totals__row--total dt { font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; letter-spacing: 0.04em; text-transform: uppercase; }
.flow-totals__row--total dd { font-family: var(--font-display); font-weight: 400; font-size: 2.3rem; line-height: 1; letter-spacing: 0.02em; }

/* Desconto por quantidade */
.flow-tier {
  margin-top: 14px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: var(--radius-sm);
  background: var(--mustard-soft); font-size: 0.9rem; font-weight: 600;
}
.flow-tier p { margin: 0; }
.flow-tier__bar { display: block; height: 10px; margin-top: 8px; border-radius: 999px; background: var(--paper); border: 2px solid var(--ink); overflow: hidden; }
.flow-tier__bar span { display: block; height: 100%; background: var(--cherry); }
.flow-tier--max { background: var(--ok-soft); }
.flow-tier .flow-tier__note { margin-top: 6px; font-size: 0.8rem; font-weight: 400; color: var(--ink-soft); }

/* CEP da sacola */
.flow-cep { margin-top: 18px; padding-top: 16px; border-top: 2px dashed var(--line); scroll-margin-top: 150px; }
.flow-cep__title { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px; }
.flow-cep__form { margin: 0; }
.flow-cep__label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.flow-cep__row { display: flex; gap: 8px; align-items: center; }
.flow-cep__row .input { flex: 1 1 auto; min-width: 0; }
.flow-cep__row .btn { flex: none; min-height: 48px; }

/* Zona de entrega (sacola e checkout) */
.flow-zone { margin-top: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--mint); font-size: 0.92rem; }
.flow-zone p { margin: 0; }
.flow-zone p + p { margin-top: 4px; }
.flow-zone--bad { background: var(--danger-soft); }
.flow-zone__good { color: var(--ok); font-weight: 800; }
.flow-zone__warn { color: var(--danger); font-weight: 700; }

/* Garantias */
.flow-trust { list-style: none; display: grid; gap: 8px; margin-top: 18px; font-size: 0.86rem; color: var(--ink-soft); }
.flow-trust li { display: flex; gap: 8px; align-items: flex-start; }
.flow-trust li::before {
  content: ''; flex: none; width: 14px; height: 14px; margin-top: 3px; background: var(--teal);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

/* Sacola vazia: a bandeja de aluminio sem nada */
.flow-empty {
  max-width: 560px; margin: 8px auto 0; padding: 32px 20px; text-align: center;
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-hard);
}
.flow-empty__tray {
  display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px;
  width: 180px; height: 120px; margin: 0 auto 22px; padding: 8px;
  background: var(--chrome); border: 2px solid var(--ink); border-radius: 16px; transform: rotate(-4deg);
}
.flow-empty__tray span { background: var(--cream-2); border: 2px solid var(--ink); border-radius: 8px; box-shadow: inset 2px 2px 0 rgba(43, 29, 23, 0.12); }
.flow-empty__tray span:first-child { grid-row: 1 / span 2; }
.flow-empty__title { font-family: var(--font-display); font-weight: 400; font-size: 2.4rem; letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 10px; }
.flow-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 22px; }

/* ---------- Finalizar ---------- */
.flow-checkout { margin: 0; }
.flow-step {
  padding: clamp(18px, 3vw, 26px); background: var(--paper);
  border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-hard-sm);
  scroll-margin-top: 150px;
}
.flow-step__title {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
  font-family: var(--font-display); font-weight: 400; font-size: 1.85rem; letter-spacing: 0.03em; text-transform: uppercase;
}
.flow-step__num {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  background: var(--mustard); border: 2px solid var(--ink); box-shadow: var(--shadow-hard-sm);
  font-size: 1.35rem; line-height: 1;
}
.flow-step__note { margin: -4px 0 16px; color: var(--ink-soft); font-size: 0.95rem; }

.flow-choices { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; display: grid; gap: 10px; }
.flow-choices__legend { padding: 0; margin-bottom: 8px; font-weight: 700; }
.flow-choice {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; cursor: pointer;
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-sm);
  transition: background-color 0.15s, box-shadow 0.15s;
}
.flow-choice:hover { background: var(--cream); }
.flow-choice input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--cherry); }
.flow-choice:has(input:checked) { background: var(--mint); box-shadow: var(--shadow-hard-sm); }
.flow-choice__body { display: grid; gap: 2px; min-width: 0; font-size: 0.95rem; overflow-wrap: anywhere; }
.flow-choice__title { font-weight: 800; }
.flow-choice__soft { color: var(--ink-soft); font-size: 0.88rem; }

.flow-tag {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; vertical-align: 1px;
  background: var(--ink); color: var(--cream); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}

.flow-newaddr { margin: 0; padding: 0; border: 0; min-width: 0; }
.flow-newaddr:not(.flow-newaddr--plain) { padding: 12px 14px 2px; border: 2px dashed var(--chrome-flat); border-radius: var(--radius-sm); }
.flow-newaddr__legend { padding: 0 6px; font-weight: 800; }
.flow-newaddr__hint { margin: 0 0 12px; font-size: 0.88rem; color: var(--ink-soft); }
.flow-newaddr[hidden] { display: none; }
.flow-field--cep input { max-width: 220px; }
.flow-field--uf select { max-width: 160px; }
.flow-save { margin: 4px 0 14px; padding: 12px 14px 2px; border-radius: var(--radius-sm); background: var(--cream); }
.flow-save .check { margin-bottom: 12px; font-weight: 700; }

.flow-zonebox:empty { display: none; }
.flow-zonebox[aria-busy='true'] { opacity: 0.6; }
.flow-zonebox .flow-zone { margin: 0 0 14px; }
.flow-days-set { border: 0; margin: 0; padding: 0; min-width: 0; }
.flow-days-set__legend { padding: 0; margin-bottom: 10px; font-weight: 700; }
.flow-days-set .field__error { margin-bottom: 10px; }
.flow-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.flow-days__empty { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border: 2px dashed var(--chrome-flat); border-radius: var(--radius-sm); color: var(--ink-soft); }
.flow-day { position: relative; cursor: pointer; }
.flow-day input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.flow-day__box {
  display: grid; place-items: center; gap: 2px; padding: 10px 6px; text-align: center;
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-sm);
  transition: transform 0.15s var(--ease-pop), background-color 0.15s, box-shadow 0.15s;
}
.flow-day__week { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.flow-day__date { font-family: var(--font-display); font-size: 1.8rem; line-height: 1; letter-spacing: 0.02em; }
.flow-day:hover .flow-day__box { background: var(--mustard-soft); }
.flow-day input:checked + .flow-day__box { background: var(--cherry); color: #fff; box-shadow: var(--shadow-hard-sm); transform: translate(-1px, -1px); }
.flow-day input:checked + .flow-day__box .flow-day__week { color: #fff; }
.flow-day input:focus-visible + .flow-day__box { outline: 3px solid var(--teal-deep); outline-offset: 3px; }
.flow-days__refresh { margin-top: 12px; }
.flow-notes { margin: 20px 0 0; }

.flow-pay__methods { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.flow-pay__badge {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
  background: var(--freezer); border: 2px solid var(--ink); font-weight: 800; font-size: 0.85rem;
}
.flow-pay__list { list-style: none; display: grid; gap: 10px; margin-bottom: 16px; }
.flow-pay__list li { position: relative; padding-left: 26px; }
.flow-pay__list li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; background: var(--cherry);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.flow-pay__go { min-height: 58px; font-size: 1.05rem; }
.flow-pay__fine { margin: 12px 0 0; text-align: center; font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Pedido ---------- */
.flow-orderhead__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.flow-code {
  display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 14px; border-radius: 999px;
  background: var(--ink); color: var(--cream); font-size: 0.9rem;
}
.flow-code strong { letter-spacing: 0.08em; font-variant-numeric: tabular-nums; color: var(--mustard); }

.flow-card {
  padding: clamp(18px, 3vw, 24px); background: var(--paper);
  border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-hard-sm);
}
.flow-card__title {
  font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; letter-spacing: 0.03em;
  text-transform: uppercase; line-height: 1; margin-bottom: 14px;
}
.flow-card__title small { font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0; text-transform: none; color: var(--ink-soft); }
.flow-card__note { margin: 14px 0 0; font-size: 0.9rem; color: var(--ink-soft); }

.flow-steps { list-style: none; display: grid; }
.flow-steps__item { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.flow-steps__item:not(:first-child)::before {
  content: ''; position: absolute; left: 13px; bottom: 50%; width: 2px; height: 100%; background: var(--chrome-flat);
}
.flow-steps__item.is-done::before, .flow-steps__item.is-current::before { background: var(--teal-deep); }
.flow-steps__dot {
  position: relative; z-index: 1; flex: none; width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--ink);
}
.flow-steps__item.is-done .flow-steps__dot { background: var(--teal-deep); }
.flow-steps__item.is-done .flow-steps__dot::after {
  content: ''; width: 11px; height: 6px; margin-top: -3px;
  border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg);
}
.flow-steps__item.is-current .flow-steps__dot { background: var(--cherry); box-shadow: 0 0 0 4px var(--cherry-soft); }
.flow-steps__label { font-weight: 700; }
.flow-steps__label small { font-weight: 400; color: var(--ink-soft); }
.flow-steps__item.is-todo .flow-steps__label { font-weight: 500; color: var(--ink-soft); }
@media (min-width: 720px) {
  .flow-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .flow-steps__item { flex-direction: column; text-align: center; gap: 8px; padding: 8px 4px 0; }
  .flow-steps__item:not(:first-child)::before { left: -50%; top: 21px; bottom: auto; width: 100%; height: 2px; }
  .flow-steps__label { font-size: 0.9rem; line-height: 1.25; }
  .flow-steps__label small { display: block; }
}
.flow-ended { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }

.flow-paybox {
  padding: clamp(18px, 3vw, 24px); border: 2px solid var(--ink); border-radius: var(--radius);
  background: var(--mustard-soft); box-shadow: var(--shadow-hard);
}
.flow-paybox--redo { background: var(--mint); box-shadow: var(--shadow-hard-sm); }
.flow-paybox form { margin: 0; }
.flow-paybox > p:not(:last-child) { margin-bottom: 14px; }
.flow-paybox__hold { font-size: 1.05rem; }
.flow-paybox__hold strong { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; letter-spacing: 0.03em; }
.flow-paybox__hold span { color: var(--ink-soft); font-size: 0.92rem; }
.flow-paybox__go { min-height: 56px; }
.flow-paybox__fine { margin: 12px 0 0; font-size: 0.88rem; color: var(--ink-soft); }
.flow-paybox .notice { margin: 14px 0 0; }

.flow-items { list-style: none; display: grid; }
.flow-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 2px dashed var(--line); }
.flow-item:first-child { padding-top: 0; }
.flow-item:last-child { border-bottom: 0; padding-bottom: 0; }
.flow-item__qty {
  min-width: 2.4em; padding: 2px 6px; border-radius: 8px; text-align: center;
  background: var(--cream-2); border: 1.5px solid var(--ink); font-weight: 800; font-size: 0.9rem;
}
.flow-item__body { min-width: 0; overflow-wrap: anywhere; }
.flow-item__name { margin: 0; font-weight: 800; }
.flow-item__detail { margin: 2px 0 0; font-size: 0.9rem; }
.flow-item__unit { margin: 2px 0 0; font-size: 0.85rem; color: var(--ink-soft); }
.flow-item__total { font-weight: 800; white-space: nowrap; }

.flow-facts { margin: 0; display: grid; gap: 12px; }
.flow-facts div { display: grid; gap: 2px; }
.flow-facts dt { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.flow-facts dd { margin: 0; overflow-wrap: anywhere; }
.flow-help { font-size: 0.92rem; color: var(--ink-soft); }
.flow-help p + p { margin-top: 8px; }

/* Etiqueta de status (pedido e conta) */
.flow-status {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; white-space: nowrap;
  border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink);
  font-size: 0.76rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.3;
}
.flow-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); }
.flow-status--novo { background: var(--mustard-soft); }
.flow-status--novo::before { background: var(--mustard); }
.flow-status--pago { background: var(--mint); }
.flow-status--pago::before { background: var(--teal); }
.flow-status--preparo, .flow-status--rota { background: var(--freezer); }
.flow-status--preparo::before, .flow-status--rota::before { background: var(--teal-deep); }
.flow-status--entregue { background: var(--ok-soft); }
.flow-status--entregue::before { background: var(--ok); }
.flow-status--cancelado { background: var(--danger-soft); }
.flow-status--cancelado::before { background: var(--danger); }
.flow-status--expirado { background: var(--cream-2); }

/* ---------- Conta ---------- */
.flow-acct { display: grid; gap: 20px; align-items: start; }
.flow-acct__nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.flow-acct__nav a, .flow-acct__out button {
  display: block; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--paper); color: var(--ink); font-weight: 700; font-size: 0.92rem; text-decoration: none; line-height: 1.2;
}
.flow-acct__nav a:hover { background: var(--mustard-soft); color: var(--ink); }
.flow-acct__nav a[aria-current='page'] { background: var(--ink); color: var(--cream); }
.flow-acct__out { margin: 10px 0 0; }
.flow-acct__out button { cursor: pointer; border-style: dashed; background: transparent; color: var(--cherry-ink); }
.flow-acct__out button:hover { background: var(--cherry-soft); color: var(--ink); }
.flow-acct__main { min-width: 0; }
.flow-acct__main > * + * { margin-top: 20px; }
.flow-acct__section { margin-top: 32px; }
.flow-acct__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.flow-acct__bar p { margin: 0; }
@media (min-width: 860px) {
  .flow-acct { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
  .flow-acct__nav {
    position: sticky; top: 104px; padding: 12px; background: var(--paper);
    border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-hard-sm);
  }
  .flow-acct__nav ul { flex-direction: column; gap: 4px; }
  .flow-acct__nav a, .flow-acct__out button { border-color: transparent; border-radius: var(--radius-sm); width: 100%; text-align: left; }
  .flow-acct__out { margin-top: 8px; padding-top: 8px; border-top: 2px dashed var(--line); }
  .flow-acct__out button { border: 0; }
}
@media (min-width: 860px) and (max-width: 1079px) {
  .flow-acct__nav { top: 150px; }
}

.flow-h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1; margin-bottom: 14px; }
.flow-more { margin-top: 14px; font-weight: 700; }
.flow-blank { padding: 20px; border: 2px dashed var(--chrome-flat); border-radius: var(--radius); background: var(--paper); }
.flow-blank p + p { margin-top: 6px; }

.flow-ocards { list-style: none; display: grid; gap: 14px; }
.flow-ocard { padding: 16px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-hard-sm); }
.flow-ocard__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.flow-ocard__code { color: var(--ink); font-weight: 800; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.flow-ocard__meta { margin: 6px 0 4px; font-size: 0.88rem; color: var(--ink-soft); }
.flow-ocard__items { margin: 0 0 12px; font-size: 0.95rem; overflow-wrap: anywhere; }
.flow-ocard__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 2px dashed var(--line); }
.flow-ocard__total { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; letter-spacing: 0.02em; }
.flow-ocard__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.flow-ocard__actions form { margin: 0; }

.flow-links { list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.flow-links a {
  display: grid; gap: 2px; padding: 14px 16px; height: 100%; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius-sm); box-shadow: var(--shadow-hard-sm);
  transition: transform 0.15s var(--ease-pop), box-shadow 0.15s;
}
.flow-links a:hover { color: var(--ink); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.flow-links strong { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; letter-spacing: 0.03em; text-transform: uppercase; }
.flow-links span { font-size: 0.88rem; color: var(--ink-soft); }

.flow-addrs { list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.flow-addr { display: flex; flex-direction: column; padding: 16px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-hard-sm); }
.flow-addr.is-default { background: #fff; box-shadow: var(--shadow-hard); }
.flow-addr__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 6px; }
.flow-addr__title { font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1; overflow-wrap: anywhere; }
.flow-addr__lines { margin: 0 0 8px; overflow-wrap: anywhere; }
.flow-addr__zone { margin: 0 0 12px; padding: 6px 10px; border-radius: var(--radius-sm); background: var(--mint); font-size: 0.85rem; }
.flow-addr__zone--out { background: var(--danger-soft); }
.flow-addr__actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.flow-addr__actions form { margin: 0; }

.flow-form { margin: 0; }
.flow-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 6px; }
.flow-form__check { margin: 4px 0 18px; font-weight: 700; }
.flow-form__note { margin: 4px 0 18px; font-weight: 700; color: var(--teal-deep); }
.flow-readonly { margin-bottom: 18px; }
.flow-readonly__label { margin: 0 0 4px; font-weight: 700; font-size: 0.95rem; }
.flow-readonly__value { margin: 0 0 4px; padding: 10px 14px; border: 2px dashed var(--chrome-flat); border-radius: var(--radius-sm); overflow-wrap: anywhere; }

/* Entrar, cadastro, senha */
.flow-auth { display: grid; gap: 24px; align-items: start; max-width: 980px; }
.flow-auth__card {
  min-width: 0; padding: clamp(18px, 3vw, 28px); background: var(--paper);
  border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-hard);
}
.flow-auth--single { max-width: 560px; }
.flow-auth__side { min-width: 0; padding: clamp(18px, 3vw, 26px); border: 2px dashed var(--teal-deep); border-radius: var(--radius); background: var(--mint); }
.flow-auth__title { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 8px; }
.flow-auth__side .btn { margin-top: 8px; }
.flow-auth__links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; font-size: 0.95rem; }
.flow-auth__alt { margin: 14px 0 0; font-size: 0.92rem; color: var(--ink-soft); }
@media (min-width: 820px) {
  .flow-auth:not(.flow-auth--single) { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}

@media (prefers-reduced-motion: reduce) {
  .flow-switch__track::after, .flow-day__box, .flow-links a { transition: none; }
}
