/* G3 digitação (docs/ux-digitacao.md): lista de sugestões do nome do ingrediente, medidas em chips, passo 3 com a linha
   recolhida e a folha "Outro sabor". Só classes destas telas; usa os tokens de tokens.css. */

/* Lista de sugestões (combobox): cada opção com 2 linhas e pelo menos 52 px de altura (alvo de toque >= 44 px) */
.suggest-list { list-style: none; margin: var(--sp-2) 0 0; padding: var(--sp-1); background: var(--cb-surface); border: 1.5px solid var(--cb-borda-campo); border-radius: var(--r-sm); box-shadow: var(--sh-2); }
.suggest-list[hidden] { display: none; }
.suggest-item { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 52px; padding: var(--sp-2) var(--sp-3); border-radius: 10px; cursor: pointer; }
.suggest-item + .suggest-item { margin-top: 2px; }
.suggest-item:hover, .suggest-item.is-active { background: var(--cb-massa-50); }
.suggest-item .suggest-name { font-weight: 700; line-height: 1.25; }
.suggest-item .suggest-meta { color: var(--cb-texto-2); font-size: var(--fs-sm); line-height: 1.3; }
.suggest-item.pantry .suggest-meta { color: var(--cb-ganho); font-weight: 600; }
/* o campo sobe para o alto da tela quando a lista abre (o teclado cobre a metade de baixo); a barra do topo não o cobre */
input[role=combobox] { scroll-margin-top: 96px; }

/* Medidas em chips (substituem o select) */
.unit-field .chips { margin-top: var(--sp-2); }
.unit-field .chip { min-width: 52px; justify-content: center; padding: 0 var(--sp-3); }
.unit-field[hidden] { display: none; }
.ing-details[hidden] { display: none; }
.ing-details > * + * { margin-top: var(--sp-3); }
.ing .line-cost { color: var(--cb-texto-2); font-size: var(--fs-sm); }

/* Passo 3: "Forno 1 vez · sobra pra você 20% · mudar" recolhido */
.step3-more summary { min-height: 52px; }
.step3-more summary #step3-more-text { flex: 1; font-weight: 600; color: var(--cb-texto-2); }
.step3-more summary .more-change { color: var(--cb-terracota); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Folha "Outro sabor" */
.flavor-sheet > * + * { margin-top: var(--sp-3); }
.flavor-sheet .label { font-weight: 700; margin-bottom: 0; }
.flavor-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.flavor-line .price { color: var(--cb-texto-2); font-weight: 600; white-space: nowrap; }
.flavor-swap:empty { display: none; }
.flavor-swap > .ing { margin-top: var(--sp-2); }
#flavor-create { width: 100%; }

/* Release 3 (14/10/2026): quantidade em embalagens (docs/ux-quantidade-embalagem.md §2.1). A embalagem recolhida numa
   linha, os chips do uso colados no campo, os atalhos ½ 1 1½ 2 3, a conferência ao vivo, a dica e a troca de embalagem. */
.pack-summary { display: flex; align-items: center; gap: var(--sp-2); min-height: 52px; padding: 0 0 0 var(--sp-3); border-radius: var(--r-sm); background: var(--cb-massa-50); }
.pack-summary[hidden], .pack-open[hidden], .qty-shortcuts[hidden], .qty-check[hidden], .qty-hint[hidden], .qty-note[hidden], .pack-changed[hidden] { display: none; }
.pack-summary-text { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: var(--sp-2) 0; }
.pack-summary-label { font-size: var(--fs-sm); color: var(--cb-texto-2); font-weight: 600; line-height: 1.2; }
.pack-summary-value { font-weight: 700; line-height: 1.3; }
.pack-change { display: inline-flex; align-items: center; gap: 2px; min-height: 48px; min-width: 64px; padding: 0 var(--sp-3); border: 0; background: transparent; font: inherit; font-weight: 700; color: var(--cb-terracota); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pack-change .i { width: 16px; height: 16px; }
.pack-open > * + * { margin-top: var(--sp-3); }
.used-block > .unit-field { margin-top: var(--sp-2); }
.used-block > .unit-field .chips { margin-top: 0; }
.qty-shortcuts { margin-top: var(--sp-2); }
/* atalhos de VALOR em contorno, para não parecerem mais uma linha de medida (aceite D9) */
.qty-shortcuts .chip { border: 0; font-family: inherit; color: var(--cb-texto); min-width: 52px; justify-content: center; padding: 0 var(--sp-3); font-size: var(--fs-md); background: var(--cb-surface); box-shadow: inset 0 0 0 1px var(--cb-linha); }
.qty-shortcuts .chip:active { background: var(--cb-terracota); color: var(--cb-creme); }
.qty-check { display: flex; align-items: center; gap: var(--sp-2); margin: var(--sp-3) 0 0; padding: var(--sp-3); border-radius: var(--r-sm); background: var(--cb-massa-50); color: var(--cb-texto); font-weight: 700; }
.qty-check .qty-check-mark { flex: none; width: 20px; height: 20px; color: var(--cb-terracota); }
.qty-hint { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3); border-radius: var(--r-sm); background: var(--cb-ouro-100); color: var(--cb-texto); }
.qty-hint-text { margin: 0; line-height: 1.4; }
.qty-hint-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.qty-hint-use { min-height: 44px; padding: 0 var(--sp-3); border: 0; border-radius: var(--r-pill); background: var(--cb-terracota); color: var(--cb-creme); font: inherit; font-weight: 700; cursor: pointer; }
.qty-hint-close { min-width: 44px; min-height: 44px; border: 0; background: transparent; font: inherit; font-size: 1.4rem; color: var(--cb-texto-2); cursor: pointer; }
.qty-note { margin: 0; color: var(--cb-texto-2); font-size: var(--fs-sm); font-weight: 600; }
.pack-changed { padding: var(--sp-3); border-radius: var(--r-sm); background: var(--cb-ouro-100); }
.pack-changed p { margin: 0 0 var(--sp-2); }
.pack-changed-title { font-weight: 700; }
.pack-changed .pack-choice { min-height: 44px; }
.ing-list .recipe-row .name .sub { display: block; font-weight: 600; }
