/* Native checkout — sits on top of style.css (same palette, same Georgia
   headings, same gold hairlines) so the page a buyer lands on after the CTA is
   visibly the same company. For a scam-wary 65+ buyer that continuity is the
   product. Type is deliberately a notch larger than the landing page: 55% of
   checkout clickers are on a phone (Clarity, 2026-07-24). */

.co-body { background: var(--soft); }

/* style.css sets a global `strong { color: var(--teal-dark) }`, which renders
   the footer disclaimer's bold clause invisible against the teal-dark footer.
   Scoped fix for the checkout pages only — style.css and index.html are not
   ours to touch here (the same latent bug exists on the landing page). */
footer strong { color: #fff; }

/* ---- test-mode banner (mock mode only) ---- */
.co-testbanner {
  background: #7a4a12; color: #fff5e6; font-size: 14.5px; line-height: 1.5;
  padding: 12px 22px; text-align: center;
}
.co-testbanner strong { color: #fff; letter-spacing: 1.5px; text-transform: uppercase; font-size: 12.5px; }

/* ---- layout ---- */
.co-wrap {
  max-width: 1020px; margin: 0 auto; padding: 26px 22px 56px;
  display: grid; gap: 26px; align-items: start;
}
/* mobile: the summary leads — she needs to see WHAT she's buying before she
   starts typing (same reasoning that put the buy module above the gallery). */
.co-summary { order: -1; }
@media (min-width: 900px) {
  .co-wrap { grid-template-columns: 1fr 400px; gap: 40px; }
  .co-form { order: -1; }
  .co-summary { order: 0; position: sticky; top: 24px; }
}

.co-h1 { font-size: 30px; margin: 0 0 22px; }
.co-h {
  font-family: Georgia, serif; font-size: 19px; color: var(--teal-dark);
  font-weight: 600; margin: 0 0 14px;
}

/* ---- order summary card ---- */
.co-summary {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 20px; box-shadow: 0 18px 50px -34px rgba(36,59,56,.55);
}
.co-item { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.co-item img { flex: none; width: 72px; height: 89px; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; }
.co-item > div { flex: 1; }
.co-item-name { font-family: Georgia, serif; font-size: 17px; color: var(--teal-dark); font-weight: 600; margin: 0 0 4px; line-height: 1.25; }
.co-item-sub { font-size: 13px; color: var(--muted); line-height: 1.45; margin: 0; }
.co-item-price { font-family: Georgia, serif; font-size: 20px; font-weight: 700; color: var(--teal-dark); white-space: nowrap; }

/* ---- couples radio ---- */
.co-choice { border: none; margin: 16px 0 0; padding: 0; }
.co-choice legend {
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--teal-dark); padding: 0; margin: 0 0 10px;
}
.co-radio {
  display: flex; align-items: flex-start; gap: 11px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0 0 8px;
  background: #fff;
}
.co-radio:has(input:checked) { border: 2px solid var(--teal); background: #fdfefd; padding: 11px 13px; }
.co-radio input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); }
.co-radio-body { display: flex; flex-direction: column; gap: 3px; }
.co-radio-title { font-family: Georgia, serif; font-size: 15.5px; color: var(--teal-dark); font-weight: 600; line-height: 1.3; }
.co-radio-title em { font-style: normal; font-weight: 700; }
.co-radio-sub { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* ---- what's included ---- */
.co-includes { list-style: none; padding: 0; margin: 16px 0 0; }
.co-includes li { font-size: 14px; color: #3c4742; line-height: 1.45; padding: 5px 0 5px 26px; position: relative; }
.co-includes li::before {
  content: "✓"; position: absolute; left: 0; top: 7px; color: #fff; background: var(--teal);
  width: 17px; height: 17px; border-radius: 50%; font-size: 10px; line-height: 17px; text-align: center;
}

/* ---- order bump ---- */
.co-bump { background: var(--mint); border: 1px dashed var(--teal); border-radius: 10px; padding: 14px 16px; margin: 18px 0 0; }
.co-bump-head { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; font-size: 15.5px; color: var(--teal-dark); }
.co-bump-head input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--teal); }
.co-bump-price { color: var(--gold); font-weight: 700; }
.co-bump-copy { font-size: 13px; color: #3c4742; line-height: 1.5; margin: 9px 0 0 31px; }

/* ---- total + reassurance ---- */
.co-total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--line); margin: 18px 0 0; padding: 16px 0 0;
  font-family: Georgia, serif; font-size: 20px; color: var(--teal-dark); font-weight: 700;
}
.co-deliver { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: #3c4742; margin: 12px 0 0; line-height: 1.45; }
.co-guarantee { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--muted); margin: 12px 0 0; line-height: 1.5; }
.co-guarantee .seal {
  flex: none; width: 30px; height: 30px; border: 2px solid var(--gold); border-radius: 50%;
  color: var(--gold); display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.co-map { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; line-height: 1.5; }

/* ---- form ---- */
.co-block { margin: 0 0 30px; }
.co-field { margin: 0 0 16px; }
.co-field label { display: block; font-size: 14px; font-weight: 700; color: var(--teal-dark); margin: 0 0 6px; }
.co-field input, .co-field select {
  width: 100%; font-family: inherit; font-size: 17px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 13px 14px; -webkit-appearance: none; appearance: none;
}
.co-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232f5d57' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.co-field input:focus, .co-field select:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(47,93,87,.15);
}
.co-field input.co-invalid, .co-field select.co-invalid { border-color: #b0392e; background: #fffaf9; }
.co-help { font-size: 13px; color: var(--muted); margin: 6px 0 0; line-height: 1.45; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 460px) { .co-row { grid-template-columns: 1fr; gap: 0; } }

/* ---- payment ---- */

/* TRUST BADGES (2026-07-29). Baymard's site-seal study: a homemade seal
   outperformed every established SSL seal except Norton — "it doesn't matter too
   much which actual seal is chosen. Rather what's most important is making sure
   there's some kind of visual seal or icon present." We can't buy a Norton seal
   and won't fake one, so these are our own marks against claims we can prove.
   Paired security + guarantee above the card box = the Babbel pattern. */
.co-badges {
  list-style: none; padding: 0; margin: 0 0 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px;
}
.co-badges li { display: flex; align-items: flex-start; gap: 9px; }
.co-badges svg { flex: none; width: 19px; height: 19px; margin-top: 1px; color: var(--teal); }
.co-badges span { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.co-badges strong { display: block; font-size: 13.5px; color: var(--teal-dark); margin: 0 0 2px; }
@media (max-width: 520px) { .co-badges { grid-template-columns: 1fr; gap: 12px; } }

/* ENCAPSULATED CARD FIELDS. Baymard, on the perceived security of payment forms:
   visually enclosing the card section — border, background, shading — is the
   treatment they "consistently observe to perform well," and placing 1–2 icons
   inside that enclosure performs well too. 89% of checkouts get this wrong. */
/* White against the cream page (--bg is #faf7f1) — a tinted panel was invisible
   at 1/3/6 RGB of difference. White also matches Stripe's own input fields, so
   the header, the Element and the note read as ONE solid block. */
.co-paybox {
  border: 1px solid #cfc6b3; border-radius: 12px; background: #fff;
  padding: 14px 16px 12px; margin: 0 0 18px;
  box-shadow: 0 1px 3px rgba(28,48,45,.07), 0 6px 16px -10px rgba(28,48,45,.18);
}
.co-paybox-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 12px; padding: 0 0 11px; border-bottom: 1px solid var(--line);
}
.co-paybox-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 700; color: var(--teal-dark);
}
.co-paybox-label svg { width: 18px; height: 18px; color: var(--teal); }
.co-cards { display: inline-flex; align-items: center; gap: 5px; }
.co-cards svg { width: 30px; height: 19.5px; display: block; }
@media (max-width: 380px) { .co-cards svg { width: 26px; height: 17px; } }

.co-prb { margin: 0 0 14px; min-height: 48px; }
.co-or { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.co-or::before, .co-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.co-pe { min-height: 40px; margin: 0; }
.co-pe-placeholder {
  border: 1px dashed var(--line); border-radius: 10px; background: #fff;
  padding: 20px 18px; font-size: 14px; color: var(--muted); line-height: 1.55;
}
.co-pe-placeholder strong { display: block; color: var(--teal-dark); margin: 0 0 4px; }
.co-pay { display: block; width: 100%; text-align: center; border: none; cursor: pointer; font-family: inherit; }
.co-pay[disabled] { opacity: .55; cursor: default; transform: none; }
.co-error { background: #fdf3f2; border-left: 4px solid #b0392e; color: #8a2f26; font-size: 14.5px; padding: 12px 14px; border-radius: 4px; margin: 0 0 16px; }
/* Address rejection, seated against the address block. Slides in so it can't be
   missed, then STAYS — it is the record of what to fix, not a notification. */
.co-error-field { margin: 10px 0 4px; animation: co-slip 220ms ease-out; }
@keyframes co-slip { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .co-error-field { animation: none; } }
/* Seated INSIDE .co-paybox — the second of Baymard's "1-2 icons/notes within the
   encapsulated area". checkout.js rewrites its textContent in mock mode, so it
   has to stay a plain text node. */
.co-secure { font-size: 12px; color: var(--muted); margin: 11px 0 0; line-height: 1.5; }
.co-stripe {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 12.5px; color: var(--muted); margin: 13px 0 0;
}
.co-stripe svg { width: 15px; height: 15px; color: var(--teal); }
.co-stripe strong { color: var(--teal-dark); }

/* ---- success page ---- */
.co-done { max-width: 620px; margin: 0 auto; padding: 40px 22px 60px; }
.co-done h1 { font-size: 30px; margin: 0 0 14px; }
.co-done .co-lead { font-size: 19px; color: #3c4742; margin: 0 0 26px; }
.co-steps { list-style: none; padding: 0; margin: 0 0 28px; counter-reset: s; }
.co-steps li {
  position: relative; padding: 0 0 20px 46px; counter-increment: s;
  font-size: 16px; color: #3c4742; line-height: 1.55;
}
.co-steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff;
  font-family: Georgia, serif; font-size: 15px; line-height: 30px; text-align: center;
}
.co-steps strong { display: block; color: var(--teal-dark); font-family: Georgia, serif; font-size: 17px; margin: 0 0 3px; }
.co-receipt { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin: 0 0 26px; }
.co-receipt-row { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; padding: 6px 0; }
.co-receipt-row:last-child { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 700; color: var(--teal-dark); }
