@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --green: #15803d;
  --green-dark: #166534;
  --mint: #eaf8ef;
  --text: #20252b;
  --muted: #7b838d;
  --border: #e4e7eb;
  --soft: #f5f6f8;
  --gold: #c99435;
  --gold-soft: #f3ca6a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f1f3f5;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}

.top-strip {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 1px 0 rgba(0, 0, 0, 0.08);
}

.top-strip span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
}

.top-strip b {
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.checkout-page {
  width: min(100%, 468px);
  margin: 0 auto;
  padding: 26px 16px 34px;
}

.checkout-top-image {
  display: block;
  width: 100%;
  border-radius: 9px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
}

.product-box,
.checkout-box {
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.product-box {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 20px;
}

.product-box img {
  width: 58px;
  height: 58px;
  border-radius: 6px;
  object-fit: cover;
  background: #fff8ef;
}

.product-info {
  display: grid;
  gap: 5px;
}

.product-info strong {
  font-size: 14px;
  line-height: 1.25;
}

.product-info span,
.product-price span {
  color: var(--muted);
  font-size: 12px;
}

.product-price {
  display: grid;
  gap: 4px;
  justify-items: end;
  white-space: nowrap;
}

.product-price del {
  color: #9aa1a9;
  font-size: 12px;
}

.product-price b {
  color: #101820;
  font-size: 15px;
  font-weight: 900;
}

.checkout-box {
  overflow: hidden;
}

.checkout-section {
  padding: 26px 24px;
  border-bottom: 1px solid #edf0f2;
}

.checkout-section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 900;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.input-line {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  border: 1px solid #d9dde2;
  border-radius: 7px;
  background: #fff;
  color: #a2a9b1;
  padding: 0 14px;
  overflow: hidden;
}

.input-line svg {
  flex: 0 0 20px;
}

.input-line:last-child {
  margin-bottom: 0;
}

.input-line span {
  flex: 0 0 auto;
  color: #626b75;
  font-size: 16px;
  font-weight: 500;
}

input {
  width: 100%;
  min-width: 0;
  height: 54px;
  border: 0;
  outline: 0;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.2;
  background: transparent;
}

input::placeholder {
  color: #9aa1aa;
}

.payment-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.payment-option {
  display: grid;
  min-height: 108px;
  place-items: center;
  gap: 5px;
  border: 1.5px solid #90dfad;
  border-radius: 7px;
  background: var(--mint);
  color: #2d8f79;
}

.pix-symbol {
  color: #43b7a2;
  font-size: 30px;
  line-height: 1;
}

.payment-option strong {
  color: #347b5e;
  font-size: 13px;
  font-weight: 700;
}

.payment-option span {
  display: inline-flex;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 800;
}

.pix-info {
  margin-top: 24px;
  border-radius: 7px;
  background: #fafafa;
  padding: 20px;
}

.pix-info h3 {
  margin: 0 0 15px;
  font-size: 16px;
}

.pix-info p {
  margin: 0 0 12px;
  color: #535b66;
  font-size: 13px;
  line-height: 1.55;
}

.pix-info hr {
  border: 0;
  border-top: 1px solid #e3e5e8;
  margin: 18px 0;
}

.pix-info strong {
  color: #16724b;
  font-size: 16px;
}

.buy-button {
  display: flex;
  width: calc(100% - 48px);
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin: 24px;
  border: 0;
  border-radius: 5px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.14);
}

.buy-button:disabled {
  cursor: wait;
  opacity: 0.75;
}

.safe-note {
  margin: -10px 0 20px;
  color: #737c85;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.error {
  display: none;
  margin: 0 24px 24px;
  border: 1px solid #fecaca;
  border-radius: 7px;
  background: #fff1f2;
  color: #b91c1c;
  padding: 12px;
  font-size: 13px;
}

.error.show {
  display: block;
}

textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid #d9dde2;
  border-radius: 7px;
  padding: 10px;
  color: var(--text);
  font: 16px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.pix-code-field {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  min-height: 1px;
  opacity: 0;
  pointer-events: none;
}

.copy-button {
  min-height: 46px;
  border: 0;
  border-radius: 5px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.thanks-link {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: #f1f3f5;
  color: #2f8746;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.thanks-link.full {
  background: var(--green);
  color: #fff;
}

.thanks-page {
  padding-top: 34px;
}

.thanks-card {
  text-align: center;
}

.check-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin: 0 auto 4px;
  border-radius: 50%;
  background: rgba(21, 128, 61, 0.12);
  color: var(--green);
  font-size: 34px;
  font-weight: 900;
}

.muted-copy {
  color: #7b838d !important;
  font-size: 13px !important;
}

/* PIX payment page */
.pix-body {
  background: #f3f4f6;
}

.pix-waiting-bar {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52), 0 1px 0 rgba(0, 0, 0, 0.08);
}

.pix-waiting-bar b {
  font-variant-numeric: tabular-nums;
}

.pix-layout {
  width: min(100%, 480px);
  margin: 0 auto;
  padding: 26px 16px 34px;
}

.pix-payment-card {
  border: 1px solid #d9dde3;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.pix-payment-card {
  display: grid;
  justify-items: center;
  padding: 28px 24px;
  text-align: center;
}

.pix-payment-card h1 {
  margin: 0 0 12px;
  color: #20252b;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.18;
}

.pix-id {
  display: inline-flex;
  margin-bottom: 10px;
  border-radius: 999px;
  background: #f1f3f5;
  color: #9aa1aa;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 800;
}

.pix-status-text {
  margin: 0 0 22px;
  color: #667085;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.pix-label {
  margin: 0 0 4px;
  color: #667085;
  font-size: 14px;
}

.pix-value {
  margin-bottom: 26px;
  color: var(--green);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.qr-shell {
  display: grid;
  width: 192px;
  min-height: 192px;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid #d9dde3;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.qr-shell img {
  width: 168px;
  height: 168px;
  object-fit: contain;
}

.qr-placeholder {
  color: #667085;
  font-size: 13px;
  line-height: 1.4;
}

.pix-copy-button {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(21, 128, 61, 0.22), inset 0 -2px 0 rgba(0, 0, 0, 0.14);
}

.pix-copy-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.pix-copy-button.copied {
  background: #166534;
}

.pix-paid-link {
  margin-top: 18px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.pix-payment-card hr {
  width: 100%;
  margin: 22px 0;
  border: 0;
  border-top: 1px solid #e5e7eb;
}

.how-to-pay {
  width: 100%;
  text-align: left;
}

.how-to-pay h2 {
  margin: 0 0 14px;
  color: #303743;
  font-size: 14px;
  font-weight: 900;
}

.how-to-pay ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 18px;
  color: #667085;
  font-size: 13px;
  line-height: 1.35;
}

.thanks-clean-layout {
  min-height: 100vh;
  display: grid;
  align-content: center;
  padding-top: 28px;
  padding-bottom: 28px;
}

.thanks-card p {
  color: #535b66;
  font-size: 15px;
  line-height: 1.55;
}

.thanks-card strong {
  color: #20252b;
}

.thanks-badge {
  display: inline-flex;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(21, 128, 61, 0.1);
  color: var(--green);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.thanks-steps {
  display: grid;
  width: 100%;
  gap: 12px;
  margin: 18px 0;
  text-align: left;
}

.thanks-steps div {
  display: grid;
  grid-template-columns: 30px 1fr;
  column-gap: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafafa;
  padding: 14px;
}

.thanks-steps span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  grid-row: span 2;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.thanks-steps strong {
  margin-bottom: 4px;
  font-size: 14px;
}

.thanks-steps p {
  margin: 0;
  font-size: 13px;
}

.thanks-note {
  width: 100%;
  border: 1px solid rgba(21, 128, 61, 0.18);
  border-radius: 8px;
  background: rgba(21, 128, 61, 0.06);
  padding: 14px;
  text-align: left;
}

.thanks-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: 14px;
}

.thanks-note p {
  margin: 0;
  font-size: 13px;
}

.thanks-home-link {
  margin-top: 8px;
}

.checkout-footer {
  padding: 28px 10px 0;
  color: #69727d;
  text-align: center;
}

.checkout-footer strong {
  display: block;
  margin-bottom: 8px;
  color: #3d454d;
  font-size: 12px;
  text-transform: uppercase;
}

.checkout-footer p {
  margin: 0 auto;
  max-width: 420px;
  font-size: 11px;
  line-height: 1.55;
}

@media (max-width: 420px) {
  .checkout-page {
    padding-right: 12px;
    padding-left: 12px;
  }

  .product-box {
    grid-template-columns: 58px 1fr auto;
    padding: 18px;
  }

  .checkout-section {
    padding: 24px 18px;
  }

  .buy-button {
    width: calc(100% - 36px);
    margin-right: 18px;
    margin-left: 18px;
  }
}
