/* Toast de vendas (teste) — canto inferior esquerdo. Cartão branco com borda rosa clara e bandeira redonda. */
.tv-wrap { position: fixed; left: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 50; pointer-events: none;
  display: flex; flex-direction: column; gap: 8px; width: min(330px, calc(100vw - 32px)); }
.tv-toast { position: relative; pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 10px 34px 10px 12px;
  background: #fff; border: 1px solid #F5E1E7; border-radius: 14px;
  box-shadow: 0 10px 28px rgba(51, 32, 42, .16), 0 2px 6px rgba(51, 32, 42, .06);
  font-family: var(--font, 'Poppins', system-ui, sans-serif); color: #33202A;
  opacity: 0; transform: translateX(-24px) scale(.97); transition: opacity .4s ease, transform .4s cubic-bezier(.22, 1, .36, 1), height .4s ease, margin .4s ease; }
.tv-toast.is-in { opacity: 1; transform: none; }
.tv-toast.is-out { overflow: hidden; opacity: 0; transform: translateX(-24px) scale(.97); }
.tv-flag { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #FCE4EC;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #F5E1E7, 0 3px 8px rgba(51, 32, 42, .18); display: grid; place-items: center; }
.tv-flag svg { width: 100%; height: 100%; display: block; }
.tv-flag.is-ok { color: #fff; background: linear-gradient(160deg, #7FB38F, #5E9C72); box-shadow: none; }
.tv-flag.is-ok svg { width: 20px; height: 20px; }
.tv-body { min-width: 0; line-height: 1.3; }
.tv-body p { margin: 0; }
.tv-label { font-size: 9.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #74606A; }
.tv-who { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-what { font-size: 12px; color: #74606A; }
.tv-what b { color: #C93A6E; font-weight: 700; }
.tv-x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; padding: 5px; border: 0; background: none; color: #74606A;
  border-radius: 50%; cursor: pointer; }
.tv-x:hover, .tv-x:focus-visible { background: #FCE4EC; color: #C93A6E; }
.tv-x svg { width: 100%; height: 100%; display: block; }
/* sobre o vídeo: no máximo 1 toast, e o cartão que está sobre o vídeo fica transparente (opacityOverVideo em config.js) */
.tv-toast.is-in.sobre-video { opacity: var(--tv-op-video, .55); }
/* tela cheia: os toasts vão para o alto da tela, ficam acima do player, mas NÃO recebem toque (o toque passa para os botões do
   vídeo: sair da tela cheia, pausar, velocidade) e não ocupam a faixa de baixo, onde ficam os controles. Um por vez e transparente
   (a lógica de um por vez e da transparência está em toast-ventas.js). */
.tv-wrap.is-fullscreen { z-index: 2147483647; top: max(12px, env(safe-area-inset-top)); bottom: auto; left: 12px;
  width: min(280px, calc(100vw - 24px)); }
.tv-wrap.is-fullscreen .tv-toast, .tv-wrap.is-fullscreen .tv-x { pointer-events: none; }
.tv-wrap.is-fullscreen .tv-x { display: none; }
@media (max-width: 480px) { .tv-wrap { left: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100vw - 24px); } }
@media (prefers-reduced-motion: reduce) { .tv-toast, .tv-toast.is-out { transition: opacity .2s ease; transform: none; } }
