/* Aviso de versión nueva y de ícono nuevo (update.js): abajo, encima de todo y de las barras fijas de abajo.
   --tg-bottom lo calcula update.js (alto de la barra de pestañas, buscador, carrito u hoja que haya abajo). */
.tg-float {
  position: fixed; left: 0; right: 0; z-index: 1000; pointer-events: none;
  bottom: calc(var(--tg-bottom, 0px) + 12px);
  display: flex; justify-content: center; padding: 0 12px;
  opacity: 0; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease, bottom .2s ease;
}
/* Sin barras abajo, el aviso deja libre la zona del gesto del teléfono. */
.tg-float.at-edge { bottom: calc(12px + env(safe-area-inset-bottom)); }
.tg-float.is-on { opacity: 1; transform: none; }
.tg-float.is-on > * { pointer-events: auto; }

.tg-pill, .tg-card {
  display: flex; align-items: center; gap: 10px; max-width: 520px;
  background: var(--toast-bg); color: var(--toast-text); box-shadow: 0 8px 24px rgb(0 0 0 / .25);
  font: 700 14px/1.3 var(--font, system-ui, sans-serif);
}
.tg-pill { padding: 6px 6px 6px 14px; border-radius: 999px; }
.tg-pill-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok-dot); }
.tg-pill-txt { flex: 1; min-width: 0; }
.tg-pill-btn {
  flex: none; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--brand); color: var(--on-brand); font: inherit; cursor: pointer;
}
.tg-pill-btn:active:not(:disabled) { background: var(--brand-strong); }
.tg-pill-btn:disabled { opacity: .75; }
.tg-card { flex-direction: column; align-items: stretch; padding: 14px; border-radius: 18px; font-weight: 500; }
.tg-card p { margin: 0; }
.tg-card .tg-pill-btn { align-self: flex-end; }
