/* SHINNARE · convite "Instalar o app" (PWA) no site. Fica no alto, abaixo do menu, para não disputar espaço com o aviso de cookies. */
.pwa-card {
  position: fixed; z-index: 160; top: calc(var(--nav-h, 72px) + 12px); right: max(16px, env(safe-area-inset-right));
  width: min(400px, calc(100vw - 32px)); display: flex; align-items: flex-start; gap: 14px; padding: 16px 44px 16px 16px;
  border-radius: 18px; color: #f7f2e8; font-family: inherit;
  background: linear-gradient(180deg, rgba(24, 19, 12, .97), rgba(10, 8, 6, .98));
  border: 1px solid rgba(217, 173, 69, .55); box-shadow: 0 28px 60px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(-12px) scale(.98); transition: opacity .35s ease, transform .45s cubic-bezier(.2, .7, .2, 1);
}
.pwa-card.is-in { opacity: 1; transform: none; }
.pwa-card::before { content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, #f5dc8a 30%, #d9ad45 70%, transparent); }
.pwa-ic { flex: none; width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 8px 20px -10px rgba(224, 178, 74, .7); }
.pwa-body { min-width: 0; }
.pwa-title { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: #f5dc8a; letter-spacing: .01em; }
.pwa-text { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: rgba(247, 242, 232, .86); }
.pwa-pitch { margin: 0 0 8px; }
.pwa-how { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(245, 220, 138, .16); }
.pwa-steps { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.pwa-opt { margin: 0; }
.pwa-opt + .pwa-opt { margin-top: 6px; color: rgba(247, 242, 232, .72); }
.pwa-steps li::marker { color: #f5dc8a; font-weight: 700; }
.pwa-plus { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin: 0 2px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5dc8a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='14' rx='2'/%3E%3Cpath d='M12 8v6M9 11l3 3 3-3M8 21h8'/%3E%3C/svg%3E"); }
.pwa-text b { color: #fff; }
.pwa-share { display: inline-block; width: 15px; height: 18px; vertical-align: -3px; margin: 0 2px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5dc8a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M8 7l4-4 4 4M5 11v9h14v-9'/%3E%3C/svg%3E"); }
.pwa-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pwa-btn, .pwa-later { min-height: 40px; padding: 0 18px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.pwa-btn { border: 0; color: #1a1206; background: linear-gradient(135deg, #f8e3a0 0%, #e3b650 38%, #c28a2a 72%, #efcd75 100%); }
.pwa-btn:hover { filter: brightness(1.06); }
.pwa-later { border: 1px solid rgba(247, 242, 232, .28); background: transparent; color: #f7f2e8; }
.pwa-later:hover { border-color: #f5dc8a; color: #f5dc8a; }
.pwa-x { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: rgba(247, 242, 232, .7); font-size: 22px; line-height: 1; cursor: pointer; }
.pwa-x:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.pwa-btn:focus-visible, .pwa-later:focus-visible, .pwa-x:focus-visible { outline: 2px solid #f5dc8a; outline-offset: 2px; }
@media (max-width: 600px) {
  .pwa-card { left: 16px; right: 16px; width: auto; top: calc(var(--nav-h, 64px) + 10px); }
}
@media (prefers-reduced-motion: reduce) { .pwa-card { transition: opacity .2s; transform: none; } }

/* botão "Instalar app" no topo do site: texto nas telas largas, só o ícone (como "Área do cliente") no resto */
.nav-install { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 9px 4px; border: 0; background: none; color: #fff; font: 400 15px/1 var(--f-body, inherit); letter-spacing: .02em; cursor: pointer; transition: color .25s, border-color .25s; }
.nav-install[hidden] { display: none; }
.nav-install .ic { width: 16px; height: 16px; color: var(--gold-lt, #f5dc8a); }
.nav-install:hover { color: var(--gold-lt, #f5dc8a); }
.nav-install:focus-visible { outline: 2px solid #f5dc8a; outline-offset: 3px; border-radius: 8px; }
@media (max-width: 1600px) {
  .nav-install { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(245, 220, 138, .45); border-radius: 50%; background: rgba(10, 8, 6, .4); font-size: 0; line-height: 0; }
  .nav-install:hover { border-color: #f5dc8a; }
  .nav-install .ic { width: 18px; height: 18px; grid-area: 1 / 1; margin: 0; }
  .nav-install-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-install:focus-visible { border-radius: 50%; }
}
@media (max-width: 1360px) and (min-width: 1241px) { .nav-install:not([hidden]) { display: none; } }
@media (max-width: 900px) { .nav { gap: 10px; } }
/* o cartão no tablet fica no canto, sem ocupar a largura toda */
@media (min-width: 601px) and (max-width: 1100px) { .pwa-card { width: min(440px, calc(100vw - 32px)); } }
