/* ===========================================
   CHECKOUT - CENTRALIZED MOBILE-FIRST
   =========================================== */

:root {
  --purple: #635bff;
  --purple-hover: #4f46e5;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --danger: #dc2626;
  --radius: 6px;
}

body {
  background: var(--bg);
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.5;
  padding-bottom: 40px;
}

.top-urgency {
  background: #ffffff;
  text-align: center;
  padding: 16px 12px;
  font-size: 22px;
  font-weight: 800;
  color: #000;
  border-bottom: none;
}
.timer-red { color: #ff0000; }

.top-bar {
  background: #e2e5eb;
  padding: 14px 20px;
  font-size: 15px;
  color: #2d3748;
}
.top-bar-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.checkout-container-single {
  max-width: 540px;
  margin: 0 auto;
  padding: 24px 20px;
}

.viewers-alert {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #0284c7;
  font-size: 17px;
  margin-bottom: 24px;
}

.hero-image-wrapper {
  text-align: center;
  margin-bottom: 16px;
}
.hero-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
}

.product-hero-text {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 10px;
}
.product-hero-title, .product-hero-price { display: inline; font-size: 18px; font-weight: 700; }

.trust-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}
.trust-badge-box {
  background: #00b67a;
  color: #fff;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
}
.trust-badge-text {
  font-size: 13px;
  color: #4b5563;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.cost-breakdown {
  font-size: 14px;
  color: #4b5563;
}
.cost-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cost-total {
  font-weight: 700;
  color: #1a1a2e;
  margin-top: 16px;
  font-size: 15px;
}

.checkout-form {
  margin-top: 24px;
}

.form-section__title {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}

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

.form-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
  font-family: inherit;
}
.form-input:focus {
  border-color: #3b82f6; /* Azul claro */
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Intl Tel Input Overrides */
.iti { width: 100%; }
.iti__flag { background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/18.2.1/img/flags.png"); }
@media (min-resolution: 2x) {
  .iti__flag { background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/18.2.1/img/flags@2x.png"); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}
.shake {
  animation: shake 0.4s ease-in-out;
}

.card-errors {
  color: var(--danger);
  font-size: 13px;
  margin-top: 12px;
  padding: 10px;
  background: #fef2f2;
  border-radius: 6px;
  border: 1px solid #fecaca;
}

.btn-pay {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  font-weight: 700;
  color: #000;
  background: #fff000;
  border: 2px solid #0000ff;
  border-radius: 6px;
  cursor: pointer;
  transition: filter 0.2s;
}
.btn-pay:hover { filter: brightness(0.95); }
.btn-pay:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-pay-text, .btn-pay-loader { display: flex; align-items: center; justify-content: center; gap: 8px; }

.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(0,0,0,0.1); border-top-color: #000; border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.trust-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
  font-size: 14px;
  color: #000;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.support-box {
  background: var(--card);
  border-radius: 8px; /* Arredondado conforme pedido */
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  max-width: 600px;
  width: 90%;
  margin: 24px auto;
  padding: 18px 24px;
  position: relative;
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.support-badge {
  position: absolute;
  top: -14px;
  right: -8px;
  background: #3f3957; /* Roxo escuro da imagem */
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
/* Efeito de dobradura / fita (Ribbon) */
.support-badge::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 0;
  border-top: 6px solid #231f32;
  border-right: 8px solid transparent;
}
.support-text {
  font-size: 14px;
  color: #6b7280;
  margin-top: 4px;
}
.support-text strong {
  color: #3f3957;
  font-weight: 600;
}

.legal-footer {
  max-width: 800px;
  width: 90%;
  margin: 0 auto 40px auto;
  text-align: center;
  font-size: 13px;
  color: #8c8c8c;
  line-height: 1.6;
}
.legal-footer a {
  color: #3b82f6; /* Azul claro do novo layout */
  text-decoration: none;
}
.legal-footer a:hover {
  text-decoration: underline;
}
.legal-footer p {
  margin-bottom: 12px;
}
