/* Botão e faixa de instalar o app. Quem decide se aparecem é o instalar.js. */
:root { --instalar-cor: #6C3CE1; --instalar-fundo: #1e1b4b; }

/* display: flex venceria o atributo hidden sem esta regra */
[data-instalar-faixa][hidden], [data-instalar-faixa] [hidden],
[data-instalar-item][hidden], [data-instalar-item] [hidden] { display: none !important; }

/* botao fixo */
.botao-instalar { display: flex; align-items: center; gap: 0.75rem; box-sizing: border-box; width: 100%; max-width: 22rem; min-height: 68px; margin-inline: auto; padding: 0.6rem 0.75rem 0.6rem 0.6rem; border: 0; border-radius: 18px; background: var(--instalar-cor); color: #fff; font-family: 'Roboto', sans-serif; text-align: left; cursor: pointer; }
.botao-instalar:hover { filter: brightness(1.08); }
.botao-instalar:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.botao-instalar[disabled] { opacity: 0.65; cursor: default; }
.botao-instalar-icone { width: 48px; height: 48px; flex-shrink: 0; border-radius: 13px; }
.botao-instalar-textos { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 0.15rem; }
.botao-instalar-titulo { font-size: 1.125rem; font-weight: 700; line-height: 1.2; }
.botao-instalar-sistemas { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; font-size: 0.75rem; font-weight: 600; line-height: 1.2; }
.botao-instalar-sistemas svg { flex-shrink: 0; }
.botao-instalar-seta { display: flex; width: 38px; height: 38px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 999px; background: rgba(0, 0, 0, 0.22); }
.instalar-ajuda { max-width: 22rem; margin: 0.5rem auto 0; font-size: 0.875rem; line-height: 1.5; }
@media (max-width: 340px) { .botao-instalar-seta { display: none; } }

/* faixa flutuante */
.instalar-faixa { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 9000; display: flex; align-items: center; gap: 0.5rem; padding: 0.625rem; border-radius: 12px; background: var(--instalar-fundo); color: #fff; font-family: 'Roboto', sans-serif; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.instalar-faixa-icone { width: 40px; height: 40px; flex-shrink: 0; border-radius: 8px; }
.instalar-faixa-textos { min-width: 0; flex: 1; }
.instalar-faixa-titulo { margin: 0; font-size: 0.875rem; font-weight: 700; line-height: 1.25; color: #fff; }
.instalar-faixa-texto { margin: 0; font-size: 0.75rem; line-height: 1.35; color: rgba(255, 255, 255, 0.78); }
.instalar-faixa-ja { min-height: 32px; padding: 0; border: 0; background: none; color: rgba(255, 255, 255, 0.78); font: inherit; font-size: 0.75rem; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.instalar-faixa-sim { min-height: 44px; flex-shrink: 0; padding: 0 0.75rem; border: 0; border-radius: 8px; background: var(--instalar-cor); color: #fff; font: inherit; font-size: 0.8125rem; font-weight: 700; cursor: pointer; }
.instalar-faixa-nao { display: flex; width: 44px; height: 44px; flex-shrink: 0; align-items: center; justify-content: center; margin: -0.25rem -0.25rem -0.25rem -0.5rem; border: 0; background: none; color: rgba(255, 255, 255, 0.78); cursor: pointer; }
@media (min-width: 640px) { .instalar-faixa { left: auto; right: 20px; width: 22rem; } }

/* O menu do celular da página inicial é estreito: a seta ficaria cortada na borda. */
.mobile-auth-links .botao-instalar-seta { display: none; }
