/* Cookie banner: bottom corner, never blocks the page. */
.ck {
  position: fixed;
  inset-inline-start: 20px;
  bottom: 20px;
  z-index: 300;
  width: min(440px, calc(100vw - 40px));
  padding: 22px;
  border-radius: 18px;
  background: #15161a;
  color: #f1f2f4;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.8);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .35s cubic-bezier(.22,1,.36,1), transform .45s cubic-bezier(.22,1,.36,1);
}
html[lang="ar"] .ck { font-family: 'Cairo', Tahoma, sans-serif; }
.ck.is-open { opacity: 1; transform: none; }
.ck-text { margin: 0 0 16px; font-size: 15.5px; line-height: 1.5; }
.ck-policy { color: inherit; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.ck-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ck-btn {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.ck-btn:hover { background: rgba(255,255,255,.1); }
.ck-btn:active { transform: scale(.97); }
.ck-primary { background: #f4f5f7; color: #0a0b0d; border-color: #f4f5f7; }
.ck-primary:hover { background: #fff; }
.ck-btn:focus-visible, .ck-policy:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

html[data-mode="light"] .ck { background: #fff; color: #0d1220; border-color: #dfe3ea; box-shadow: 0 24px 60px -24px rgba(11,26,58,.35); }
html[data-mode="light"] .ck-btn { border-color: #b9c0cc; }
html[data-mode="light"] .ck-btn:hover { background: #eef1f6; }
html[data-mode="light"] .ck-primary { background: #2563eb; color: #fff; border-color: #2563eb; }
html[data-mode="light"] .ck-primary:hover { background: #1e40af; }
html[data-mode="light"] .ck-btn:focus-visible, html[data-mode="light"] .ck-policy:focus-visible { outline-color: #2563eb; }

@media (prefers-reduced-motion: reduce) { .ck { transition: none; } }
