/* =========================================================
   FINALIZAÇÃO DA VENDA
   CSS COMPLETO DA PÁGINA
   ========================================================= */

/* ---------- Reset da página ---------- */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Nunito, Arial, sans-serif;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background: #f5f7fa;
  color: #292929;
}

body {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
input[type="submit"] {
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Estrutura externa ---------- */

.centro {
  display: block;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 50px;
}

#centro {
  display: block;
  width: 100%;
}

.checkout {
  display: grid;
  grid-template-columns:
    minmax(280px, 1fr)
    minmax(280px, 1fr)
    minmax(300px, 1.08fr);
  align-items: start;
  gap: 24px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* Limpa floats antigos que possam continuar na página */

.checkout::after,
.centro::after,
.dados::after,
.conta::after,
.resumo::after {
  display: table;
  clear: both;
  content: "";
}

/* ---------- Título principal ---------- */

.centro > h1,
.checkout-title,
h1.final {
  display: block;
  float: none;
  width: 100%;
  margin: 0 0 30px;
  padding: 0;
  color: #4179c7;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

/* ---------- Cartões ---------- */

.dados,
.conta,
.resumo {
  position: relative;
  display: block;
  float: none;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 82px 22px 24px;
  border: 1px solid #e1e5eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(25, 45, 75, 0.07);
}

.dados,
.conta {
  min-height: 100%;
}

.resumo {
  padding-top: 24px;
}

/* ---------- Cabeçalhos dos cartões ---------- */

.checkout h2 {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  float: none;
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 16px 20px;
  border-bottom: 1px solid #edf0f4;
  border-radius: 14px 14px 0 0;
  background: #fafbfc;
  color: #292929;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.1;
  text-align: left;
  text-transform: uppercase;
  align-items: center;
  justify-content: space-between;
  cursor: default;
}

.checkout h2 {
    font-size: 15px;
    cursor: pointer;
    text-align: left;
    color: #292929;
    margin-top: 30px;
    /* width: 100%; */
    /* float: left; */
    padding: 10px;
    margin: 0;
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    margin-top: 20px;
    margin-bottom: 20px !important;
}

.checkout h2::after {
  display: block;
  max-width: 94px;
  margin-left: 12px;
  color: #818892;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
  text-transform: uppercase;
  content: "Campos com * são obrigatórios";
}

.resumo h2::after,
.resumo h3::after {
  display: none;
}

.resumo h3 {
  display: block;
  float: none;
  width: 100%;
  margin: 0 0 20px;
  padding: 0 0 14px;
  border-bottom: 1px solid #edf0f4;
  color: #303641;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  text-align: left;
}

/* ---------- Formulários ---------- */

.checkout form,
.dados form,
.conta form {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  text-align: left !important;
}

.dados > div,
.conta > div,
#campos_pagamento,
.check,
.bloco-quip,
.bloco-multi {
  display: block;
  float: none;
  width: 100%;
}

.checkout label,
.dados label,
.conta label,
#campos_pagamento label {
  display: block;
  float: none;
  width: 100% !important;
  margin: 0 0 6px !important;
  padding: 0;
  color: #353b44;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left !important;
}

.checkout input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]),
.checkout select,
.checkout textarea,
.dados input,
.conta input,
#campos_pagamento select {
  display: block;
  float: none;
  width: 100% !important;
  height: 44px;
  margin: 0 0 15px !important;
  padding: 9px 12px !important;
  border: 1px solid #ccd3dc;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: #252a31;
  font-size: 15px;
  line-height: normal;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.checkout textarea {
  min-height: 100px;
  height: auto;
  resize: vertical;
}

.checkout select {
  padding-right: 38px !important;
  appearance: auto;
}

.checkout input:focus,
.checkout select:focus,
.checkout textarea:focus,
.dados input:focus,
.conta input:focus {
  border-color: #4179c7;
  box-shadow: 0 0 0 3px rgba(65, 121, 199, 0.13);
}

.checkout input::placeholder,
.checkout textarea::placeholder {
  color: #a0a7b0;
}

.checkout input:disabled,
.checkout select:disabled,
.checkout textarea:disabled {
  background: #f1f3f6;
  color: #7c838c;
  cursor: not-allowed;
}

/* Remove os tamanhos fixos antigos */

.dados input.x-size-0,
.dados input.x-size-1,
.dados input.x-size-3,
.dados input.x-size-5,
.dados input.x-size-6,
.conta input.x-size-0,
.conta input.x-size-1,
.conta input.x-size-3,
.conta input.x-size-5,
.conta input.x-size-6 {
  width: 100% !important;
  height: 44px;
  margin: 0 0 15px !important;
  padding: 9px 12px !important;
  border-radius: 8px;
}

.dados label.x-size-0,
.dados label.x-size-1,
.dados label.x-size-3,
.dados label.x-size-5,
.dados label.x-size-6,
.conta label.x-size-0,
.conta label.x-size-1,
.conta label.x-size-3,
.conta label.x-size-5,
.conta label.x-size-6 {
  width: 100% !important;
  margin: 0 0 6px !important;
  text-align: left !important;
}

/* ---------- Campos lado a lado, quando existirem ---------- */

.checkout .linha-campos,
.checkout .row,
.checkout .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.checkout .linha-campos > *,
.checkout .row > *,
.checkout .form-row > * {
  min-width: 0;
}

/* ---------- Forma de pagamento ---------- */

p.pag {
  display: block;
  float: none;
  width: 100%;
  margin: 0 0 7px;
  color: #353b44;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

#campos_pagamento {
  margin: 0;
}

#campos_pagamento select {
  margin-bottom: 8px !important;
}

.conta ul {
  display: block;
  float: none;
  width: 100%;
  margin: 10px 0 0;
  padding: 0;
  color: #727a84;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}

/* ---------- Resumo do pedido ---------- */

.resumo {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.resumo p {
  display: block;
  float: none;
  width: 100% !important;
  margin: 0 0 12px;
  padding: 0;
  color: #555e68;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.resumo p strong {
  display: block;
  float: none;
  width: 100%;
  margin-bottom: 3px;
  color: #323943;
  font-weight: 800;
}

.resumo p span {
  color: #75b83d;
  font-weight: 700;
}

.resumo .p {
  display: block;
  float: none;
  width: 100%;
  margin: 0;
}

.resumo img {
  display: block;
  float: none;
  width: auto;
  max-width: 180px;
  max-height: 150px;
  margin: 0 auto 18px;
  padding: 0;
  object-fit: contain;
}

/* ---------- Subtotal ---------- */

.subtotal {
  display: block;
  float: none;
  width: 100% !important;
  margin: 6px 0 18px !important;
  padding: 13px 15px !important;
  border: 1px dashed #80c343;
  border-radius: 8px;
  background: #f8fbf5;
  color: #30363d;
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.subtotal span,
.subtotal strong {
  display: inline !important;
  color: #69aa30 !important;
  font-weight: 800;
}

/* ---------- Lista de características ---------- */

.resumo .descr {
  display: grid;
  float: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 2px 0 18px;
  padding: 15px;
  border-radius: 10px;
  background: #f8f9fb;
  color: #4f5863;
  font-size: 13px;
  text-align: left;
}

.resumo .descr p {
  margin: 0;
  padding: 7px;
  border-bottom: 1px solid #eceff3;
  font-size: 13px;
  text-align: left;
}

.resumo .descr strong {
  margin-bottom: 2px;
  font-size: 12px;
}

/* ---------- Botão final ---------- */

.preco-final {
  display: block;
  float: none;
  width: 100%;
  margin-top: auto;
  padding-top: 8px;
}

.preco-final a,
.resumo .venda,
.venda,
.checkout input[type="submit"],
.checkout button[type="submit"] {
  display: flex;
  float: none;
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 13px 20px;
  border: 0;
  border-radius: 9px;
  background: #70b93f;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 14px rgba(112, 185, 63, 0.25);
  transition:
    transform 0.15s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.preco-final a:hover,
.resumo .venda:hover,
.venda:hover,
.checkout input[type="submit"]:hover,
.checkout button[type="submit"]:hover {
  background: #62a734;
  box-shadow: 0 7px 18px rgba(112, 185, 63, 0.32);
  transform: translateY(-1px);
  opacity: 1;
}

.preco-final a:active,
.resumo .venda:active,
.venda:active,
.checkout input[type="submit"]:active,
.checkout button[type="submit"]:active {
  transform: translateY(0);
}

/* ---------- Preço ---------- */

.pagar {
  display: block;
  width: 100%;
  margin-bottom: 4px;
  color: #666;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
}

.preco {
  display: block;
  width: 100%;
  margin: 0 0 15px;
  color: #4179c7;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.botao-final {
  display: none;
  float: none;
  width: 30%;
  margin: 0;
  padding: 0;
  color: #666;
  font-size: 20px;
  text-align: center;
}

.botao-final span {
  display: block;
  float: none;
  position: static;
  width: 100%;
  color: #4179c7;
  font-size: 54px;
  font-weight: 900;
  text-align: center;
}

div#textDiv {
    margin-bottom: 20px !important;
}

/* ---------- Mensagens ---------- */

.errorMessages,
.successMessages {
  display: none;
  width: 100%;
  margin: 0 0 18px;
  padding: 13px 16px 13px 42px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
}

.errorMessages {
  border: 1px solid #efb5b8;
  background: #fff1f2;
  color: #a33d43;
}

.successMessages {
  border: 1px solid #b8dfb6;
  background: #effaed;
  color: #398332;
}

.errorMessages span,
.successMessages span {
  font-weight: 800;
}

/* ---------- Alerta ---------- */

#alerta {
  display: none;
  float: none;
  width: 100%;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #e2b43e;
  border-radius: 8px;
  background: #fff5cb;
  color: #8c6805;
}

#alerta p {
  float: none;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

#alerta i {
  float: none;
  margin-right: 7px;
}

/* ---------- Radios e checks ---------- */

.checkout input[type="radio"],
.checkout input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0 7px 0 0;
  accent-color: #4179c7;
}

.checkout .radio-option,
.checkout .checkbox-option {
  display: flex;
  width: 100%;
  margin-bottom: 9px;
  align-items: center;
}

.checkout .radio-option label,
.checkout .checkbox-option label {
  display: inline;
  width: auto !important;
  margin: 0 !important;
  cursor: pointer;
}

/* ---------- Lista pesquisável ---------- */

#ulItens {
  display: none;
  position: relative;
  z-index: 10;
  float: none;
  width: 100%;
  max-height: 180px;
  margin: -8px 0 15px;
  border: 1px solid #ccd3dc;
  border-radius: 0 0 8px 8px;
  background: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: 0 8px 18px rgba(30, 45, 65, 0.12);
}

#ulItens li {
  padding: 10px 12px;
  border-bottom: 1px solid #edf0f3;
  color: #343a43;
  cursor: pointer;
}

#ulItens li:last-child {
  border-bottom: 0;
}

#ulItens li:hover {
  background: #f2f6fb;
}

/* ---------- Remove efeitos globais inadequados ---------- */

.checkout label:hover,
.checkout label:active,
.checkout input:hover + label,
.checkout input:active + label {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
}

.checkout button {
  width: auto;
  margin: 0;
}

/* =========================================================
   TABLET
   ========================================================= */

@media screen and (max-width: 1050px) {
  .centro {
    width: min(920px, calc(100% - 30px));
    padding-top: 24px;
  }

  .checkout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .resumo {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.75fr);
    column-gap: 26px;
    align-items: start;
  }

  .resumo h3 {
    grid-column: 1 / -1;
  }

  .resumo .subtotal,
  .resumo .preco-final,
  .resumo .venda {
    grid-column: 2;
  }

  .resumo .descr {
    grid-column: 1;
    grid-row: span 3;
  }
}

/* =========================================================
   MOBILE E TABLET PEQUENO
   ========================================================= */

@media screen and (max-width: 760px) {
  html,
  body {
    background: #f4f6f9;
  }

  .centro {
    width: 100%;
    padding: 20px 14px 35px;
  }

  .centro > h1,
  h1.final {
    margin-bottom: 20px;
    font-size: 26px;
  }

  .checkout {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .dados,
  .conta,
  .resumo {
    display: block;
    width: 100%;
    min-height: auto;
    padding: 76px 17px 20px;
    border-radius: 12px;
  }

  .resumo {
    padding-top: 20px;
  }

  .checkout h2 {
    min-height: 58px;
    padding: 14px 16px;
    font-size: 17px;
  }

  .checkout h2::after {
    max-width: 82px;
    font-size: 8px;
  }

  .resumo h3 {
    margin-bottom: 16px;
    font-size: 19px;
  }

  .checkout input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]),
  .checkout select,
  .checkout textarea,
  .dados input,
  .conta input {
    height: 46px;
    margin-bottom: 14px !important;
    font-size: 16px;
  }

  .checkout .linha-campos,
  .checkout .row,
  .checkout .form-row {
    display: block;
  }

  .resumo .descr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 10px;
    padding: 12px;
  }

  .subtotal {
    margin-top: 5px !important;
  }

  .preco-final a,
  .resumo .venda,
  .venda,
  .checkout input[type="submit"],
  .checkout button[type="submit"] {
    min-height: 52px;
    font-size: 17px;
  }

  .preco {
    font-size: 45px;
  }
}


.centro{
  background-color:#fff !important;
  border-radius:20px !important;
  padding:20px !important;
}

.centro > h1{

  color:green !important;

}
/* =========================================================
   CELULARES PEQUENOS
   ========================================================= */

@media screen and (max-width: 420px) {
  .centro {
    padding-right: 10px;
    padding-left: 10px;
  }

  .centro > h1,
  h1.final {
    font-size: 23px;
  }

  .dados,
  .conta,
  .resumo {
    padding-right: 14px;
    padding-left: 14px;
  }

  .checkout h2 {
    font-size: 16px;
  }

  .checkout h2::after {
    max-width: 72px;
    font-size: 7px;
  }

  .resumo .descr {
    grid-template-columns: 1fr;
  }

  .resumo .descr p {
    padding: 8px 3px;
  }

  .subtotal {
    font-size: 14px !important;
  }

  .preco-final a,
  .resumo .venda,
  .venda {
    width: 100%;
  }

  .errorMessages,
  .successMessages {
    padding: 12px 13px;
  }
}