/* Visual copiado do checkout da vitrine (vitrine-checkout/public/css/checkout.css), parte 4 de 6 */
.quantidade-btn:disabled {
  color: #cbb9a9;
  cursor: not-allowed;
}
.quantidade-input {
  width: 58px;
  height: 45px;
  text-align: center;
  border: none;
  border-left: 1px solid #bca48f;
  border-right: 1px solid #bca48f;
  background: #fff;
  color: var(--espresso);
  font: inherit;
  font-weight: 800;
  font-size: 16px;
  -moz-appearance: textfield;
}
.quantidade-input::-webkit-outer-spin-button,
.quantidade-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.quantidade-input:focus {
  outline: none;
}
.quantidade-ajuda {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.resumo-titulo {
  margin: 0 0 9px;
  color: #847871;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.resumo-itens {
  list-style: none;
  padding: 0;
  margin: 0;
}
.resumo-itens li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  color: #4c4039;
  font-size: 12.5px;
}
.resumo-linha {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  color: #4c4039;
  font-size: 12.5px;
}
.resumo-linha.total {
  margin-top: 11px;
  padding: 14px 15px;
  align-items: baseline;
  border: 1px solid #e4d1b3;
  border-radius: 12px;
  background: linear-gradient(90deg, #f8f1e6, #fffaf2);
  font-family: var(--font-display);
}
.resumo-linha.total span:first-child {
  color: var(--espresso);
  font-size: 18px;
  font-weight: 700;
}
.resumo-linha.total span:last-child {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
}
.parcelas {
  text-align: right;
  color: var(--text-muted);
  font-size: 12px;
  margin: 8px 0 0;
}
.selo {
  margin: 16px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}
.selo-resumo {
  margin-top: 13px;
  padding: 12px 13px;
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--primary-soft);
  border-radius: 12px;
  background: #faf6ef;
  color: #4d3c31;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.45;
}

/* -------- Rodapé -------- */
.rodape {
  border-top: 1px solid var(--border);
  padding: 22px;
}
.rodape p {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* -------- Resultado (overlay) -------- */
.resultado-overlay {
  position: fixed;
  inset: 0;
  background: rgba(33, 20, 15, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}
.resultado-overlay[hidden] {
  display: none;
}
.resultado-box {
  max-width: 460px;
  width: 100%;
  text-align: center;
  margin: 0;
}
.resultado-box h2 {
  font-family: var(--font-display);
  color: var(--espresso);
  margin-top: 0;
}
.badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  margin-bottom: 12px;
}
.badge.ok {
  background: #2e7d5b;
}
.badge.erro {
  background: #b3261e;
}
.badge.espera {
  background: var(--primary);
  color: var(--espresso);
}
.pix-qr {
  width: 220px;
  height: 220px;
  margin: 8px auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
.pix-copia {
  width: 100%;
  font: inherit;
  font-size: 13px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  word-break: break-all;
  resize: none;
}
.btn {
  font: inherit;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  padding: 15px 18px;
  background: var(--espresso);
  color: #fff;
  cursor: pointer;
  width: 100%;
  margin-top: 14px;
  transition:
    background 0.2s,
    transform 0.05s;
}
.btn:hover {
  background: #160d09;
}
.btn:active {
  transform: translateY(1px);
}
.btn.ouro {
  background: var(--primary);
  color: var(--espresso);
}
.pedido-ref {
  font-weight: 800;
  color: var(--accent);
}

/* -------- Upsell pós-compra -------- */
.upsell {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: left;
}
.upsell-titulo {
  margin: 0 0 12px;
  color: var(--espresso);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  text-align: center;
}
