/*
 * visual "mercado" — loja mobile (loja_app/m/), 20/11/2026.
 * Conversão do Lovable 67ca1c89 (Mercadinho Bom Dia: Tailwind v4 + shadcn) para CSS puro.
 * Cores SÓ pelas variáveis --lm-* (contrato comum dos visuais). Os valores abaixo são a paleta original do Lovable;
 * temas/tema-*.css (carregado depois) sobrescreve. Classes do visual: prefixo mc-. Classes do núcleo: lm-.
 */

/* ------------------------------------------------------------------ variáveis (claro) */
:root {
  --lm-primaria: oklch(0.62 0.17 152);
  --lm-primaria-contraste: oklch(0.99 0.01 150);
  --lm-destaque: oklch(0.85 0.17 95);
  --lm-destaque-contraste: oklch(0.25 0.05 80);
  --lm-fundo: oklch(0.975 0.006 150);
  --lm-superficie: oklch(1 0 0);
  --lm-texto: oklch(0.2 0.02 160);
  --lm-texto-suave: oklch(0.5 0.02 160);
  --lm-borda: oklch(0.91 0.01 150);
  --lm-preco: var(--lm-texto);
  --lm-sucesso: oklch(0.6 0.15 150);
  --lm-erro: oklch(0.6 0.22 27);
  --lm-raio: 1rem;
  --lm-fonte: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* extras deste visual (derivados: o tema não precisa mexer) */
  --lm-secundaria: color-mix(in oklab, var(--lm-primaria) 14%, var(--lm-superficie));
  --lm-secundaria-texto: var(--lm-texto);
  --lm-suave: color-mix(in oklab, var(--lm-texto) 3%, var(--lm-fundo));
  --lm-sombra: 0 8px 24px -12px oklch(0.3 0.05 160 / 0.25);
  color-scheme: light;
}

/* ------------------------------------------------------------------ variáveis (escuro: html.lm-escuro) */
html.lm-escuro {
  --lm-primaria: oklch(0.74 0.18 152);
  --lm-primaria-contraste: oklch(0.15 0.03 160);
  --lm-destaque: oklch(0.85 0.17 95);
  --lm-destaque-contraste: oklch(0.2 0.05 80);
  --lm-fundo: oklch(0.16 0.012 160);
  --lm-superficie: oklch(0.21 0.014 160);
  --lm-texto: oklch(0.96 0.01 150);
  --lm-texto-suave: oklch(0.7 0.02 155);
  --lm-borda: oklch(1 0 0 / 9%);
  --lm-erro: oklch(0.68 0.2 25);
  --lm-secundaria: color-mix(in oklab, var(--lm-primaria) 10%, var(--lm-superficie));
  --lm-suave: color-mix(in oklab, var(--lm-texto) 10%, var(--lm-fundo));
  --lm-sombra: 0 8px 24px -12px oklch(0 0 0 / 0.6);
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; border-color: var(--lm-borda); }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--lm-fundo);
  color: var(--lm-texto);
  font-family: var(--lm-fonte);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
html.lm-travado, html.lm-travado body { overflow: hidden; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.lm-ic { flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--lm-primaria); outline-offset: 2px; }

/* ------------------------------------------------------------------ casca */
.mc-app {
  margin: 0 auto;
  min-height: 100vh;
  max-width: 28rem;
  background: var(--lm-fundo);
  padding-bottom: 7rem;
  overflow-x: clip;
}

/* cabeçalho fixo */
.mc-topo {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in oklab, var(--lm-fundo) 90%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 16px 16px 12px;
}
.mc-topo-linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mc-marca { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mc-logo {
  display: grid; place-items: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: calc(var(--lm-raio) + 8px);
  background: var(--lm-primaria); color: var(--lm-primaria-contraste);
  font-size: 18px; line-height: 28px; font-weight: 700; overflow: hidden;
}
.mc-logo img { width: 100%; height: 100%; object-fit: cover; }
.mc-marca-txt { min-width: 0; }
.mc-nome { font-size: 16px; line-height: 1.25; font-weight: 600; color: var(--lm-texto); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-status { display: flex; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; color: var(--lm-texto-suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-ponto { width: 8px; height: 8px; border-radius: 999px; background: var(--lm-primaria); flex-shrink: 0; }
.mc-btn-redondo {
  display: grid; place-items: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--lm-secundaria); color: var(--lm-secundaria-texto);
}
.mc-busca {
  margin-top: 12px; display: flex; align-items: center; gap: 8px;
  border-radius: calc(var(--lm-raio) + 8px); background: var(--lm-suave);
  padding: 12px 16px; color: var(--lm-texto-suave);
}
.mc-busca input {
  width: 100%; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: 14px; line-height: 20px; color: var(--lm-texto);
  -webkit-appearance: none; appearance: none;
}
.mc-busca input::placeholder { color: var(--lm-texto-suave); }
.mc-busca input::-webkit-search-cancel-button { -webkit-appearance: none; }
.mc-busca-limpar { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; color: var(--lm-texto-suave); }

/* faixa principal */
.mc-faixa-sec { padding: 0 16px; }
.mc-faixa {
  border-radius: calc(var(--lm-raio) + 12px);
  background: var(--lm-primaria); color: var(--lm-primaria-contraste);
  padding: 20px; box-shadow: var(--lm-sombra);
}
.mc-faixa-rotulo { font-size: 12px; line-height: 16px; font-weight: 500; opacity: .8; }
.mc-faixa-titulo { margin-top: 4px; font-size: 20px; line-height: 1.375; font-weight: 700; }
.mc-faixa-info { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; line-height: 16px; opacity: .9; }
.mc-faixa-info span { display: flex; align-items: center; gap: 4px; min-width: 0; }

/* chips de categoria */
.mc-chips {
  margin-top: 20px; display: flex; gap: 8px; overflow-x: auto; padding: 0 16px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.mc-chips::-webkit-scrollbar { display: none; }
.mc-chip {
  flex-shrink: 0; border-radius: 999px; padding: 8px 16px;
  font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap;
  background: var(--lm-secundaria); color: var(--lm-secundaria-texto);
  transition: background-color .15s, color .15s;
}
.mc-chip[aria-pressed="true"] { background: var(--lm-texto); color: var(--lm-fundo); }

/* grade de produtos */
.mc-grade { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 16px; }
.mc-card { overflow: hidden; border-radius: calc(var(--lm-raio) + 12px); background: var(--lm-superficie); box-shadow: var(--lm-sombra); min-width: 0; display: flex; flex-direction: column; }
.mc-card-foto { display: block; width: 100%; }
.mc-foto { position: relative; aspect-ratio: 1 / 1; background: var(--lm-suave); overflow: hidden; }
.mc-foto img { width: 100%; height: 100%; object-fit: cover; }
.mc-sem-foto { position: absolute; inset: 0; display: grid; place-items: center; color: var(--lm-texto-suave); opacity: .55; }
.mc-selo {
  position: absolute; left: 8px; top: 8px; border-radius: 999px; padding: 2px 8px;
  font-size: 10px; line-height: 14px; font-weight: 700;
  background: var(--lm-destaque); color: var(--lm-destaque-contraste);
}
.mc-selo-fim { left: auto; right: 8px; background: var(--lm-superficie); color: var(--lm-texto); }
.mc-card.mc-esgotado .mc-foto img { opacity: .45; filter: grayscale(.6); }
.mc-card-corpo { padding: 12px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.mc-card-nome { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--lm-texto); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; word-break: break-word; }
.mc-card-desc { font-size: 12px; line-height: 16px; color: var(--lm-texto-suave); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; word-break: break-word; }
.mc-card-pe { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.mc-precos { min-width: 0; }
.mc-preco-de { font-size: 10px; line-height: 14px; color: var(--lm-texto-suave); text-decoration: line-through; white-space: nowrap; }
.mc-preco { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--lm-preco); white-space: nowrap; }
.mc-acao { margin-left: auto; }
.mc-add {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px;
  background: var(--lm-primaria); color: var(--lm-primaria-contraste);
  transition: transform .12s;
}
.mc-add:active { transform: scale(.92); }
.mc-indisp { font-size: 11px; line-height: 16px; font-weight: 600; color: var(--lm-texto-suave); white-space: nowrap; padding: 10px 0; }
.mc-passo { display: flex; align-items: center; gap: 4px; border-radius: 999px; background: var(--lm-secundaria); padding: 4px; }
.mc-passo button { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; }
.mc-passo-menos { background: var(--lm-superficie); color: var(--lm-texto); }
.mc-passo-mais { background: var(--lm-primaria); color: var(--lm-primaria-contraste); }
.mc-passo-mais:disabled { opacity: .4; }
.mc-passo-n { min-width: 16px; text-align: center; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--lm-texto); }
.mc-vazio { grid-column: 1 / -1; padding: 40px 0; text-align: center; font-size: 14px; color: var(--lm-texto-suave); }

/* carregando */
.mc-esq { border-radius: calc(var(--lm-raio) + 12px); background: var(--lm-superficie); box-shadow: var(--lm-sombra); overflow: hidden; }
.mc-esq-foto { aspect-ratio: 1 / 1; background: var(--lm-suave); animation: mc-pulsa 1.2s ease-in-out infinite; }
.mc-esq-linha { height: 10px; margin: 12px; border-radius: 6px; background: var(--lm-suave); animation: mc-pulsa 1.2s ease-in-out infinite; }
.mc-esq-linha + .mc-esq-linha { width: 50%; margin-top: 0; }
@keyframes mc-pulsa { 50% { opacity: .5; } }
.mc-erro { grid-column: 1 / -1; padding: 32px 16px; text-align: center; color: var(--lm-texto-suave); font-size: 14px; }
.mc-erro button { margin-top: 12px; border-radius: 999px; padding: 10px 18px; background: var(--lm-primaria); color: var(--lm-primaria-contraste); font-weight: 600; font-size: 14px; }

/* barra do carrinho */
.mc-barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0 auto; max-width: 28rem; padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.mc-barra[hidden] { display: none; }
.mc-barra button {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px;
  border-radius: calc(var(--lm-raio) + 8px); background: var(--lm-texto); color: var(--lm-fundo);
  padding: 16px 20px; box-shadow: var(--lm-sombra);
}
.mc-barra-qtd { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; }
.mc-barra-total { font-size: 14px; line-height: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* véu + folhas inferiores */
.mc-veu {
  position: fixed; inset: 0; z-index: 40;
  background: color-mix(in oklab, var(--lm-texto) 40%, transparent);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .2s;
}
.mc-veu.mc-on { opacity: 1; }
.mc-folha {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; margin: 0 auto; max-width: 28rem;
  max-height: 85vh; max-height: 85dvh; overflow-y: auto; overscroll-behavior: contain;
  border-radius: calc(var(--lm-raio) + 12px) calc(var(--lm-raio) + 12px) 0 0;
  background: var(--lm-superficie); color: var(--lm-texto);
  padding: 20px; padding-bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .24s cubic-bezier(.2,.8,.2,1);
}
.mc-folha.mc-on { transform: none; }
.mc-fechar {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px;
  background: var(--lm-secundaria); color: var(--lm-texto); flex-shrink: 0;
}
.mc-folha-x { position: absolute; right: 16px; top: 16px; z-index: 2; }

/* detalhe do produto */
.mc-galeria { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: calc(var(--lm-raio) + 8px); }
.mc-galeria::-webkit-scrollbar { display: none; }
.mc-galeria img, .mc-galeria .mc-galeria-vazia {
  flex: 0 0 100%; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; scroll-snap-align: center;
  border-radius: calc(var(--lm-raio) + 8px); background: var(--lm-suave);
}
.mc-galeria-vazia { display: grid; place-items: center; color: var(--lm-texto-suave); }
.mc-galeria-pontos { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.mc-galeria-pontos i { width: 6px; height: 6px; border-radius: 999px; background: var(--lm-borda); }
.mc-galeria-pontos i.mc-on { background: var(--lm-primaria); }
.mc-det-nome { margin-top: 16px; font-size: 18px; line-height: 28px; font-weight: 700; color: var(--lm-texto); }
.mc-det-preco { margin-top: 2px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mc-det-preco .mc-preco { font-size: 16px; }
.mc-det-preco .mc-preco-de { font-size: 12px; }
.mc-det-desc { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--lm-texto-suave); white-space: pre-line; }
.mc-ficha { margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--lm-borda); }
.mc-ficha li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--lm-borda); font-size: 13px; line-height: 18px; }
.mc-ficha span:first-child { color: var(--lm-texto-suave); }
.mc-ficha span:last-child { text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.mc-btn-cheio {
  margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  border-radius: calc(var(--lm-raio) + 8px); background: var(--lm-primaria); color: var(--lm-primaria-contraste);
  padding: 16px; font-size: 14px; line-height: 20px; font-weight: 700;
}
.mc-btn-cheio:disabled { opacity: .5; }

/* carrinho */
.mc-carr-topo { margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mc-carr-topo h3 { font-size: 18px; line-height: 28px; font-weight: 700; color: var(--lm-texto); }
.mc-carr-acoes { display: flex; align-items: center; gap: 8px; }
.mc-limpar { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--lm-texto-suave); padding: 8px; }
.mc-itens { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.mc-item { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mc-item-foto { position: relative; width: 56px; height: 56px; flex-shrink: 0; border-radius: calc(var(--lm-raio) + 4px); overflow: hidden; background: var(--lm-suave); }
.mc-item-foto img { width: 100%; height: 100%; object-fit: cover; }
.mc-item-txt { flex: 1; min-width: 0; }
.mc-item-nome { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--lm-texto); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-item-sub { font-size: 12px; line-height: 16px; color: var(--lm-texto-suave); }
.mc-total { margin-top: 20px; display: flex; justify-content: space-between; border-top: 1px solid var(--lm-borda); padding-top: 16px; font-size: 16px; line-height: 24px; font-weight: 700; color: var(--lm-texto); }

/* dados do pedido */
.mc-form { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.mc-form label { font-size: 12px; font-weight: 600; color: var(--lm-texto-suave); }
.mc-campo {
  width: 100%; border: 1px solid var(--lm-borda); border-radius: calc(var(--lm-raio) - 2px);
  background: var(--lm-suave); color: var(--lm-texto); padding: 12px 14px; font-size: 16px; line-height: 20px; outline: 0;
}
.mc-campo:focus { border-color: var(--lm-primaria); }
textarea.mc-campo { resize: vertical; min-height: 64px; }
.mc-opcoes { display: flex; gap: 8px; }
.mc-opcoes .mc-chip { flex: 1; text-align: center; }
.mc-aviso-whats { margin-top: 10px; display: flex; gap: 6px; align-items: flex-start; font-size: 12px; line-height: 16px; color: var(--lm-erro); }
.mc-btn-cheio[aria-busy="true"] { opacity: .75; cursor: progress; }
.mc-pgto { margin-top: 8px; text-align: center; font-size: 12px; line-height: 16px; color: var(--lm-texto-suave); }
.mc-falha { margin-top: 12px; font-size: 13px; line-height: 18px; color: var(--lm-texto-suave); }
.mc-falha a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--lm-primaria); text-decoration: underline; }

/* confirmação do pedido gravado */
.mc-conf { text-align: center; padding: 8px 0 4px; }
.mc-conf-ic {
  margin: 0 auto 10px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px;
  background: color-mix(in oklab, var(--lm-sucesso) 18%, var(--lm-superficie)); color: var(--lm-sucesso);
}
.mc-conf-titulo { font-size: 20px; line-height: 28px; font-weight: 700; color: var(--lm-texto); }
.mc-conf-num { margin-top: 4px; font-size: 15px; line-height: 22px; color: var(--lm-texto); }
.mc-conf-num strong { font-size: 18px; letter-spacing: .02em; }
.mc-conf-txt { margin: 6px auto 0; max-width: 22rem; font-size: 13px; line-height: 19px; color: var(--lm-texto-suave); }
.mc-conf-itens { margin: 18px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--lm-borda); }
.mc-conf-itens li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--lm-borda); font-size: 13px; line-height: 18px; color: var(--lm-texto); }
.mc-conf-itens li span:first-child { min-width: 0; overflow-wrap: anywhere; }
.mc-conf-itens li span:last-child { flex-shrink: 0; font-weight: 600; }
.mc-conf .mc-total, .mc-conf-itens + .mc-total { margin-top: 0; border-top: 0; }
.mc-conf-linha { margin-top: 8px; display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 18px; color: var(--lm-texto-suave); overflow-wrap: anywhere; }
.mc-conf-linha .lm-ic { flex-shrink: 0; margin-top: 1px; color: var(--lm-primaria); }
a.mc-btn-cheio { text-decoration: none; }
.mc-btn-whats { margin-top: 18px; }
.mc-conf-nota { margin-top: 6px; text-align: center; font-size: 12px; line-height: 16px; color: var(--lm-texto-suave); }
.mc-btn-linha {
  margin-top: 12px; display: flex; align-items: center; justify-content: center; width: 100%;
  border-radius: calc(var(--lm-raio) + 8px); border: 1px solid var(--lm-borda); background: transparent; color: var(--lm-texto);
  padding: 14px; font-size: 14px; line-height: 20px; font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .mc-folha, .mc-veu, .mc-chip, .mc-add { transition: none; }
  .mc-esq-foto, .mc-esq-linha { animation: none; }
}

/* ------------------------------------------------------------------ delivery (01/12/2026): horário, taxa, pagamento */
button.mc-status { padding: 0; text-align: left; max-width: 100%; }
button.mc-status:not(:disabled) { cursor: pointer; }
button.mc-status:disabled { cursor: default; opacity: 1; }
button.mc-status:not(:disabled) span:last-child { text-decoration: underline; text-decoration-color: color-mix(in oklab, currentColor 35%, transparent); text-underline-offset: 2px; }
.mc-status.mc-fechado, .mc-hor-agora.mc-fechado { color: var(--lm-erro); }
.mc-status.mc-fechado .mc-ponto, .mc-hor-agora.mc-fechado .mc-ponto { background: var(--lm-erro); }
.mc-aviso-fechado {
  margin-top: 12px; display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px;
  border-radius: calc(var(--lm-raio) + 4px); font-size: 13px; line-height: 18px;
  background: color-mix(in oklab, var(--lm-erro) 12%, var(--lm-superficie)); color: var(--lm-texto);
}
.mc-aviso-fechado .lm-ic { margin-top: 1px; color: var(--lm-erro); }
.mc-hor-agora { display: flex; align-items: center; gap: 6px; margin: -4px 0 12px; font-size: 14px; font-weight: 600; color: var(--lm-texto); }
.mc-horarios { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--lm-borda); }
.mc-horarios li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--lm-borda); font-size: 14px; line-height: 20px; color: var(--lm-texto-suave); }
.mc-horarios li span:last-child { font-variant-numeric: tabular-nums; color: var(--lm-texto); white-space: nowrap; }
.mc-horarios li.mc-hoje { color: var(--lm-texto); font-weight: 700; }
.mc-totais { margin-top: 20px; border-top: 1px solid var(--lm-borda); padding-top: 12px; }
.mc-totais .mc-total { margin-top: 6px; border-top: 0; padding-top: 4px; }
.mc-linha { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 22px; color: var(--lm-texto-suave); }
.mc-linha[hidden] { display: none; }
.mc-linha span:last-child { color: var(--lm-texto); font-weight: 600; white-space: nowrap; }
.mc-conf-frete { padding-top: 8px; }
.mc-frete-info { margin: 0; display: flex; align-items: flex-start; gap: 6px; font-size: 13px; line-height: 18px; color: var(--lm-texto-suave); }
.mc-frete-info .lm-ic { margin-top: 2px; }
.mc-frete-info.mc-ok-txt .lm-ic { color: var(--lm-primaria); }
.mc-frete-info.mc-erro-txt { color: var(--lm-erro); font-weight: 600; }
.mc-pag { display: flex; flex-direction: column; gap: 10px; }
.mc-pag[hidden] { display: none; }
.mc-formas { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-formas .mc-chip { flex: 0 1 auto; }
.mc-troco { display: flex; flex-direction: column; gap: 10px; }
.mc-opc { font-weight: 400; }
.mc-alerta {
  margin-top: 16px; display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px;
  border-radius: calc(var(--lm-raio) - 2px); font-size: 13px; line-height: 18px; font-weight: 600;
  background: color-mix(in oklab, var(--lm-erro) 12%, var(--lm-superficie)); color: var(--lm-texto);
}
.mc-alerta .lm-ic { margin-top: 1px; color: var(--lm-erro); }
.mc-alerta + .mc-btn-cheio { margin-top: 12px; }

/* ------------------------------------------------------------------ escolhas do produto (R1, 01/12/2026)
   adicionais (contador), personalizar (liga/desliga), meia pizza (sabores), obs do item, quantidade + adicionar;
   carrinho e confirmação com adicionais/obs. Só variáveis --lm-* (o tema pinta). */
.mc-og { margin-top: 18px; }
.mc-og-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 8px; flex-wrap: wrap; margin-bottom: 8px; }
.mc-og-cab h4 { margin: 0; font-size: 15px; line-height: 20px; font-weight: 700; color: var(--lm-texto); }
.mc-og-regra { font-size: 12px; line-height: 16px; color: var(--lm-texto-suave); }
.mc-og .mc-opcoes { flex-wrap: wrap; margin-bottom: 8px; }
.mc-og .mc-opcoes .mc-chip { flex: 1 1 auto; white-space: normal; }
.mc-og-lista { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--lm-borda); }
.mc-og-lista[hidden] { display: none; }
.mc-og-lista > li { border-bottom: 1px solid var(--lm-borda); }
.mc-og-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px;
  padding: 8px 2px; text-align: left; color: var(--lm-texto); background: none;
}
.mc-og-txt { min-width: 0; display: flex; flex-direction: column; }
.mc-og-nome { font-size: 14px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; }
.mc-og-preco { font-size: 12px; line-height: 16px; color: var(--lm-texto-suave); }
.mc-og-on .mc-og-nome { font-weight: 700; }
.mc-og-item .mc-passo { flex-shrink: 0; }
.mc-passo-menos:disabled { opacity: .4; }
.mc-og-marca {
  display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; border-radius: 999px;
  border: 2px solid var(--lm-borda); color: transparent;
}
.mc-og-sabor[aria-pressed="true"] .mc-og-marca { background: var(--lm-primaria); border-color: var(--lm-primaria); color: var(--lm-primaria-contraste); }
.mc-og-sabor[aria-pressed="true"] .mc-og-nome { font-weight: 700; }
.mc-og-sabor:disabled { opacity: .45; }
.mc-chave { position: relative; width: 44px; height: 26px; flex-shrink: 0; border-radius: 999px; background: var(--lm-borda); transition: background-color .15s; }
.mc-chave::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 999px;
  background: var(--lm-superficie); box-shadow: 0 1px 3px oklch(0 0 0 / 25%); transition: transform .15s;
}
[aria-checked="true"] > .mc-chave { background: var(--lm-primaria); }
[aria-checked="true"] > .mc-chave::after { transform: translateX(18px); }
.mc-og-obs { display: flex; flex-direction: column; gap: 8px; }
.mc-og-obs label { font-size: 12px; font-weight: 600; color: var(--lm-texto-suave); }
.mc-det-pe { margin-top: 20px; display: flex; align-items: center; gap: 10px; }
.mc-det-pe .mc-btn-cheio { margin-top: 0; flex: 1; min-width: 0; padding-left: 10px; padding-right: 10px; }
.mc-passo-det { flex-shrink: 0; }
.mc-passo-det button { width: 36px; height: 36px; }
.mc-passo-det .mc-passo-n { min-width: 22px; font-size: 14px; }
.mc-passo-det .mc-passo-menos:disabled { opacity: .4; }
.mc-add-n span { font-size: 13px; line-height: 1; font-weight: 700; }
.mc-item-nome2 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mc-item-det { font-size: 12px; line-height: 16px; color: var(--lm-texto-suave); overflow-wrap: anywhere; }
.mc-conf-itens li span.mc-item-det { display: block; margin-top: 2px; font-weight: 400; }
@media (prefers-reduced-motion: reduce) { .mc-chave, .mc-chave::after { transition: none; } }
