/* Keep every hashed notice node in place, including its exact innerHTML.
   The adjacent price rows form one card without wrapping the hashed paragraphs. */
#checkout {
  margin-top: 32px;
  padding-block: 40px 64px;
  font-size: 18px;
  line-height: 1.85;
  color: var(--ink);
}
#checkout > h2, #checkout-title { font-size: 32px; line-height: 1.4; }
#checkout h3 { font-size: 22px; line-height: 1.5; }
#checkout > p { max-width: none; margin-top: 24px; }
#checkout .checkout-trust {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--tone);
  color: #334155;
  font-size: 17px;
  line-height: 1.8;
}
#checkout .checkout-trust a { font-weight: 600; }
#checkout .checkout-login { padding: 24px; border-radius: 10px; }
#checkout .checkout-login .small { font-size: 16px; color: #334155; }
#checkout .checkout-login .button { min-height: 56px; font-size: 18px; }

/* Same soft surface, border and price/refund hierarchy as the free-answer offer.
   growth.js fills data-launch-note from the existing catalog/coupon rules. */
#checkout .offer-price-line,
#checkout > [data-launch-note],
#checkout .checkout-price-terms,
#checkout > .pre-locked-cta-refund {
  margin: 0;
  padding-inline: 24px;
  border-inline: 1px solid #ddd6fe;
  background: var(--soft);
}
#checkout .offer-price-line {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #ddd6fe;
  border-radius: 10px 10px 0 0;
  font-size: 36px;
  font-weight: 750;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
#checkout > [data-launch-note] {
  padding-top: 10px;
  font-size: 16px;
  line-height: 1.75;
  color: #334155;
}
#checkout > [data-launch-note] > span { display: block; color: var(--accent); font-weight: 650; }
#checkout > [data-launch-note] > del { display: block; margin-top: 4px; color: #64748b; }
/* Keep the launch notice separate from the price card, with a complete border. */
#checkout > [data-launch-note]:not([hidden]) {
  margin-top: 28px;
  padding-block: 24px;
  border: 1px solid #ddd6fe;
  border-radius: 10px;
}
#checkout > [data-launch-note]:not([hidden]) + .offer-price-line {
  margin-top: 12px;
}
#checkout:has(#checkout-pay[data-price-retry="true"]) > [data-launch-note] { display: none; }
#checkout .checkout-price-terms { padding-top: 10px; font-size: 16px; color: #334155; }
#checkout > .pre-locked-cta-refund {
  padding-block: 16px 24px;
  border-bottom: 1px solid #ddd6fe;
  border-radius: 0 0 10px 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.65;
}
#checkout .checkout-benefits-title {
  margin-top: 32px;
  padding: 24px 24px 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: var(--tone);
}
#checkout .checkout-benefits {
  margin: 0;
  padding: 16px 24px 24px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: var(--tone);
  line-height: 2;
}
#checkout .checkout-payment-guide { color: #334155; }
#checkout #checkout-fields {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
#checkout #checkout-fields > h3 { margin: 0 0 20px; }
#checkout details { margin-top: 24px; padding-block: 12px; }
#checkout #checkout-fields > details:first-of-type { margin-top: 0; }
#checkout summary { min-height: 48px; font-weight: 650; }
#checkout details p { font-size: 17px; line-height: 1.9; color: #334155; }
#checkout .field-label { margin: 24px 0 10px; font-size: 17px; font-weight: 650; }
#checkout #checkout-phone { min-height: 56px; border-radius: 8px; font-size: 18px; }
/* Expose the existing disclosure without changing any hashed node or copy.
   Chromium's closed-details content needs content-visibility as well as display. */
#checkout-fields > details:first-of-type::details-content { content-visibility: visible; display: block; }
#checkout-fields > details:first-of-type > :not(summary) { display: block; }
#checkout-fields > details:first-of-type > summary { list-style: none; pointer-events: none; }
#checkout-fields > details:first-of-type > summary::-webkit-details-marker { display: none; }
#checkout .consent {
  min-height: 56px;
  margin-top: 8px;
  padding: 12px;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 17px;
  line-height: 1.8;
  cursor: pointer;
}
#checkout .consent input {
  width: 22px;
  height: 22px;
  margin: 4px 0 0;
  flex-shrink: 0;
}
#checkout .consent span { min-width: 0; }
#checkout .consent-all { margin-top: 24px; padding: 16px 12px; background: var(--tone); }
#checkout .consent:hover { border-color: #94a3b8; }
#checkout .consent:has(input:checked) { background: var(--soft); border-color: var(--accent); }
#checkout .consent:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
#checkout .checkout-policy-summary { margin-top: 28px; }
#checkout #checkout-card-notice { margin-top: 24px; font-size: 16px; line-height: 1.8; color: #334155; }
#checkout #checkout-pay { width: 100%; min-height: 56px; font-size: 18px; border-radius: 8px; }
#checkout #checkout-status:not(:empty) { margin-top: 16px; font-size: 17px; }
#checkout .plain { min-height: 48px; font-size: 17px; }

/* One offer and checkout screen. Only visual order changes: every notice node
   keeps its original parent, sibling order and innerHTML for the consent hash. */
#checkout:not([hidden]) { display: flex; flex-direction: column; }
#checkout > * { order: 6; }
#checkout > .checkout-heading { order: 0; }
#checkout > [data-launch-note], #checkout > .offer-price-line { order: 1; }
#checkout > .checkout-price-terms { order: 2; }
#checkout > .pre-locked-cta-refund { order: 3; }
#checkout > #growth-benefit, #checkout > #checkout-effort { order: 4; }
#checkout > #checkout-login, #checkout > #checkout-fields { order: 5; }
/* The trial follows the access/payment nodes in DOM order, before other notices. */
#checkout > #free-report-offer { order: 5; }
#checkout > .checkout-benefits-title, #checkout > .checkout-benefits { order: 7; }
#checkout > #checkout-report-details { order: 8; }
#checkout > #checkout-decline, #checkout > .decline-reason { order: 9; }
#checkout > #checkout-back { order: 10; align-self: flex-start; }
#checkout #payment-remaining-questions { margin: 20px 0 0; color: #334155; }
#checkout #checkout-login { margin-top: 24px; }
#checkout #checkout-report-details { border-block: 1px solid var(--line); }

@media (max-width: 600px) {
  #checkout { margin-top: 16px; padding-block: 24px 48px; font-size: 17px; }
  #checkout > h2 { font-size: 28px; }
  #checkout h3 { font-size: 21px; }
  #checkout .checkout-trust,
  #checkout .checkout-login,
  #checkout #checkout-fields { padding: 20px 16px; }
  #checkout .offer-price-line,
  #checkout > [data-launch-note],
  #checkout .checkout-price-terms,
  #checkout > .pre-locked-cta-refund,
  #checkout .checkout-benefits-title,
  #checkout .checkout-benefits { padding-inline: 16px; }
  #checkout .offer-price-line { font-size: 32px; }
}
