/* ============================================================
   My list (shopping cart), added 16 Nov 2026 as a TEST feature.
   Loaded on every new-design page by ~/Views/Shared/Parts/_GeaHead.cshtml, with ~/assets/gea/js/cart.js.
   1) shows the "Add to list" buttons the design already had (they were hidden until the list page existed)
   2) "Add all programs" on the academy page   3) the bar at the bottom   4) the list page (~/Cart)
   To remove the feature: take the two cart lines out of _GeaHead.cshtml.
   ============================================================ */

/* ---------- 1) "Add to list" buttons ---------- */
html.js body .ladd{display:inline-flex!important}
.ladd.gc-wide{width:100%;margin-block-start:10px}
/* phones: the "where to start" cards keep the words "Add to list" (QA 17 Nov 2026, D22); the card title leaves room for the button */
@media (max-width:520px){html body .lhost.end .st-who{padding-inline-end:128px}}

/* ---------- 2) "Add all programs" ---------- */
.gc-allrow{display:flex;justify-content:flex-end;margin-block:-6px 16px}
.gc-allrow[hidden]{display:none}
.gc-all{min-height:44px;padding-inline:16px 18px;gap:8px;font-size:14px}
.gc-all svg{width:18px;height:18px;flex:none}
.gc-all{white-space:normal;text-align:start;line-height:1.3;padding-block:10px}
.gc-all.on{border-color:var(--accent-ink,#cf3a27)}
@media (max-width:620px){.gc-allrow{justify-content:stretch}.gc-all{width:100%;justify-content:center}}

/* ---------- 3) the bar ---------- */
.gc-bar{position:fixed;z-index:60;inset-inline:16px;inset-block-end:calc(16px + env(safe-area-inset-bottom,0px));max-width:560px;margin-inline:auto;
  display:flex;align-items:center;gap:12px;padding:10px 10px 10px 12px;border-radius:22px;background:#fff;border:1px solid var(--line,#e6e7e8);color:var(--ink,#232628);
  box-shadow:0 24px 50px -22px rgba(35,38,40,.55);transform:translateY(140%);opacity:0;visibility:hidden;transition:transform .4s,opacity .25s,visibility 0s .4s}
.gc-bar.show{transform:none;opacity:1;visibility:visible;transition:transform .5s var(--ease-out,ease),opacity .3s}
.gc-bar .gc-n{flex:none;min-width:44px;height:44px;padding-inline:8px;border-radius:14px;background:#fef6f4;color:#a92e1e;display:grid;place-items:center;font-weight:700;font-size:16px;font-variant-numeric:tabular-nums}
.gc-bar .gc-t{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}
.gc-bar .gc-t b{font-weight:600;font-size:15px}
.gc-bar .gc-t>span{font-size:13px;color:var(--muted,#6b6e75);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gc-bar .btn .gc-w{margin-inline-start:.3em}
.gc-bar .btn{flex:none;gap:0;min-height:44px;padding-inline:18px;font-size:14.5px;--accent:#cf3a27;--accent-dark:#a92e1e;--on-accent:#fff}
body.gc-bar-on{padding-block-end:96px}
/* the program page has its own price bar on phones: the list bar sits above it */
@media (max-width:1099px){body.pg.gc-bar-on .gc-bar{inset-block-end:calc(88px + env(safe-area-inset-bottom,0px))}body.pg.gc-bar-on{padding-block-end:176px}}
@media (max-width:420px){.gc-bar .gc-t>span{display:none}.gc-bar .btn{padding-inline:14px}}
/* very small phones: shorter words, so the bar stays on one line */
@media (max-width:380px){.gc-bar .gc-w{display:none}.gc-bar{gap:10px}}
@media (prefers-reduced-motion:reduce){.gc-bar,.gc-bar.show{transition:none}}

.gc-toast{position:fixed;z-index:70;inset-inline:16px;inset-block-start:88px;max-width:420px;margin-inline:auto;padding:12px 16px;border-radius:14px;background:#232628;color:#fff;font-size:14px;text-align:center;
  box-shadow:0 18px 40px -18px rgba(35,38,40,.6);opacity:0;visibility:hidden;transform:translateY(-8px);transition:opacity .25s,transform .25s,visibility 0s .25s}
.gc-toast.show{opacity:1;visibility:visible;transform:none;transition:opacity .25s,transform .25s}

/* ---------- 4) the list page ---------- */
.gc-page{padding-block:clamp(28px,calc(5vw / var(--gz,1)),56px) clamp(56px,calc(8vw / var(--gz,1)),96px)}
.gc-grid{display:grid;gap:28px;grid-template-columns:minmax(0,1fr);align-items:start}
@media (min-width:960px){.gc-grid{grid-template-columns:minmax(0,1fr) 360px;gap:40px}}
.gc-list{margin:0;padding:0;list-style:none;display:grid;gap:12px}
.gc-page.loading .gc-list{opacity:.5}
.gc-item{display:grid;grid-template-columns:72px minmax(0,1fr) auto 44px;align-items:center;gap:14px;padding:12px;border:1px solid var(--line,#e6e7e8);border-radius:18px;background:#fff}
.gc-item img,.gc-item .gc-ph{width:72px;height:72px;border-radius:12px;object-fit:cover;background:#f3f1f6}
.gc-item .gc-b{min-width:0;display:flex;flex-direction:column;gap:3px}
.gc-item .gc-b a{font-weight:600;font-size:15.5px;line-height:1.35;color:var(--ink,#232628);text-decoration:none}
.gc-item .gc-b a:hover{color:var(--accent,#cf3a27);text-decoration:underline}
.gc-item .gc-b small{font-size:13px;color:var(--muted,#6b6e75)}
.gc-item .gc-tag{align-self:flex-start;margin-block-start:3px;padding:3px 10px;border-radius:999px;background:#f3f1f6;color:#50535a;font-size:12.5px;font-weight:500}
.gc-item .gc-p{font-weight:700;font-size:16px;font-variant-numeric:tabular-nums;white-space:nowrap}
.gc-item.off .gc-b a{color:var(--muted,#6b6e75)}
.gc-item.off img{opacity:.55}
/* 18 Nov 2026: the Global Education chat widget (.gc-root) uses class names that start with "gc-" too.
   The rules below written with :not(.gc-root *) are the ones whose names it shares (gc-x, gc-row, gc-link),
   so they no longer change the widget. A new "gc-" rule that is not inside another list class needs the same. */
.gc-x:not(.gc-root *){width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:12px;background:none;color:var(--muted,#6b6e75);cursor:pointer}
.gc-x:not(.gc-root *):hover{background:#f6f4f9;color:var(--accent,#cf3a27)}
.gc-x:not(.gc-root *) svg{width:18px;height:18px}
@media (max-width:520px){.gc-item{grid-template-columns:56px minmax(0,1fr) 44px;gap:10px}.gc-item img,.gc-item .gc-ph{width:56px;height:56px}.gc-item .gc-p{grid-column:2;grid-row:2;font-size:15px}.gc-x{grid-column:3;grid-row:1}}

.gc-sum{position:sticky;inset-block-start:96px;padding:22px;border:1px solid var(--line,#e6e7e8);border-radius:22px;background:#fff;box-shadow:0 24px 50px -34px rgba(35,38,40,.4)}
.gc-sum[hidden]{display:none}
.gc-sum h2{margin:0 0 14px;font-size:1.15rem}
.gc-row:not(.gc-root *){display:flex;justify-content:space-between;gap:12px;padding-block:8px;font-size:15px;color:var(--muted,#6b6e75)}
.gc-row.total{margin-block-start:6px;padding-block-start:14px;border-block-start:1px solid var(--line,#e6e7e8);color:var(--ink,#232628);font-weight:700;font-size:1.25rem}
.gc-row:not(.gc-root *) b{font-variant-numeric:tabular-nums}
.gc-sum .btn{width:100%;justify-content:center;margin-block-start:14px;min-height:52px}
.gc-sum .btn[hidden]{display:none}
.gc-sum .btn:disabled{opacity:.5;cursor:not-allowed}
.gc-sum .btn.busy{opacity:.7;cursor:progress}
.gc-small{margin:12px 0 0;font-size:13px;line-height:1.5;color:var(--muted,#6b6e75)}
.gc-small[hidden]{display:none}
.gc-link:not(.gc-root *){display:block;width:100%;margin-block-start:10px;padding:10px;border:0;background:none;color:var(--muted,#6b6e75);font:inherit;font-size:14px;text-decoration:underline;cursor:pointer}
.gc-link:not(.gc-root *):hover{color:var(--accent,#cf3a27)}
.gc-note{margin:0 0 16px;padding:12px 16px;border-radius:14px;background:#f6f4f9;font-size:14.5px}
.gc-note[hidden]{display:none}
.gc-note.bad{background:#fdecea;color:#8f2416}
.gc-mode{display:inline-block;margin-block-start:14px;padding:5px 12px;border-radius:999px;font-size:12.5px;font-weight:600}
.gc-mode.test{background:#fff4d6;color:#7a5200}
.gc-mode.live{background:#fdecea;color:#8f2416}
.gc-empty{padding:48px 24px;border:1px dashed var(--line,#e6e7e8);border-radius:22px;text-align:center}
.gc-empty[hidden]{display:none}
.gc-empty b{display:block;font-size:1.15rem;margin-block-end:6px}
.gc-empty p{margin:0 0 18px;color:var(--muted,#6b6e75)}
.gc-done{max-width:640px;margin-inline:auto;padding:40px 28px;border:1px solid var(--line,#e6e7e8);border-radius:24px;background:#fff;text-align:center}
.gc-done .gc-ok{width:64px;height:64px;margin:0 auto 16px;border-radius:50%;background:#e8f6ee;color:#1d7a46;display:grid;place-items:center}
.gc-done .gc-ok svg{width:30px;height:30px}
.gc-done h2{margin:0 0 10px}
.gc-done p{margin:0 0 10px;color:var(--muted,#6b6e75);line-height:1.6}
.gc-done .btn{margin-block-start:14px}

/* Hint under the price card on a program page (QA 17 Nov 2026, D13). */
.gc-hint{margin-block:10px 0;font-size:13px;line-height:1.45;color:var(--muted,#6b7280);text-align:center}

/* Checkout wording from the review site (QA retest 17 Nov 2026, D14). */
.gc-lh{margin:0 0 14px;font-size:1.15rem}
.gc-sum #gcReg{width:100%;margin-block-start:10px;justify-content:center}
.gc-sum .gc-ask{color:var(--ink,#232628);margin-block-end:2px}

/* Program pages on computers: the "Your list" line replaces the bar (QA retest 17 Nov 2026, D27). */
.gc-line{display:none;margin:12px 0 0;font-size:14px;line-height:1.5;color:var(--muted,#6b6e75)}
.gc-line.mid{text-align:center;margin-block-start:22px}
.gc-line a{font-weight:600;color:var(--accent-ink,#cf3a27);text-underline-offset:3px}
@media (min-width:1100px){.gc-line{display:block}html.gc-prog body .gc-bar{display:none!important}}

/* ---------- under the list on the checkout page (19 Nov 2026): add another program, what happens next ---------- */
.gc-next[hidden]{display:none}
.gc-more{display:flex;align-items:center;gap:14px;margin-block:12px 32px;padding:14px 16px;border:1.5px dashed #d5d3dc;border-radius:18px;color:var(--ink,#232628);text-decoration:none;transition:border-color .2s,background-color .2s}
.gc-more:hover{border-color:var(--accent,#cf3a27);background:#fff7f5}
.gc-more .gc-plus{flex:0 0 44px;height:44px;display:grid;place-items:center;border-radius:12px;background:#fdecea;color:var(--accent,#cf3a27);font-size:24px;font-weight:500;line-height:1}
.gc-more>span:nth-child(2){flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.35}
.gc-more b{font-weight:600;font-size:15.5px}
.gc-more small{font-size:13px;color:var(--muted,#6b6e75)}
.gc-more .arrow{flex:0 0 20px;width:20px;height:20px;color:var(--accent,#cf3a27)}
.gc-steps{margin:0;padding:0;list-style:none;display:grid;gap:12px}
@media (min-width:1200px){.gc-steps{grid-template-columns:repeat(3,minmax(0,1fr))}}
.gc-steps li{display:flex;gap:12px;align-items:flex-start;padding:16px;border:1px solid var(--line,#e6e7e8);border-radius:18px;background:#fff}
.gc-steps .gc-num{flex:0 0 32px;height:32px;display:grid;place-items:center;border-radius:50%;background:var(--accent,#cf3a27);color:#fff;font-weight:700;font-size:14px}
.gc-steps b{display:block;font-size:15px;line-height:1.35}
.gc-steps p{margin:4px 0 0;font-size:13.5px;line-height:1.5;color:var(--muted,#6b6e75)}
