/* Registry 9679 (His Highness, 19 Nov 2026 04:44): "I always want a fixed footer panel ... A panel which can expand."
   One slim bar fixed to the bottom of the window on every learn page; its control opens a panel upward with the
   description, the links and the languages. Pages keep bottom space equal to the bar. Nothing floats over content:
   the help button sits in the bar, WhatsApp sits in the top bar, the "Next step" offer is a slim strip in the page.
   Markup: classes/footbar.php. Behaviour: footpanel.js. Overrides the older bar rules in inner.css (registry 9456). */
:root { --cfc-fp-h: 32px; }
body:has(#cfc-footbar) { padding-bottom: var(--cfc-fp-pad, var(--cfc-fp-h)) !important; }
/* Engine pages scroll inside #page: it ends above the bar. */
body:has(#cfc-footbar) #page.drawers { margin-bottom: 0; padding-bottom: 8px; }
body:has(#cfc-footbar) #page-footer.cfc-footer { margin: 0 !important; padding: 0 !important; border: 0 !important; min-height: 0 !important; background: none !important; }
body:has(#cfc-footbar) .drawer.drawer-left, body:has(#cfc-footbar) .drawer.drawer-right { bottom: var(--cfc-fp-h); height: auto; }

#cfc-footbar.cfc-fp { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 1045; height: auto; display: block; padding: 0; gap: 0;
  background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  font: 500 12px/1.3 Inter, "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #454545; }
#cfc-footbar.cfc-fp * { box-sizing: border-box; }
#cfc-footbar.cfc-fp a { color: #171717; text-decoration: none; }
#cfc-footbar.cfc-fp a:hover, #cfc-footbar.cfc-fp a:focus-visible { color: #7a5b00; }

/* The bar */
#cfc-footbar .fp-bar { height: var(--cfc-fp-h); display: flex; align-items: center; gap: 16px; padding: 0 12px 0 8px;
  background: rgba(250, 250, 248, .95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(23, 23, 23, .07); white-space: nowrap; }
#cfc-footbar .fp-bar > span, #cfc-footbar .fp-bar a { display: inline-flex; align-items: center; gap: 6px; }
#cfc-footbar .fp-tog { display: inline-flex; align-items: center; gap: 8px; height: 24px; padding: 0 8px; margin: 0; border: 0; border-radius: 12px;
  background: transparent; color: #454545; font: inherit; cursor: pointer; flex: 0 0 auto; }
#cfc-footbar .fp-tog:hover, #cfc-footbar .fp-tog:focus-visible { background: rgba(23, 23, 23, .06); color: #171717; outline: none; }
#cfc-footbar .fp-tog img { width: 33px; height: auto; display: block; opacity: .85; }
#cfc-footbar .fp-yr { font-size: 11.5px; color: #5f5f5f; }
#cfc-footbar .fp-chev { display: inline-flex; transition: transform .25s ease; }
#cfc-footbar.open .fp-chev { transform: rotate(180deg); }
#cfc-footbar .fb-who b { font-weight: 600; color: #171717; overflow: hidden; text-overflow: ellipsis; max-width: 26vw; }
#cfc-footbar .fb-links { margin-left: auto; margin-inline-start: auto; margin-inline-end: 0; display: flex; gap: 16px; }
#cfc-footbar .fb-gap { margin-inline-start: auto; }
#cfc-footbar .fb-links a i { font-style: normal; font-size: 10px; font-weight: 700; background: #171717; color: #fff; border-radius: 9px; padding: 1px 6px; }

/* The help button: small, soft blur, in the bar, clear of everything. */
#cfc-footbar .fp-help { flex: 0 0 auto; }
#cfc-footbar .fp-help:empty { display: none; }
#cfc-footbar .fp-help .ica-h-bubble { position: static !important; inset: auto !important; width: 24px !important; height: 24px !important;
  border-radius: 50% !important; border: 1px solid rgba(23, 23, 23, .1) !important; background: rgba(255, 255, 255, .6) !important;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #171717 !important; box-shadow: none !important;
  display: inline-flex !important; align-items: center; justify-content: center; padding: 0 !important; margin: 0 !important; cursor: pointer; transform: none !important; }
#cfc-footbar .fp-help .ica-h-bubble svg { width: 13px !important; height: 13px !important; }
#cfc-footbar .fp-help .ica-h-bubble:hover { background: rgba(255, 255, 255, .9) !important; }
/* The helper's chat opens above the bar. */
html.cfc-fp-on .ica-h-panel { bottom: calc(var(--cfc-fp-h) + 8px) !important; }
/* Before the bubble moves into the bar it never floats over the page. */
html.cfc-fp-on .ica-h > .ica-h-bubble { visibility: hidden; }

/* The panel: opens upward, closed by default. */
#cfc-footbar .fp-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
#cfc-footbar.open .fp-panel { grid-template-rows: 1fr; }
#cfc-footbar .fp-panel > .fp-in { overflow: hidden; min-height: 0; }
#cfc-footbar.open .fp-panel > .fp-in { overflow: auto; max-height: min(62vh, 420px); scrollbar-width: none; }
#cfc-footbar .fp-panel > .fp-in::-webkit-scrollbar { display: none; }
#cfc-footbar .fp-in { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .9fr); gap: 14px 32px;
  padding: 0 24px; background: rgba(250, 250, 248, .97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 -8px 24px rgba(23, 23, 23, .07); }
#cfc-footbar.open .fp-in { padding: 18px 24px 16px; border-top: 1px solid rgba(23, 23, 23, .08); }
#cfc-footbar .fp-about { display: flex; gap: 14px; align-items: flex-start; }
#cfc-footbar .fp-about img { width: 62px; height: auto; flex: 0 0 auto; }
#cfc-footbar .fp-about b { display: block; font-size: 13.5px; font-weight: 600; color: #171717; margin: 0 0 4px; }
#cfc-footbar .fp-about b small { font-size: 9px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #8a6a12; margin-inline-start: 6px; }
#cfc-footbar .fp-about p { margin: 0 0 4px; font-size: 12px; line-height: 1.5; max-width: 58ch; white-space: normal; }
#cfc-footbar .fp-about .fp-tag { color: #8a6a12; font-weight: 600; }
#cfc-footbar .fp-about .fp-fine { color: #7a7a7a; font-size: 11px; }
#cfc-footbar .fp-links { display: grid; grid-template-columns: repeat(2, max-content); gap: 6px 24px; align-content: start; font-size: 12.5px; }
#cfc-footbar .fp-langs { display: flex; flex-wrap: wrap; gap: 6px 14px; align-content: start; font-size: 12.5px; }
#cfc-footbar .fp-langs a.on { font-weight: 700; color: #7a5b00; }

/* WhatsApp in the top bar (moved there by footpanel.js), never floating. */
.ica-wa.cfc-wa-top { position: static !important; inset: auto !important; flex: 0 0 auto; width: 30px !important; height: 30px !important;
  border-radius: 50%; background: rgba(229, 247, 235, .8); color: #126738 !important; filter: none !important; opacity: 1 !important;
  display: inline-flex !important; align-items: center; justify-content: center; margin: 0 4px; }
.ica-wa.cfc-wa-top svg { width: 18px !important; height: 18px !important; }
html.cfc-fp-on body > .ica-wa:not(.cfc-wa-top) { visibility: hidden; }

/* The cookie choice (isocertification.africa consent.js): docked as a slim row on top of the bar until answered. */
#cfc-footbar .ica-cc { position: static !important; inset: auto !important; max-width: none !important; width: auto; margin: 0; z-index: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 6px 14px !important; border-radius: 0 !important; border-width: 1px 0 0 !important;
  box-shadow: none !important; transform: none !important; font: 400 12px/1.4 Inter, system-ui, sans-serif !important; white-space: normal; }
#cfc-footbar .ica-cc p { margin: 0 !important; font-size: 12px !important; }
#cfc-footbar .ica-cc p.h { font-weight: 600; }
#cfc-footbar .ica-cc p.s { display: none; }
#cfc-footbar .ica-cc .b { margin: 0 0 0 auto !important; gap: 8px !important; }
#cfc-footbar .ica-cc button { min-height: 26px !important; padding: 5px 12px !important; font-size: 12px !important; }
#cfc-footbar .ica-cc .p { margin-left: 4px !important; font-size: 12px !important; }
html.cfc-fp-on body > .ica-cc { visibility: hidden; }
.dash .lu-hacts .ica-wa.cfc-wa-top { margin: 0; align-self: center; }
.dash header.hdr > .ica-wa.cfc-wa-top { margin-left: auto; margin-inline-start: auto; margin-right: 10px; }

/* The "Next step" offer: one slim strip inside the page (local_cfcupsell offer.php). */
.cfcupsell.cfc-strip { position: static !important; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; max-width: none !important;
  margin: 0 0 12px; padding: 6px 10px 6px 12px !important; border: 1px solid rgba(23, 23, 23, .08) !important; border-inline-start: 3px solid #c9a227 !important;
  border-radius: 10px !important; background: rgba(255, 255, 255, .7) !important; box-shadow: none !important;
  font: 500 12.5px/1.35 Inter, system-ui, sans-serif !important; color: #2a2a2a !important; }

/* Signed-in home, urgent fix (registry 9679 with 9663, 05:14 "FRUSTRATING"): nothing in a course card overlaps. */
.dash .tile > * { flex-shrink: 0; }
.dash .tile .meta:first-of-type { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 767.98px) {
  #cfc-footbar .fp-in { grid-template-columns: 1fr; gap: 12px; }
  #cfc-footbar.open .fp-in { padding: 14px 16px 12px; }
  #cfc-footbar .fp-about img { width: 48px; }
}
@media (max-width: 575.98px) {
  #cfc-footbar .fp-bar { gap: 10px; padding: 0 8px 0 4px; }
  #cfc-footbar .fp-nm, #cfc-footbar .fp-bar > .fb-time, #cfc-footbar .fb-links a span { display: none; }
  #cfc-footbar .fb-links { gap: 12px; }
  #cfc-footbar .fb-who b { max-width: 34vw; }
}
/* The signed-in home's dock (a bottom row on a phone) sits above the bar, never on it. */
@media (max-width: 960px) {
  body.dash:has(#cfc-footbar) .dock { bottom: calc(var(--cfc-fp-pad, var(--cfc-fp-h)) + 8px); }
}
@media print { #cfc-footbar { display: none !important; } body:has(#cfc-footbar) { padding-bottom: 0 !important; } }
