:root {
    font: 16px/1.5 "Segoe UI", Arial, sans-serif;
    color: #271c20;
    background: #f8f5f2;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.largura { width: min(1060px, calc(100% - 32px)); margin: auto; }
.topo { background: #3c0814; color: white; padding: 12px 0; }
.topo .largura { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topo img { display: block; }
.topo a { color: white; }
main { padding-block: clamp(24px, 6vw, 70px); }
.saudacao-titulo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 8px; }
.saudacao-titulo h1 { margin: 0; overflow-wrap: anywhere; }
.codigo-entregador { display: inline-flex; align-items: baseline; gap: 9px; padding: 9px 20px; border: 1px solid #eed6a2; border-radius: 999px; background: #fff3d7; color: #58182a; font-size: 1.05rem; white-space: nowrap; }
.codigo-entregador strong { font-size: 1.4rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.duvidas-whatsapp { position: fixed; z-index: 4; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 7px; min-height: 46px; padding: 9px 15px; border-radius: 999px; background: #116442; color: white; font-weight: 700; text-decoration: none; box-shadow: 0 3px 14px #13281c33; }
.duvidas-whatsapp:hover { background: #0c5034; }
main.largura { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
h1, h2 { margin: 0 0 8px; line-height: 1.1; letter-spacing: -.045em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: 1.55rem; }
p { margin: 0 0 14px; }
.acesso { display: grid; grid-template-columns: 1fr 1.16fr; max-width: 880px; margin: auto; overflow: hidden; border-radius: 22px; background: white; box-shadow: 0 18px 55px #35101716; }
.destaque { display: grid; place-content: center; justify-items: center; gap: 16px; padding: 24px; color: #ffd666; background: radial-gradient(ellipse, #841c30, #400b1b); }
.destaque img { max-width: 100%; height: auto; }
.destaque p { margin: 0; font-weight: 750; }
.conteudo, .cartao { padding: clamp(20px, 4vw, 42px); }
.cartao { background: white; border: 1px solid #eadfdf; border-radius: 18px; margin-top: 18px; }
.faixa-restaurante, .faixa-entregador {
    --largura-foto: clamp(76px, 11vw, 136px);
    position: relative;
    padding-left: calc(var(--largura-foto) + clamp(16px, 3vw, 36px));
}
.faixa-restaurante::before, .faixa-entregador::before {
    content: ""; position: absolute; inset: 0 auto 0 0; width: var(--largura-foto);
    border-radius: 17px 0 0 17px; background-repeat: no-repeat;
    background-size: cover; background-position: center; pointer-events: none;
}
.faixa-restaurante::before { background-color: #955534; background-image: url("../assets/lateral-hamburgueria.webp"); }
.faixa-entregador::before { background-color: #85483e; background-image: url("../assets/lateral-entregador.webp"); background-position: center 32%; }
@media (max-width: 540px) {
    .faixa-restaurante, .faixa-entregador { --largura-foto: clamp(54px, 17vw, 82px); padding-right: 14px; }
}
.mensagem { border-top: 4px solid #ffcb42; max-width: 640px; margin-inline: auto; }
.mensagem p { margin-bottom: 0; }
.login { display: grid; gap: 15px; margin-top: 20px; }
label { display: grid; gap: 5px; font-weight: 650; }
input { padding: 10px 12px; font: inherit; color: inherit; border: 1px solid #bdb1b5; border-radius: 8px; min-width: 0; width: 100%; }
button { border: 0; border-radius: 8px; padding: 10px 16px; font: inherit; font-weight: 750; cursor: pointer; color: #321708; background: #ffcb42; }
button:hover { background: #ffd86f; }
.secundario { background: #ffffff19; color: white; }
.secundario:hover { background: #ffffff30; }
.voltar-painel { display: inline-block; border-radius: 8px; padding: 10px 16px; font-weight: 750; text-decoration: none; }
.janela-localizacao { width: min(340px, calc(100% - 32px)); padding: 0; overflow: hidden; border: 0; border-radius: 24px; color: inherit; background: #fff; box-shadow: 0 24px 60px #3c081440; }
.janela-localizacao[open] { animation: surgir-janela .28s cubic-bezier(.2, .9, .3, 1.2); }
.janela-localizacao::backdrop { background: #271c2099; backdrop-filter: blur(2px); }
.mapa-localizacao { position: relative; height: 190px; overflow: hidden; border-bottom: 4px solid #ffcb42; }
.mapa-localizacao > svg:first-child { display: block; width: 100%; height: 100%; }
.mapa-localizacao .pino { position: absolute; left: 50%; top: 50%; width: 48px; height: 60px; margin: -54px 0 0 -24px; filter: drop-shadow(0 6px 6px #3c081440); animation: quicar-pino 1.8s ease-in-out infinite; }
.mapa-localizacao .pulso { position: absolute; left: 50%; top: 50%; width: 22px; height: 10px; margin: 2px 0 0 -11px; border-radius: 50%; background: #841c3040; animation: pulsar-pino 1.8s ease-out infinite; }
.mapa-localizacao .pulso-2 { animation-delay: .9s; }
.corpo-localizacao { display: grid; gap: 10px; padding: 22px 22px 18px; text-align: center; }
.corpo-localizacao p { margin: 0 0 8px; font-size: 1.15rem; line-height: 1.35; font-weight: 750; letter-spacing: -.01em; }
#permitir-localizacao { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 14px; font-size: 1.05rem; }
#permitir-localizacao svg { width: 20px; height: 20px; }
.cancelar { min-height: 44px; border-radius: 14px; background: transparent; color: #6b5b62; font-weight: 650; }
.cancelar:hover { background: #f4eeea; }
@keyframes quicar-pino { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulsar-pino { from { transform: scale(1); opacity: 1; } to { transform: scale(5); opacity: 0; } }
@keyframes surgir-janela { from { transform: scale(.92); opacity: 0; } }
a { color: #841c30; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid #b7740b; outline-offset: 3px; }
.erro { color: #a00022; font-weight: 650; }
.rodape-login { margin: 16px 0 0; }
.indicacao { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.acoes { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-block: 12px; }
.compartilhar-whatsapp { padding: 10px 16px; border-radius: 8px; background: #116442; color: white; font-weight: 750; text-decoration: none; }
.compartilhar-whatsapp:hover { background: #0c5034; }
#qrcode { padding: 12px; background: white; }
#resultado-copia:empty { margin: 0; }
.lojas { list-style: none; padding: 0; margin: 0; }
.lojas li { display: flex; flex-wrap: wrap; gap: 8px 16px; border-top: 1px solid #eadfdf; padding-block: 10px; }
.busca-restaurante { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; margin-top: 8px; }
.resultados-restaurante {
    list-style: none;
    margin: 8px 0 0;
    padding: 0 12px;
    border: 1px solid #e8dedb;
    border-radius: 10px;
    background: #fcfaf8;
}
.resultados-restaurante li + li { border-top: 1px solid #e8dedb; }
.resultado-restaurante {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 12px 6px;
    text-align: left;
    background: transparent;
    color: #36272c;
    font-weight: 600;
}
.resultado-restaurante:hover, .resultado-restaurante:focus-visible { background: #f5eeea; }
.resultado-restaurante span:first-child { overflow-wrap: anywhere; }
.resultado-acao { color: #842438; font-size: .85rem; font-weight: 650; }
#indicacao-gerada { margin-top: 0; }
#titulo-indicacao { overflow-wrap: anywhere; }
#status-restaurante { margin: 8px 0 0; }
#status-restaurante:empty { margin: 0; }
@media (max-width: 650px) {
    .acesso, .indicacao { grid-template-columns: 1fr; }
    .destaque img { width: 150px; }
    #qrcode { justify-self: center; }
    .busca-restaurante { grid-template-columns: 1fr; }
}
.lista-materiais { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 14px; }
.material { display: flex; align-items: center; gap: 18px; background: #faf6f0; border-radius: 14px; padding: 16px; }
.material img { object-fit: contain; width: 88px; height: 94px; }
.material strong, .material small { display: block; }
.material small { color: #66575a; margin-bottom: 8px; }
.material button:disabled { opacity: .58; cursor: default; }
#status-material:empty { display: none; }
#status-material { margin: 12px 0 0; }
.cartao.sobre-ccm { padding: 0; overflow: hidden; }
.sobre-capa { display: grid; grid-template-columns: 1.25fr 1fr; min-height: clamp(340px, 38vw, 410px); background: #430d1d; color: white; }
.sobre-intro { align-self: center; }
.sobre-intro, .sobre-servicos { padding: clamp(22px, 4vw, 42px); }
.sobre-intro h2 { font-size: clamp(1.75rem, 3vw, 2.45rem); }
.sobre-intro p { color: #f3e1e4; max-width: 36ch; }
.sobre-capa > img { display: block; width: 100%; height: 0; min-height: 100%; object-fit: cover; object-position: center 28%; }
.sobre-numeros { display: flex; align-items: flex-start; gap: clamp(8px, 1.4vw, 18px); margin: 24px 0 0; }
.sobre-numeros > div { display: flex; flex-direction: column-reverse; }
.sobre-numeros > div + div { border-left: 1px solid #94586a; padding-left: clamp(8px, 1.4vw, 18px); }
.sobre-numeros dt { font-size: .85rem; color: #f3e1e4; }
.sobre-numeros dd { margin: 0; color: #ffd05a; font-size: clamp(1.2rem, 2.5vw, 1.75rem); font-weight: 750; line-height: 1.15; white-space: nowrap; }
.sobre-servicos h3 { margin: 0 0 20px; font-size: 1.42rem; letter-spacing: -.035em; }
.sobre-servicos h4 { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.25; }
.sobre-servicos p { margin: 0; color: #645559; font-size: .94rem; }
.sobre-equipamentos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0 20px; }
.sobre-equipamentos article { display: flex; align-items: center; background: #faf5ee; border-radius: 14px; overflow: hidden; }
.sobre-equipamentos img { width: 32%; height: 120px; object-fit: contain; }
.sobre-equipamentos article > div { flex: 1; padding: 14px; }
.sobre-site { font-weight: 700; text-underline-offset: 4px; }
@media (max-width: 680px) {
    .sobre-capa, .sobre-equipamentos { grid-template-columns: 1fr; }
    .sobre-capa > img { height: auto; min-height: 0; aspect-ratio: 1.1; }
}
html:has(#selecao-restaurante[open]) { overflow: hidden; }
#selecao-restaurante { inset: 0; margin: 0; padding: 0; border: 0; width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: none; overflow: hidden; color: #32141e; background: linear-gradient(#471024 0 6px, #fffaf4 6px, #fff 48%); }
#selecao-restaurante form { box-sizing: border-box; width: min(100%, 640px); height: 100%; margin: auto; padding: max(12px, env(safe-area-inset-top)) clamp(16px, 5vw, 38px) max(10px, env(safe-area-inset-bottom)); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; }
.marca-selecao, .rodape-selecao, .rodape-selecao nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.marca-selecao { margin-bottom: clamp(6px, 2.5vh, 22px); }
.marca-selecao img { width: 64px; height: 43px; object-fit: contain; border-radius: 4px; background: #471024; }
#selecao-restaurante h2 { margin: 0; font-size: clamp(1.55rem, 5vw, 2.4rem); line-height: 1.05; letter-spacing: -.045em; }
.resumo-busca { margin: 5px 0 0; color: #736168; font-size: .88rem; }
.opcoes-restaurante { min-height: 0; border-top: 2px solid #661d33; overflow: hidden; }
.opcoes-restaurante label { display: flex; align-items: center; gap: 14px; padding: 8px 2px; min-height: 48px; border-bottom: 1px solid #e5dad4; cursor: pointer; font-weight: 650; overflow-wrap: anywhere; line-height: 1.25; }
.opcoes-restaurante label:hover, .opcoes-restaurante label:focus-within { color: #771735; background: #fff6e8; }
.opcoes-restaurante input[type="radio"] { flex: none; width: 20px; height: 20px; padding: 0; margin: 0; accent-color: #68152f; cursor: pointer; }
.rodape-selecao { border-top: 1px solid #d9c8bf; padding-top: 8px; }
#selecao-restaurante .voltar-selecao, .rodape-selecao nav button { min-height: 44px; padding: 0 8px; color: #621831; background: transparent; }
.rodape-selecao nav { gap: 2px; }
.rodape-selecao nav button { width: 36px; font-size: 1.15rem; }
.rodape-selecao nav button:disabled { opacity: .32; }
.rodape-selecao nav span { white-space: nowrap; font-size: .85rem; font-variant-numeric: tabular-nums; }
.rodape-selecao .fora-da-lista { min-height: 44px; }
@media (max-height: 460px) {
    #selecao-restaurante form { gap: 4px; }
    .marca-selecao { margin-bottom: 0; }
    .marca-selecao img { height: 30px; width: 46px; }
    .opcoes-restaurante label { min-height: 44px; }
}
#selecao-restaurante { inset: 0; margin: auto; width: min(420px, calc(100% - 32px)); height: auto; max-height: min(90dvh, 620px); border: 0; border-radius: 22px; overflow: hidden; color: #261820; background: #fff; box-shadow: 0 24px 70px #24081555; }
#selecao-restaurante::backdrop { background: #230b15ad; backdrop-filter: blur(4px); }
#selecao-restaurante form { width: 100%; height: auto; max-height: min(90dvh, 620px); margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.cabecalho-selecao { padding: 22px 24px 18px; background: #4c1024; color: #fff; }
.marca-selecao { display: flex; align-items: center; justify-content: space-between; margin: 0 0 20px; }
.marca-selecao img { display: block; width: 68px; height: auto; background: transparent; }
#selecao-restaurante .voltar-selecao { color: #fff; background: #ffffff18; min-height: 38px; padding: 6px 12px; border-radius: 8px; font-size: .85rem; }
#selecao-restaurante h2 { margin: 0; font-size: clamp(1.35rem, 5vw, 1.75rem); line-height: 1.1; letter-spacing: -.035em; }
.resumo-busca { margin: 8px 0 0; color: #e9cbd2; font-size: .88rem; }
.opcoes-restaurante { flex: 1; min-height: 0; padding: 4px 24px; border: 0; overflow: hidden; }
.opcoes-restaurante label { display: flex; gap: 14px; align-items: center; min-height: 54px; padding: 12px 2px; border: 0; border-bottom: 1px solid #ede3df; background: transparent; cursor: pointer; line-height: 1.3; overflow-wrap: anywhere; }
.opcoes-restaurante label:hover, .opcoes-restaurante label:focus-within { color: #861c39; background: #fcf7f3; }
.opcoes-restaurante input[type="radio"] { flex: none; width: 20px; height: 20px; margin: 0; accent-color: #871d3a; }
.rodape-selecao { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 24px 20px; border: 0; }
.rodape-selecao nav { display: flex; align-items: center; gap: 2px; }
.rodape-selecao nav button { min-width: 34px; min-height: 42px; padding: 4px; color: #69152f; background: transparent; font-size: 1.1rem; }
.rodape-selecao nav button:disabled { opacity: .3; }
.rodape-selecao nav span { white-space: nowrap; font-size: .8rem; }
.rodape-selecao .fora-da-lista { min-height: 46px; padding: 10px 14px; }
@media (max-height: 500px) {
  .cabecalho-selecao { padding: 12px 18px; }
  .marca-selecao { margin-bottom: 8px; }
  .marca-selecao img { width: 52px; }
  .opcoes-restaurante { padding-inline: 18px; }
  .rodape-selecao { padding: 8px 18px 12px; }
}
#selecao-restaurante { height: fit-content; max-height: min(90dvh, 620px); }
#selecao-restaurante form { height: fit-content; max-height: min(90dvh, 620px); }
.opcoes-restaurante { flex: 0 1 auto; }
