/* ridee-mock.css: mockups da seção Ridee (painel do parceiro + app do cliente), desenhados em HTML/CSS.
   Escala: as letras usam unidades do contêiner (cqi) de cada tela, então o desenho cresce e encolhe junto com a moldura.
   Loja, clientes e valores são fictícios; as fotos dos pratos vêm da vitrine pública da Ridee (assets/ridee-mock/produtos/). */

.rm { --rm-am: #ffd31a; --rm-am-2: #f2c200; --rm-tinta: #17151c; --rm-cinza: #6b6f7a; --rm-fundo: #f6f6f3; --rm-linha: #ebebe6; }
.cena--ridee.rm { padding: 3% 0 24%; }
.rm .tela__vista.rm-vista { container-type: inline-size; background: var(--rm-fundo); }
.rm .mk img { display: block; object-fit: cover; background: #f1f1ee; }
.rm .mk p { margin: 0; }
.rm .mk ol, .rm .mk ul { margin: 0; padding: 0; list-style: none; }
.rm .tela--mobile { width: 34%; left: 0; }
.rm .tela--desktop .tela__moldura { box-shadow: 0 40px 80px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.1), 0 0 60px -12px rgba(255,211,26,.28); }
.rm .tela--mobile .tela__moldura { box-shadow: 0 40px 80px -30px rgba(0,0,0,.95), inset 0 0 0 1.5px rgba(255,255,255,.16), 0 0 44px -8px rgba(255,211,26,.35); }

/* ---------- painel do parceiro ---------- */
.rm .rp { display: grid; grid-template-columns: 17% 1fr; font-size: 1.72cqi; line-height: 1.3; color: var(--rm-tinta); background: var(--rm-fundo); }
.rp__lado { display: flex; flex-direction: column; gap: .2em; padding: 1.2em .8em; background: var(--rm-am); }
.rp__logo { margin: 0 0 .6em .25em !important; font-size: 2em; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.rp__grupo { margin: .9em 0 .25em .35em !important; font-size: .68em; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(23,21,28,.55); }
.rp__menu { display: flex; align-items: center; gap: .55em; padding: .45em .5em; border-radius: .6em; font-weight: 600; font-size: .92em; white-space: nowrap; }
.rp__menu i { flex: none; width: .95em; height: .95em; border: .14em solid currentColor; border-radius: .28em; }
.rp__menu.is-on { background: #fff; box-shadow: 0 .2em .6em rgba(0,0,0,.08); }
.rp__corpo { display: flex; flex-direction: column; gap: .8em; min-width: 0; padding: 1em 1.3em; overflow: hidden; }
.rp__topo { display: flex; align-items: center; gap: .8em; }
.rp__titulo { font-size: 1.7em; font-weight: 800; letter-spacing: -.02em; }
.rp__loja { margin-left: auto !important; font-weight: 600; color: var(--rm-cinza); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp__aberta { flex: none; display: inline-flex; align-items: center; gap: .4em; padding: .25em .7em; border-radius: 99px; background: #e3f7ea; color: #137a3c; font-weight: 700; font-size: .85em; }
.rp__aberta::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: #1fb85a; }
.rp__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7em; }
.rp__kpi { padding: .6em .85em; border-radius: .8em; background: #fff; box-shadow: 0 .15em .6em rgba(0,0,0,.05); border: 1px solid var(--rm-linha); }
.rp__kpi small { display: block; font-size: .8em; color: var(--rm-cinza); }
.rp__kpi b { display: inline-block; font-size: 1.45em; font-weight: 800; letter-spacing: -.02em; }
.rp__kpi b.is-sobe { animation: rm-sobe .7s var(--ease, ease-out); }
.rp__grade { flex: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: .8em; min-height: 0; }
.rp__fila, .rp__cardapio { min-width: 0; padding: .75em; border-radius: .8em; background: #fff; border: 1px solid var(--rm-linha); overflow: hidden; }
.rp__sub { display: flex; align-items: center; gap: .6em; margin-bottom: .55em !important; font-weight: 800; }
.rp__vivo { display: inline-flex; align-items: center; gap: .35em; padding: .1em .55em; border-radius: 99px; background: #fde8e8; color: #c22; font-size: .7em; letter-spacing: .1em; text-transform: uppercase; }
.rp__vivo::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: #e33; }
.is-vivo .rp__vivo::before { animation: rm-pisca 1.4s ease-in-out infinite; }
.rp__lista { display: grid; gap: .42em; }
.rp__ped { display: grid; grid-template-columns: 2.5em 1fr auto; grid-template-rows: auto auto; column-gap: .6em; align-items: center; padding: .4em .5em .4em .4em; border-radius: .65em; background: #fbfbf9; border: 1px solid var(--rm-linha); }
.rp__ped img { grid-row: 1 / 3; width: 2.5em; height: 2.5em; border-radius: .5em; }
.rp__ped p { grid-row: 1 / 3; min-width: 0; }
.rp__ped p b { display: block; font-size: .92em; }
.rp__ped p span { display: block; font-size: .82em; color: var(--rm-cinza); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp__ped em { justify-self: end; font-style: normal; font-weight: 800; font-size: .92em; }
.rp__st { justify-self: end; padding: .12em .55em; border-radius: 99px; font-style: normal; font-weight: 700; font-size: .72em; white-space: nowrap; transition: background-color .4s, color .4s; }
.rp__ped[data-st="novo"] { border-color: rgba(242,194,0,.7); background: #fffbe6; }
.rp__ped[data-st="novo"] .rp__st { background: var(--rm-am); color: var(--rm-tinta); }
.rp__ped[data-st="preparo"] .rp__st { background: #ffe9cc; color: #8a4b00; }
.rp__ped[data-st="rota"] .rp__st { background: #dcebff; color: #1a56a8; }
.rp__ped[data-st="entregue"] .rp__st { background: #e3f7ea; color: #137a3c; }
.rp__ped[data-st="entregue"] { opacity: .7; }
.rp__ped.is-novo { animation: rm-entra .7s var(--ease, ease-out) both; }
.rp__itens { display: grid; gap: .45em; }
.rp__itens li { display: grid; grid-template-columns: 2.3em 1fr auto auto; align-items: center; gap: .55em; padding-bottom: .42em; border-bottom: 1px solid var(--rm-linha); }
.rp__itens li:last-child { border-bottom: 0; padding-bottom: 0; }
.rp__itens img { width: 2.3em; height: 2.3em; border-radius: .5em; }
.rp__itens span { min-width: 0; font-weight: 600; font-size: .9em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp__itens b { font-size: .88em; }
.rp__chave { position: relative; width: 2em; height: 1.1em; border-radius: 99px; background: #22c08a; }
.rp__chave::after { content: ""; position: absolute; right: .14em; top: .14em; width: .82em; height: .82em; border-radius: 50%; background: #fff; }

/* ---------- app do cliente ---------- */
.rm .ra { display: flex; flex-direction: column; font-size: 4.3cqi; line-height: 1.25; color: var(--rm-tinta); background: #fff; }
.ra__cab { padding: 0 1.1em .9em; background: var(--rm-am); }
.ra__hora { display: flex; justify-content: space-between; align-items: center; padding: 1.15em .5em .5em; font-size: .85em; font-weight: 700; }
.ra__hora i { width: 1.9em; height: .85em; border-radius: .2em; border: .13em solid currentColor; }
.ra__topo { display: flex; align-items: center; justify-content: space-between; gap: .6em; }
.ra__logo { font-size: 1.75em; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.ra__end { min-width: 0; text-align: right; font-size: .78em; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ra__end small { display: block; font-weight: 500; color: rgba(23,21,28,.6); }
.ra__busca { margin-top: .7em !important; padding: .55em .9em; border-radius: 99px; background: #fff; color: var(--rm-cinza); font-size: .82em; }
.ra__busca::before { content: ""; display: inline-block; width: .7em; height: .7em; margin-right: .5em; border: .14em solid currentColor; border-radius: 50%; vertical-align: -.05em; }
.ra__cats { display: flex; gap: .55em; padding: .8em 1.1em .3em; overflow: hidden; }
.ra__cats li { flex: none; display: flex; flex-direction: column; align-items: center; gap: .3em; width: 3.5em; font-size: .72em; font-weight: 700; }
.ra__cats img { width: 3.5em; height: 3.5em; border-radius: 50%; background: #f4f4f1; box-shadow: 0 .15em .5em rgba(0,0,0,.08); }
.ra__banner { position: relative; margin: .55em 1.1em 0; border-radius: .9em; overflow: hidden; }
.ra__banner img { width: 100%; height: auto; aspect-ratio: 614 / 328; }
.ra__banner p { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6em .8em .55em; background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; font-weight: 800; font-size: .95em; }
.ra__sec { margin: .8em 1.1em .45em !important; font-weight: 800; font-size: 1.02em; }
.ra__grade { display: grid; grid-template-columns: 1fr 1fr; gap: .6em; padding: 0 1.1em; }
.ra__prato { border-radius: .8em; background: #fff; overflow: hidden; box-shadow: 0 .2em .8em rgba(0,0,0,.1); border: 1px solid var(--rm-linha); transition: box-shadow .4s, transform .4s; }
.ra__prato img { width: 100%; aspect-ratio: 4 / 3; height: auto; }
.ra__prato b { display: block; padding: .35em .5em 0; font-size: .8em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ra__prato small { display: block; padding: 0 .5em; font-size: .66em; color: var(--rm-cinza); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ra__prato em { display: block; padding: .15em .5em .45em; font-style: normal; font-weight: 800; font-size: .8em; }
.ra__prato.is-pedido { transform: scale(.96); box-shadow: 0 0 0 .18em var(--rm-am), 0 .4em 1.4em rgba(242,194,0,.5); }
.ra__pedido { position: absolute; left: .7em; right: .7em; bottom: .8em; z-index: 2; padding: .65em; border-radius: 1em; background: #fff; border-top: .25em solid var(--rm-am); box-shadow: 0 -.3em 1.6em rgba(0,0,0,.22); }
.ra__mapa { height: 4.9em; border-radius: .65em; overflow: hidden; background: #e9edf1; }
.ra__mapa svg { display: block; width: 100%; height: 100%; }
.ra__ruas { fill: none; stroke: #fff; stroke-width: 7; }
.ra__rota { fill: none; stroke: var(--rm-tinta); stroke-width: 2.6; stroke-dasharray: 5 4; stroke-linecap: round; }
.ra__pin--loja { fill: var(--rm-am); stroke: var(--rm-tinta); stroke-width: 2; }
.ra__pin--casa { fill: var(--rm-tinta); }
.ra__moto circle { fill: var(--rm-am); stroke: var(--rm-tinta); stroke-width: 2.4; }
.ra__moto .ra__moto-miolo { fill: var(--rm-tinta); stroke: none; }
.ra__ped-tit { display: flex; justify-content: space-between; align-items: baseline; gap: .5em; margin: .5em 0 .35em !important; font-size: .85em; }
.ra__ped-tit span { font-size: .85em; font-weight: 700; color: #1a56a8; white-space: nowrap; }
.ra__passos { display: flex; gap: .3em; }
.ra__passos li { flex: 1; padding-top: .3em; border-top: .28em solid #e6e6e2; font-size: .6em; font-weight: 600; color: var(--rm-cinza); }
.ra__passos li.ok { border-color: var(--rm-tinta); color: var(--rm-tinta); }
.ra__passos li.on { border-color: var(--rm-am); color: var(--rm-tinta); font-weight: 800; }
.ra__pin-cod { margin-top: .45em !important; font-size: .72em; color: var(--rm-cinza); }
.ra__pin-cod b { margin-left: .3em; padding: .05em .45em; border-radius: .3em; background: #f2f2ee; color: var(--rm-tinta); letter-spacing: .25em; }
.ra__aviso { position: absolute; left: .7em; right: .7em; top: 2.6em; z-index: 3; padding: .6em .8em; border-radius: .8em; background: var(--rm-tinta); color: #fff; font-size: .78em; font-weight: 700; box-shadow: 0 .5em 1.4em rgba(0,0,0,.35); opacity: 0; transform: translateY(-140%); transition: opacity .35s, transform .5s var(--ease, ease-out); }
.ra__aviso::before { content: ""; display: inline-block; width: .6em; height: .6em; margin-right: .5em; border-radius: 50%; background: var(--rm-am); }
.ra__aviso.is-on { opacity: 1; transform: none; }

/* ---------- fio de luz (app → painel) e rótulo HUD ---------- */
.rm-fio { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.rm-fio path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.rm-fio__base { stroke: rgba(255,211,26,.35); stroke-width: 1.5; stroke-dasharray: .015 .02; }
.rm-fio__pulso { stroke: #ffe36b; stroke-width: 3; stroke-dasharray: .16 1.2; stroke-dashoffset: .16; opacity: 0; filter: drop-shadow(0 0 4px rgba(255,211,26,.9)); }
.rm-fio.is-pulso .rm-fio__pulso { animation: rm-fio 1.1s ease-in both; }
.rm-hud { position: absolute; right: 2%; bottom: 3%; z-index: 5; display: inline-flex; align-items: center; gap: 8px; max-width: 78%; margin: 0; padding: 5px 12px; border-radius: 999px; background: rgba(10,8,20,.78); border: 1px solid rgba(255,211,26,.42); color: #ffe48a; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.rm-hud span { overflow: hidden; text-overflow: ellipsis; transition: opacity .3s; }
.rm-hud span.is-troca { opacity: 0; }
.rm-hud i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--rm-am); box-shadow: 0 0 8px var(--rm-am); }
.is-vivo .rm-hud i { animation: rm-pisca 1.6s ease-in-out infinite; }
.js .rm > .rm-hud, .js .rm > .rm-fio { opacity: 0; transition: opacity .8s .6s; }
.js .rm.is-montada > .rm-hud, .js .rm.is-montada > .rm-fio { opacity: 1; }

@keyframes rm-entra { 0% { opacity: 0; transform: translateY(-70%) scale(.96); background: #fff3a8; } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes rm-sobe { 0% { transform: translateY(40%); opacity: .2; color: #b98f00; } 100% { transform: none; opacity: 1; } }
@keyframes rm-pisca { 50% { opacity: .25; } }
@keyframes rm-fio { 0% { stroke-dashoffset: .16; opacity: 1; } 85% { opacity: 1; } 100% { stroke-dashoffset: -1; opacity: 0; } }

/* a cena da Ridee tem duas telas lado a lado: ganha um pouco mais de largura que o texto no desktop */
@media (min-width: 961px) { .produto.produto--ridee { grid-template-columns: .92fr 1.18fr; } }
@media (max-width: 960px) {
  .cena--ridee.rm { padding: 2% 0 30%; }
}
@media (max-width: 560px) {
  /* celular: o app desce e encosta só no canto do painel, para a fila de pedidos continuar à vista */
  .rm .tela--mobile { width: 38%; }
  .rm .tela--desktop { width: 94%; }
  .cena--ridee.rm { padding-bottom: 72%; }
  .rm-fio { display: none; }
  .rm-hud { right: 0; bottom: 18%; max-width: 56%; padding: 8px 12px; border-radius: 14px; align-items: flex-start; white-space: normal; font-size: .6rem; line-height: 1.5; }
  .rm-hud i { margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .rm > .rm-hud, .js .rm > .rm-fio { opacity: 1 !important; }
  .rm-fio__pulso, .ra__aviso { display: none; }
}
