.checkout-fundo {
position: fixed;
inset: 0;
z-index: 65;
background: rgba(26, 30, 38, .55);
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
}
body.checkout-aberto { overflow: hidden; }
.checkout-card {
width: min(560px, 100%);
max-height: 100%;
display: flex;
flex-direction: column;
overflow: hidden;
background: var(--white);
border-radius: var(--radius);
box-shadow: 0 24px 60px rgba(42, 48, 59, .3);
}
.checkout-topo {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
padding: 16px 20px 12px;
border-bottom: 1px solid var(--border);
flex-shrink: 0;
}
.checkout-topo-texto { min-width: 0; }
.checkout-rotulo-topo {
font-family: var(--head);
font-weight: 700;
font-size: 11px;
letter-spacing: .14em;
text-transform: uppercase;
color: var(--gray);
}
.checkout-total {
font-family: var(--head);
font-weight: 800;
font-size: 26px;
letter-spacing: -.02em;
margin-top: 2px;
}
.checkout-x { width: 36px; height: 36px; font-size: 24px; flex-shrink: 0; margin: -6px -8px 0 0; }
.checkout-x:disabled { opacity: .3; cursor: not-allowed; }
.checkout-corpo {
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
padding: 18px 20px 20px;
}
.checkout-aviso {
padding: 9px 11px;
margin-bottom: 16px;
font-size: 12px;
line-height: 1.5;
border-radius: var(--radius);
}
.checkout-aviso.vazio { display: none; }
.checkout-aviso.amarelo { color: #8A4B00; background: #FFF6E8; border: 1px solid #F0DCC0; }
.checkout-aviso.azul { color: var(--accent-dark); background: var(--accent-tint); border: 1px solid #C9DAFF; }
.checkout-secao-titulo {
font-family: var(--head);
font-weight: 700;
font-size: 11px;
letter-spacing: .14em;
text-transform: uppercase;
color: var(--gray);
margin-bottom: 12px;
}
.checkout-secao { margin-bottom: 22px; }
.checkout-resumo { margin-bottom: 22px; }
.checkout-ver-itens { display: none; }
.checkout-itens { border: 1px solid var(--border); border-radius: var(--radius); }
.checkout-item {
display: flex;
align-items: center;
gap: 10px;
padding: 9px 11px;
border-bottom: 1px solid var(--border);
}
.checkout-item:last-child { border-bottom: 0; }
.checkout-thumb {
width: 44px; height: 44px; flex-shrink: 0;
object-fit: cover;
background: var(--bg);
border-radius: var(--radius);
}
.checkout-item-texto { flex: 1 1 0; min-width: 0; }
.checkout-item-nome { font-size: 13px; font-weight: 600; line-height: 1.25; }
.checkout-item-desc { font-size: 11px; color: var(--gray-light); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }
.checkout-item-total { font-family: var(--head); font-weight: 700; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
.checkout-fs { border: 0; padding: 0; margin: 0; min-width: 0; }
.checkout-campo { margin-bottom: 12px; min-width: 0; }
.checkout-rotulo { display: block; font-size: 11px; color: var(--gray); margin-bottom: 5px; }
.checkout-caixa { position: relative; }
.checkout-input { display: block; }
.checkout-lado {
position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
color: var(--gray-light);
pointer-events: none;
}
.checkout-erro-campo { font-size: 11px; color: var(--red); margin-top: 4px; line-height: 1.4; }
.checkout-erro-campo:empty { display: none; }
.checkout-campo.invalido .checkout-input { border-color: var(--red); }
.checkout-campo.invalido .checkout-input:focus { box-shadow: 0 0 0 3px rgba(179, 38, 30, .12); }
.checkout-grid { display: grid; gap: 0 10px; }
.checkout-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checkout-grid.endereco { grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr) minmax(0, 1.4fr); }
.checkout-miudo { font-size: 11px; line-height: 1.45; color: var(--gray-light); }
.checkout-miudo.centro { text-align: center; margin: 12px 0 14px; }
.checkout-seg { margin-bottom: 14px; }
.checkout-seg button { min-height: 40px; }
.checkout-metodo[hidden] { display: none; }
.checkout-nota {
display: flex; align-items: flex-start; gap: 6px;
font-size: 11px; line-height: 1.45; color: var(--gray-light);
}
.checkout-nota svg { flex-shrink: 0; margin-top: 1px; }
.checkout-erro {
padding: 9px 11px;
margin-bottom: 12px;
font-size: 12px;
line-height: 1.5;
color: var(--red);
background: #FBEDEC;
border: 1px solid #F0C9C6;
border-radius: var(--radius);
}
.checkout-erro.vazio { display: none; }
.checkout-enviar { margin-top: 4px; }
.checkout-rodape {
margin-top: 20px;
font-size: 10px;
line-height: 1.5;
color: var(--gray-light);
text-align: center;
}
.checkout-resultado { text-align: center; padding: 6px 0 16px; }
.checkout-selo {
width: 52px; height: 52px; margin: 0 auto 12px;
border-radius: 50%;
display: flex; align-items: center; justify-content: center;
background: var(--accent-tint); color: var(--accent-dark);
}
.checkout-resultado.ok .checkout-selo { background: #E6F4EB; color: var(--green); }
.checkout-titulo { font-family: var(--head); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.checkout-linhas { margin-top: 8px; font-size: 12.5px; line-height: 1.55; color: var(--gray); }
.checkout-linhas > div + div { margin-top: 2px; }
.checkout-qr-caixa { display: flex; justify-content: center; margin-bottom: 16px; }
.checkout-qr {
width: 208px; height: 208px; max-width: 100%;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--white);
image-rendering: pixelated;
}
.checkout-copia-linha { display: flex; gap: 8px; }
.checkout-copia {
flex: 1 1 auto; min-width: 0;
font-size: 12px;
font-variant-numeric: tabular-nums;
text-overflow: ellipsis;
color: var(--gray);
}
.checkout-copiar { flex-shrink: 0; height: 40px; padding: 0 12px; gap: 6px; }
.checkout-copiar.feito { border-color: var(--green); color: var(--green); }
.checkout-espera {
display: flex; align-items: center; justify-content: center; gap: 8px;
margin: 6px 0 4px;
font-size: 12px; font-weight: 600; color: var(--accent-dark);
}
.checkout-espera.parado { color: var(--red); }
.checkout-pulso {
width: 8px; height: 8px; border-radius: 50%;
background: var(--accent);
animation: checkout-pulsa 1.4s ease-in-out infinite;
}
.checkout-espera.parado .checkout-pulso { background: var(--red); animation: none; }
@keyframes checkout-pulsa {
0%, 100% { transform: scale(.7); opacity: .5; }
50% { transform: scale(1); opacity: 1; }
}
.checkout-abrir { margin-bottom: 14px; }
.checkout-abrir:hover { color: #fff; }
.checkout-card.enviando .checkout-fs { opacity: .7; }
@media (max-width: 720px) {
.checkout-fundo { padding: 0; }
.checkout-card {
width: 100%; height: 100%; max-height: none;
border-radius: 0; box-shadow: none;
}
.checkout-topo { padding: 12px 16px 10px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
.checkout-total { font-size: 22px; }
.checkout-x { width: 44px; height: 44px; margin: -8px -12px 0 0; }
.checkout-corpo { padding: 14px 16px; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.checkout-ver-itens {
display: flex; align-items: center; justify-content: space-between;
width: 100%; min-height: 44px; padding: 0 12px;
border: 1px solid var(--border); border-radius: var(--radius);
background: var(--white);
font-size: 13px; font-weight: 600; color: var(--ink);
}
.checkout-ver-itens svg { transition: transform .15s; }
.checkout-ver-itens[aria-expanded="true"] svg { transform: rotate(90deg); }
.checkout-itens { display: none; border-top: 0; }
.checkout-itens.aberta { display: block; }
.checkout-input, .checkout-copia { height: 44px; font-size: 16px; }
.checkout-seg button { min-height: 44px; font-size: 12px; }
.checkout-copiar { height: 44px; }
.checkout-grid.endereco { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.checkout-grid.endereco > :last-child { grid-column: 1 / -1; }
.checkout-qr { width: 196px; height: 196px; }
}