﻿:root {
  color-scheme: light;
  --bg: #f1f5f9;
  --card: #ffffff;
  --ink: #101828;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --green: #16a34a;
  --green-dark: #15803d;
  --green-soft: #dcfce7;
  --danger: #dc2626;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.topbar {
  background: var(--ink);
  color: #fff;
}

.topbar__inner {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 4px;
  color: #86efac;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.topbar h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.topbar__button,
.submit-button {
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  min-height: 48px;
  padding: 0 20px;
  text-decoration: none;
  text-transform: uppercase;
}

.topbar__button:hover,
.submit-button:hover { background: var(--green-dark); }

.page-shell {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 24px 16px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: start;
  gap: 24px;
}

.offer-column { display: grid; gap: 16px; }

.offer-card,
.details-card,
.checkout-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.offer-alert {
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  padding: 10px 14px;
  text-align: center;
}

.offer-image {
  display: block;
  width: 100%;
  height: auto;
}

.offer-body,
.details-card,
.checkout-card { padding: 20px; }

.offer-body h2,
.checkout-heading h2,
.details-card h3 {
  margin: 0;
  line-height: 1.12;
}

.offer-body h2 { font-size: 28px; }
.offer-body p { color: var(--muted); line-height: 1.5; }

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.benefit-grid div {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.benefit-grid strong,
.benefit-grid span { display: block; }
.benefit-grid span { color: var(--muted); font-size: 13px; margin-top: 2px; }

.details-card ul {
  color: #334155;
  margin: 14px 0 0;
  padding-left: 20px;
  line-height: 1.55;
}

.checkout-card { overflow: visible; }
.checkout-heading {
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  padding-bottom: 16px;
}
.checkout-heading p {
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 900;
  margin: 0 0 6px;
}
.price-row {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.price-row span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  text-align: right;
}
.price-row strong {
  color: var(--green-dark);
  display: block;
  font-size: 28px;
  line-height: 1;
  white-space: nowrap;
}

.field-stack { margin-top: 14px; }
.field-stack label {
  color: #334155;
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 6px;
}
.field-stack input {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: var(--ink);
  font-size: 16px;
  min-height: 48px;
  outline: 0;
  padding: 0 12px;
  width: 100%;
}
.field-stack input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.payment-box {
  align-items: center;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding: 14px;
}
.payment-box label {
  align-items: center;
  color: #14532d;
  display: flex;
  font-weight: 900;
  gap: 10px;
}
.payment-box input { width: 16px; height: 16px; }
.payment-box small {
  background: #fff;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  color: var(--green-dark);
  font-weight: 900;
  padding: 5px 8px;
}

.form-error {
  color: var(--danger);
  font-size: 14px;
  font-weight: 800;
  min-height: 20px;
}

.submit-button {
  font-size: 16px;
  width: 100%;
}
.submit-button:disabled {
  background: #94a3b8;
  cursor: wait;
}

.security-note,
.footer-note {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.footer-note { padding: 0 16px 28px; }

@media (max-width: 860px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .topbar__inner { align-items: stretch; flex-direction: column; text-align: center; }
  .topbar__button { width: 100%; }
}

@media (max-width: 560px) {
  .topbar h1 { font-size: 21px; }
  .benefit-grid { grid-template-columns: 1fr; }
  .price-row { align-items: flex-start; flex-direction: column; }
  .price-row span { text-align: left; }
  .payment-box { align-items: flex-start; flex-direction: column; gap: 10px; }
}

.status-shell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
}

.status-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 720px;
  padding: 24px;
  width: 100%;
}

.status-card h1 {
  font-size: 28px;
  line-height: 1.12;
  margin: 12px 0 8px;
  text-align: center;
}

.status-lead {
  color: var(--muted);
  line-height: 1.5;
  margin: 0 auto 18px;
  max-width: 560px;
  text-align: center;
}

.status-badge {
  background: #fef3c7;
  border-radius: 999px;
  color: #92400e;
  display: table;
  font-size: 12px;
  font-weight: 900;
  margin: 0 auto;
  padding: 6px 10px;
  text-transform: uppercase;
}

.status-icon {
  align-items: center;
  border-radius: 999px;
  display: flex;
  font-size: 30px;
  font-weight: 900;
  height: 56px;
  justify-content: center;
  margin: 0 auto 14px;
  width: 56px;
}

.status-icon--success { background: #dcfce7; color: #15803d; }
.status-icon--error { background: #fee2e2; color: #b91c1c; }

.status-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0;
}

.status-grid--single {
  grid-template-columns: 1fr;
  margin-left: auto;
  margin-right: auto;
  max-width: 420px;
}

.status-box {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.status-box span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.status-box strong {
  display: block;
  overflow-wrap: anywhere;
}

.pix-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: 260px minmax(0, 1fr);
  margin-top: 18px;
}

.pix-qr {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 260px;
  padding: 14px;
  text-align: center;
}

.pix-qr img {
  background: #fff;
  border-radius: 8px;
  max-width: 230px;
  padding: 8px;
  width: 100%;
}

.pix-qr div {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: var(--muted);
  padding: 28px 12px;
}

.pix-copy-area label {
  color: #334155;
  display: block;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 6px;
}

.pix-copy-area textarea {
  background: var(--soft);
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  min-height: 128px;
  outline: 0;
  padding: 12px;
  resize: vertical;
  width: 100%;
}

.status-button {
  align-items: center;
  background: #e2e8f0;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-weight: 900;
  justify-content: center;
  margin-top: 10px;
  min-height: 46px;
  padding: 0 16px;
  text-decoration: none;
  width: 100%;
}

.status-button--dark { background: var(--ink); color: #fff; }
.status-message { color: var(--muted); font-size: 13px; min-height: 20px; text-align: center; }
.status-back { color: var(--muted); display: table; font-size: 13px; font-weight: 800; margin: 16px auto 0; }
.status-main-link { margin: 22px auto 0; max-width: 260px; }

@media (max-width: 680px) {
  .status-grid,
  .pix-layout { grid-template-columns: 1fr; }
  .status-card { padding: 18px; }
  .status-card h1 { font-size: 24px; }
}

/* Checkout com resumo do pedido e order bumps */
.order-summary,
.payment-info {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.order-summary h2,
.payment-info h3,
.order-bumps h3 {
  line-height: 1.12;
  margin: 0;
}

.order-summary h2 { font-size: 22px; }

.summary-product {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  margin-top: 16px;
  padding-bottom: 16px;
}

.summary-product img {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  width: 92px;
}

.summary-product strong,
.summary-product span,
.summary-product b { display: block; }
.summary-product strong { font-size: 16px; line-height: 1.25; }
.summary-product span { color: var(--muted); font-size: 13px; margin-top: 4px; }
.summary-product b,
.summary-total strong,
.summary-line strong { color: var(--green-dark); white-space: nowrap; }

.summary-lines { display: grid; gap: 8px; margin-top: 14px; }
.summary-line,
.summary-total {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.summary-line span { color: #334155; font-size: 13px; line-height: 1.3; }
.summary-total {
  border-top: 1px solid var(--line);
  font-weight: 900;
  margin-top: 16px;
  padding-top: 16px;
}
.summary-total strong { font-size: 28px; }

.payment-info h3 { font-size: 18px; }
.payment-info p {
  color: var(--muted);
  line-height: 1.45;
  margin: 10px 0 0;
}
.payment-info strong {
  align-items: center;
  background: var(--green-soft);
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  color: #14532d;
  display: flex;
  margin-top: 14px;
  min-height: 42px;
  padding: 0 12px;
}

.order-bumps {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 18px;
}

.order-bumps h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.bump-option {
  background: #fff;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: 18px 76px minmax(0, 1fr);
  margin-top: 12px;
  padding: 12px;
  position: relative;
}

.bump-option:has(input:checked) {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.bump-option input {
  height: 18px;
  margin: 29px 0 0;
  width: 18px;
}

.bump-media img {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  object-fit: cover;
  width: 76px;
}

.bump-content { display: block; min-width: 0; }
.bump-content em {
  color: var(--green-dark);
  display: block;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}
.bump-content strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
  margin-top: 4px;
}
.bump-content small {
  color: var(--muted);
  display: block;
  font-size: 13px;
  line-height: 1.35;
  margin-top: 4px;
}
.bump-prices {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.bump-prices s { color: #94a3b8; font-size: 13px; }
.bump-prices b { color: var(--green-dark); font-size: 18px; }
.bump-cta {
  background: var(--green);
  border-radius: 6px;
  color: #fff;
  display: table;
  font-size: 12px;
  font-weight: 900;
  grid-column: 3;
  justify-self: start;
  padding: 7px 10px;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .summary-product { grid-template-columns: 76px minmax(0, 1fr); }
  .summary-product img { width: 76px; }
  .summary-product b { grid-column: 2; }
  .bump-option { grid-template-columns: 18px 64px minmax(0, 1fr); }
  .bump-media img { width: 64px; }
}

/* Ajustes finais de destaque e layout */
.payment-info--footer { margin-top: 16px; }
.bump-option { border: 2px dashed #dc2626; }
.bump-option:has(input:checked) { border-color: #dc2626; }

/* Ajuste de posicao do resumo no final */
.field-stack--first { margin-top: 0; }
.order-summary--footer { margin-top: 16px; }

/* Alinhamento dos itens no order bump */
.bump-option { align-items: center; }
.bump-option input { margin: 0; }

/* Chamada antes dos order bumps */
.offers-intro {
  background: #fff7ed;
  border: 2px dashed #dc2626;
  border-radius: 8px;
  margin-top: 20px;
  padding: 14px;
  text-align: center;
}
.offers-intro h3 {
  color: #991b1b;
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
}
.offers-intro p {
  color: #7f1d1d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin: 8px 0 0;
}

/* Texto de apoio das ofertas com menos peso visual */
.offers-intro p { color: #6b6b6b; }

/* Preco original dos order bumps */
.bump-prices s { color: #b91c1c; }

/* Topo com contador de oferta */
.topbar__content { display: grid; gap: 6px; }
.topbar__timer {
  color: #86efac;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}
.topbar__timer span {
  color: #fff;
  display: inline-block;
  font-variant-numeric: tabular-nums;
  min-width: 88px;
}
.topbar__notice {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.05;
  margin: 0;
}
.topbar__safe {
  color: #d1fae5;
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

@media (max-width: 560px) {
  .topbar__timer { font-size: 16px; }
  .topbar__notice { font-size: 22px; }
}

/* Layout dos order bumps inspirado na referencia */
.order-bumps h3 { display: none; }
.bump-option {
  align-items: stretch;
  background: #fff7e8;
  border: 2px dashed #ef4838;
  border-radius: 8px;
  display: block;
  margin-top: 16px;
  overflow: hidden;
  padding: 0;
}
.bump-option:has(input:checked) {
  border-color: #ef4838;
  box-shadow: 0 0 0 3px rgba(239, 72, 56, 0.14);
}
.bump-header {
  background: #ef4838;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  padding: 14px 12px;
  text-align: center;
}
.bump-inner { padding: 12px 10px 10px; }
.bump-description {
  color: #374151;
  font-size: 13px;
  line-height: 1.35;
  margin: 0 0 16px;
}
.bump-choice {
  align-items: center;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: 44px 18px 82px minmax(0, 1fr);
  padding: 12px;
}
.bump-arrow {
  color: #ef4838;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}
.bump-choice input {
  accent-color: #ef4838;
  height: 18px;
  margin: 0;
  width: 18px;
}
.bump-seal {
  align-items: center;
  background: #ff1e1e;
  border-radius: 8px;
  display: flex;
  height: 82px;
  justify-content: center;
  overflow: hidden;
  width: 82px;
}
.bump-seal img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.bump-content {
  color: #6b7280;
  display: block;
  font-size: 15px;
  line-height: 1.3;
  min-width: 0;
}
.bump-content strong { color: #6b7280; font-weight: 900; }
.bump-content s { color: #b91c1c; font-weight: 900; }
.bump-content b { color: #059669; font-size: 17px; font-weight: 900; }

@media (max-width: 560px) {
  .bump-choice {
    gap: 9px;
    grid-template-columns: 30px 18px 64px minmax(0, 1fr);
    padding: 10px;
  }
  .bump-arrow { font-size: 26px; }
  .bump-seal { height: 64px; width: 64px; }
  .bump-content { font-size: 13px; }
  .bump-content b { font-size: 15px; }
}

/* Texto do order bump em linha propria */
.bump-choice {
  grid-template-columns: 44px 18px 82px;
  justify-content: start;
}
.bump-content {
  grid-column: 1 / -1;
  padding-top: 2px;
}

@media (max-width: 560px) {
  .bump-choice { grid-template-columns: 30px 18px 64px; }
}

/* Order bump ocupando a largura total */
.bump-choice {
  justify-content: stretch;
  width: 100%;
}
.bump-content {
  justify-self: stretch;
  width: 100%;
}

/* Troca o miolo do order bump de grid para flex com texto em largura total */
.bump-choice {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.bump-arrow { flex: 0 0 44px; }
.bump-choice input { flex: 0 0 18px; }
.bump-seal { flex: 0 0 82px; }
.bump-content {
  flex: 0 0 100%;
  grid-column: auto;
  width: 100%;
}

@media (max-width: 560px) {
  .bump-choice { gap: 9px; }
  .bump-arrow { flex-basis: 30px; }
  .bump-seal { flex-basis: 64px; }
}

/* Centraliza controles e texto dos order bumps */
.bump-choice { justify-content: center; }
.bump-content { text-align: center; }

/* Estado selecionado do order bump */
.bump-option:has(input:checked) {
  background: #ecfdf5;
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16);
}
.bump-option:has(input:checked) .bump-header {
  background: #16a34a;
}
.bump-option:has(input:checked) .bump-choice {
  background: #f0fdf4;
}
.bump-option:has(input:checked) .bump-arrow {
  color: #16a34a;
}

/* Melhor diagramação do bloco de informações Pix */
.payment-info--footer {
  display: grid;
  gap: 10px;
  text-align: center;
}
.payment-info--footer h3 {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}
.payment-info--footer p {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #475569;
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
  padding: 12px;
  text-align: left;
}
.payment-info--footer strong {
  justify-content: center;
  margin-top: 0;
  text-align: center;
}

/* Descrição dos order bumps mais organizada */
.bump-description {
  hyphens: auto;
  text-align: justify;
  text-justify: inter-word;
}

/* Pagina pendente - layout focado no pagamento Pix */
.pending-page {
  background: #111827;
  color: #fff;
}
.pending-shell {
  margin: 0 auto;
  max-width: 430px;
  min-height: 100vh;
  padding: 16px;
}
.pending-card {
  display: grid;
  gap: 14px;
}
.pending-status {
  background: #f59e0b;
  border-radius: 999px;
  color: #111827;
  display: table;
  font-size: 12px;
  font-weight: 900;
  margin: 0 auto;
  padding: 7px 12px;
  text-transform: uppercase;
}
.pending-total-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.pending-total-row span {
  color: #93c5fd;
  font-size: 17px;
  font-weight: 800;
}
.pending-total-row strong {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  white-space: nowrap;
}
.pending-code-preview {
  color: #bfdbfe;
  font-size: 14px;
  line-height: 1.35;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pending-button {
  align-items: center;
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 15px;
  font-weight: 900;
  gap: 10px;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  width: 100%;
}
.pending-button--copy { background: #059669; }
.pending-button--paid { background: #2563eb; }
.pending-button__icon {
  display: inline-flex;
  flex: 0 0 auto;
}
.pending-message {
  background: #1f2937;
  border-radius: 8px;
  color: #bfdbfe;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  padding: 14px;
  text-align: center;
}
.pending-qr {
  align-items: center;
  background: #1f2937;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 200px;
  padding: 16px;
  text-align: center;
}
.pending-qr img {
  background: #fff;
  border-radius: 14px;
  display: block;
  max-width: 230px;
  padding: 10px;
  width: 100%;
}
.pending-qr div {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.4;
}
.pending-open-link {
  color: #93c5fd;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}
.pending-help,
.pending-summary {
  border-top: 1px solid #374151;
  padding-top: 16px;
}
.pending-help h2,
.pending-summary h2 {
  color: #fff;
  font-size: 18px;
  margin: 0 0 12px;
}
.pending-help ol {
  display: grid;
  gap: 13px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pending-help li {
  align-items: flex-start;
  display: grid;
  gap: 10px;
  grid-template-columns: 20px minmax(0, 1fr);
}
.pending-help li span {
  align-items: center;
  background: #16a34a;
  border-radius: 999px;
  color: #fff;
  display: flex;
  font-size: 12px;
  font-weight: 900;
  height: 20px;
  justify-content: center;
  width: 20px;
}
.pending-help li strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
}
.pending-summary {
  background: #1f2937;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 16px;
}
.pending-summary__row {
  align-items: flex-start;
  border-bottom: 1px solid #334155;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 10px 0;
}
.pending-summary__row:first-child { padding-top: 0; }
.pending-summary__row:last-child { border-bottom: 0; padding-bottom: 0; }
.pending-summary__row span {
  color: #93c5fd;
  font-size: 13px;
}
.pending-summary__row strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
  text-align: right;
}
.pending-summary__row--total strong {
  color: #86efac;
  font-size: 18px;
}

.pending-pix-hidden {
  border: 0;
  height: 1px;
  opacity: 0;
  padding: 0;
  position: absolute;
  pointer-events: none;
  width: 1px;
}
