/* ===============================
   Carrinho de Compras (Inline)
   =============================== */
.estilo-carrinho-fixo {
  display: none;
  margin-bottom: 3rem;
  animation: aparecerSubindo 0.5s ease;
}
.carrinho-box {
  background: #fff;
  border: 1px solid var(--cor-secundaria);
  border-radius: var(--raio-borda);
  padding: 2rem;
  box-shadow: var(--sombra);
  max-width: 800px;
  margin: 0 auto;
}
.cabecalho-carrinho h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-family: var(--fonte-serifa);
  color: var(--cor-primaria);
  font-size: 1.8rem;
}
.titulos-tabela-carrinho {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: var(--cor-texto-clara);
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 15px;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}
.lista-itens-carrinho {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.item-carrinho {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f5f5f5;
}
.info-item-carrinho {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.thumb-carrinho {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  border: 1px solid rgba(194, 168, 120, 0.3);
  background-color: #faf8f4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.thumb-carrinho img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.detalhes-item-carrinho {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.nome-item {
  font-weight: 600;
  color: var(--cor-primaria);
  overflow-wrap: anywhere;
}
.valor-acao-carrinho {
  display: flex;
  align-items: center;
  gap: 20px;
}
.detalhes-item-carrinho .btn-remover-carrinho {
  align-self: flex-start;
}
.preco-item {
  font-weight: bold;
  color: var(--cor-secundaria);
}
.btn-remover-carrinho {
  background: none;
  border: none;
  color: #b54654;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.2s;
}
.btn-remover-carrinho:hover {
  color: #8f343f;
}
.rodape-carrinho {
  margin-top: 25px;
  border-top: 2px solid #eee;
  padding-top: 20px;
}
.total-carrinho {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  font-size: 1.3rem;
  color: var(--cor-primaria);
  margin-bottom: 20px;
}
.acoes-carrinho {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}
@media (max-width: 600px) {
  .titulos-tabela-carrinho {
    display: none;
  }
  .item-carrinho {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .carrinho-box {
    width: 100%;
  }
  .lista-itens-carrinho {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 4px;
  }
  .thumb-carrinho {
    width: 64px;
    height: 64px;
  }
  .detalhes-item-carrinho {
    width: 100%;
  }
  .nome-item {
    font-size: 0.95rem;
  }
  .preco-item {
    font-size: 1rem;
  }
  .total-carrinho {
    justify-content: space-between;
    width: 100%;
    font-size: 1.1rem;
  }
  .rodape-carrinho {
    padding-top: 16px;
  }
  .valor-acao-carrinho {
    width: 100%;
    justify-content: space-between;
  }
  .acoes-carrinho {
    flex-direction: column;
  }
  .acoes-carrinho button {
    width: 100%;
  }
}
/* ===============================
   Modal de Pagamento
   =============================== */
.modal-pagamento-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 0.8rem;
  overflow: hidden;
  animation: fadeIn 0.3s ease;
}
.modal-pagamento-box {
  background: #fff;
  width: 90%;
  max-width: 500px;
  border-radius: var(--raio-borda);
  padding: 25px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
}
.btn-fechar-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
}
.modal-pagamento-box h3 {
  text-align: center;
  color: var(--cor-primaria);
  margin-bottom: 20px;
  font-family: var(--fonte-serifa);
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes slideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(20px);
    opacity: 0;
  }
}
.modal-pagamento-grid {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.modal-pagamento-card {
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
  text-align: left;
  display: block;
  width: 100%;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition:
    border 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
}
.modal-pagamento-card:hover {
  border-color: var(--cor-secundaria);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(122, 90, 69, 0.18);
}
.modal-pagamento-card strong {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--fonte-serifa);
  color: var(--cor-primaria);
  font-size: 1.1rem;
}
.modal-pagamento-card p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}
.modal-pagamento-card .modal-pagamento-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: #e96b9b;
  color: #fff;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.modal-pagamento-logo--pix {
  display: block;
  width: 24px;
  height: 24px;
  margin-top: 0.45rem;
  object-fit: contain;
}
.modal-pagamento-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.modal-pagamento-logo-inline {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 6px;
}
.modal-pagamento-bandeiras {
  margin-top: 0.45rem;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.modal-pagamento-bandeiras img {
  width: 28px;
  height: 18px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #ececec;
  padding: 2px 4px;
}

/* Paginas legais */
.legal-page {
  background: #faf7f2;
  color: var(--cor-texto);
}
.legal-content {
  padding: 3.5rem 0 4rem;
}
.legal-content h1 {
  font-family: var(--fonte-serifa);
  color: var(--cor-primaria);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  margin-bottom: 0.8rem;
  text-align: center;
}
.legal-title {
  width: 100%;
  display: block;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.legal-content h2 {
  font-family: var(--fonte-serifa);
  color: #7a5a45;
  font-size: 1.2rem;
  margin: 1.6rem 0 0.6rem;
  text-align: left;
}
.legal-content p {
  line-height: 1.7;
  color: #4b4b4b;
}
.modal-pagamento-card.ativo {
  border-color: var(--cor-secundaria);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(122, 90, 69, 0.2);
}
.modal-pix-form,
.modal-cartao-form {
  width: min(560px, 92%);
  background: #fff;
  border-radius: 10px;
  padding: 1.1rem 1.1rem;
  position: relative;
  border: 1px solid #d9d9d9;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
  font-family: var(--fonte-sans);
  overflow: hidden;
  box-sizing: border-box;
}
.compra-segura-img {
  display: block;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.compra-segura-img--checkout {
  width: 260px;
}
.compra-segura-img--rodape {
  width: 280px;
  margin: 0 auto;
}
.compra-segura-img--form {
  width: 280px;
}
.pix-seguro--form {
  border-top: none;
  padding-top: 0;
  margin: 6px 0 2px;
}
.pagamento-titulo {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  color: #d06a86;
  font-weight: 700;
}
.pagamento-info {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  color: #777;
}
.modal-pix-form .pix-acoes,
.modal-cartao-form .pix-acoes {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 0.6rem 0 0.2rem;
  margin-top: 0.8rem;
  border-top: 1px solid #eee;
  z-index: 2;
}
@media (max-width: 520px) {
  .modal-pagamento-overlay {
    align-items: center;
    overflow: hidden;
    padding: 0.5rem 0.35rem calc(0.5rem + env(safe-area-inset-bottom));
  }
  .modal-pix-form,
  .modal-cartao-form {
    width: 100%;
    max-height: calc(100dvh - 1rem - env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.95rem 0.8rem;
  }
  .modal-cartao-form {
    border-radius: 12px;
  }
  .pagamento-titulo {
    font-size: 0.9rem;
  }
  .pagamento-info {
    font-size: 0.68rem;
  }
  .modal-pix-form strong {
    font-size: 0.86rem;
  }
  .pix-campos label {
    font-size: 0.78rem;
    margin-top: 0.4rem;
  }
  .pix-campos small {
    font-size: 0.66rem;
  }
  .modal-pix-form .entrada-confirmacao,
  .modal-cartao-form .entrada-confirmacao {
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    line-height: 1.2;
  }
  .pix-termo {
    padding: 0.5rem 0.6rem;
    font-size: 0.72rem;
  }
  .pix-valor {
    margin: 0.7rem 0 0.4rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
  }
  .pix-acoes {
    margin-top: 0.7rem;
    gap: 0.5rem;
  }
  .pix-acoes .botao {
    padding: 0.65rem 0.7rem;
    font-size: 0.85rem;
  }
  .modal-cartao-form .pix-campos label {
    font-size: 0.76rem;
    letter-spacing: 0.03em;
    margin-top: 0.3rem;
  }
  .modal-cartao-form .pix-campos small {
    font-size: 0.64rem;
    margin-bottom: 0.25rem;
  }
  .modal-cartao-form .entrada-confirmacao {
    padding: 0.5rem 0.72rem;
    border-radius: 8px;
    font-size: 0.86rem;
    margin-bottom: 0.28rem;
  }
  .modal-cartao-form .pix-termo {
    font-size: 0.68rem;
    line-height: 1.35;
  }
  .modal-cartao-form .pix-valor {
    font-size: 0.86rem;
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
  }
  .modal-cartao-form .pix-acoes {
    gap: 0.45rem;
    margin-top: 0.5rem;
    padding-bottom: calc(0.25rem + env(safe-area-inset-bottom));
  }
  .modal-cartao-form .pix-acoes .botao {
    padding: 0.55rem 0.6rem;
    font-size: 0.82rem;
  }
  .modal-cartao-form .compra-segura-img--form {
    width: 220px;
  }
}
.modal-pix-form strong {
  font-family: var(--fonte-serifa);
  color: var(--cor-primaria);
  font-size: 0.92rem;
}
.pix-campos label {
  display: block;
  margin-top: 0.45rem;
  color: #d06a86;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.modal-pix-form .pix-campos,
.modal-cartao-form .pix-campos {
  text-align: left;
}
.pix-campos small {
  display: block;
  margin-top: 0.2rem;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  color: #8d8278;
}
.modal-pix-form .entrada-confirmacao,
.modal-cartao-form .entrada-confirmacao {
  padding: 0.5rem 0.7rem;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  margin-bottom: 0.4rem;
  background: #fff;
  text-align: left;
}
.secure-field {
  display: flex;
  align-items: center;
  min-height: 40px;
  height: 44px;
  padding: 0;
  pointer-events: auto !important;
}
.secure-field iframe {
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: auto !important;
}
.modal-pix-form .entrada-confirmacao:focus,
.modal-cartao-form .entrada-confirmacao:focus {
  outline: none;
  border-color: #d06a86;
  box-shadow: none;
}
.pix-termo {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.7rem;
  color: #555;
  padding: 0;
  border: none;
  background: none;
}
.pix-termo input {
  margin-top: 2px;
  accent-color: var(--cor-secundaria);
}
.pix-termo label {
  color: var(--cor-texto);
  font-weight: 400;
  line-height: 1.4;
}
.pix-termo a {
  color: var(--cor-secundaria);
  text-decoration: none;
  font-weight: 600;
}
.pix-termo a:hover {
  text-decoration: underline;
}
.pix-valor {
  margin: 0.6rem 0 0.35rem;
  font-weight: 700;
  color: #666;
  display: block;
  background: none;
  padding: 0;
  border-radius: 0;
}
.pix-acoes {
  margin-top: 0.5rem;
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
}
.pix-acoes .botao {
  flex: 1;
  text-align: center;
  border-radius: 6px;
  padding: 0.55rem 0.8rem;
  font-weight: 700;
}
.pix-acoes .botao-secundario {
  background: transparent;
  border: none;
  color: #777;
  text-align: left;
  padding-left: 0;
}
/* ===============================
   Checkout (Resumo e Mensagem)
   =============================== */
.checkout-box {
  background: #fff;
  border: 1px solid var(--cor-secundaria);
  border-radius: var(--raio-borda);
  padding: 2rem;
  box-shadow: var(--sombra);
  max-width: 950px;
  margin: 0 auto;
  animation: aparecerSubindo 0.5s ease;
}
.titulo-checkout {
  font-family: var(--fonte-serifa);
  color: var(--cor-primaria);
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  text-align: center;
}
.resumo-linha {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 0.95rem;
  color: #555;
}
.resumo-linha.total-destaque {
  font-weight: bold;
  color: var(--cor-primaria);
  font-size: 1.2rem;
  margin-top: 8px;
  border-top: 1px solid rgba(194, 168, 120, 0.3);
  padding-top: 8px;
}
/* Layout Grid para Checkout Compacto */
.checkout-layout {
  display: grid;
  grid-template-columns: 300px 1fr; /* Resumo | Formulario */
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}
.secao-checkout {
  margin-top: 2rem;
  border-top: 1px solid #eee;
  padding-top: 2rem;
}
.secao-checkout h4 {
  font-family: var(--fonte-serifa);
  color: var(--cor-primaria);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}
.secao-checkout.compacta {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
  margin-bottom: 1.5rem;
}
.titulo-secao-compacta {
  font-size: 1.1rem !important;
  color: var(--cor-primaria);
  margin-bottom: 0.8rem !important;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}
.input-checkout,
.textarea-checkout {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: var(--fonte-sans);
  margin-bottom: 10px;
  font-size: 1rem;
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    opacity 0.3s;
}
.textarea-checkout {
  height: 120px;
  resize: vertical;
}
.textarea-checkout.compacta {
  height: 80px;
}
.contador-caracteres {
  text-align: right;
  font-size: 0.8rem;
  color: #999;
}
.btn-ia {
  background: linear-gradient(45deg, var(--cor-secundaria), #d4af37);
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  margin-bottom: 15px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}
.cartoes-carrossel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.grid-cartoes {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 1fr);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px;
}
.grid-cartoes.compacta {
  grid-auto-columns: minmax(170px, 1fr);
}
.grid-cartoes::-webkit-scrollbar {
  height: 6px;
}
.grid-cartoes::-webkit-scrollbar-thumb {
  background: #e3ded6;
  border-radius: 999px;
}
.grid-cartoes::-webkit-scrollbar-track {
  background: transparent;
}
.opcao-cartao {
  border: 2px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  opacity: 0.7;
  transform: scale(0.98);
  position: relative;
  padding: 10px;
  background: #fff;
  scroll-snap-align: start;
}
.opcao-cartao:hover {
  opacity: 1;
  transform: scale(1);
  border-color: #ccc;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.opcao-cartao.selecionado {
  border-color: var(--cor-secundaria);
  box-shadow: 0 10px 25px rgba(194, 168, 120, 0.25);
  opacity: 1;
  transform: scale(1.03);
  background-color: #fff;
}
.opcao-cartao p {
  text-align: center;
  padding: 5px;
  font-size: 0.9rem;
  margin: 0;
}
.opcao-cartao-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #f7f7f7;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #666;
}
.opcao-cartao-tag.destaque {
  background: rgba(194, 168, 120, 0.15);
  color: var(--cor-secundaria);
}
.opcao-cartao-preview {
  height: 150px;
  background: #fafafa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eee;
  color: #999;
  font-size: 0.85rem;
  text-align: center;
  padding: 0.4rem;
  overflow: hidden;
  position: relative;
}
.opcao-cartao-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cartoes-seta {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: #4a4a4a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.cartoes-seta:hover {
  transform: translateY(-1px);
}
.cartoes-seta:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}
.cartoes-seta svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.opcao-cartao-zoom {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.opcao-cartao-zoom-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #dfe7f0;
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.opcao-cartao-zoom-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}
.opcao-cartao-zoom-btn svg {
  width: 18px;
  height: 18px;
  fill: #6f7a86;
}
.cartao-preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}
.cartao-preview-modal {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  max-width: 720px;
  width: 100%;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  position: relative;
}
.cartao-preview-modal img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}
.cartao-preview-fechar {
  position: absolute;
  top: 6px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: #888;
  cursor: pointer;
}
.btn-sem-cartao {
  display: block;
  margin-top: 15px;
  text-align: center;
  color: #666;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
}
.pagamento-card-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  align-items: center;
}
.pagamento-card-brand-img {
  width: 34px;
  height: 22px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e6e6e6;
  padding: 2px 4px;
}
.pagamento-card-brand-loading {
  font-size: 0.7rem;
  color: #777;
}
.cartao-parcelas-status {
  margin-top: 6px;
  font-size: 0.75rem;
  color: #6e6e6e;
}
.cartao-numero-wrapper {
  position: relative;
}
.cartao-numero-wrapper .entrada-confirmacao {
  padding-right: 96px;
}
.cartao-brand-icone {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 22px;
  object-fit: contain;
}
.cartao-brand-texto {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #6e625a;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 2px 8px;
}
.resumo-compra {
  background-color: var(--cor-superficie);
  padding: 1rem;
  border-radius: var(--raio-borda);
  margin-bottom: 0; /* Remove margem pois os Botões estaráo dentro */
  border: 1px solid rgba(194, 168, 120, 0.2);
}
.titulo-checkout-resumo {
  text-align: left;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}
.checkout-formulario {
  background: #fff;
  border: 1px solid rgba(194, 168, 120, 0.2);
  border-radius: var(--raio-borda);
  padding: 1rem;
}
.obrigatorio {
  color: var(--cor-secundaria);
}
.feedback-checkout {
  min-height: 18px;
  font-size: 0.9rem;
  color: #d54c7c;
  display: none;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: rgba(213, 76, 124, 0.08);
  border: 1px solid rgba(213, 76, 124, 0.18);
  line-height: 1.45;
}
.feedback-checkout-modal {
  margin: 0.4rem 0 0.6rem;
}
.lista-presentes__feedback {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1.2rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(194, 168, 120, 0.18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}
.lista-presentes__feedback h3 {
  margin: 0 0 0.5rem;
  color: var(--cor-primaria);
  font-size: 1.25rem;
}
.lista-presentes__feedback p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}
.lista-presentes__feedback--erro {
  background: #fff8fb;
  border-color: rgba(213, 76, 124, 0.18);
}
.lista-presentes__feedback--vazio {
  background: linear-gradient(180deg, #fffdf9 0%, #fff 100%);
}
.lista-presentes__feedback-icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  background: rgba(213, 76, 124, 0.12);
  color: #d54c7c;
  font-weight: 700;
}
.lista-presentes__retry {
  margin-top: 1rem;
}
.lista-itens-resumo {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
  max-height: 250px;
  overflow-y: auto;
  padding-right: 5px;
}
.item-resumo-checkout {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 4px;
}
.grupo-input {
  margin-bottom: 10px;
}
.grupo-input label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 3px;
  display: block;
}
.checkout-acoes {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 16px;
}
.checkout-espaco {
  flex: 1;
}
.checkout-compra-segura {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #777;
  font-size: 0.9rem;
}
.checkout-btn {
  min-width: 180px;
}
.botao-secundario-destaque {
  background-color: var(--cor-secundaria);
  border-color: var(--cor-secundaria);
  color: #fff;
}
.botao-secundario-destaque:hover {
  background-color: transparent;
  color: var(--cor-secundaria);
}
/* ===============================
   Login
   =============================== */
.login-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(
      900px 450px at 10% 10%,
      rgba(194, 168, 120, 0.12),
      transparent 60%
    ),
    radial-gradient(
      700px 400px at 90% 20%,
      rgba(84, 75, 69, 0.08),
      transparent 55%
    ),
    var(--cor-fundo);
}
.login-card {
  width: 100%;
  max-width: 420px;
  background-color: var(--cor-clara);
  border-radius: var(--raio-borda);
  padding: 32px;
  box-shadow: var(--sombra);
  border: 1px solid rgba(194, 168, 120, 0.2);
}
.login-card h2 {
  font-family: var(--fonte-serifa);
  color: var(--cor-primaria);
  text-align: center;
  margin-bottom: 16px;
}
.login-card form {
  margin-top: 12px;
}
.login-card .grupo-input {
  margin-bottom: 14px;
}
.login-card .grupo-input label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cor-texto);
  font-weight: 600;
}
.login-card .grupo-input input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--cor-secundaria);
}
.login-card .grupo-input input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(84, 75, 69, 0.2);
  font-family: var(--fonte-sans);
  background-color: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.login-card .grupo-input input:focus {
  outline: none;
  border-color: var(--cor-secundaria);
  box-shadow: 0 0 0 3px rgba(194, 168, 120, 0.2);
}
.login-card .erro-msg {
  text-align: center;
  margin-bottom: 8px;
}
.login-card .botao {
  width: 100%;
}
