:root {
  --verde: #16805c;
  --fundo: #f4f6f5;
  --texto: #202924;
  --cinza: #718078;
  --borda: #e1e7e3;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--texto);
  background: var(--fundo);
  font-family: -apple-system, BlinkMacSystemFont,
    "Segoe UI", Arial, sans-serif;
  font-size: 15px;
}

.marca {
  max-width: 540px;
  margin: auto;
  padding: 28px 20px 12px;
  text-align: center;
}

.marca img {
  width: 150px;
  height: 68px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

h1 {
  font-size: 24px;
  margin: 12px 0;
}

h2 {
  font-size: 19px;
  margin: 0 0 20px;
}

h3 {
  font-size: 15px;
  overflow-wrap: anywhere;
}

p {
  color: var(--cinza);
  line-height: 1.5;
  font-size: 14px;
}

main {
  max-width: 540px;
  margin: auto;
  padding: 12px 15px;
}

.card {
  background: white;
  border: 1px solid var(--borda);
  border-radius: 17px;
  padding: 22px;
  margin-bottom: 15px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 18px 0 8px;
}

input, select {
  width: 100%;
  min-width: 0;
  padding: 13px;
  min-height: 47px;
  font: inherit;
  font-size: 16px;
  background: #fafcfb;
  color: var(--texto);
  border: 1px solid var(--borda);
  border-radius: 10px;
}

input:focus, select:focus {
  outline: 2px solid var(--verde);
  outline-offset: 1px;
}

small {
  display: block;
  color: var(--cinza);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 8px;
}

.estimativa {
  padding: 16px;
  background: #f0f7f3;
  border-radius: 10px;
  margin-top: 20px;
}

.estimativa small {
  margin: 0 0 6px;
}

.estimativa strong {
  color: var(--verde);
  font-size: 25px;
}

button {
  width: 100%;
  font: inherit;
  font-weight: 600;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  padding: 13px;
  margin-top: 12px;
  background: var(--verde);
  color: white;
  cursor: pointer;
}

button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.secundario {
  background: white;
  border: 1px solid var(--borda);
  color: var(--texto);
}

.linha {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--borda);
  font-size: 14px;
}

.linha strong {
  text-align: right;
}

#resumo-parcelas {
  max-height: 360px;
  overflow-y: auto;
  margin-bottom: 20px;
}

#resumo-parcelas .linha small {
  margin: 4px 0 0;
}

.erro {
  color: #b42318;
}

footer {
  padding: 20px 15px 30px;
  text-align: center;
  color: var(--cinza);
}

footer p {
  font-size: 12px;
}

@media (max-width: 400px) {
  .card {
    padding: 18px;
  }

  h1 {
    font-size: 22px;
  }
}

.checkout-valor {
  padding: 18px;
  text-align: center;
  background: #f0f7f3;
  border-radius: 12px;
}

.checkout-valor strong {
  display: block;
  font-size: 30px;
  color: var(--verde);
  margin: 10px 0;
}

#checkout-qr {
  display: block;
  width: min(100%, 300px);
  height: auto;
  margin: 15px auto;
}

#checkout-status {
  text-align: center;
  font-weight: 600;
  color: var(--verde);
  margin: 22px 0;
}

#checkout-concluido {
  text-align: center;
}

.botao-acesso {
  display: block;
  padding: 15px;
  background: var(--verde);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
}

.checkout-seguranca {
  text-align: center;
  font-size: 12px;
  margin-top: 22px;
}

.checkout-validade {
  color: #16805c;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  margin: 10px 0;
}

.checkout-orientacao {
  font-size: 12px;
  text-align: center;
  line-height: 1.6;
  color: var(--cinza);
  margin: 18px 0 8px;
}

#checkout-concluido .quitta-pronto {
  font-size: 17px;
  font-weight: 600;
  margin: 8px 0 22px;
}

#checkout-pix #checkout-status {
  margin-bottom: 10px;
}

.quitta-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f5f9f7;
  border: 1px solid var(--borda);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 24px;
}

#quitta-link-texto {
  color: var(--verde);
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
  text-align: left;
}

#quitta-link-copiar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px;
  min-height: 36px;
  margin: 0;
  padding: 7px;
  border: 0;
  color: var(--verde);
  background: transparent;
}

#quitta-link-orientacao {
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  margin: 10px 0 20px;
}

#checkout-nova {
  margin-top: 8px;
}
