/* Alphinance · Cookie banner
 * Fixed to the bottom of the viewport, same container width and glass treatment as the header bar.
 * Uses the site tokens (tokens.css) when present; the fallbacks keep it correct on its own. */
.ck-banner {
  position: fixed; z-index: 70;
  left: max(16px, env(safe-area-inset-left, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, calc(env(safe-area-inset-bottom, 0px) + 8px));
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 14px 14px 24px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg, var(--background, #16181d)) 84%, transparent);
  border: 1px solid color-mix(in srgb, var(--foreground, #f3f2ee) 12%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 18px 48px -16px rgb(0 0 0 / .6);
  font-family: var(--font-sans, "Geist", system-ui, -apple-system, "Segoe UI", sans-serif);
  animation: ckIn .35s cubic-bezier(.22, .61, .36, 1) both;
}
.ck-banner[hidden] { display: none !important; }
.ck-text { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 14px; line-height: 20px; font-weight: 400; color: var(--muted-foreground, #9a9ea6); }
.ck-text a { color: var(--foreground, #f3f2ee); text-decoration: underline; text-underline-offset: 3px; }
.ck-text a:hover { color: var(--alpha-300, #7ccdb1); }
.ck-accept {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 24px; border: 0; border-radius: 9999px; cursor: pointer;
  font-family: inherit; font-size: 16px; line-height: 24px; font-weight: 500;
  background: var(--primary, #2da47c); color: var(--primary-foreground, #05140f);
  transition: background-color .15s;
}
.ck-accept:hover { background: color-mix(in srgb, var(--primary, #2da47c) 80%, transparent); }
.ck-accept:focus-visible, .ck-text a:focus-visible { outline: 2px solid var(--ring, #2da47c); outline-offset: 3px; }

@keyframes ckIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ck-banner { animation: none; } }

/* Phones: text above, full-width button */
@media (max-width: 639.98px) {
  .ck-banner { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; border-radius: 16px; }
  .ck-text { font-size: 13px; line-height: 18px; }
  .ck-accept { width: 100%; }
}
