/* The cookie bar: a small centred card at the bottom that gets out of the way as soon as someone answers. */
.nx-cookie {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(380px, calc(100vw - 32px));
  padding: 16px 16px 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  background: rgba(14, 14, 18, .9);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  backdrop-filter: saturate(160%) blur(20px);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .7);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 16px) scale(.98);
  transition: opacity .35s ease, transform .45s cubic-bezier(.22, 1, .36, 1);
}
.nx-cookie.is-open { opacity: 1; transform: translate(-50%, 0) scale(1); }

.nx-cookie-text { margin: 0; color: #a1a1aa; font-size: 13.5px; line-height: 1.5; }
.nx-cookie-text a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.nx-cookie-text a:hover { text-decoration-color: #fff; }

.nx-cookie-buttons { display: flex; gap: 8px; width: 100%; }
.nx-cookie-btn {
  flex: 1 1 0;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  color: #e4e4e7;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.nx-cookie-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nx-cookie-btn:active { transform: scale(.97); }
.nx-cookie-btn.is-primary { background: #fafafa; box-shadow: none; color: #0a0a0a; font-weight: 700; }
.nx-cookie-btn.is-primary:hover { background: #fff; box-shadow: 0 8px 22px -10px rgba(255, 255, 255, .5); }

@media (prefers-reduced-motion: reduce) {
  .nx-cookie { transition-duration: .01ms; }
}
