/* ═══════════════════════════════════════════════
   ZENNITEX CHECKOUT CSS
   Alta Conversão, Mobile-First, Identidade Zennitex B2B
═══════════════════════════════════════════════ */

body {
  background-color: #f3f4f6; /* Fundo levemente mais cinza para destacar os cards */
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER MINIMALISTA ── */
.checkout-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 0;
}

.checkout-header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.zt-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: #0f172a;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.zt-logo img {
  height: 32px;
  width: 32px;
  border-radius: 50%;
}

.secure-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #10b981; /* Verde sucesso/segurança */
}

/* ── LAYOUT PRINCIPAL ── */
.checkout-main {
  padding: 40px 24px;
  min-height: calc(100vh - 65px);
}

.checkout-wrapper {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}

/* ── RESUMO DO PEDIDO (ASIDE) ── */
.order-summary {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 6px -1px rgba(0,0,0,0.05);
  border: 1px solid #e5e7eb;
}

.summary-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: #1e293b;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 16px;
}

.item-name strong {
  color: #0f172a;
}

.item-price {
  font-weight: 500;
}

.summary-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 16px 0;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 24px;
}

.total-price {
  font-size: 1.4rem;
  color: #2563eb;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}

.trust-list li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

/* ── CONTEÚDO DE AÇÃO (FORMULÁRIO/QR) ── */
.checkout-content {
  background: #ffffff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 6px -1px rgba(0,0,0,0.05);
  border: 1px solid #e5e7eb;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.checkout-heading {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.checkout-subheading {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0 0 24px;
  line-height: 1.5;
}

/* ── FORMULÁRIO ── */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background-color: #f8fafc;
  transition: border-color 0.2s, background-color 0.2s;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #2563eb;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder {
  color: #94a3b8;
}

/* ── BOTÕES ── */
.zt-cta-full {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #2563eb;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  margin-top: 10px;
}

.zt-cta-full:hover:not(:disabled) {
  background-color: #1d4ed8;
}

.zt-cta-full:active:not(:disabled) {
  transform: translateY(1px);
}

.zt-cta-full:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.pix-notice {
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 16px;
}

/* ── ERROS E LOADERS ── */
.alert-error {
  background-color: #fef2f2;
  border-left: 4px solid #ef4444;
  color: #991b1b;
  padding: 12px 16px;
  margin-bottom: 24px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
}

.loader {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

.loader-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(37, 99, 235, 0.2);
  border-radius: 50%;
  border-top-color: #2563eb;
  animation: spin 1s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── QR CODE E PAGAMENTO ── */
.qr-code-wrapper {
  display: flex;
  justify-content: center;
  margin: 0 auto 24px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
  max-width: 250px;
}

.qr-code-wrapper img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.copy-paste-container {
  margin-bottom: 32px;
}

.copy-paste-container label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.input-group {
  display: flex;
  gap: 8px;
}

.input-group input {
  flex: 1;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-family: monospace;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background-color: #f1f5f9;
}

.input-group input:focus {
  outline: none;
}

.btn-copy {
  padding: 0 20px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy:hover {
  background: #e2e8f0;
}

.payment-status {
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.payment-status p {
  margin: 0;
  font-size: 0.95rem;
  color: #475569;
  font-weight: 500;
}

/* ── SUCESSO ── */
.success-icon {
  width: 64px;
  height: 64px;
  background-color: #10b981;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 24px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* ── RESPONSIVIDADE ── */
@media (max-width: 768px) {
  .checkout-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  /* No mobile, o resumo vai pro topo */
  .order-summary {
    order: -1;
  }
  
  .checkout-content {
    padding: 24px;
  }
}
