/* Wave J2 · Cookie consent banner + settings modal.
   v215 · Compact bottom-right pill so it doesn't dominate the page.
   Banner only renders on marketing surfaces; app surfaces auto-accept
   necessary cookies (see cookie-consent.js boot()). */

#aikc-cookie-banner,
#aikc-cookie-modal { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }

#aikc-cookie-banner {
  position: fixed; right: 16px; bottom: 16px; left: auto;
  max-width: 380px; z-index: 99990;
  background: #ffffff; color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
  animation: aikc-cc-slide 240ms ease-out both;
}
@media (prefers-reduced-motion: reduce) {
  #aikc-cookie-banner { animation: none; }
}
@keyframes aikc-cc-slide {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
#aikc-cookie-banner .aikc-cc-copy { font-size: 13px; line-height: 1.45; color: #334155; }
#aikc-cookie-banner .aikc-cc-copy strong { display: inline; margin: 0; font-size: 13px; color: #0f172a; }
#aikc-cookie-banner .aikc-cc-copy a { color: #b45309; text-decoration: underline; }
#aikc-cookie-banner .aikc-cc-actions {
  display: flex; gap: 6px; flex-wrap: nowrap; justify-content: flex-end;
}
#aikc-cookie-banner button {
  font: inherit; cursor: pointer;
  padding: 7px 12px; min-height: 36px; border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff; color: #0f172a; font-weight: 600; font-size: 12.5px;
  white-space: nowrap;
}
#aikc-cookie-banner button:hover { background: #f8fafc; }
#aikc-cookie-banner button:focus-visible { outline: 2px solid #f59e0b; outline-offset: 2px; }
#aikc-cookie-banner button.primary {
  background: #0f172a; color: #fff; border-color: #0f172a;
}
#aikc-cookie-banner button.primary:hover { background: #1e293b; }
#aikc-cookie-banner button.ghost { background: transparent; border-color: transparent; color: #64748b; padding: 7px 8px; }
#aikc-cookie-banner button.ghost:hover { color: #0f172a; background: transparent; }

#aikc-cookie-modal {
  position: fixed; inset: 0; z-index: 99991;
  background: rgba(15, 23, 42, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
#aikc-cookie-modal[hidden] { display: none; }
#aikc-cookie-modal .aikc-cc-dialog {
  background: #fff; color: #0f172a;
  max-width: 460px; width: 100%;
  border-radius: 16px; padding: 22px 22px 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
  max-height: 90vh; overflow: auto;
}
#aikc-cookie-modal h2 { margin: 0 0 4px; font-size: 18px; }
#aikc-cookie-modal p.lede { margin: 0 0 14px; font-size: 13.5px; color: #475569; }
#aikc-cookie-modal .aikc-cc-row {
  display: flex; gap: 12px; align-items: flex-start; justify-content: space-between;
  padding: 12px 0; border-top: 1px solid #f1f5f9;
}
#aikc-cookie-modal .aikc-cc-row:first-of-type { border-top: 0; }
#aikc-cookie-modal .aikc-cc-row label { font-weight: 600; font-size: 14px; }
#aikc-cookie-modal .aikc-cc-row p { margin: 2px 0 0; font-size: 12.5px; color: #475569; }
#aikc-cookie-modal input[type="checkbox"] { width: 18px; height: 18px; margin-top: 3px; }
#aikc-cookie-modal input[disabled] { opacity: 0.6; cursor: not-allowed; }
#aikc-cookie-modal .aikc-cc-footer { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
#aikc-cookie-modal .aikc-cc-footer button {
  font: inherit; cursor: pointer; font-weight: 600; font-size: 13.5px;
  padding: 9px 14px; min-height: 40px; border-radius: 10px;
  border: 1px solid #cbd5e1; background: #f8fafc;
}
#aikc-cookie-modal .aikc-cc-footer button.primary {
  background: #0f172a; color: #fff; border-color: #0f172a;
}

@media (max-width: 520px) {
  #aikc-cookie-banner {
    left: 12px; right: 12px; bottom: 12px;
    max-width: none;
    padding: 12px 14px;
  }
  #aikc-cookie-banner .aikc-cc-copy { font-size: 12.5px; }
  #aikc-cookie-banner .aikc-cc-actions {
    flex-wrap: wrap;
  }
  #aikc-cookie-banner .aikc-cc-actions button { min-height: 40px; padding: 8px 12px; font-size: 13px; }
}

/* No more body padding-bottom — the compact banner sits in the corner. */
body.aikc-cookie-banner-visible { /* intentionally empty */ }
