/* =====================================================================
   MESA DO FIM DE TARDE — tela de pedir (cliente pelo QR da mesa e garçom)
   Mesmo visual do cardápio novo do PedeJá. Cor da loja em --ms-cor / --ms-cor-txt (index.php).
   ===================================================================== */
:root {
	--ms-fundo: #f4f4f6;
	--ms-card: #fff;
	--ms-txt: #1d1d1f;
	--ms-txt-2: #6e6e73;
	--ms-borda: #ececf0;
	--ms-verde: #1a9b5b;
	--ms-vermelho: #d63a2f;
	--ms-raio: 18px;
	--ms-largura: 760px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.ms-body { margin: 0; min-height: 100vh; background: var(--ms-fundo); color: var(--ms-txt); font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
body.ms-travado { overflow: hidden; }
.ms-body h1, .ms-body h2, .ms-body h3, .ms-body p { margin: 0; }
:where(.ms-body) button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
:where(.ms-body) svg { width: 20px; height: 20px; flex-shrink: 0; }
.ms-body [hidden] { display: none !important; }

/* ---------- botões ---------- */
.ms-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 18px; border-radius: 14px; background: #e9e9ee; font-weight: 700; font-size: 15px; transition: transform .1s, filter .15s; }
.ms-btn:active { transform: scale(.98); }
.ms-btn--cor { background: var(--ms-cor); color: var(--ms-cor-txt); }
.ms-btn--grande { height: 54px; font-size: 16px; border-radius: 16px; }
.ms-btn--cheio { width: 100%; justify-content: space-between; padding: 0 20px; }
.ms-btn:disabled { opacity: .5; }
.ms-carregando { pointer-events: none; opacity: .7; }

/* ---------- topo ---------- */
.ms-topo { position: sticky; top: 0; z-index: 30; background: rgba(244, 244, 246, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.ms-topo__dentro { display: flex; align-items: center; gap: 10px; max-width: var(--ms-largura); margin: 0 auto; padding: 12px 16px 10px; padding-top: calc(12px + env(safe-area-inset-top)); }
.ms-topo__logo { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 0 0 1px var(--ms-borda); }
.ms-topo__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ms-topo__txt strong { font-size: 15.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-topo__mesa { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--ms-txt-2); }
.ms-topo__mesa svg { width: 15px; height: 15px; }
button.ms-topo__mesa { height: 28px; padding: 0 10px; margin-left: -2px; border-radius: 999px; background: var(--ms-cor); color: var(--ms-cor-txt); }
.ms-sem-mesa button.ms-topo__mesa { animation: ms-pisca 1.2s ease-in-out infinite; }
@keyframes ms-pisca { 50% { opacity: .55; } }
.ms-topo__btn { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 52px; padding: 6px 4px; border-radius: 12px; background: #fff; font-size: 11px; font-weight: 700; box-shadow: 0 0 0 1px var(--ms-borda); }
.ms-topo__btn svg { width: 19px; height: 19px; }
.ms-topo__aviso { display: flex; align-items: center; gap: 8px; max-width: calc(var(--ms-largura) - 32px); margin: 0 auto 8px; padding: 10px 12px; border-radius: 12px; background: #fff4e5; color: #8a4b00; font-size: 13px; font-weight: 600; }
.ms-topo__aviso svg { width: 16px; height: 16px; }
.ms-busca-faixa { max-width: var(--ms-largura); margin: 0 auto; padding: 0 16px 10px; border-bottom: 1px solid var(--ms-borda); }
.ms-busca { position: relative; display: block; }
.ms-busca svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ms-txt-2); pointer-events: none; }
.ms-busca input { width: 100%; height: 44px; padding: 0 14px 0 42px; border: 0; border-radius: 14px; background: #fff; font: inherit; font-size: 15px; outline: none; box-shadow: 0 0 0 1px var(--ms-borda); -webkit-appearance: none; }
.ms-busca input:focus { box-shadow: 0 0 0 2px var(--ms-txt); }
.ms-cats { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.ms-cats::-webkit-scrollbar { display: none; }
.ms-cats a { flex-shrink: 0; height: 34px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--ms-txt-2); font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap; box-shadow: 0 0 0 1px var(--ms-borda); }
.ms-cats a.ms-on { background: var(--ms-txt); color: #fff; box-shadow: none; }
.ms-buscando .ms-cats { display: none; }

/* ---------- lista ---------- */
.ms-lista { max-width: var(--ms-largura); margin: 0 auto; padding: 8px 16px 120px; }
.ms-cat { padding-top: 14px; scroll-margin-top: 150px; }
.ms-cat h2 { margin: 4px 2px 10px; font-size: 18px; font-weight: 800; letter-spacing: -.2px; }
.ms-cat h2 small { font-size: 12px; font-weight: 700; color: #8a4b00; }
.ms-cat__itens { display: flex; flex-direction: column; gap: 8px; }
.ms-item { position: relative; display: flex; align-items: stretch; border-radius: var(--ms-raio); background: var(--ms-card); box-shadow: 0 0 0 1px var(--ms-borda); transition: box-shadow .15s; }
.ms-item--no-pedido { box-shadow: 0 0 0 2px var(--ms-cor); }
.ms-item__corpo { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 14px 6px 14px 14px; text-align: left; }
.ms-item__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ms-item__txt b { font-size: 15px; font-weight: 700; line-height: 1.3; }
.ms-item__txt small { font-size: 13px; color: var(--ms-txt-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ms-item__txt em { font-style: normal; font-size: 14px; font-weight: 800; color: var(--ms-verde); }
.ms-item__foto { width: 84px; height: 84px; flex-shrink: 0; border-radius: 14px; overflow: hidden; background: var(--ms-fundo); }
.ms-item__foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ms-item__mais { position: relative; align-self: center; width: 46px; height: 46px; margin: 0 10px 0 4px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--ms-cor); color: var(--ms-cor-txt); }
.ms-item__mais svg { width: 22px; height: 22px; }
.ms-item__mais.ms-pulo { animation: ms-pulo .35s ease; }
@keyframes ms-pulo { 40% { transform: scale(1.18); } }
.ms-item__qtd { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ms-txt); color: #fff; font-size: 12px; font-style: normal; font-weight: 800; line-height: 22px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.ms-item--esgotado { opacity: .5; }
.ms-item--esgotado .ms-item__txt em { color: var(--ms-vermelho); }
.ms-vazio { padding: 28px 10px; text-align: center; color: var(--ms-txt-2); }

/* garçom: lista mais densa, sem foto, para lançar rápido */
.ms-modo-garcom .ms-cat__itens { gap: 6px; }
.ms-modo-garcom .ms-item__corpo { padding: 11px 6px 11px 14px; }
.ms-modo-garcom .ms-item__txt b { font-size: 15.5px; }
/* "+" do garçom: caixinha branca com borda cinza e o "+" cinza (leve, sem bloco preto) */
.ms-modo-garcom .ms-item__mais { width: 44px; height: 44px; margin: 0 12px 0 4px; border-radius: 12px; background: #fff; color: #8e8e93; box-shadow: inset 0 0 0 1.5px #d1d1d6; transition: background .12s, color .12s, box-shadow .12s; }
.ms-modo-garcom .ms-item__mais svg { width: 20px; height: 20px; }
.ms-modo-garcom .ms-item__mais:active { background: #f2f2f5; color: var(--ms-txt); box-shadow: inset 0 0 0 1.5px #aeaeb2; }

/* ---------- barra do pedido ---------- */
.ms-barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(244, 244, 246, 0), var(--ms-fundo) 30%); }
.ms-barra__btn { display: flex; align-items: center; gap: 12px; width: 100%; max-width: calc(var(--ms-largura) - 32px); height: 58px; margin: 0 auto; padding: 0 18px 0 10px; border-radius: 18px; background: var(--ms-cor); color: var(--ms-cor-txt); font-weight: 800; font-size: 16px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45); animation: ms-sobe .3s ease; }
.ms-barra__qtd { min-width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; padding: 0 8px; border-radius: 12px; background: rgba(255, 255, 255, .22); }
.ms-barra__txt { flex: 1; text-align: left; }
@keyframes ms-sobe { from { transform: translateY(20px); opacity: 0; } }

/* ---------- gavetas ---------- */
.ms-gaveta { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.ms-gaveta__fundo { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .22s; }
.ms-gaveta.ms-on .ms-gaveta__fundo { opacity: 1; }
.ms-gaveta__caixa { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; border-radius: 24px 24px 0 0; background: #fff; overflow: hidden; transform: translateY(100%); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.ms-gaveta.ms-on .ms-gaveta__caixa { transform: none; }
.ms-gaveta--cheia .ms-gaveta__caixa { max-height: none; height: 100%; max-width: none; border-radius: 0; background: var(--ms-fundo); }
.ms-gaveta__rolagem { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 22px 18px 18px; }
.ms-gaveta__pe { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ms-borda); background: #fff; display: flex; gap: 10px; align-items: center; }
.ms-fechar { position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.ms-fechar--relativo { position: static; }
.ms-item-foto { width: 100%; aspect-ratio: 16 / 10; background: var(--ms-fundo); flex-shrink: 0; }
.ms-item-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ms-item-cab { padding-right: 40px; margin-bottom: 16px; }
.ms-item-cab h2 { font-size: 21px; font-weight: 800; letter-spacing: -.3px; line-height: 1.2; }
.ms-item-cab p { margin-top: 6px; font-size: 14px; color: var(--ms-txt-2); }

.ms-grupo { margin-bottom: 18px; border-radius: 16px; transition: box-shadow .2s; }
.ms-grupo--erro { box-shadow: 0 0 0 2px var(--ms-vermelho); animation: ms-treme .3s; }
@keyframes ms-treme { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.ms-grupo__cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px 14px 0 0; background: var(--ms-fundo); }
.ms-grupo__cab b { display: block; font-size: 15px; }
.ms-grupo__cab small { font-size: 12.5px; color: var(--ms-txt-2); }
.ms-selo { flex-shrink: 0; height: 24px; display: inline-flex; align-items: center; gap: 3px; padding: 0 9px; border-radius: 999px; background: #e9e9ee; font-size: 11.5px; font-weight: 800; color: var(--ms-txt-2); }
.ms-selo:empty { display: none; }
.ms-selo--obg { background: var(--ms-txt); color: #fff; }
.ms-selo i { font-style: normal; }
.ms-opcoes { display: flex; flex-direction: column; }
.ms-opcao { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 10px 14px; border-bottom: 1px solid var(--ms-borda); cursor: pointer; text-align: left; width: 100%; }
.ms-opcao:last-child { border-bottom: 0; }
.ms-opcao__marca { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; border: 2px solid #c7c7cc; transition: border-color .12s, background .12s; }
.ms-opcao.ms-on .ms-opcao__marca { border: 7px solid var(--ms-cor); }
.ms-opcao__n { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; }
.ms-opcao > b { font-size: 13.5px; font-weight: 700; color: var(--ms-txt-2); white-space: nowrap; }
.ms-opcao--qtd .ms-opcao__marca { display: none; }
.ms-opcao--qtd.ms-on .ms-opcao__n { font-weight: 800; }
.ms-grupo--cheio .ms-opcao--qtd:not(.ms-on) { opacity: .5; }
.ms-cont { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.ms-cont button { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--ms-fundo); }
.ms-cont button:disabled { opacity: .35; }
.ms-cont svg { width: 16px; height: 16px; }
.ms-cont i { min-width: 22px; text-align: center; font-style: normal; font-weight: 800; }

.ms-campo { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.ms-campo > span { font-size: 13.5px; font-weight: 700; }
.ms-campo small { font-weight: 500; color: var(--ms-txt-2); }
.ms-campo input { height: 48px; padding: 0 14px; border: 1.5px solid var(--ms-borda); border-radius: 14px; font: inherit; font-size: 16px; outline: none; background: #fff; }
.ms-campo input:focus { border-color: var(--ms-txt); }
.ms-campo--erro input { border-color: var(--ms-vermelho); }

.ms-qtd { display: flex; align-items: center; gap: 4px; flex-shrink: 0; padding: 4px; border-radius: 16px; background: var(--ms-fundo); }
.ms-qtd button { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: #fff; }
.ms-qtd b { min-width: 26px; text-align: center; font-size: 17px; }
.ms-qtd--mini { padding: 3px; border-radius: 13px; }
.ms-qtd--mini button { width: 34px; height: 34px; border-radius: 10px; }
.ms-qtd--mini svg { width: 16px; height: 16px; }
.ms-qtd--mini b { min-width: 20px; font-size: 15px; }

/* pedido */
.ms-chip-mesa { display: inline-flex; align-items: center; gap: 8px; height: 36px; margin-top: 8px; padding: 0 12px; border-radius: 12px; background: var(--ms-fundo); font-weight: 700; }
.ms-chip-mesa svg { width: 17px; height: 17px; }
.ms-chip-mesa u { font-size: 12.5px; font-weight: 600; color: var(--ms-txt-2); }
.ms-linhas { list-style: none; margin: 0 0 14px; padding: 0; }
.ms-linha { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--ms-borda); }
.ms-linha__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.ms-linha__txt b { font-size: 15px; }
.ms-linha__txt small, .ms-rodada small { display: block; font-size: 12.5px; color: var(--ms-txt-2); }
.ms-linha__obs { color: #b34700 !important; font-weight: 700; }
.ms-linha__txt em { font-style: normal; font-weight: 800; font-size: 14px; }
.ms-totais { padding: 12px 14px; margin-bottom: 14px; border-radius: 14px; background: var(--ms-fundo); }
.ms-totais p { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.ms-totais__nota { font-size: 12.5px; color: var(--ms-txt-2); }
.ms-totais__total { margin-top: 4px; padding-top: 8px !important; border-top: 1px solid #dcdce2; font-size: 18px; font-weight: 800; }
.ms-aviso-linha { flex: 1; text-align: center; font-weight: 600; color: #8a4b00; }

/* conta */
.ms-rodada { margin-bottom: 14px; }
.ms-rodada h3 { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ms-txt-2); }
.ms-rodada h3 small { text-transform: none; letter-spacing: 0; font-weight: 600; }
.ms-rodada ul { list-style: none; margin: 0; padding: 0; border-radius: 14px; background: var(--ms-fundo); }
.ms-rodada li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #e6e6ea; font-size: 14px; }
.ms-rodada li:last-child { border-bottom: 0; }
.ms-rodada li em { font-style: normal; font-weight: 700; white-space: nowrap; }

/* chamar o garçom */
.ms-chamados { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.ms-chamado { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 8px 10px 8px 16px; border-radius: 14px; background: var(--ms-fundo); font-weight: 700; cursor: pointer; }
.ms-chamado.ms-on { box-shadow: inset 0 0 0 2px var(--ms-cor); background: #fff; }
.ms-chamado .ms-cont button { background: #fff; }
.ms-chamado.ms-on .ms-opcao__marca { border: 7px solid var(--ms-cor); }

/* mesas (garçom) */
.ms-mesas__topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 6px; padding-top: calc(16px + env(safe-area-inset-top)); }
.ms-mesas__topo h2 { font-size: 22px; font-weight: 800; }
.ms-mesas__topo small { font-size: 13px; color: var(--ms-txt-2); }
.ms-mesas__titulo { margin: 6px 2px 10px; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ms-txt-2); }
.ms-mesas { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin-bottom: 18px; }
.ms-mesa { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; aspect-ratio: 1 / 1; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--ms-borda); }
.ms-mesa b { font-size: 26px; font-weight: 800; letter-spacing: -.5px; line-height: 1; }
.ms-mesa small { font-size: 11.5px; font-weight: 700; color: var(--ms-txt-2); }
.ms-mesa--aberta { background: #fff7e6; box-shadow: 0 0 0 2px #f0a020; }
.ms-mesa--aberta small { color: #8a4b00; }
.ms-mesa--atual { background: var(--ms-cor); color: var(--ms-cor-txt); box-shadow: none; }
.ms-mesa--atual small { color: inherit; opacity: .85; }

/* ---------- envio (animação até o servidor confirmar) ---------- */
.ms-envio { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(20, 20, 24, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.ms-envio.ms-on { opacity: 1; }
.ms-envio__caixa { width: 100%; max-width: 380px; padding: 30px 24px 22px; border-radius: 26px; background: #fff; text-align: center; transform: scale(.94); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.ms-envio.ms-on .ms-envio__caixa { transform: none; }
.ms-envio__anim { position: relative; width: 92px; height: 92px; margin: 0 auto 18px; }
.ms-envio__anel { position: absolute; inset: 0; border-radius: 50%; border: 6px solid #ececf0; border-top-color: var(--ms-cor); animation: ms-gira .9s linear infinite; }
.ms-envio__check, .ms-envio__x { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; opacity: 0; transform: scale(.4); transition: opacity .25s, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.ms-envio__check { background: var(--ms-verde); color: #fff; }
.ms-envio__x { background: var(--ms-vermelho); color: #fff; }
.ms-envio__check svg, .ms-envio__x svg { width: 46px; height: 46px; stroke-width: 2.8; }
.ms-envio--ok .ms-envio__anel, .ms-envio--erro .ms-envio__anel { animation: none; border-color: transparent; }
.ms-envio--ok .ms-envio__check, .ms-envio--erro .ms-envio__x { opacity: 1; transform: none; }
.ms-envio--ok .ms-envio__check { box-shadow: 0 0 0 0 rgba(26, 155, 91, .5); animation: ms-onda 1s .2s ease-out; }
@keyframes ms-gira { to { transform: rotate(360deg); } }
@keyframes ms-onda { to { box-shadow: 0 0 0 26px rgba(26, 155, 91, 0); } }
.ms-envio h2 { font-size: 21px; font-weight: 800; letter-spacing: -.3px; }
.ms-envio p { margin-top: 6px; font-size: 14.5px; color: var(--ms-txt-2); }
.ms-envio__barra { height: 4px; margin: 18px auto 0; max-width: 200px; border-radius: 999px; background: #ececf0; overflow: hidden; }
.ms-envio__barra span { display: block; width: 40%; height: 100%; border-radius: 999px; background: var(--ms-cor); animation: ms-barra 1.2s ease-in-out infinite; }
@keyframes ms-barra { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.ms-envio--ok .ms-envio__barra, .ms-envio--erro .ms-envio__barra { display: none; }
.ms-envio__botoes { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.ms-envio__botoes:empty { display: none; }

/* ---------- aviso rápido ---------- */
.ms-toast { position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 95; max-width: calc(100vw - 32px); padding: 11px 16px; border-radius: 14px; background: var(--ms-txt); color: #fff; font-size: 14px; font-weight: 600; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: transform .2s, opacity .2s; }
.ms-toast.ms-on { transform: translate(-50%, 0); opacity: 1; }
.ms-toast--erro { background: var(--ms-vermelho); }

/* ---------- telas de aviso (QR inválido, mesa fechada, senha do garçom) ---------- */
.ms-aviso { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; max-width: 420px; margin: 0 auto; padding: 32px 24px; text-align: center; }
.ms-aviso__logo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--ms-borda); margin-bottom: 8px; background: #fff; }
.ms-aviso__icone { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border-radius: 20px; background: var(--ms-cor); color: var(--ms-cor-txt); }
.ms-aviso__icone svg { width: 30px; height: 30px; }
.ms-aviso h1 { font-size: 23px; font-weight: 800; letter-spacing: -.3px; }
.ms-aviso p { color: var(--ms-txt-2); }
.ms-pin { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 8px; }
.ms-pin input { height: 58px; border: 1.5px solid var(--ms-borda); border-radius: 16px; font: inherit; font-size: 26px; font-weight: 800; letter-spacing: .3em; text-align: center; outline: none; }
.ms-pin input:focus { border-color: var(--ms-txt); }
.ms-pin__erro { color: var(--ms-vermelho); font-weight: 700; }

@media (min-width: 700px) {
	.ms-gaveta { align-items: center; }
	.ms-gaveta__caixa { border-radius: 24px; max-height: 88vh; }
	.ms-gaveta--cheia .ms-gaveta__caixa { border-radius: 0; max-height: none; }
	.ms-mesas__topo, .ms-gaveta--cheia .ms-gaveta__rolagem { max-width: 900px; width: 100%; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
	.ms-envio__anel { animation-duration: 2.5s; }
	.ms-item__mais.ms-pulo, .ms-grupo--erro { animation: none; }
}

/* =====================================================================
   CLIENTE PELO QR — mesmo visual do cardápio do delivery (css/pj-home.css do PedeJá):
   capa na cor da loja, cartão com logo, abas de categoria, cartões com foto, menu embaixo.
   ===================================================================== */
.ms-wrap { width: 100%; max-width: var(--ms-largura); margin: 0 auto; padding: 0 16px; }
.ms-hero { position: relative; padding-bottom: 4px; }
.ms-hero__capa { position: relative; height: 132px; background: linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(0, 0, 0, .18)), var(--ms-capa); overflow: hidden; }
.ms-hero__capa::before, .ms-hero__capa::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.ms-hero__capa::before { width: 220px; height: 220px; top: -90px; right: -60px; }
.ms-hero__capa::after { width: 140px; height: 140px; bottom: -70px; left: -30px; background: rgba(0, 0, 0, .07); }
.ms-hero__card { position: relative; margin-top: -64px; padding: 58px 18px 18px; border-radius: 22px; background: #fff; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .18); text-align: center; }
.ms-hero__logo { position: absolute; top: -46px; left: 50%; transform: translateX(-50%); width: 92px; height: 92px; padding: 6px; border-radius: 24px; background: #fff; object-fit: contain; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .25); }
.ms-hero__nome { font-size: 21px; font-weight: 700; line-height: 1.25; word-break: break-word; }
.ms-hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.ms-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 7px 12px; border-radius: 999px; background: #f2f2f5; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.ms-chip svg { width: 15px; height: 15px; opacity: .75; }
.ms-chip--mesa { background: var(--ms-cor); color: var(--ms-cor-txt); font-weight: 700; }
.ms-chip--mesa svg { opacity: 1; }
.ms-chip--aberto { background: #e7f6ec; color: #11743a; font-weight: 700; }
.ms-chip--fechado { background: #fdecec; color: #b42318; font-weight: 700; }
.ms-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.ms-chip--aberto .ms-dot { animation: ms-pulso 2s infinite; }
@keyframes ms-pulso { 0% { box-shadow: 0 0 0 0 rgba(17, 116, 58, .45); } 70% { box-shadow: 0 0 0 7px rgba(17, 116, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(17, 116, 58, 0); } }

.ms-tabs { position: sticky; top: 0; z-index: 30; height: 56px; margin-top: 14px; background: rgba(244, 244, 246, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.ms-tabs__trilho { display: flex; align-items: center; gap: 8px; height: 100%; max-width: var(--ms-largura); margin: 0 auto; padding: 0 16px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.ms-tabs__trilho::-webkit-scrollbar { display: none; }
.ms-tab { flex-shrink: 0; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--ms-borda); background: #fff; color: var(--ms-txt-2); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.ms-tab.ms-on { background: var(--ms-cor); border-color: var(--ms-cor); color: var(--ms-cor-txt); font-weight: 700; }

.ms-modo-cliente .ms-lista { padding-top: 4px; padding-bottom: 170px; }
.ms-modo-cliente .ms-cat { padding-top: 40px; scroll-margin-top: 64px; }
.ms-modo-cliente .ms-cat:first-child { padding-top: 22px; }
.ms-cat__topo { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; padding: 0 2px; }
.ms-cat__topo h2 { margin: 0 !important; font-size: 16.5px !important; font-weight: 800; line-height: 1.25; text-transform: uppercase; letter-spacing: .4px !important; }
.ms-cat__topo span { font-size: 12px; color: var(--ms-txt-2); white-space: nowrap; }
.ms-modo-cliente .ms-cat__itens { display: grid; grid-template-columns: 1fr; gap: 10px; }

.ms-card { position: relative; display: flex; align-items: stretch; gap: 12px; min-height: 104px; padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 2px 10px -6px rgba(0, 0, 0, .15); cursor: pointer; outline: none; transition: transform .12s, box-shadow .12s; }
.ms-card:active { transform: scale(.985); box-shadow: 0 1px 4px -2px rgba(0, 0, 0, .15); }
.ms-card:focus-visible { box-shadow: 0 0 0 2.5px var(--ms-txt); }
.ms-card__info { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; }
.ms-card__info h3 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; }
.ms-card__info p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ms-txt-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.ms-card__preco { margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 700; color: var(--ms-preco); }
.ms-card__foto { position: relative; width: 96px; height: 96px; flex-shrink: 0; align-self: center; border-radius: 14px; overflow: hidden; background: linear-gradient(90deg, #f0f0f3 20%, #f8f8fa 50%, #f0f0f3 80%); background-size: 200% 100%; animation: ms-brilho 1.4s linear infinite; }
.ms-card__foto img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.ms-card__foto img.ms-on { opacity: 1; }
.ms-card__foto.ms-carregada { animation: none; background: #f2f2f5; }
@keyframes ms-brilho { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.ms-card .ms-item__qtd { top: -7px; right: -7px; left: auto; background: var(--ms-cor); color: var(--ms-cor-txt); }
.ms-card.ms-item--no-pedido { box-shadow: 0 0 0 2px var(--ms-cor), 0 2px 10px -6px rgba(0, 0, 0, .15); }
.ms-card--esgotado { cursor: default; }
.ms-card--esgotado .ms-card__info, .ms-card--esgotado .ms-card__foto { opacity: .45; }
.ms-card--esgotado .ms-card__preco { color: var(--ms-txt-2); }

/* menu de baixo (igual ao do delivery) e a barra do pedido em cima dele */
.ms-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; display: flex; justify-content: space-around; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -1px 0 var(--ms-borda), 0 -8px 24px -18px rgba(0, 0, 0, .3); }
.ms-nav__btn { flex: 1; max-width: 140px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; font-size: 11.5px; font-weight: 600; color: var(--ms-txt-2); }
.ms-nav__btn span { display: flex; align-items: center; justify-content: center; width: 52px; height: 30px; border-radius: 999px; transition: background .15s; }
.ms-nav__btn span svg { width: 21px; height: 21px; }
.ms-nav__btn.ms-on { color: var(--ms-txt); font-weight: 700; }
.ms-nav__btn.ms-on span { background: #ececf0; }
.ms-modo-cliente .ms-barra { bottom: calc(62px + env(safe-area-inset-bottom)); padding-bottom: 10px; z-index: 40; }
.ms-modo-cliente .ms-toast { bottom: calc(150px + env(safe-area-inset-bottom)); }

@media (min-width: 820px) {
	.ms-hero__capa { height: 170px; }
	.ms-hero__nome { font-size: 24px; }
	.ms-modo-cliente .ms-cat__itens { grid-template-columns: 1fr 1fr; }
}

/* foto do item rola junto com as opções (como a página do produto do delivery) */
.ms-gaveta__rolagem.ms-com-foto { padding-top: 0; }
.ms-gaveta__rolagem .ms-item-foto { width: auto; height: min(68vw, 320px); margin: 0 -18px 18px; aspect-ratio: auto; background: var(--ms-fundo); overflow: hidden; }
.ms-gaveta__rolagem .ms-item-foto img { width: 100%; height: 100%; object-fit: cover; }
.ms-item-cab__preco { display: block; margin-top: 8px; font-size: 17px; font-weight: 800; color: var(--ms-preco, var(--ms-txt)); }
.ms-modo-garcom .ms-item-cab__preco { display: none; }
/* pizza meio a meio: sabor já escolhido na outra metade */
.ms-opcao.ms-off { opacity: .35; pointer-events: none; }
