/* marketplace/assets/pwa.css — convite "Instalar Ridee Food", instruções do iPhone/iPad, aviso de versão nova e de
   "Sem conexão" (10/11/2026). Elementos criados pelo assets/pwa.js só quando precisam; nada disto existe no HTML.
   Camadas: acima da vitrine e das folhas (.mkt-overlay), abaixo do toast da vitrine (.mkt-toast = 1300). */

.rf-pwa-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.rf-pwa-ic { width: 18px; height: 18px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }

/* Convite discreto: cartão baixo, acima do menu inferior; nunca cobre o botão de compra. */
.rf-pwa-faixa { position: fixed; z-index: 1200; left: 12px; right: 12px; max-width: 520px; margin: 0 auto;
  bottom: calc(58px + env(safe-area-inset-bottom) + 10px);
  display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 12px; border-radius: 16px;
  background: #fff; color: #1A1A1A; box-shadow: 0 8px 28px rgba(0, 0, 0, .16); border: 1px solid rgba(0, 0, 0, .06);
  animation: rfPwaSobe .28s cubic-bezier(.2, .8, .2, 1) both; }
.rf-pwa-faixa img { width: 40px; height: 40px; border-radius: 10px; flex: 0 0 auto; }
.rf-pwa-tx { flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.rf-pwa-tx b { display: block; font-size: 14px; font-weight: 800; }
.rf-pwa-tx small { display: block; font-size: 12px; color: #5c5c5c; }
/* Telas sem menu inferior (checkout, PIX, pedido, produto): o convite some. */
body.mkt-nonav .rf-pwa-faixa { display: none; }

.rf-pwa-sim, .rf-pwa-nao { min-height: 44px; min-width: 44px; border: 0; border-radius: 22px; font: inherit;
  font-weight: 800; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rf-pwa-sim { padding: 0 18px; background: #1A1A1A; color: #fff; font-size: 14px; }
.rf-pwa-nao { background: transparent; color: #1A1A1A; display: grid; place-items: center; padding: 0; }
.rf-pwa-sim:focus-visible, .rf-pwa-nao:focus-visible { outline: 3px solid #F9D515; outline-offset: 2px; }
.rf-pwa-sim:disabled { opacity: .7; }

/* Instruções do iPhone/iPad (diálogo). */
.rf-pwa-fundo { position: fixed; inset: 0; z-index: 1250; background: rgba(0, 0, 0, .45);
  display: flex; align-items: flex-end; justify-content: center; }
.rf-pwa-dlg { width: 100%; max-width: 520px; box-sizing: border-box; background: #fff; color: #1A1A1A;
  border-radius: 22px 22px 0 0; padding: 22px 22px calc(18px + env(safe-area-inset-bottom)); text-align: center;
  animation: rfPwaSobe .28s cubic-bezier(.2, .8, .2, 1) both; }
.rf-pwa-dlg img { width: 56px; height: 56px; border-radius: 14px; }
.rf-pwa-dlg h2 { font-size: 18px; font-weight: 800; margin: 10px 0 12px; }
.rf-pwa-dlg ol { text-align: left; margin: 0 0 18px; padding-left: 22px; font-size: 15px; line-height: 1.5; }
.rf-pwa-dlg li + li { margin-top: 8px; }
.rf-pwa-dlg .rf-pwa-sim { width: 100%; }
@media (min-width: 700px) { .rf-pwa-fundo { align-items: center; } .rf-pwa-dlg { border-radius: 22px; } }

/* Aviso de versão nova: no topo, fino, fora do caminho da compra. */
.rf-pwa-versao { position: fixed; z-index: 1210; left: 12px; right: 12px; max-width: 520px; margin: 0 auto;
  top: calc(env(safe-area-inset-top) + 10px); display: flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 16px; border-radius: 16px; background: #1A1A1A; color: #fff; font-size: 14px; font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25); animation: rfPwaDesce .28s cubic-bezier(.2, .8, .2, 1) both; }
.rf-pwa-versao span { flex: 1 1 auto; }
.rf-pwa-versao .rf-pwa-sim { background: #F9D515; color: #1A1A1A; }
.rf-pwa-versao .rf-pwa-nao { color: #fff; }

/* "Sem conexão": faixa fina no topo. */
.rf-pwa-rede { position: fixed; z-index: 1220; left: 0; right: 0; top: 0; padding: calc(env(safe-area-inset-top) + 6px) 16px 6px;
  font-size: 13px; font-weight: 700; text-align: center; background: #1A1A1A; color: #fff;
  transform: translateY(-100%); transition: transform .25s ease; pointer-events: none; }
.rf-pwa-rede.is-on { transform: none; }
.rf-pwa-rede.is-ok { background: #2E7D32; }

@keyframes rfPwaSobe { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rfPwaDesce { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .rf-pwa-faixa, .rf-pwa-dlg, .rf-pwa-versao { animation: none; }
  .rf-pwa-rede { transition: none; }
}
/* Já instalado: nada de convite (o pwa.js também não cria, isto é só uma segunda trava). */
@media (display-mode: standalone) { .rf-pwa-faixa { display: none; } }

/* Bloco de texto da home para rastreador e para quem está sem JS (_shell.php, 10/11/2026). O vitrine.js troca o
   <main> inteiro ao pintar; isto só aparece no HTML inicial, abaixo do esqueleto. */
.mkt .mkt-seo-home h2 { font-size: 15px; font-weight: 800; margin: 0 0 6px; color: var(--ink, #1A1A1A); }
.mkt .mkt-seo-home h3 { font-size: 13px; font-weight: 800; margin: 12px 0 6px; color: var(--ink, #1A1A1A); }
.mkt .mkt-seo-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; }
.mkt .mkt-seo-links a { color: var(--ink-2, #444); display: inline-block; min-height: 24px; line-height: 24px; }
