:root {
  color-scheme: light;
  --bg: #f4f8fb;
  --surface: #ffffff;
  --text: #010716;
  --muted: #59687e;
  --line: #dbe3ee;
  --green: #0db233;
  --green-dark: #049428;
  --green-soft: #eaf8ee;
  --teal: #00bfa5;
  --danger: #b42318;
  --ok: #009f35;
  --shadow: 0 10px 22px rgba(1, 7, 22, 0.05);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.discount-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 18px;
  color: #fff;
  background: var(--green);
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 800;
  text-align: center;
}

.discount-bar strong {
  font-size: 1.05em;
}

.page {
  width: min(1518px, calc(100% - 32px));
  margin: 120px auto 36px;
}

.top-bar-disabled .page {
  margin-top: 36px;
}

.checkout-custom-content {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.checkout-custom-banner-image {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
}

.checkout-custom-html {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 17px;
  line-height: 1.5;
}

.product-card,
.panel,
.testimonials {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.product-card {
  overflow: hidden;
  margin-bottom: 32px;
}

.product-heading {
  padding: 21px 22px 29px;
  border-bottom: 1px solid var(--line);
  color: var(--green);
  font-size: 23px;
  font-weight: 800;
}

.product-content {
  display: flex;
  align-items: center;
  gap: 34px;
  min-height: 186px;
  padding: 32px 22px 22px;
}

.product-image {
  width: 132px;
  height: 132px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 13px;
  background: #eee;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 25px;
  line-height: 1.2;
  font-weight: 500;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 16px;
}

.price-line strong {
  color: var(--green);
  font-size: 24px;
  font-weight: 800;
}

.price-line span {
  color: var(--muted);
  font-size: 20px;
  text-decoration: line-through;
}

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

.panel {
  padding: 22px 22px 22px;
  box-shadow: var(--shadow);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 31px;
  margin-bottom: 33px;
  border-bottom: 2px solid var(--line);
}

.section-title span {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 23px;
  font-weight: 800;
}

.section-title h2 {
  font-size: 24px;
  line-height: 1.1;
}

.form {
  display: grid;
  gap: 28px;
}

label {
  display: grid;
  gap: 9px;
  font-size: 21px;
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 17px;
  color: var(--text);
  background: #fff;
  font: inherit;
  outline: none;
}

input {
  min-height: 67px;
  font-size: 23px;
}

input::placeholder,
textarea::placeholder {
  color: #aab4c4;
}

input:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(13, 178, 51, 0.1);
}

textarea {
  resize: vertical;
  min-height: 112px;
  font-size: 15px;
  word-break: break-all;
}

.payment-method {
  min-height: 108px;
  display: grid;
  place-items: center;
  gap: 6px;
  margin-bottom: 35px;
  border: 2px solid var(--green);
  border-radius: 15px;
  background: var(--green-soft);
  color: var(--text);
  text-align: center;
  font-size: 20px;
}

.pix-icon {
  color: var(--teal);
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 800;
}

.instant-row,
.secure-strip div,
.safe-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
}

.instant-row {
  margin-bottom: 13px;
  font-size: 24px;
  font-weight: 800;
}

.instant-row span,
.secure-strip span,
.safe-pill span {
  font-weight: 900;
}

.helper,
.secure-strip p {
  color: #566780;
  font-size: 17px;
  line-height: 1.45;
}

.secure-strip {
  margin: 32px -22px 0;
  padding: 16px 22px 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.secure-strip strong {
  color: var(--teal);
  font-size: 24px;
}

.secure-strip p {
  margin-top: 14px;
}

.order-summary {
  padding: 37px 10px 27px;
}

.order-summary h2 {
  margin-bottom: 19px;
  text-align: center;
  font-size: 26px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: #5b6879;
  font-size: 20px;
}

.summary-row strong {
  font-weight: 500;
}

.summary-row.total {
  padding-top: 18px;
  border-bottom: 0;
  color: var(--text);
  font-size: 26px;
}

.summary-row.total strong {
  font-weight: 800;
}

button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.pay-button {
  width: 100%;
  min-height: 65px;
  border-radius: 13px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 6px 10px rgba(1, 7, 22, 0.08);
  font-size: 25px;
  font-weight: 800;
}

.pay-button:hover {
  background: var(--green-dark);
}

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

.safe-pill {
  width: max-content;
  max-width: 100%;
  justify-content: center;
  margin: 34px auto 0;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(1, 7, 22, 0.08);
  color: var(--teal);
  background: #fff;
  font-size: 21px;
}

.message {
  min-height: 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

.message.error {
  color: var(--danger);
}

.message.ok {
  color: var(--ok);
}

.pix-box {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.pix-status {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff9e6;
  color: #7a5600;
}

.qr {
  width: min(260px, 100%);
  aspect-ratio: 1;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.actions button {
  min-height: 50px;
  border-radius: 11px;
  padding: 0 16px;
  color: #fff;
  background: var(--green);
  font-size: 16px;
  font-weight: 800;
}

.actions .secondary {
  color: var(--green-dark);
  background: #dff4e5;
}

.testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  margin-top: 34px;
  padding: 33px 34px 35px;
}

.testimonials article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 24px;
}

.person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.person img {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  object-fit: cover;
}

.person h3 {
  font-size: 24px;
}

.stars {
  align-self: center;
  color: #ffc400;
  font-size: 24px;
  letter-spacing: 1px;
}

.testimonials p {
  grid-column: 1 / -1;
  max-width: 460px;
  color: #58667a;
  font-size: 24px;
  line-height: 1.35;
}

.hidden {
  display: none;
}

.pix-page {
  width: min(720px, calc(100% - 32px));
  margin-top: 56px;
}

.pix-card {
  display: grid;
  gap: 22px;
  padding: clamp(22px, 4vw, 38px);
}

.pix-top-html {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: #f8fafc;
  font-size: 17px;
  line-height: 1.45;
}

.pix-top-html strong {
  color: var(--green);
}

.pix-page-heading {
  text-align: center;
}

.pix-page-heading h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
}

.pix-page-heading p {
  max-width: 520px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.pix-status.compact {
  justify-content: center;
  margin-top: 4px;
  font-weight: 700;
}

.pix-qr {
  width: min(280px, 100%);
}

.qr-local {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 10px;
  background: #ffffff;
}

.qr-local canvas,
.qr-local img,
.qr-local table {
  display: block;
  max-width: 100%;
  height: auto;
}

.pix-copy-label {
  font-size: 20px;
}

.thank-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.thank-card {
  width: min(560px, 100%);
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
}

.thank-check {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 24px;
  font-weight: 900;
}

.thank-card h1 {
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 800;
}

.thank-card p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.45;
}

.thank-button {
  display: inline-grid;
  place-items: center;
  width: min(320px, 100%);
  margin-top: 8px;
  text-decoration: none;
}

@media (max-width: 920px) {
  .discount-bar {
    min-height: 58px;
    font-size: 19px;
  }

  .page {
    width: min(100% - 24px, 640px);
    margin-top: 28px;
  }

  .product-heading {
    padding: 18px;
    font-size: 20px;
  }

  .product-content {
    min-height: 140px;
    gap: 18px;
    padding: 22px 18px;
  }

  .product-image {
    width: 96px;
    height: 96px;
  }

  h1 {
    font-size: 22px;
  }

  .price-line strong {
    font-size: 22px;
  }

  .price-line span {
    font-size: 17px;
  }

  .checkout-grid,
  .testimonials {
    grid-template-columns: 1fr;
  }

  .checkout-grid {
    gap: 18px;
  }

  .panel {
    padding: 20px 18px;
  }

  .section-title {
    margin-bottom: 25px;
    padding-bottom: 22px;
  }

  .section-title h2 {
    font-size: 22px;
  }

  label {
    font-size: 18px;
  }

  input {
    min-height: 58px;
    border-radius: 13px;
    font-size: 19px;
  }

  .payment-panel {
    position: static;
  }

  .order-summary {
    padding-inline: 0;
  }

  .secure-strip {
    margin-inline: -18px;
    padding-inline: 18px;
  }

  .pay-button {
    min-height: 58px;
    font-size: 22px;
  }

  .testimonials {
    gap: 28px;
    padding: 24px 22px;
  }

  .testimonials article {
    grid-template-columns: 1fr;
  }

  .stars {
    font-size: 22px;
  }

  .testimonials p {
    font-size: 20px;
  }

  .pix-page {
    margin-top: 28px;
  }
}

@media (max-width: 520px) {
  .page {
    width: calc(100% - 20px);
    margin-bottom: 20px;
  }

  .discount-bar {
    gap: 7px;
    min-height: 52px;
    padding: 10px 12px;
    font-size: 17px;
  }

  .product-card,
  .panel,
  .testimonials {
    border-radius: 12px;
  }

  .product-card {
    margin-bottom: 18px;
  }

  .product-content {
    align-items: center;
  }

  .product-image {
    width: 82px;
    height: 82px;
  }

  .price-line {
    flex-wrap: wrap;
    margin-top: 10px;
  }

  .section-title span {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .form {
    gap: 20px;
  }

  .payment-method {
    min-height: 92px;
    margin-bottom: 26px;
  }

  .instant-row {
    font-size: 21px;
  }

  .secure-strip strong {
    font-size: 21px;
  }

  .summary-row {
    font-size: 18px;
  }

  .summary-row.total {
    font-size: 23px;
  }

  .actions {
    grid-template-columns: 1fr;
  }

  .person h3 {
    font-size: 21px;
  }

  .person img {
    width: 58px;
    height: 58px;
  }
}
