/* Checkout pages. Uses the colors and sizes from styles.css and the form styles from forms.css. */
.co-body { background: var(--soft); }
.co-body [hidden] { display: none !important; }

.co-top { background: #fff; border-bottom: 1px solid var(--line); }
.co-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.co-secure { font-size: 14px; font-weight: 600; color: var(--muted); }

.co-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; padding-top: 32px; padding-bottom: 96px; }
.co-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.co-side { position: sticky; top: 20px; }

.co-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.co-card h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.15; margin: 0; }
.co-card h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.015em; margin: 0; }
.co-card h1 + .co-muted { margin-top: -10px; }
.co-muted { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.co-kicker { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--green); }
.co-static { margin: 0; font-size: 16px; font-weight: 500; }

.co-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; counter-reset: co; }
.co-steps li { counter-increment: co; flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: var(--muted); padding-top: 10px; border-top: 4px solid var(--line-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-steps li::before { content: counter(co) ". "; }
.co-steps li.on { color: var(--ink); border-top-color: var(--blue); }

.co-test { margin: 0; background: var(--amber-tint); color: var(--amber); border-radius: 10px; padding: 10px 14px; font-size: 14px; font-weight: 500; }

.co-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.co-plan { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; padding: 16px; border: 1.5px solid var(--line-2); border-radius: 14px; background: #fff; cursor: pointer; }
.co-plan:hover { border-color: #a9bfee; }
.co-plan input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--blue); }
.co-plan b { display: block; font-size: 16px; letter-spacing: -0.01em; }
.co-plan small { display: block; margin-top: 3px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.co-plan:has(input:checked) { border-color: var(--blue); background: #f7faff; box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12); }
.co-plan:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
/* Formation packages: one per row, price on the right. */
.co-packs { grid-template-columns: minmax(0, 1fr); }
.co-packs .co-plan { grid-template-columns: 20px minmax(0, 1fr) auto; }
.co-plan em { font-style: normal; font-weight: 700; font-size: 20px; letter-spacing: -0.03em; white-space: nowrap; text-align: right; }
.co-plan em small { font-weight: 500; font-size: 12.5px; margin: 0; letter-spacing: 0; }
.co-plan.off { cursor: default; background: var(--soft); }
.co-plan.off b, .co-plan.off em { color: var(--muted); }
.co-plan.off em { font-size: 14px; font-weight: 600; }

.co-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.co-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.co-error { margin: 0; color: #b42318; font-size: 14.5px; font-weight: 500; }
.co-error:empty { display: none; }

.co-side .summary { margin-top: 0; }
.co-side .summary div span small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.co-fine { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

.co-review { margin: 0; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px 16px; font-size: 15.5px; }
.co-review dt { color: var(--muted); }
.co-review dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

.co-done { max-width: 720px; padding-top: 48px; padding-bottom: 96px; }

/* Customer account page */
.co-account { max-width: 880px; padding-top: 36px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 16px; }
.co-account-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.co-account-head h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.035em; margin: 0; }
.co-company-head h2 { font-size: 20px; }
.co-orders { width: 100%; border-collapse: collapse; font-size: 15px; }
.co-orders th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.co-orders th:last-child, .co-orders td:last-child { text-align: right; }
.co-orders td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.co-orders tr:last-child td { border-bottom: 0; }
.co-orders td small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.co-st { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.co-st-wait { background: var(--tint); color: var(--blue-dark); }
.co-st-done { background: var(--green-tint); color: var(--green); }
.co-st-bad { background: #fdecea; color: #b42318; }
.co-st-off { background: var(--soft); color: var(--muted); }

@media (max-width: 900px) {
  .co-layout { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
  .co-side { position: static; order: -1; }
}
@media (max-width: 560px) {
  .co-card { padding: 20px; }
  .co-plans, .co-row { grid-template-columns: minmax(0, 1fr); }
  .co-review { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .co-review dd { margin-bottom: 10px; }
  .co-steps li { font-size: 0; }
  .co-steps li.on { font-size: 13px; flex: 3; }
}
