/* Janela "Enviando…" com a barra de porcentagem (static/js/envio.js) */
.envio-fundo { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center;
    padding: 16px; background: rgba(10, 28, 22, .72); }
.envio-fundo[hidden] { display: none; }
.envio-caixa { width: min(360px, 100%); max-height: 100%; overflow: auto; display: flex; flex-direction: column; align-items: center;
    gap: 12px; padding: 28px 24px; background: #fff; border-radius: 20px; text-align: center;
    font-family: Inter, system-ui, sans-serif; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.envio-icone { width: 64px; height: 64px; flex: none; display: grid; place-items: center; border-radius: 18px;
    background: linear-gradient(145deg, #2f7d5f, #14402f); box-shadow: 0 6px 0 #0d2b1f, 0 12px 20px rgba(13, 43, 31, .3); margin-bottom: 4px; }
.envio-icone svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
    animation: envio-sobe 1.2s ease-in-out infinite; }
.envio-titulo { font-size: 20px; color: #14402f; }
.envio-numero { font-size: 40px; line-height: 1; color: #14402f; font-variant-numeric: tabular-nums; }
.envio-numero[hidden], .envio-fechar[hidden] { display: none; }
.envio-trilho { width: 100%; height: 16px; flex: none; overflow: hidden; border-radius: 999px; background: #e6ece9;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, .16); }
.envio-barra { display: block; height: 100%; width: 0; border-radius: 999px;
    background: linear-gradient(90deg, #c8a84e, #e8cd7a); transition: width .2s linear; }
.envio-trilho--andando .envio-barra { width: 40%; animation: envio-anda 1.1s ease-in-out infinite; }
.envio-texto { margin: 0; font-size: 15px; line-height: 1.5; color: #4a5a54; }
.envio-fechar { min-height: 48px; width: 100%; border: 0; border-radius: 12px; background: #14402f; color: #fff;
    font: 700 15px Inter, system-ui, sans-serif; cursor: pointer; }
.envio-fundo--erro .envio-icone { background: linear-gradient(145deg, #e0675a, #a83228); box-shadow: 0 6px 0 #7a231c; }
.envio-fundo--erro .envio-icone svg { animation: none; }
.envio-fundo--erro .envio-titulo { color: #a83228; }
.envio-fundo--erro .envio-trilho, .envio-fundo--erro .envio-numero { display: none; }
@keyframes envio-sobe { 0%, 100% { transform: translateY(3px); } 50% { transform: translateY(-3px); } }
@keyframes envio-anda { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) {
    .envio-icone svg { animation: none; }
    .envio-trilho--andando .envio-barra { animation-duration: 2.4s; }
}
