/* Exit-en-style confirmation UI (local demo only — not Digi pages) */
:root {
  --ink: #1a1a1a;
  --muted: #666666;
  --line: #e5e5e5;
  --paper: #f5f5f5;
  --card: #ffffff;
  --danger: #ea445a;
  --ok: #10b981;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.confirmation-container {
  padding: 16px 16px 40px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.confirmation-header {
  padding: 16px 16px 12px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-mark .dot {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #111, #333);
  display: grid;
  place-items: center;
}

.brand-mark .dot span {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #fff;
}

.local-badge { display: none; }

a.confirmation-cta-button {
  display: block;
  text-align: center;
  text-decoration: none;
}

.confirmation-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  width: 100%;
}

.confirmation-balance {
  background: linear-gradient(135deg, #000000, #1a1a1a);
  color: #fff;
  border: none;
}

.confirmation-section-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.confirmation-balance-title {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 6px;
}

.confirmation-balance-amount {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.confirmation-balance-subtitle {
  font-size: 12px;
  opacity: 0.9;
}

.confirmation-fee-amount {
  font-size: 22px;
  font-weight: 600;
  color: var(--danger);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.confirmation-fee-description {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.confirmation-fee-description .bold,
.bold { font-weight: 600; color: var(--ink); }

.confirmation-reembolso-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.1);
  color: var(--ok);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.confirmation-receipt-grid { display: grid; gap: 12px; }

.confirmation-receipt-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}

.confirmation-receipt-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.confirmation-receipt-label {
  font-size: 12px;
  color: var(--muted);
}

.confirmation-receipt-value {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  text-align: right;
}

.confirmation-divider {
  height: 1px;
  background: var(--line);
  margin: 4px 0 16px;
}

.confirmation-requirements-grid { display: grid; gap: 16px; }

.confirmation-requirement-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.confirmation-requirement-icon {
  background: rgba(234, 68, 90, 0.1);
  color: var(--danger);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
}

.confirmation-requirement-icon.ok {
  background: rgba(16, 185, 129, 0.1);
  color: var(--ok);
}

.confirmation-requirement-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 3px;
}

.confirmation-requirement-title.ok { color: var(--ok); }

.confirmation-requirement-description {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.confirmation-cta-button {
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 16px;
  font-size: 15px;
  font-weight: 500;
  width: 100%;
  cursor: pointer;
  transition: opacity 0.2s;
  letter-spacing: 0.01em;
}

.confirmation-cta-button:hover { opacity: 0.95; }
.confirmation-cta-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.confirmation-timer {
  font-size: 11px;
  color: var(--ok);
  font-weight: 500;
  text-align: center;
  margin-top: 12px;
}

.confirmation-footer {
  text-align: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

.confirmation-footer-text {
  font-size: 11px;
  color: #999;
  margin-bottom: 6px;
}

/* Dedicated checkout page */
.checkout-page {
  font-family: "DM Sans", Inter, system-ui, sans-serif;
  background:
    radial-gradient(900px 420px at 50% -80px, rgba(37, 244, 238, 0.1), transparent 55%),
    radial-gradient(700px 320px at 100% 0%, rgba(254, 44, 85, 0.06), transparent 50%),
    linear-gradient(180deg, #fafafa 0%, #f3f3f3 100%);
}

.checkout-page-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 16px 56px;
  width: 100%;
}

.checkout-hero {
  text-align: center;
  padding: 8px 8px 22px;
  margin-bottom: 4px;
}

.checkout-brand-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 18px;
}

.tt-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  line-height: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.tt-mark svg,
.tt-mark img {
  width: 28px;
  height: 28px;
  display: block;
}

.tt-wordmark {
  font-family: Inter, "TikTok Sans", "DM Sans", system-ui, sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #161823;
  line-height: 1;
}

.checkout-product-title {
  font-size: clamp(1.15rem, 3.6vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 8px;
}

.checkout-price {
  font-size: clamp(1.75rem, 5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #161823;
  line-height: 1;
  margin: 0 0 8px;
}

.checkout-hero-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.trust-signals {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.trust-signals--footer {
  margin-top: 22px;
  padding-top: 4px;
}

.trust-signals li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.trust-signals svg { color: var(--ok); flex-shrink: 0; }

.checkout-shell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: visible;
  margin-bottom: 14px;
}

.checkout-shell--page {
  box-shadow: 0 12px 32px -20px rgba(0, 0, 0, 0.3);
}

.checkout-shell .ch-body {
  padding: 16px 14px 18px;
  overflow: visible;
}

#status {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  min-height: 1.2em;
}

#status.ok { color: var(--ok); }
#status.err { color: var(--danger); }

#checkout-container {
  width: 100%;
  min-height: 920px;
  height: 920px;
  overflow: visible;
  position: relative;
}

#checkout-container iframe {
  width: 100% !important;
  height: 920px !important;
  min-height: 920px !important;
  border: 0 !important;
  display: block;
  border-radius: 8px;
}

.checkout-foot-note {
  text-align: center;
  font-size: 12px;
  color: #8a8a8a;
  line-height: 1.5;
  max-width: 400px;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .checkout-page-wrap { padding: 20px 14px 44px; }
  .checkout-hero { padding-bottom: 16px; }
  .tt-mark,
  .tt-mark svg,
  .tt-mark img { width: 26px; height: 26px; }
  .tt-wordmark { font-size: 19px; }
  .trust-signals { grid-template-columns: 1fr 1fr; gap: 7px; }
  .trust-signals li { font-size: 11px; padding: 10px; }
  #checkout-container,
  #checkout-container iframe {
    min-height: 1020px;
    height: 1020px;
  }
  .checkout-shell .ch-body { padding: 12px 10px 14px; }
}
