/* Shared "Choose a character" picker for Fleeca Bank Online, California Mail and Vibes (2026-12-02).
   The same file on all three sites. Counter layout (window 24 / card 18 / tile 12 / control 9, 6 px inside,
   24 px between groups); each site keeps its own accent colour. Light unless the page is dark:
   bank = light only, mail = its theme switch, Vibes = dark unless the visitor chose light (cp-darkdefault). */
.cp, .cp-page {
  --cp-page: #f1f0ec; --cp-win: #e9e7e1; --cp-card: #f6f5f1; --cp-tile: #ffffff; --cp-well: #e6e3dc; --cp-line: #cfccc4;
  --cp-text: #1b1c1e; --cp-muted: #696e77; --cp-shadow: 0 24px 70px rgba(0, 0, 0, .14);
  --cp-font: Inter, Tajawal, 'Segoe UI', Roboto, Arial, sans-serif;
  --cp-mono: 'JetBrains Mono', Consolas, 'Courier New', monospace;
}
:root[data-theme="dark"] .cp, :root[data-theme="dark"] .cp-page, .cp-darkdefault {
  --cp-page: #0c0d0e; --cp-win: #121315; --cp-card: #1a1c1f; --cp-tile: #23262b; --cp-well: #2c3036; --cp-line: #3a3f46;
  --cp-text: #f3f4f6; --cp-muted: #949ba5; --cp-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}
:root[data-theme="light"] .cp-darkdefault {
  --cp-page: #f1f0ec; --cp-win: #e9e7e1; --cp-card: #f6f5f1; --cp-tile: #ffffff; --cp-well: #e6e3dc; --cp-line: #cfccc4;
  --cp-text: #1b1c1e; --cp-muted: #696e77; --cp-shadow: 0 24px 70px rgba(0, 0, 0, .14);
}
.cp { display: flex; justify-content: center; padding: 48px 24px 72px; color: var(--cp-text); font: 500 13px/1.4 var(--cp-font); }
/* full page (mail, Vibes): own top bar + the picker; scrolls on its own */
.cp-page { position: fixed; inset: 0; overflow-y: auto; background: var(--cp-page); color: var(--cp-text); font: 500 13px/1.4 var(--cp-font); z-index: 1; }
.cp-top { display: flex; align-items: center; gap: 12px; padding: 14px 24px; }
.cp-brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: var(--cp-text); text-decoration: none; }
.cp-brand:hover { text-decoration: none; }
.cp-mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgb(var(--cp-acc)); color: #fff; flex: none; }
.cp-mark svg { width: 20px; height: 20px; }
.cp-mark svg.cp-vmark { width: 28px; height: 28px; }
.cp-top-end { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.cp-top-end form { margin: 0; }
.cp-page .cp-tbtn { height: 36px; min-width: 36px; padding: 0 12px; border-radius: 9px; background: var(--cp-tile); color: var(--cp-muted); font: 600 13px var(--cp-font); display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; border: 0; cursor: pointer; }
.cp-page .cp-tbtn:hover { color: var(--cp-text); background: var(--cp-well); text-decoration: none; }
.cp-page .cp-tbtn.cp-out { padding: 0; }
.cp-page .cp-tbtn.cp-out:hover { color: #e5484d; }
.cp-page .cp-tbtn[lang="ar"] { font-family: Tajawal, var(--cp-font); font-size: 14px; }
.cp-tbtn .cp-ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .cp-tbtn .cp-flip { transform: scaleX(-1); }
/* site accents (r, g, b) and the accent text colour */
.cp-site-bank { --cp-acc: 35, 123, 75; --cp-on: #1d6b40; }
.cp-site-mail { --cp-acc: 15, 108, 189; --cp-on: #115ea3; }
:root[data-theme="dark"] .cp-site-mail { --cp-acc: 71, 158, 245; --cp-on: #62abf5; }
.cp-site-vibes { --cp-acc: 255, 61, 119; --cp-on: #ff6b98; }
:root[data-theme="light"] .cp-site-vibes { --cp-acc: 232, 51, 109; --cp-on: #d61f5c; }

[dir="rtl"] .cp, [dir="rtl"] .cp-page { font-size: 14.5px; line-height: 1.6; }
[dir="rtl"] .cp *, [dir="rtl"] .cp-page * { letter-spacing: 0 !important; }
.cp *, .cp *::before, .cp *::after { box-sizing: border-box; }
.cp form { margin: 0; }
.cp button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; text-align: inherit; margin: 0; }
.cp-ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .cp-flip { transform: scaleX(-1); }
.cp-grow { flex: 1; min-width: 0; }
.cp-ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-win { width: 100%; max-width: 520px; align-self: flex-start; background: var(--cp-win); border-radius: 24px; padding: 6px; box-shadow: var(--cp-shadow); }
.cp-card { background: var(--cp-card); border-radius: 18px; padding: 6px; }
.cp-head { display: flex; align-items: center; gap: 12px; padding: 8px 8px 14px; }
.cp-logo { width: 44px; height: 44px; border-radius: 12px; background: rgb(var(--cp-acc)); color: #fff; display: grid; place-items: center; flex: none; }
.cp-logo .cp-ic { width: 22px; height: 22px; }
.cp-head h1 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; color: var(--cp-text); }
.cp-head p { margin: 2px 0 0; color: var(--cp-muted); font-size: 12px; }
[dir="rtl"] .cp-head p { font-size: 13px; }
.cp-back { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: var(--cp-muted); background: var(--cp-tile); flex: none; text-decoration: none; }
.cp-back:hover { color: var(--cp-text); background: var(--cp-well); text-decoration: none; }
.cp-g + .cp-g { margin-top: 24px; }
.cp-lab { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--cp-muted); padding: 0 6px; margin: 0 0 6px; }
[dir="rtl"] .cp-lab { font-size: 12.5px; font-weight: 500; text-transform: none; }
.cp-rows { display: flex; flex-direction: column; gap: 6px; }
.cp .cp-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 7px 12px 7px 8px; border-radius: 12px; background: var(--cp-tile); color: var(--cp-text); transition: background .12s, box-shadow .12s; }
[dir="rtl"] .cp .cp-row { padding: 7px 8px 7px 12px; }
.cp .cp-row:hover { background: var(--cp-well); }
.cp .cp-row:focus-visible { outline: 0; box-shadow: 0 0 0 2px rgba(var(--cp-acc), .55); }
.cp .cp-row.cp-on { background: rgba(var(--cp-acc), .13); box-shadow: inset 0 0 0 1.5px rgb(var(--cp-acc)); }
.cp-row b { display: block; font-weight: 600; }
.cp-row small { display: block; color: var(--cp-muted); font-size: 12px; }
[dir="rtl"] .cp-row small { font-size: 13px; }
.cp-ltr { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .cp-ltr { text-align: right; }
.cp-lead { width: 36px; height: 36px; border-radius: 9px; background: var(--cp-well); color: var(--cp-muted); display: grid; place-items: center; flex: none; }
.cp-row:hover .cp-lead { background: var(--cp-line); color: var(--cp-text); }
.cp-row.cp-on .cp-lead { background: rgba(var(--cp-acc), .2); color: var(--cp-on); }
.cp-amt { font: 600 13px var(--cp-mono); white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.cp-go { color: var(--cp-muted); }
.cp-row.cp-ck b, .cp-row.cp-ck .cp-amt { color: var(--cp-muted); }
.cp-empty { padding: 34px 20px 30px; text-align: center; color: var(--cp-muted); }
.cp-empty .cp-ic { width: 34px; height: 34px; stroke-width: 1.6; }
.cp-empty p { margin: 10px 0 0; font-size: 13px; }
[dir="rtl"] .cp-empty p { font-size: 14.5px; }
.cp-alert { margin: 0 0 6px; padding: 10px 12px; border-radius: 12px; background: rgba(240, 96, 93, .12); color: var(--cp-text); }

/* The chosen character in each site's header; it leads back to the picker. */
.cp-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; max-width: 300px; padding-inline: 10px 5px; border-radius: 18px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.cp-chip:hover { text-decoration: none; }
.cp-chip .cp-ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cp-chip-name { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cp-chip-sw { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 13px; font-size: 12.5px; flex: none; }
@media (max-width: 1180px) { .cp-chip-sw span { display: none; } .cp-chip-sw { padding: 0 6px; } }
@media (max-width: 640px) { .cp-chip-name { max-width: 110px; } }
/* bank (light header) */
.cp-chip-bank { border: 1px solid #d9e1d6; background: #f6f8f2; color: #1b3025; }
.cp-chip-bank:hover { border-color: #b9d3c1; background: rgba(35, 123, 75, .1); }
.cp-chip-bank .cp-chip-sw { border: 1px solid #d9e1d6; background: #fffef9; color: #237b4b; }
.who .btn-icon { width: 36px; height: 36px; padding: 0; }
@media (min-width: 981px) and (max-width: 1180px) { .has-cp { gap: 16px; } .has-cp .mainnav a { padding: 0 9px; } .has-cp .who { gap: 10px; } }
/* mail (blue header bar) */
.cp-chip-mail { height: 32px; background: rgba(255, 255, 255, .14); color: #fff; }
.cp-chip-mail:hover { background: rgba(255, 255, 255, .24); }
.cp-chip-mail .cp-chip-sw { height: 24px; background: rgba(255, 255, 255, .2); }
.hdr .cp-chip-mail { flex: none; margin-inline-start: 12px; }
.cp-chip-mail .ic { width: 16px; height: 16px; flex: none; }
@media (max-width: 760px) { .cp-chip-mail .cp-chip-name { display: none; } .hdr .cp-chip-mail { margin-inline-start: auto; } }
/* Vibes (top bar, dark by default) */
.cp-chip-vibes { background: rgba(127, 127, 127, .14); color: inherit; }
.cp-chip-vibes:hover { background: rgba(127, 127, 127, .22); }
.cp-chip-vibes .cp-chip-sw { background: rgba(255, 61, 119, .14); color: #ff3d77; }
.rail .cp-chip-vibes { margin: 0 6px 10px; max-width: none; height: 40px; }
.rail .cp-chip-vibes .cp-chip-name { flex: 1; }
@media (max-width: 1279px) {
  .rail .cp-chip-vibes { width: 46px; height: 46px; margin: 0 auto 10px; padding: 0; justify-content: center; }
  .rail .cp-chip-vibes .cp-chip-me, .rail .cp-chip-vibes .cp-chip-name, .rail .cp-chip-vibes .cp-chip-sw span { display: none; }
  .rail .cp-chip-vibes .cp-chip-sw { background: none; padding: 0; }
}
.topbar .cp-chip-vibes { padding: 0 5px; background: none; }
.topbar .cp-chip-vibes .cp-chip-me, .topbar .cp-chip-vibes .cp-chip-name, .topbar .cp-chip-vibes .cp-chip-sw span { display: none; }
.topbar .cp-chip-vibes .cp-chip-sw { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 18px; }
@media (prefers-reduced-motion: reduce) { .cp-row { transition: none; } }
