/* ilus.css — animações das cenas de ilus.js e estados vazios/erro/sucesso (06/11/2026, frente H3).
   Tudo desliga com prefers-reduced-motion (cenas ficam estáticas). */
.mkt .il { display: block; margin: 0 auto; max-width: 100%; height: auto; overflow: visible; }
.mkt .il * { transform-box: fill-box; transform-origin: center; }
.mkt .il-cena { display: flex; justify-content: center; margin-bottom: 14px; }
.mkt .okwrap-il h2 { margin-top: 2px; }

/* entrada em cascata: cena, título, texto, depois o que vier logo abaixo (botões/cartões) */
.mkt .okwrap-il .il-cena { animation: ilIn .5s cubic-bezier(.2,.9,.3,1.2) both; }
.mkt .okwrap-il h2 { animation: ilSobe .4s ease-out .12s both; }
.mkt .okwrap-il p { animation: ilSobe .4s ease-out .2s both; }
.mkt .okwrap-il ~ .btn-block, .mkt .okwrap-il ~ .btn-outline, .mkt .okwrap-il ~ .card, .mkt .okwrap-il ~ .refund-card, .mkt .okwrap-il ~ .auth-hint { animation: ilSobe .4s ease-out .28s both; }
.mkt .okwrap-il ~ .btn-outline, .mkt .okwrap-il ~ .auth-hint { animation-delay: .36s; }
@keyframes ilIn { from { opacity: 0; transform: scale(.85) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ilSobe { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* número do pedido em destaque (tela de confirmado) */
.mkt .il-pednum { display: block; width: max-content; margin: 16px auto 0; padding: 8px 20px; border-radius: 999px; background: #F9D515; color: #1A1A1A; font-size: 20px; font-weight: 900; letter-spacing: -.01em; animation: ilPop .5s cubic-bezier(.2,.9,.3,1.4) .45s both; }
@keyframes ilPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

/* sombra e faíscas */
.mkt .il-fx0 { animation: ilPisca 2.4s ease-in-out infinite; }
.mkt .il-fx1 { animation: ilPisca 3s ease-in-out .6s infinite; }
.mkt .il-fx2 { animation: ilPisca 2.7s ease-in-out 1.1s infinite; }
@keyframes ilPisca { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .25; transform: scale(.6); } }

/* sacola: quica e balança */
.mkt .il-quica { animation: ilQuica 1.8s cubic-bezier(.3,0,.4,1) infinite; }
.mkt .il-balanca { animation: ilBalanca 1.8s ease-in-out infinite; transform-origin: 50% 100%; }
.mkt .il-sacola .il-sombra { animation: ilSombra 1.8s cubic-bezier(.3,0,.4,1) infinite; }
@keyframes ilQuica { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-12px); } 55% { transform: translateY(-12px); } 80% { transform: translateY(0); } }
@keyframes ilBalanca { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes ilSombra { 0%, 100% { transform: scaleX(1); } 45% { transform: scaleX(.8); opacity: .6; } }

/* moto atravessa, pin pulsa */
.mkt .il-atravessa { animation: ilAtravessa 4.5s linear infinite; }
.mkt .il-vai { animation: ilAtravessa 3s linear infinite; }
@keyframes ilAtravessa { from { transform: translateX(-70px) translateY(0); } 50% { transform: translateX(80px) translateY(-1px); } to { transform: translateX(200px); } }
.mkt .il-roda { animation: ilGira .6s linear infinite; }
@keyframes ilGira { to { transform: rotate(360deg); } }
.mkt .il-moto { animation: ilTrepida .35s ease-in-out infinite alternate; }
@keyframes ilTrepida { to { transform: translateY(-1.5px); } }
.mkt .il-estrada { animation: ilEstrada .7s linear infinite; }
@keyframes ilEstrada { to { stroke-dashoffset: -19; } }
.mkt .il-pin { animation: ilPin 1.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes ilPin { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-5px) scale(1.06); } }
.mkt .il-onda { animation: ilOnda 1.8s ease-out infinite; }
.mkt .il-onda2 { animation-delay: .9s; }
@keyframes ilOnda { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.mkt .il-semlojas .il-onda { transform-origin: 50% 50%; }

/* lupa balança, filtro chacoalha, flutuar */
.mkt .il-lupa { animation: ilLupa 2.4s ease-in-out infinite; transform-origin: 40% 50%; }
@keyframes ilLupa { 0%, 100% { transform: rotate(-9deg) translateX(-4px); } 50% { transform: rotate(9deg) translateX(6px); } }
.mkt .il-chacoalha { animation: ilChac 2.6s ease-in-out infinite; }
@keyframes ilChac { 0%, 60%, 100% { transform: rotate(0); } 68% { transform: rotate(-6deg); } 76% { transform: rotate(6deg); } 84% { transform: rotate(-4deg); } 92% { transform: rotate(3deg); } }
.mkt .il-flutua { animation: ilFlutua 3s ease-in-out infinite; }
@keyframes ilFlutua { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ponteiro do relógio */
.mkt .il-ponteiro { animation: ilGira 4s linear infinite; transform-origin: 0 50%; transform-box: view-box; }
.mkt .il-pedidos .il-ponteiro { transform-origin: 132px 104px; }
.mkt .il-pix .il-ponteiro { transform-origin: 100px 76px; animation-duration: 6s; }

/* coração bate */
.mkt .il-bate { animation: ilBate 1.3s ease-in-out infinite; }
@keyframes ilBate { 0%, 40%, 100% { transform: scale(1); } 12% { transform: scale(1.12); } 24% { transform: scale(.96); } 32% { transform: scale(1.07); } }
.mkt .il-sobe0 { animation: ilSobeCor 3s ease-in infinite; }
.mkt .il-sobe1 { animation: ilSobeCor 3s ease-in 1.4s infinite; }
@keyframes ilSobeCor { from { transform: translateY(14px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(-16px); opacity: 0; } }

/* cartão desliza */
.mkt .il-desliza { animation: ilDesliza 3s ease-in-out infinite; }
@keyframes ilDesliza { 0%, 100% { transform: translateX(-10px) rotate(-3deg); } 50% { transform: translateX(10px) rotate(2deg); } }

/* plugue solto balança, cardápio abre a tampa, lua com z */
.mkt .il-plugue { animation: ilPlugue 2.2s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes ilPlugue { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg) translateY(3px); } }
.mkt .il-tampa { animation: ilTampa 2.6s ease-in-out infinite; }
@keyframes ilTampa { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px) rotate(-4deg); } }
.mkt .il-z { animation: ilZ 3s ease-in-out infinite; }
.mkt .il-z1 { animation-delay: .5s; } .mkt .il-z2 { animation-delay: 1s; }
@keyframes ilZ { 0%, 100% { opacity: .25; transform: translateY(4px); } 50% { opacity: 1; transform: translateY(-4px); } }

/* pedido confirmado: bola pula, check se desenha, confete uma vez */
.mkt .il-ok .il-bola { animation: ilIn .5s cubic-bezier(.2,.9,.3,1.3) both; }
.mkt .il-ok .il-check { stroke-dasharray: 1; stroke-dashoffset: 0; animation: ilDesenha .55s ease-out .35s both; }
@keyframes ilDesenha { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.mkt .il-ok .il-onda { animation: ilOnda 1.2s ease-out .4s 2; }
.mkt .il-conf { animation: ilConf 1.4s cubic-bezier(.2,.7,.3,1) .5s both; }
.mkt .il-conf1 { animation-delay: .6s; } .mkt .il-conf2 { animation-delay: .55s; } .mkt .il-conf3 { animation-delay: .7s; }
.mkt .il-conf4 { animation-delay: .65s; } .mkt .il-conf5 { animation-delay: .75s; } .mkt .il-conf6 { animation-delay: .6s; } .mkt .il-conf7 { animation-delay: .7s; }
@keyframes ilConf { 0% { opacity: 0; transform: translate(0, 30px) scale(.3) rotate(0); } 25% { opacity: 1; } 100% { opacity: 1; transform: none; } }

/* esqueletos: brilho suave e cantos arredondados mais próximos do conteúdo */
.mkt .sk::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); animation-duration: 1.4s; }
.mkt .store .ph.sk { border-radius: 14px; }
.mkt .sk-line { border-radius: 8px; }
.mkt .sk { animation: ilRespira 1.4s ease-in-out infinite; }
@keyframes ilRespira { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }

@media (prefers-reduced-motion: reduce) {
  .mkt .il *, .mkt .il, .mkt .okwrap-il *, .mkt .okwrap-il ~ *, .mkt .il-pednum, .mkt .sk { animation: none !important; }
  .mkt .il-onda { opacity: 0; }
}
