/* 743 · barra Back/Continue FIXA no rodapé do wizard (mobile), passos 2–8. Rollback: remover <link>/<script> 743 do book.html. */
@media (max-width:760px){
  html body #quote-form.book-card .book-screen.active>.screen-actions{
    position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;
    z-index:60!important;box-sizing:border-box!important;width:auto!important;max-width:none!important;
    margin:0!important;transform:none!important;border-radius:18px 18px 0 0!important;
    display:flex!important;gap:10px!important;align-items:stretch!important;
    padding:10px max(12px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))!important;
    background:linear-gradient(180deg,#0b2439,#061827)!important;border-top:1px solid #ad8b3f!important;
    box-shadow:0 -10px 22px #0006!important;
  }
  html body #quote-form.book-card .book-screen.active>.screen-actions>button{flex:1 1 0!important;width:0!important;min-width:0!important;max-width:none!important;margin:0!important}
  /* conteúdo nunca fica atrás da barra */
  html body #quote-form.book-card .book-screen.active:not([data-screen="1"]){
    padding-bottom:calc(var(--bk743-bar-h,76px) + 18px)!important;
    scroll-padding-bottom:calc(var(--bk743-bar-h,76px) + 18px);
  }
  html body #quote-form.book-card .book-screen.active input,
  html body #quote-form.book-card .book-screen.active select,
  html body #quote-form.book-card .book-screen.active textarea{scroll-margin-bottom:calc(var(--bk743-bar-h,76px) + 24px)}
  /* card vai até o rodapé (sem faixa vazia embaixo) */
  html body #quote-form.book-card{height:calc(100% - 6px)!important;margin-bottom:0!important;border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}
  /* teclado aberto: a barra sai da frente do campo e volta ao fechar */
  html body.bk743-kb-open #quote-form.book-card .book-screen.active>.screen-actions{display:none!important}
  html body.bk743-kb-open #quote-form.book-card .book-screen.active:not([data-screen="1"]){padding-bottom:24px!important}
}

@media (max-width:760px){
  html body #quote-form.book-card:has(.book-screen[data-screen="8"].active),
  html body #quote-form.book-card .book-screen[data-screen="8"].active{
    overflow:visible!important;
  }
  html body #quote-form.book-card .book-screen[data-screen="8"].active>.screen-actions{
    position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:80!important;
    display:flex!important;
  }
}
