/* O acompanhamento flutuante da venda com nota (`pdv_andamento.js`).
   ⚠️ Canto de baixo à ESQUERDA: o direito é do botão do Suporte (z 10040). */
.pdva { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 10030; display: grid; gap: 8px; max-width: min(320px, calc(100vw - 110px)); }
.pdva[hidden] { display: none; }
.pdva-item { display: flex; align-items: center; background: var(--card-bg, #fff); color: var(--text, #15241c); border: 1px solid var(--border, #d9e2dd); border-radius: 14px; box-shadow: 0 8px 24px rgba(10, 30, 20, .18); overflow: hidden; }
.pdva-item.ok { border-color: #8fd1b0; }
.pdva-item.falhou { border-color: #e8a79f; }
.pdva-abre { flex: 1; display: flex; gap: 10px; align-items: center; border: 0; background: transparent; color: inherit; text-align: left; padding: 10px 12px; cursor: pointer; font: inherit; min-width: 0; }
.pdva-txt { display: grid; min-width: 0; }
.pdva-txt b { font-size: 14px; }
.pdva-txt small { font-size: 12px; color: var(--muted, #5d6b64); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdva-x { border: 0; background: transparent; color: var(--muted, #5d6b64); font-size: 20px; padding: 6px 12px; cursor: pointer; align-self: stretch; }
.pdva-ic { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.pdva-ic svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pdva-ic.ok { background: #17a36b; }
.pdva-ic.erro { background: #c2413a; }
.pdva-ic.roda { border: 3px solid #cfe5da; border-top-color: #17734f; animation: pdva-gira .9s linear infinite; }
@keyframes pdva-gira { to { transform: rotate(360deg); } }
/* O fim: o ícone cresce e o risco se desenha (sucesso) ou o card balança (falha). */
.pdva-item.anima.ok .pdva-ic { animation: pdva-pula .5s cubic-bezier(.3, 1.6, .5, 1); }
.pdva-item.anima.ok .pdva-ic svg path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: pdva-risca .45s .2s ease-out forwards; }
.pdva-item.anima.falhou { animation: pdva-balanca .45s ease-in-out; }
@keyframes pdva-pula { from { transform: scale(.3); } to { transform: scale(1); } }
@keyframes pdva-risca { to { stroke-dashoffset: 0; } }
@keyframes pdva-balanca { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) {
  .pdva-item.anima.falhou { animation: none; }
  .pdva-item.anima.ok .pdva-ic { animation: none; }
}
.pdva-modal { position: fixed; inset: 0; z-index: 10050; background: rgba(10, 20, 15, .45); display: flex; align-items: flex-end; justify-content: center; padding: 12px; }
@media (min-width: 681px) { .pdva-modal { align-items: center; } }
.pdva-caixa { background: var(--card-bg, #fff); color: var(--text, #15241c); border-radius: 16px; width: 100%; max-width: 760px; max-height: calc(100dvh - 24px); display: flex; flex-direction: column; overflow: hidden; }
.pdva-caixa header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border, #d9e2dd); }
.pdva-caixa h3 { margin: 0; font-size: 17px; }
.pdva-fechar { border: 0; background: transparent; font-size: 24px; line-height: 1; cursor: pointer; color: inherit; padding: 4px 8px; }
.pdva-corpo { padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; }
.pdva-corpo .sale-success-card { margin: 0; box-shadow: none; }
.pdva-motivo { background: #fbe7e4; color: #8c2a23; border-radius: 10px; padding: 10px 12px; }
