/* ==========================================================================
   Cookie choices: the banner at the bottom of the page and the
   "Cookie settings" panel. Markup is built by /assets/vl/consent.js.
   Layering: banner 990 (below the CrewHub and back office menus at 999+),
   settings panel 9990 (a modal, covers everything except the first-visit
   virtual airline notice at 10000, which always closes first).
   ========================================================================== */

.vlck, .vlckp {
  --ck-bg: #ffffff; --ck-ink: #0c1220; --ck-soft: #4d5668; --ck-line: rgba(12,18,32,.12);
  --ck-well: #f5f3ef; --ck-acc: var(--v2-accent, #e0282f); --ck-dark: #0c1220; --ck-on-dark: #ffffff;
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ck-ink); box-sizing: border-box;
}
:root[data-theme="dark"] .vlck, :root[data-theme="dark"] .vlckp, .dark .vlck, .dark .vlckp {
  --ck-bg: #0f1524; --ck-ink: #eef2f8; --ck-soft: #9aa6ba; --ck-line: rgba(255,255,255,.1);
  --ck-well: #0a0f1b; --ck-dark: #eef2f8; --ck-on-dark: #0c1220;
}
.vlck *, .vlckp * { box-sizing: border-box; }

/* ── Banner ─────────────────────────────────────────────────────────── */
.vlck {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 990;
  max-width: 1080px; margin: 0 auto;
  background: var(--ck-bg); border: 1px solid var(--ck-line); border-radius: 14px;
  box-shadow: 0 24px 60px -18px rgba(0,0,0,.45);
  overflow: hidden; transform: translateY(24px); opacity: 0;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
}
.vlck[hidden] { display: none; }
.vlck.in { transform: none; opacity: 1; }
.vlck__band { height: 6px; }
.vlck__in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding: 20px 24px; }
.vlck__txt { flex: 1 1 420px; min-width: 0; }
.vlck__eye {
  display: flex; align-items: center; gap: 8px; margin: 0 0 6px;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ck-acc);
}
.vlck__eye i { width: 7px; height: 7px; border-radius: 50%; background: var(--ck-acc); display: inline-block; }
.vlck h2 { margin: 0 0 6px; font-weight: 800; font-stretch: 108%; font-size: 19px; line-height: 1.2; letter-spacing: -.01em; color: var(--ck-ink); }
.vlck p.vlck__msg { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ck-soft); }
.vlck a, .vlckp a { color: var(--ck-ink) !important; text-decoration: underline !important; text-underline-offset: 3px; text-decoration-color: var(--ck-acc) !important; font-weight: 600; }
.vlck__btns { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; }

/* Accept and reject look equally weighted on purpose (ICO guidance) */
.vlck-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font: 600 14.5px/1 "Archivo", ui-sans-serif, system-ui, sans-serif; white-space: nowrap;
  transition: filter .15s, border-color .15s, background .15s;
}
.vlck-btn--yes { background: var(--ck-acc); color: #fff; }
.vlck-btn--no  { background: var(--ck-dark); color: var(--ck-on-dark); }
.vlck-btn--yes:hover, .vlck-btn--no:hover { filter: brightness(1.12); }
.vlck-btn--line { background: transparent; border-color: var(--ck-line); color: var(--ck-ink); }
.vlck-btn--line:hover { border-color: var(--ck-ink); }
.vlck-btn:focus-visible, .vlckp__x:focus-visible, .vlck-sw input:focus-visible + span { outline: 2px solid var(--ck-acc); outline-offset: 3px; }

/* ── Settings panel ─────────────────────────────────────────────────── */
.vlckp {
  position: fixed; inset: 0; z-index: 9990; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(7,11,20,.6); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  opacity: 0; transition: opacity .22s ease;
}
.vlckp[hidden] { display: none; }
.vlckp.in { opacity: 1; }
.vlckp__card {
  position: relative; width: 100%; max-width: 600px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  display: flex; flex-direction: column;
  background: var(--ck-bg); border: 1px solid var(--ck-line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.55); transform: translateY(12px); transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.vlckp.in .vlckp__card { transform: none; }
.vlckp__band { height: 8px; flex: 0 0 auto; }
.vlckp__head { padding: 22px 26px 6px; flex: 0 0 auto; }
.vlckp__head h2 { margin: 0; font-weight: 900; font-stretch: 112%; font-size: 26px; line-height: 1.05; letter-spacing: -.02em; color: var(--ck-ink); }
.vlckp__head p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ck-soft); }
.vlckp__x {
  position: absolute; top: 18px; right: 16px; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--ck-line); background: var(--ck-bg); color: var(--ck-ink); cursor: pointer; font-size: 20px; line-height: 1;
}
.vlckp__body { padding: 14px 26px 6px; overflow: auto; flex: 1 1 auto; }
.vlckp__cat { padding: 16px 0; border-top: 1px solid var(--ck-line); }
.vlckp__cat:first-child { border-top: 0; }
.vlckp__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.vlckp__row h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--ck-ink); }
.vlckp__cat p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--ck-soft); }
.vlckp__always { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ck-soft); white-space: nowrap; }
.vlckp__foot {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding: 16px 26px 20px; flex: 0 0 auto;
  border-top: 1px solid var(--ck-line); background: var(--ck-well);
}
.vlckp__foot .vlck-btn--line { margin-right: auto; }

/* Switch */
.vlck-sw { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; cursor: pointer; }
.vlck-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vlck-sw span {
  position: relative; display: block; width: 50px; height: 28px; border-radius: 999px;
  background: var(--ck-line); border: 1px solid var(--ck-line); transition: background .18s;
}
.vlck-sw span::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .18s;
}
.vlck-sw input:checked + span { background: var(--ck-acc); border-color: var(--ck-acc); }
.vlck-sw input:checked + span::after { transform: translateX(22px); }
.vlck-sw b { position: absolute; left: -9999px; }

/* Tartan stripe (same weave as .tartan in v2.css, repeated so this file works on its own) */
.vlck__band, .vlckp__band {
  background-color: #b3141d; background-image:
    repeating-linear-gradient(45deg, rgba(0,0,0,.10) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(10,10,14,.62) 18px 38px, transparent 38px 43px, rgba(255,255,255,.8) 43px 45px, transparent 45px 50px, rgba(10,10,14,.35) 50px 54px, transparent 54px 72px),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(10,10,14,.62) 18px 38px, transparent 38px 43px, rgba(255,255,255,.8) 43px 45px, transparent 45px 50px, rgba(10,10,14,.35) 50px 54px, transparent 54px 72px);
}

html.vlckp-lock { overflow: hidden; }

@media (max-width: 640px) {
  .vlck { left: 10px; right: 10px; bottom: 10px; }
  .vlck__in { padding: 16px 16px 16px; gap: 12px; }
  .vlck h2 { font-size: 17px; }
  .vlck p.vlck__msg { font-size: 14px; }
  .vlck__btns { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .vlck__btns .vlck-btn--line { grid-column: 1 / -1; order: 3; }
  .vlckp { align-items: flex-end; padding: 10px; }
  .vlckp__head { padding: 20px 18px 4px; }
  .vlckp__body { padding: 10px 18px 4px; }
  .vlckp__foot { padding: 14px 18px 16px; display: grid; grid-template-columns: 1fr 1fr; }
  .vlckp__foot .vlck-btn--line { grid-column: 1 / -1; margin-right: 0; }
  .vlckp__foot .vlck-btn--save { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .vlck, .vlckp, .vlckp__card, .vlck-sw span, .vlck-sw span::after { transition: none; }
}
@media print { .vlck, .vlckp { display: none !important; } }
