/* Checkout pages (templates/checkout/page.html): laid out like the ThriveCart checkout they replace.
   A white order column and a pale blue product column, side by side on a grey page. */
:root {
  --co-text: #102e47;
  --co-teal: #008181;
  --co-teal-dark: #006a6a;
  --co-page: #ececec;
  --co-side: #eff4f9;
  --co-line: #d0d0d0;
  --co-tile: #f1f2f2;
  --co-muted: #8b9198;
  --co-faint: #afafaf;
  --co-danger: #b3261e;
  --co-radius: 4px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.co-body {
  margin: 0;
  background: var(--co-page);
  color: var(--co-text);
  font: 16px/1.45 "DM Sans", Arial, sans-serif;
}
.co-body a { color: var(--co-teal); }
.co-body img { max-width: 100%; height: auto; }
.co-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.co-frame {
  display: grid;
  grid-template-columns: minmax(0, 584fr) minmax(0, 400fr);
  max-width: 960px;
  margin: 48px auto;
  background: #fff;
}
.co-frame-single { grid-template-columns: 1fr; max-width: 608px; }
.co-main { padding: 24px 48px 20px; display: flex; flex-direction: column; }
.co-main > form { flex: 1 0 auto; }
.co-side { background: var(--co-side); padding: 24px; }

/* Header: logo and the product line */
.co-logo { display: block; width: 100%; max-width: 512px; margin: 0 auto 28px; }
.co-product { display: flex; align-items: center; gap: 16px; margin: 0 0 36px; padding: 0 20px; }
.co-product-thumb { width: 88px; height: 59px; object-fit: cover; flex: none; }
.co-product-title { flex: 1; margin: 0; font-size: 15px; font-weight: 500; line-height: 1.35; }
.co-product-price { font-size: 21px; white-space: nowrap; }
.co-banner {
  margin: 0 0 20px; padding: 10px 14px; font-size: 14px;
  background: #fff8e1; border: 1px solid #f0d58a; border-radius: var(--co-radius);
}

/* Section headings */
.co-h { margin: 28px 0 0; padding: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--co-teal); }
.co-h-dark { color: var(--co-text); margin-top: 0; }

/* Pricing options: tiles, two across */
.co-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin-bottom: 18px; }
.co-plan {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px;
  min-height: 81px; padding: 14px 52px 14px 14px; cursor: pointer;
  background: var(--co-tile); border: 1.6px solid transparent; border-radius: 3.5px; color: #4a4a4a;
  transition: border-color 0.15s, background 0.15s;
}
.co-plan input { position: absolute; opacity: 0; pointer-events: none; }
.co-plan-name { font-size: 12.6px; font-weight: 700; line-height: 1.3; }
.co-plan-sub { font-size: 12px; }
.co-check {
  position: absolute; right: 14px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid #dadada; color: transparent;
}
.co-plan:hover { border-color: #bfdcdc; }
.co-plan:has(input:checked) { background: #fff; border-color: var(--co-teal); }
.co-plan:has(input:checked) .co-plan-name { font-size: 14.7px; }
.co-plan:has(input:checked) .co-plan-sub { font-size: 14px; }
.co-plan:has(input:checked) .co-check { background: var(--co-teal); border-color: var(--co-teal); color: #fff; }
.co-plan:has(input:focus-visible) { outline: 2px solid var(--co-teal); outline-offset: 2px; }

/* The add-on ("order bump"): dashed box with a switch */
.co-bump {
  display: flex; gap: 18px; align-items: flex-start; margin: 0 0 22px; padding: 17px;
  background: #fff; border: 2.4px dashed var(--co-teal); border-radius: 3.5px;
}
.co-bump-image { width: 132px; flex: none; margin-top: 4px; }
.co-bump-text { flex: 1; font-size: 14px; }
.co-bump-head { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; margin-bottom: 2px; }
.co-bump-title { flex: 1; font-size: 18px; font-weight: 700; }
.co-bump-arrow { color: #e8492f; display: inline-flex; }
.co-bump-intro { margin: 0 0 7px; color: var(--co-teal); font-size: 15px; font-weight: 700; line-height: 1.6; }
.co-bump-body { line-height: 1.4; }
.co-bump-body p { margin: 0 0 6px; }
.co-bump-price { margin: 4px 0 0; font-weight: 700; color: var(--co-teal); }
.co-switch {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; margin: 0;
  width: 38px; height: 20px; border-radius: 999px; background: #cfd3d6; cursor: pointer; transition: background 0.15s;
}
.co-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: transform 0.15s;
}
.co-switch:checked { background: var(--co-teal); }
.co-switch:checked::after { transform: translateX(18px); }
.co-switch:focus-visible { outline: 2px solid var(--co-teal); outline-offset: 2px; }

/* Promo code */
.co-promo { margin: 0 0 6px; }
.co-promo-toggle, .co-promo-remove {
  min-height: 44px; padding: 6px 0; border: 0; background: none; cursor: pointer;
  color: var(--co-teal); font: 500 14px "DM Sans", Arial, sans-serif; text-decoration: underline; text-underline-offset: 2px;
}
.co-promo-toggle[hidden], .co-promo-box[hidden], .co-promo-applied[hidden], .co-promo-error[hidden] { display: none; }
/* The button sits level with the box, under the box's label (it was level with the label, Nov 2026). */
.co-promo-box { display: flex; gap: 8px; align-items: flex-end; margin-top: 6px; }
.co-promo-box .co-field { flex: 1; margin-bottom: 0; }
.co-promo-box input { text-transform: uppercase; }
.co-promo-box input::placeholder { text-transform: none; }
.co-promo-apply {
  flex: none; min-height: 50px; padding: 0 20px; border: 1.6px solid var(--co-teal); border-radius: 3.8px; cursor: pointer;
  background: #fff; color: var(--co-teal); font: 700 15px "DM Sans", Arial, sans-serif;
}
.co-promo-apply:hover { background: #f2f9f9; }
.co-promo-apply:disabled { opacity: 0.6; cursor: default; }
.co-promo-applied { margin: 6px 0 0; font-size: 14px; font-weight: 700; color: var(--co-teal); }
.co-promo-remove { margin-left: 6px; font-weight: 400; color: var(--co-muted); }
.co-promo-error { margin: 6px 0 0; font-size: 14px; color: var(--co-danger); }
.co-total-discount { color: var(--co-teal); }

/* Total payment */
.co-total { margin: 8px 0 6px; padding: 18px 21px 14px; }
.co-total-heading { margin: 0 0 8px; font-size: 16px; }
.co-total-line { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 14px; color: #5f6f7d; }
.co-total-line span:last-child { white-space: nowrap; }
.co-total-option { color: var(--co-muted); }
.co-total-line[hidden] { display: none; }
.co-total-sum { margin-top: 6px; padding-top: 8px; border-top: 1px solid #e6e8ea; color: var(--co-text); font-weight: 500; }
.co-total-today { margin-top: 6px; padding-top: 8px; border-top: 1px solid #e6e8ea; color: var(--co-text); font-size: 15px; font-weight: 700; }
.co-total-plan { margin: 4px 0 0; font-size: 13px; color: #5f6f7d; }
.co-total-plan:empty { display: none; }
.co-currency { margin: 6px 0 0; text-align: right; font-size: 9px; font-weight: 300; color: #bfbfbf; }

/* Fields: a label above each box (hardening plan 5.7), with an example inside */
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 11px; }
.co-field { display: block; margin-bottom: 15px; }
.co-field[hidden] { display: none; }
.co-field input, .co-field select {
  /* 16px: phones zoom in on any smaller text box when it's tapped. */
  display: block; width: 100%; padding: 14px 15px; font: 16px "DM Sans", Arial, sans-serif; color: #535356;
  background: #fff; border: 0.8px solid var(--co-line); border-radius: 3.8px;
}
.co-field select { padding-top: 13px; padding-bottom: 13px; }
.co-field input::placeholder { color: #9a9a9e; }
.co-field input:focus, .co-field select:focus { outline: 2px solid transparent; border-color: var(--co-teal); box-shadow: 0 0 0 3px rgba(0, 129, 129, 0.4); }
.co-label { display: block; margin: 0 0 5px; font-size: 14px; font-weight: 500; color: var(--co-text); }
.co-field input[aria-invalid="true"], .co-field select[aria-invalid="true"] { border-color: var(--co-danger); }
.co-field-error { margin: 5px 0 0; font-size: 13px; color: var(--co-danger); }
.co-field-error[hidden] { display: none; }

/* Keyboard focus on everything else you can tab to (hardening plan 5.7) */
.co-body a:focus-visible, .co-body button:focus-visible, .co-body summary:focus-visible,
.co-terms input:focus-visible { outline: 3px solid var(--co-teal); outline-offset: 2px; }
#content:focus { outline: none; }
.skip-link {
  position: absolute; left: 1rem; top: -5rem; z-index: 1000;
  padding: 10px 16px; border: 2px solid var(--co-teal); border-radius: 6px;
  background: #fff; color: var(--co-text); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Payment */
.co-paybar {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; padding: 16px 13px;
  background: var(--co-teal); color: #fff; font-size: 14px; font-weight: 700; border-radius: 2px;
}
.co-card { margin-bottom: 8px; padding: 14px; border: 0.8px solid #e3e3e3; border-radius: 3.8px; }

.co-agreement { margin: 10px 0 4px; font-size: 14px; color: var(--co-text); }
.co-terms { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0 0 8px; color: #5f6f7d; font-size: 14px; cursor: pointer; }
.co-terms input { width: 18px; height: 18px; margin: 0; accent-color: var(--co-teal); }
.co-errors { margin: 0 0 14px; padding: 10px 14px; font-size: 14px; color: var(--co-danger); background: #fbeceb; border: 1px solid #f0c6c3; border-radius: var(--co-radius); }
.co-errors[hidden] { display: none; }
.co-submit {
  display: block; width: 100%; padding: 18px 14px; border: 0; border-radius: 4.5px; cursor: pointer;
  background: var(--co-teal); color: #fff; font: 500 18px "DM Sans", Arial, sans-serif;
}
.co-submit:hover { background: var(--co-teal-dark); }
.co-submit:disabled { opacity: 0.6; cursor: default; }
.co-fineprint { margin: 12px 0 0; font-size: 12px; color: var(--co-muted); }
.co-powered { margin: 40px 0 0; font-size: 10px; color: var(--co-faint); }

/* Right-hand column */
/* No background of its own, so a transparent PNG (e.g. the 8 Weeks to AI logo) shows the column behind it. */
.co-side-image { padding: 12px; text-align: center; }
.co-side-image img { display: block; margin: 0 auto; }
.co-rule { border: 0; border-top: 2px solid #c5cbd0; margin: 30px 0 24px; }
.co-side-lead { margin: 0 0 18px; font-size: 14px; font-weight: 700; }
.co-quote { margin: 0 0 30px; font-size: 14px; color: #000; }
.co-quote blockquote { margin: 0 0 8px; }
.co-quote figcaption { display: flex; align-items: center; gap: 7px; min-height: 42px; }
.co-quote figcaption img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.co-description { font-size: 14px; color: #000; }
.co-description h3 { margin: 24px 0 14px; font-size: 22px; font-weight: 700; color: var(--co-text); text-transform: uppercase; line-height: 1.15; }
.co-description h4 { margin: 21px 0 12px; font-size: 14px; font-weight: 700; color: var(--co-text); text-transform: uppercase; }
.co-description p { margin: 0 0 10px; line-height: 1.45; }
.co-description ul { margin: 0 0 10px; padding-left: 20px; }
.co-description li { margin: 0 0 7px; line-height: 1.45; }
.co-side-heading { margin: 26px 0 14px; font-size: 22px; font-weight: 700; }
.co-faq { background: #f7f7f7; border-radius: 3.5px; }
.co-faq details { padding: 14px 18px; }
.co-faq details + details { border-top: 1px solid #ebebeb; }
.co-faq summary {
  display: flex; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none;
  font-size: 15px; color: #494949;
}
.co-faq summary::-webkit-details-marker { display: none; }
.co-faq summary svg { flex: none; color: #2bb673; transition: transform 0.15s; }
.co-faq details[open] summary svg { transform: rotate(180deg); }
.co-faq-answer { margin-top: 10px; font-size: 14px; color: #494949; }
.co-faq-answer p { margin: 0 0 8px; }

/* Thank-you page */
.co-thanks { text-align: center; padding: 0 0 12px; }
.co-thanks p { margin: 0 0 12px; }
.co-done { width: 56px; height: 56px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: var(--co-teal); color: #fff; }

/* Narrow screens: one column, the product after the form */
@media (max-width: 820px) {
  .co-frame { grid-template-columns: 1fr; margin: 0; }
  .co-main { padding: 20px 16px; }
  .co-side { padding: 24px 16px; }
  .co-product { padding: 0; }
}
/* Text blocks for phones only (CheckoutPage.phone_text_1...): hidden on wider screens. */
.co-phone-text-heading { margin: 0 0 10px; font-size: 21px; line-height: 1.3; color: var(--co-text); }
.co-phone-text + .co-phone-text { margin-top: 24px; }
@media (min-width: 821px) { .co-phone-text { display: none; } }

/* The phone order (checkout/phone_order.py): only on pages whose order differs from today's (co-phone-order). Both
   columns and the form step aside (display: contents) so every block is one item of a single column, shown in its
   co-o-N place; nothing moves in the page, so the Stripe card box isn't reloaded. Each block brings its own padding,
   and the right column's blocks their own background. */
@media (max-width: 820px) {
  .co-frame.co-phone-order { display: flex; flex-direction: column; }
  .co-phone-order .co-main, .co-phone-order .co-side, .co-phone-order #checkout-form { display: contents; }
  .co-phone-order .co-main > *, .co-phone-order #checkout-form > .co-block { margin-left: 16px; margin-right: 16px; }
  .co-phone-order .co-main > :first-child { margin-top: 20px; }
  .co-phone-order .co-logo { width: calc(100% - 32px); }
  .co-phone-order .co-side-block { background: var(--co-side); margin: 0; padding: 20px 16px; }
  .co-phone-order .co-side-block .co-rule { display: none; }
  .co-phone-order .co-block { margin-top: 24px; margin-bottom: 0; }
  .co-phone-order .co-side-block { margin-top: 0; }
  .co-phone-order .co-powered { order: 99; margin: 20px 16px; }
  .co-phone-order .co-o-1 { order: 1; } .co-phone-order .co-o-2 { order: 2; } .co-phone-order .co-o-3 { order: 3; }
  .co-phone-order .co-o-4 { order: 4; } .co-phone-order .co-o-5 { order: 5; } .co-phone-order .co-o-6 { order: 6; }
  .co-phone-order .co-o-7 { order: 7; } .co-phone-order .co-o-8 { order: 8; } .co-phone-order .co-o-9 { order: 9; }
  .co-phone-order .co-o-10 { order: 10; } .co-phone-order .co-o-11 { order: 11; } .co-phone-order .co-o-12 { order: 12; }
  .co-phone-order .co-o-13 { order: 13; }
  .co-phone-order .co-phone-text { margin-left: 16px; margin-right: 16px; }
  .co-phone-order .co-phone-hidden { display: none; }
}
@media (max-width: 480px) {
  .co-plans, .co-row { grid-template-columns: 1fr; }
  .co-bump { flex-direction: column; }
  .co-bump-image { width: 110px; }
}

/* Email checks (static/js/email-check.js) */
.co-body .email-note { margin: 5px 0 0; font-size: 13px; }
.co-body .email-note[hidden], .co-body .email-echo[hidden] { display: none; }
.co-body .email-suggestion { color: #5c4a10; }
.co-body .email-domain-warning, .co-body .email-mismatch { color: var(--co-danger); }
.co-body .email-echo { margin: 0 0 10px; font-size: 14px; color: var(--co-text); }
.co-body .email-use, .co-body .email-change { background: none; border: 0; padding: 0; color: var(--co-teal-dark);
  font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
