/* Checkout (frontend/checkout/checkoutpage). Same tokens as the homepage / assessment pages. */
.co { --g:#17a43b; --gd:#11873a; --b:#015caa; --ink:#16263a; --mut:#5f6f82; --line:#e5eaf0; --tint:#eaf7ee; --btint:#e8f1fa;
      padding:48px 0 64px; background:#f6f9fc; line-height:1.5; }
.co *, .co *::before, .co *::after { box-sizing:border-box; }
.co p { text-align:left; }

/* steps */
.co .co-steps { list-style:none; display:flex; justify-content:center; align-items:center; gap:0; margin:0 auto 30px; padding:0; max-width:640px; }
.co .co-steps li { position:relative; display:flex; align-items:center; gap:8px; flex:0 0 auto; margin:0; padding:0; list-style:none; font-size:14px; font-weight:600; color:var(--mut); white-space:nowrap; }
.co .co-steps li:not(:last-child) { flex:1 1 auto; }
.co .co-steps li::before { display:none; }
/* the line runs from the end of one step's label to the next step (labels can be long) */
.co-steps li:not(:last-child)::after { content:""; flex:1; min-width:24px; height:2px; margin:0 14px; background:var(--line); }
.co-steps li.is-done::after { background:var(--g); }
.co-steps li span { flex:none; width:30px; height:30px; border-radius:50%; display:grid; place-items:center; background:#fff; border:2px solid var(--line); font-size:13px; font-weight:800; color:var(--mut); }
.co .co-steps li.is-done { color:var(--gd); }
.co-steps li.is-done span { background:var(--g); border-color:var(--g); color:#fff; }
.co .co-steps li.is-now { color:var(--b); }
.co-steps li.is-now span { background:var(--b); border-color:var(--b); color:#fff; box-shadow:0 0 0 5px rgba(1,92,170,.14); }

.co-alert { max-width:1000px; margin:0 auto 18px; border-radius:12px; }
.co-alert p { margin:0; }

.co-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; max-width:1000px; margin:0 auto; align-items:stretch; }   /* both boxes as tall as the taller one */
.co-card { min-width:0; display:flex; flex-direction:column; background:#fff; border:1px solid var(--line); border-radius:22px; padding:26px 28px; box-shadow:0 22px 44px -34px rgba(1,92,170,.45); }
.co .co-h { font:800 22px/1.2 Outfit,sans-serif; color:var(--ink); margin:0 0 18px; padding:0; text-transform:none; }

/* summary */
.co-item { display:flex; align-items:center; gap:14px; padding:14px; border-radius:16px; background:var(--btint); }
.co-item__icon { flex:none; width:50px; height:50px; border-radius:14px; display:grid; place-items:center; background:#fff; color:var(--b); font-size:22px; }
.co-item__main { flex:1; min-width:0; display:flex; flex-direction:column; }
.co-item__main small { font-size:11px; font-weight:800; letter-spacing:.8px; text-transform:uppercase; color:var(--b); }
.co-item__main strong { font:700 16px/1.3 Outfit,sans-serif; color:var(--ink); }
.co-item__main span { font-size:13px; color:var(--mut); }
.co-item__price { flex:none; font:800 17px Outfit,sans-serif; color:var(--ink); }
.co .co-lines { list-style:none; margin:16px 0 0; padding:0; }
.co .co-lines li { display:flex; justify-content:space-between; align-items:baseline; margin:0; padding:9px 2px; list-style:none; border-top:1px dashed var(--line); font-size:14.5px; color:#34465a; }
.co .co-lines li::before { display:none; }
.co-lines li span { color:var(--mut); }
.co-lines li s { color:#98a6b5; }
.co .co-lines li.is-save b { color:var(--gd); }
.co .co-lines li.is-total { border-top:2px solid var(--ink); margin-top:4px; padding-top:12px; }
.co-lines li.is-total span { color:var(--ink); font-weight:700; }
.co-lines li.is-total b { font:800 24px Outfit,sans-serif; color:var(--ink); }
.co .co-valid { margin:14px 0 20px; padding:10px 14px; border-radius:12px; background:var(--tint); font-size:13.5px; color:#2f4a3a; }
.co-valid .fa { color:var(--g); margin-right:6px; }
.co-next { margin-top:auto; margin-bottom:0; padding-top:18px; border-top:1px solid var(--line); }
.co .co-next h3 { font:700 16px Outfit,sans-serif; color:var(--ink); margin:0 0 10px; padding:0; text-transform:none; }
.co .co-next ol { margin:0; padding:0; list-style:none; counter-reset:con; display:flex; flex-direction:column; gap:10px; }
.co .co-next li { position:relative; margin:0; padding:0 0 0 34px; list-style:none; font-size:14px; color:#34465a; counter-increment:con; }
.co .co-next li::before { content:counter(con); position:absolute; left:0; top:0; width:24px; height:24px; border-radius:50%; display:grid; place-items:center; background:var(--btint); color:var(--b); font:800 12px Outfit,sans-serif; }

/* payment */
.co-who { display:flex; align-items:center; gap:12px; padding:12px 14px; border:1px solid var(--line); border-radius:14px; margin-bottom:20px; }
.co-who__icon { flex:none; width:40px; height:40px; border-radius:50%; display:grid; place-items:center; background:var(--tint); color:var(--g); font-size:17px; }
.co-who b { display:block; font-size:15px; color:var(--ink); }
.co-who small { display:block; font-size:12.5px; color:var(--mut); word-break:break-all; }
.co .co-cards-label { margin:0 0 8px; font-size:13px; color:var(--mut); text-align:center; }
/* accepted cards and wallets: one row of separate logos (word logos a little shorter than square ones) */
.co .co-logos { list-style:none; display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:12px; margin:0 0 22px; padding:0; }
.co .co-logos li { display:flex; align-items:center; margin:0; padding:0; list-style:none; }
.co .co-logos li::before { display:none; }
.co-logos img { display:block; height:27px; width:auto; }
.co-logos li.is-word img { height:18px; }
.co .co-paybtn { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; height:56px; font:700 17px Roboto,sans-serif; cursor:pointer; transition:background .2s, transform .2s; white-space: normal; line-height: 1.3; }
.co .co-paybtn:hover { transform:translateY(-1px); }
.co .co-paybtn[disabled] { opacity:.75; cursor:wait; }
.co .co-back { display:flex; align-items:center; justify-content:center; gap:8px; margin-top:12px; font-size:14px; font-weight:600; color:var(--mut); text-decoration:none; }
.co .co-back:hover { color:var(--b); text-decoration:none; }
.co .co-trust { list-style:none; margin:20px 0 18px; padding:16px 0 0; border-top:1px solid var(--line); display:flex; flex-direction:column; gap:10px; }
.co .co-trust li { display:flex; gap:10px; margin:0; padding:0; list-style:none; font-size:13.5px; color:#34465a; }
.co .co-trust li::before { display:none; }
.co-trust .fa { flex:none; margin-top:3px; color:var(--b); width:16px; text-align:center; }
.co-trust a { color:var(--b); font-weight:600; }
.co-help { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px 14px; margin-top:auto; padding:12px; border-radius:14px; background:#f6f9fc; font-size:13.5px; color:var(--mut); }
.co .co-help a { display:inline-flex; align-items:center; gap:6px; color:var(--ink); font-weight:700; text-decoration:none; }
.co .co-help a:hover { color:var(--b); }
.co-help .fa-whatsapp { color:#25d366; }
/* line 1: the help text alone; line 2: phone + WhatsApp side by side */
.co-help > span { flex:0 0 100%; text-align:center; }

@media (max-width:991px) {
  .co-grid { grid-template-columns:1fr; max-width:600px; }
  /* phones and tablets: summary first, payment under it */
}
@media (max-width:600px) {
  .co { padding:32px 0 48px; }
  .co-card { padding:20px 16px; border-radius:18px; }
  /* phones: each step's circle above its name, three equal columns, no lines */
  .co .co-steps li, .co .co-steps li:not(:last-child) { flex:1 1 0; flex-direction:column; gap:5px; font-size:11.5px; line-height:1.3; text-align:center; white-space:normal; }
  .co-steps li:not(:last-child)::after { display:none; }
}

/* inside the institute portal: the portal page gives the background and spacing; its own fonts are used */
.co.is-portal { padding:4px 0 10px; background:none; }
.co.is-portal .co-grid { max-width:none; }

/* ================= Thank you page (frontend/checkout/thankspage) ================= */
.co.ty { position:relative; overflow:hidden; }
.ty #confetti-canvas { position:absolute; left:0; top:0; width:100%; height:700px; pointer-events:none; z-index:5; }
.ty .container { position:relative; z-index:1; }
.co-steps.is-all-done li:not(:last-child)::after { background:var(--g); }
.co .co-steps.is-all-done li { color:var(--gd); }
.ty-hello { display:flex; align-items:center; gap:16px; max-width:1000px; margin:0 auto 22px; padding:18px 22px; border-radius:18px; background:var(--tint); border:1px solid #cfe9d7; }
.ty-hello__icon { flex:none; width:52px; height:52px; border-radius:50%; display:grid; place-items:center; background:var(--g); color:#fff; font-size:24px; box-shadow:0 10px 20px -10px rgba(23,164,59,.8); }
.co .ty-hello h2 { font:800 22px/1.2 Outfit,sans-serif; color:var(--ink); margin:0 0 2px; padding:0; text-transform:none; }
.co .ty-hello p { margin:0; font-size:14.5px; color:#2f4a3a; }
.ty-ordernum { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 16px; border-radius:14px; background:var(--btint); }
.ty-ordernum small { display:block; font-size:11px; font-weight:800; letter-spacing:.8px; text-transform:uppercase; color:var(--b); }
.ty-ordernum b { font:800 20px Outfit,sans-serif; color:var(--ink); letter-spacing:.5px; }
.co .ty-copy { flex:none; display:inline-flex; align-items:center; gap:6px; height:34px; padding:0 12px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--mut); font:600 13px Roboto,sans-serif; cursor:pointer; transition:all .2s; }
.co .ty-copy:hover { color:var(--b); border-color:var(--b); }
.co .ty-copy.is-copied { color:#fff; background:var(--g); border-color:var(--g); }
.co .ty-lines li b { text-align:right; }
.ty-paid { color:var(--gd); }
.ty-links { display:flex; flex-wrap:wrap; justify-content:center; gap:10px 22px; margin-top:auto; padding-top:18px; }
.co .ty-links a { display:inline-flex; align-items:center; gap:7px; font-size:14px; font-weight:600; color:var(--b); text-decoration:none; }
.co .ty-links a:hover { text-decoration:underline; }
.ty-keys { display:flex; flex-direction:column; gap:8px; }
.ty-keys.is-many { max-height:236px; overflow:auto; padding-right:4px; }
.ty-key { display:flex; align-items:center; gap:10px; padding:8px 8px 8px 14px; border:1px dashed #cbd5e1; border-radius:12px; background:#fbfdff; }
.ty-key code { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; font:700 14.5px/1.4 'Courier New',Courier,monospace; letter-spacing:1px; color:var(--ink); background:none; padding:0; }
.ty-key__tag { font-size:11px; font-weight:700; color:var(--gd); background:var(--tint); padding:3px 8px; border-radius:999px; }
.co .ty-copyall { align-self:flex-start; margin-top:10px; }
.ty .co-next { margin-top:18px; }
.co .ty-go { text-decoration:none; }
.co .ty-go:hover, .co .ty-go:focus { color:#fff; text-decoration:none; }
@media (max-width:600px) {
  .ty-hello { flex-direction:column; text-align:center; padding:18px 16px; }
  .co .ty-hello p { text-align:center; }
  .ty-ordernum b { font-size:17px; }
}

/* Thank you page in blue: payment was green (an action to take); blue says "done, this changed". */
.co.ty { --g:#015caa; --gd:#014a8a; --tint:#e8f1fa; }
.co.ty .ty-hello { border-color:#c9ddf1; }
.co.ty .ty-hello__icon { box-shadow:0 10px 20px -10px rgba(1,92,170,.8); }
.co.ty .ty-hello p, .co.ty .co-valid { color:#1f3b57; }
.co.ty .co-paybtn { white-space: normal; line-height: 1.3; }
.co.ty .co-steps.is-all-done li span { box-shadow:none; }
/* the main button sits at the bottom of its box (level with "My Orders" opposite), never right under step 3 */
.co.ty .co-next { margin-bottom:22px; }
.co .ty-go { margin-top:auto; }

/* ================= Payment not completed (frontend/checkout/checkoutfailedpage) — orange inside the page: needs attention (the banner stays the site banner) ================= */
/* the banner: orange (two tones, moving like the site banner) so the buyer sees at once that something needs attention;
   the site's white plus pattern is 5% white, too faint on orange, so it is 14% here */
.inner-banner.contact.pf-banner-warn { background-image:linear-gradient(135deg,#f39200 0%,#e07b00 30%,#c2410c 75%,#b91c1c 100%) !important; background-size:250% 250% !important; background-repeat:no-repeat !important; animation:signinHeroGradientFlow 9s ease infinite alternate !important; -webkit-animation:signinHeroGradientFlow 9s ease infinite alternate !important; }
.inner-banner.contact.pf-banner-warn::before { background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.14'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") !important; }
.co-steps li.is-fail span { background:#e07b00; border-color:#e07b00; color:#fff; box-shadow:0 0 0 5px rgba(243,146,0,.18); }
.co .co-steps li.is-fail { color:#b45f00; }
.pf-what { display:flex; gap:14px; align-items:flex-start; padding:14px 16px; border-radius:14px; background:#fff3e0; border:1px solid #fbd9a8; }
.pf-what__icon { flex:none; width:40px; height:40px; border-radius:50%; display:grid; place-items:center; background:#e07b00; color:#fff; font-size:18px; }
.pf-what b { display:block; font:700 16px/1.3 Outfit,sans-serif; color:var(--ink); margin-bottom:3px; }
.pf-calm .pf-br { display:block; }
@media (max-width:767px){ .pf-calm .pf-br { display:none; } }
.pf-what div > span { display:block; font-size:14px; color:#5b4630; }
.pf-what small { color:#8a6a45; }
.co .pf-calm { display:flex; gap:10px; margin:14px 0 0; font-size:13.5px; color:#34465a; }
.pf-calm .fa { flex:none; margin-top:3px; color:var(--b); }
.pf-fail .co-next { margin-top:18px; }
.pf-retry { margin:16px 0 0; }
.co .pf-noorder { margin:0 0 14px; font-size:14px; color:var(--mut); }
.co .pf-retry-link { text-decoration:none; }
.co .pf-retry-link:hover, .co .pf-retry-link:focus { color:#fff; text-decoration:none; }
.pf-fail .co-trust { margin-bottom:18px; }
