.compra[data-astro-cid-xhzppohl] {
  padding: clamp(36px, 5vw, 72px) 0 var(--secao);
  background: var(--papel);
}

.compra-grade[data-astro-cid-xhzppohl] {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

@media (width >= 1000px) {
  .compra-grade[data-astro-cid-xhzppohl] {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    gap: 56px;
  }
}

@media (width <= 999px) {
  .compra-grade[data-astro-cid-xhzppohl] {
    gap: 0;
  }

  .compra-form[data-astro-cid-xhzppohl] {
    display: contents;
  }

  .voltar[data-astro-cid-xhzppohl] {
    justify-self: start;
  }

  .resumo[data-astro-cid-xhzppohl] {
    order: 1;
    position: static;
    margin-bottom: 28px;
  }

  #formulario[data-astro-cid-xhzppohl] {
    order: 2;
  }
}

.voltar[data-astro-cid-xhzppohl] {
  font-size: 15px;
  margin-bottom: 18px;
}

.voltar[data-astro-cid-xhzppohl] .vira {
  transform: rotate(180deg);
}

.intro[data-astro-cid-xhzppohl] {
  margin: 14px 0 30px;
  max-width: 560px;
}

fieldset[data-astro-cid-xhzppohl] {
  border: 0;
  margin: 0;
  padding: 26px;
  background: #fff;
  border-radius: 20px;
  display: grid;
  gap: 16px;
}

legend[data-astro-cid-xhzppohl] {
  float: left;
  width: 100%;
  margin-bottom: 4px;
}

.dois[data-astro-cid-xhzppohl] {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}

@media (width >= 640px) {
  .dois[data-astro-cid-xhzppohl] {
    grid-template-columns: 1fr 1fr;
  }
}

.campo[data-astro-cid-xhzppohl] {
  display: grid;
  gap: 7px;
}

.campo[data-astro-cid-xhzppohl] > span[data-astro-cid-xhzppohl] {
  font-size: 14px;
  font-weight: 600;
}

.campo[data-astro-cid-xhzppohl] input[data-astro-cid-xhzppohl], .campo[data-astro-cid-xhzppohl] select[data-astro-cid-xhzppohl], .campo[data-astro-cid-xhzppohl] textarea[data-astro-cid-xhzppohl] {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--fio-2);
  background: #fff;
  font-size: 16px;
  outline: 0;
  transition: border-color .15s, box-shadow .15s;
}

.campo[data-astro-cid-xhzppohl] textarea[data-astro-cid-xhzppohl] {
  resize: vertical;
  line-height: 1.45;
}

.campo[data-astro-cid-xhzppohl][hidden] {
  display: none;
}

.campo[data-astro-cid-xhzppohl] .dica[data-astro-cid-xhzppohl] {
  font-size: 13px;
  line-height: 1.4;
  color: var(--tinta-2);
}

.campo[data-astro-cid-xhzppohl] input[data-astro-cid-xhzppohl][aria-invalid="true"] {
  border-color: #b3261e;
}

.campo[data-astro-cid-xhzppohl] input[data-astro-cid-xhzppohl]:focus, .campo[data-astro-cid-xhzppohl] select[data-astro-cid-xhzppohl]:focus, .campo[data-astro-cid-xhzppohl] textarea[data-astro-cid-xhzppohl]:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px #1d35571f;
}

.segmento[data-astro-cid-xhzppohl] {
  display: flex;
  padding: 3px;
  border-radius: 12px;
  background: #7676801f;
}

.segmento[data-astro-cid-xhzppohl] label[data-astro-cid-xhzppohl] {
  flex: 1;
  position: relative;
}

.segmento[data-astro-cid-xhzppohl] input[data-astro-cid-xhzppohl] {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.segmento[data-astro-cid-xhzppohl] span[data-astro-cid-xhzppohl] {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  height: 100%;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  padding: 6px 8px;
}

@media (width <= 560px) {
  .segmento[data-astro-cid-xhzppohl] {
    flex-direction: column;
  }
}

.segmento[data-astro-cid-xhzppohl] input[data-astro-cid-xhzppohl]:checked + span[data-astro-cid-xhzppohl] {
  background: #fff;
  font-weight: 600;
  box-shadow: 0 1px 3px #0000001f;
}

.segmento[data-astro-cid-xhzppohl] input[data-astro-cid-xhzppohl]:focus-visible + span[data-astro-cid-xhzppohl] {
  outline: 2px solid var(--teal);
}

.aceite[data-astro-cid-xhzppohl] {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 22px 4px 18px;
  font-size: 15px;
  line-height: 1.45;
}

.aceite[data-astro-cid-xhzppohl] input[data-astro-cid-xhzppohl] {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--navy);
  flex: none;
}

.aceite[data-astro-cid-xhzppohl].compromisso {
  margin-bottom: 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--teal-fundo);
  color: var(--teal-sobre);
}

.aceite[data-astro-cid-xhzppohl][hidden] {
  display: none;
}

.erro-campo {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #b3261e;
}

.erro-campo[hidden] {
  display: none;
}

.aviso-erro[data-astro-cid-xhzppohl] {
  padding: 14px 16px;
  border-radius: 12px;
  background: #1d355712;
  color: var(--navy);
  font-size: 15px;
  margin-bottom: 16px;
}

.seguro[data-astro-cid-xhzppohl] {
  margin-top: 12px;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.resumo[data-astro-cid-xhzppohl] {
  position: sticky;
  top: 24px;
}

.resumo-caixa[data-astro-cid-xhzppohl] {
  background: #fff;
  border-radius: 22px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.r-chamada[data-astro-cid-xhzppohl] {
  margin-top: 12px;
  padding: 16px;
  border-radius: 14px;
  background: var(--papel);
  display: grid;
  gap: 6px;
}

.r-tema[data-astro-cid-xhzppohl] {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.r-total[data-astro-cid-xhzppohl] {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--fio);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 17px;
  font-weight: 600;
}

.r-total[data-astro-cid-xhzppohl] b[data-astro-cid-xhzppohl] {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.035em;
}

.r-cupom[data-astro-cid-xhzppohl] {
  margin-top: 10px;
}

.r-cupom[data-astro-cid-xhzppohl][hidden], .cupom-campo[data-astro-cid-xhzppohl][hidden], .r-linhas[data-astro-cid-xhzppohl][hidden], .r-cupom[data-astro-cid-xhzppohl] .link[data-astro-cid-xhzppohl][hidden], .r-chamada[data-astro-cid-xhzppohl][hidden] {
  display: none;
}

.r-cupom[data-astro-cid-xhzppohl] .link[data-astro-cid-xhzppohl] {
  font-size: 14px;
}

.cupom-campo[data-astro-cid-xhzppohl] {
  display: flex;
  gap: 8px;
}

.cupom-campo[data-astro-cid-xhzppohl] input[data-astro-cid-xhzppohl] {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--fio-2);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .04em;
  outline: 0;
}

.cupom-campo[data-astro-cid-xhzppohl] input[data-astro-cid-xhzppohl]::placeholder {
  text-transform: none;
  letter-spacing: 0;
}

.cupom-campo[data-astro-cid-xhzppohl] input[data-astro-cid-xhzppohl]:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px #1d35571f;
}

.cupom-campo[data-astro-cid-xhzppohl] .btn[data-astro-cid-xhzppohl] {
  height: 44px;
  padding: 0 16px;
  font-size: 15px;
}

.cupom-msg[data-astro-cid-xhzppohl] {
  margin-top: 8px;
  color: var(--tinta-2);
}

.cupom-msg[data-astro-cid-xhzppohl].ok {
  color: var(--teal-tinta);
  font-weight: 600;
}

.cupom-msg[data-astro-cid-xhzppohl].erro {
  color: #b3261e;
}

.r-linhas[data-astro-cid-xhzppohl] {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--fio);
  display: grid;
  gap: 6px;
  font-size: 15px;
  color: var(--tinta-2);
}

.r-linhas[data-astro-cid-xhzppohl] > div[data-astro-cid-xhzppohl] {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.r-desc[data-astro-cid-xhzppohl] {
  color: var(--teal-tinta);
  font-weight: 600;
}

.r-garantias[data-astro-cid-xhzppohl] {
  list-style: none;
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--fio);
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--tinta-2);
}

.r-garantias[data-astro-cid-xhzppohl] li[data-astro-cid-xhzppohl] {
  display: flex;
  gap: 8px;
  align-items: center;
}

.r-garantias[data-astro-cid-xhzppohl] svg {
  color: var(--teal-tinta);
}
