body {
  font-family: "Inter", sans-serif;
  background: #f4f4f4;
  margin: 0;
}

.site-header {
  background-color: #fff;
  padding: 0px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.header-container {
  max-width: 420px; /* Mesma largura do container de checkout para alinhar */
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-container {
  max-width: 400px;
  margin: 0 auto;
  /* Removemos o fundo, a sombra e o padding para que ele se torne invisível */
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.header-logo {
  height: 100px; /* Logo ainda maior */
  width: auto;
}
.header-secure-logo {
  height: 20px; /* Selo de segurança ainda menor */
  width: auto;
}

.progress-container {
  max-width: 400px;
  margin: 0 auto 20px auto; /* Adiciona espaçamento abaixo da barra */
  padding: 0 10px; /* Garante que não cole nas bordas em telas pequenas */
}

.progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0;
}

.step {
  width: 32px;
  height: 32px;
  background: #ccc;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.step.active {
  background: black;
}

.line {
  flex: 1;
  height: 3px;
  background: #ccc;
  margin: 0 5px;
}

.line.active {
  background: black;
}

.step-container {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  border: 1px solid #f0f0f0;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.step-header .step-number {
  width: 32px;
  height: 32px;
  background: black;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.step-header h2 {
  margin: 0;
  font-size: 20px;
}

.step-completed-icon {
  color: #22c55e; /* Verde */
  font-size: 20px;
  margin-left: 10px;
}

.edit-btn {
  margin-left: auto; /* Joga o botão para a direita */
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 16px;
  padding: 5px;
}
.edit-btn:hover {
  color: #333;
}

.step-description {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 20px;
}

.error-message {
  color: #e53e3e;
  font-size: 12px;
  display: block;
  margin-top: 5px;
  font-weight: 600;
}

.form-group {
  margin-bottom: 15px;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

input.invalid {
  border-color: #e53e3e;
  background-color: #fff5f5;
}

input {
  padding: 15px; /* Campos maiores */
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

button {
  background: black;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.step-content button[type="button"],
.step-content button[type="submit"] {
  animation: pulse 2.5s infinite; /* Animação de pulso */
}

.continue-btn {
  width: 100%;
  max-width: 250px; /* Largura máxima do botão */
  display: block;
  margin: 20px auto 0 auto; /* Centraliza o botão */
}

button:hover {
  opacity: 0.8;
}

.step-container {
  margin-bottom: 15px;
}

.step-container.summarized {
  border-radius: 10px;
  margin-bottom: 15px;
}

.step-summary {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  padding-top: 10px;
}

.cart {
  background: #fff;
  border-radius: 10px;
  padding: 20px; /* Caixas maiores */
  margin-bottom: 15px;
  border: 1px solid #f0f0f0;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item img {
  width: 60px; /* Imagem maior */
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item p {
  font-weight: 600;
  margin: 0;
}

.cart-summary-details .summary-line.total strong {
  color: #22c55e; /* Cor verde para o total do carrinho */
}

.row {
  display: flex;
  gap: 10px;
}

.row .form-group {
  width: 100%;
}

/* Ajuste para o formulário de endereço em telas pequenas */
@media (max-width: 480px) {
  .row {
    display: block; /* Faz os campos empilharem */
    gap: 0;
  }
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shipping-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border: 2px solid #eee;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
  margin-bottom: 12px; /* FORÇA o espaçamento entre as opções */
}

.shipping-option.selected {
  border-color: #22c55e;
  background-color: #f0fff4;
}

.shipping-option:last-child {
  margin-bottom: 0; /* Remove a margem do último item */
}

.shipping-option input[type="radio"] {
  display: none;
}

.shipping-details {
  flex-grow: 1; /* Permite que esta área cresça e empurre o preço */
  display: flex;
  flex-direction: column;
}

.shipping-delivery {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.ThreeSteps_shipImg__9ZLSm {
  object-fit: contain;
  max-width: 64px;
  height: 24px;
}

.shipping-title {
  font-weight: 600;
  color: #333;
}

.shipping-time {
  font-size: 13px;
  color: #666;
}

.shipping-price {
  font-weight: bold;
  color: #22c55e; /* Verde */
  white-space: nowrap; /* Impede que o preço quebre a linha */
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}
.summary-line.total {
  font-size: 16px;
  margin-top: 10px;
  border-radius: 10px;
}
.summary-line.total strong {
  color: #22c55e; /* Cor verde para o valor total */
}

/* Estilos para as novas opções de pagamento */
.payment-options-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

.payment-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border: 2px solid #eee;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.payment-option.selected {
  border-color: #22c55e;
  background-color: #f0fff4;
}

.payment-option input[type="radio"] {
  display: none;
}

.payment-option-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.payment-icon {
  font-size: 20px;
  color: #555;
  width: 25px;
  text-align: center;
}

.payment-option span {
  font-weight: 600;
}

.radio-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #ccc;
  position: relative;
  transition: border-color 0.2s;
}

.payment-option.selected .radio-check {
  border-color: #22c55e;
}

.radio-check::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #22c55e;
  transition: transform 0.2s;
}

.payment-option.selected .radio-check::after {
  transform: translate(-50%, -50%) scale(1);
}

/* Estilos para o Overlay de Loading */
#loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
  border-radius: 10px;
}
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ========================================= */
/* ESTILOS PARA O POPUP DE LOADING E ERRO    */
/* ========================================= */

#popup-overlay {
  position: fixed; /* Fica fixo na tela inteira */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Fundo escurecido */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Garante que fique na frente de tudo */
  padding: 20px;
  box-sizing: border-box;
}

#popup-content {
  background-color: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  /* Adiciona flexbox para garantir o alinhamento vertical */
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: popup-appear 0.3s ease-out;
}

/* Animação de surgimento do popup */
@keyframes popup-appear {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Ícone de erro no popup */
#popup-content .popup-icon {
  font-size: 48px;
  color: #e53e3e;
  margin-bottom: 15px;
}

/* Título do popup */
#popup-content h4 {
  margin: 0 0 10px 0;
  font-size: 1.4rem;
  color: #333;
}

/* Descrição no popup */
#popup-content p {
  margin: 0 0 25px 0;
  color: #666;
  line-height: 1.5;
}

/* ========================================= */
/* ESTILOS ADICIONAIS PARA POPUP DE PIX      */
/* ========================================= */

#popup-content .pix-display-popup {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#popup-content .pix-display-popup p {
  font-size: 14px;
  margin-bottom: 20px;
}

#popup-content .copy-area {
  display: flex;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

#popup-content .copy-area input {
  flex-grow: 1;
  border: none;
  padding: 12px;
  font-size: 12px;
  background-color: #f7f7f7;
  text-align: center;
}

#popup-content .copy-area button {
  flex-shrink: 0;
  border: none;
  background-color: #e9e9e9;
  color: #555;
  cursor: pointer;
  padding: 0 15px;
  border-radius: 0;
}

#popup-content .copy-area button:hover {
  background-color: #ddd;
}

/* ========================================= */
/* ESTILOS PARA AS CAIXAS DE GARANTIA (FOOTER) */
/* ========================================= */

.footer-features {
  max-width: 400px;
  margin: 30px auto; /* Espaçamento acima e centralização */
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px; /* Espaço entre as caixas */
}

.feature-box {
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 12px;
  padding: 20px;
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.feature-header i {
  font-size: 18px;
  color: #333;
}

.feature-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.feature-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.feature-box .stars {
  color: #ffc107; /* Cor de estrela (amarelo) */
  font-size: 16px;
  margin-bottom: 12px;
}

.feature-box p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.sub-features {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 13px;
  color: #444;
  font-weight: 500;
}

.sub-features span i {
  margin-right: 6px;
  color: #22c55e; /* Verde para ícones de destaque */
}

/* ========================================= */
/* ESTILOS PARA O RODAPÉ DE SEGURANÇA        */
/* ========================================= */

.secure-footer {
  max-width: 400px;
  margin: 40px auto 20px auto;
  padding-top: 20px;
  border-top: 1px solid #e9e9e9;
  text-align: center;
}

.secure-footer p {
  font-size: 13px;
  color: #888;
  margin-bottom: 15px;
  font-weight: 500;
}

.secure-footer-images {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px; /* Espaço entre os selos */
}

.secure-footer-images img {
  height: 35px; /* Altura controlada para os selos */
  width: auto;
}
