/* Gaveta de apoio (todas as páginas): sobe de baixo no celular, abre no meio no computador. Só transform e opacity. */
.ag { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-end; justify-content: center; font-family: Archivo, system-ui, -apple-system, sans-serif; }
.ag[hidden] { display: none; }
.ag-fundo { position: absolute; inset: 0; background: rgb(0 0 0 / .55); opacity: 0; transition: opacity .25s; }
.ag-caixa { position: relative; width: 100%; max-width: 440px; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  padding: 26px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #fff; color: #1b1a17;
  box-shadow: 0 -12px 40px rgb(0 0 0 / .3); transform: translateY(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.ag-caixa::before { content: ''; position: absolute; top: 9px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: #ddd6c9; }
.ag.aberta .ag-fundo { opacity: 1; }
.ag.aberta .ag-caixa { transform: none; }
@media (min-width: 700px) {
  .ag { align-items: center; }
  .ag-caixa { border-radius: 22px; opacity: 0; transform: translateY(24px) scale(.98); transition: transform .3s, opacity .3s; }
  .ag-caixa::before { display: none; }
  .ag.aberta .ag-caixa { opacity: 1; }
}
html.ag-travado, html.ag-travado body { overflow: hidden; }
.ag-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f2eee6; color: #1b1a17; font-size: 24px; line-height: 1; cursor: pointer; }
.ag-titulo { margin: 0; padding-right: 46px; font-weight: 900; font-size: 1.35rem; line-height: 1.2; }
.ag-sub { margin: 4px 0 0; color: #5c574f; font-size: .95rem; line-height: 1.4; }
.ag-principal { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; margin-top: 16px; padding: 0 16px;
  border: 0; border-radius: 14px; background: #facc15; color: #ae1313; font: inherit; font-weight: 900; font-size: 1.15rem; text-align: center;
  text-decoration: none; cursor: pointer; box-shadow: 0 5px 0 #c9a10c; transition: transform .1s; }
.ag-principal:active { transform: translateY(3px); }
.ag-valores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.ag-valores button { min-height: 50px; border-radius: 12px; border: 2px solid #ae1313; background: #fff; color: #ae1313; font: inherit; font-weight: 900; font-size: 1rem; cursor: pointer; }
.ag-valores button:hover { background: #ae1313; color: #fff; }
.ag-outro { display: flex; align-items: flex-end; gap: 8px; margin-top: 12px; }
.ag-outro label { flex: 1; display: grid; gap: 4px; font-size: .8rem; font-weight: 700; color: #5c574f; }
.ag-outro label span { display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 12px; border: 1.5px solid #d8d2c6; border-radius: 12px; font-size: 1rem; color: #1b1a17; }
.ag-outro input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: inherit; }
.ag-outro > button { min-height: 48px; padding: 0 16px; border: 0; border-radius: 12px; background: #1b1a17; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.ag-erro { min-height: 1.2em; margin: 8px 0 0; color: #ae1313; font-weight: 700; font-size: .9rem; }
.ag-codigo { display: block; width: 100%; margin-top: 10px; padding: 10px; border: 1px solid #e3ddd1; border-radius: 10px; background: #faf8f4; color: #555;
  font: 500 .72rem/1.35 ui-monospace, Menlo, monospace; resize: none; word-break: break-all; box-sizing: border-box; }
.ag-qr { margin-top: 10px; }
.ag-qr summary { min-height: 40px; display: flex; align-items: center; cursor: pointer; font-weight: 800; color: #ae1313; }
.ag-qr img { display: block; width: 200px; height: 200px; margin: 6px auto 0; }
.ag-status { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff7d6; color: #5c4400; font-size: .9rem; font-weight: 700; }
.ag-voltar { display: block; margin: 10px auto 0; min-height: 40px; border: 0; background: none; color: #5c574f; font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; }
.ag-zap { display: flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 10px; border-radius: 14px; background: #25d366; color: #05361b; font-weight: 900; text-decoration: none; }
.ag-mural { display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #eee8de; }
.ag-mural p { margin: 0; font-size: .92rem; line-height: 1.4; }
.ag-mural input[name] { min-height: 44px; padding: 0 12px; border: 1.5px solid #d8d2c6; border-radius: 10px; font: inherit; font-size: 16px; }
.ag-consente { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.ag-consente input { width: 20px; height: 20px; }
.ag-mural button { min-height: 46px; border: 0; border-radius: 10px; background: #ae1313; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.ag-nota { margin: 14px 0 0; font-size: .78rem; line-height: 1.4; color: #6b665e; }
.ag button:disabled { opacity: .6; cursor: progress; }
.ag :focus-visible { outline: 3px solid #1b1a17; outline-offset: 2px; }

/* faixa do topo (todas as páginas): "este site precisa do seu apoio" passando, sempre visível; tocar abre a gaveta do Pix */
:root { --alt-faixa: 32px; }
.aviso-apoio { position: sticky; top: 0; z-index: 70; display: flex; align-items: center; height: var(--alt-faixa); overflow: hidden;
  background: #facc15; color: #8f0e0e; text-decoration: none; font-family: Archivo, system-ui, -apple-system, sans-serif;
  font-weight: 800; font-size: .8rem; letter-spacing: .01em; box-shadow: 0 1px 0 rgb(0 0 0 / .12); }
.aviso-trilho { flex: 1; min-width: 0; display: flex; align-items: center; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.aviso-itens { display: inline-flex; flex: none; white-space: nowrap; animation: aviso-corre 46s linear infinite; }
.aviso-itens span::after { content: '•'; margin: 0 .85rem; opacity: .55; }
.aviso-itens .aviso-cta { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.aviso-botao { display: none; }
@media (min-width: 768px) {
  .aviso-botao { flex: none; display: flex; align-items: center; height: 24px; margin: 0 8px 0 4px; padding: 0 .8rem; border-radius: 999px; background: #ae1313; color: #fff; font-size: .75rem; }
}
.aviso-apoio:hover .aviso-itens { animation-play-state: paused; }
.aviso-apoio:focus-visible { outline: 3px solid #1b1a17; outline-offset: -3px; }
@keyframes aviso-corre { to { transform: translateX(-50%); } }
/* o que ficava preso no topo agora fica logo abaixo da faixa */
header.barra[data-barra] { top: var(--alt-faixa) !important; }
.progresso { display: none !important; } /* a barrinha amarela de progresso colada na faixa amarela parecia defeito */
.c-topo, .q-topo { top: var(--alt-faixa) !important; }
.m-grade > .m-palco { top: calc(84px + var(--alt-faixa)) !important; }
html { scroll-padding-top: calc(72px + var(--alt-faixa)) !important; }
