/* MUNDP cookie notice — one quiet card, bottom left, shown once.
   Self-contained: only .ck-* classes, and it borrows the theme tokens with
   fallbacks so it still looks right if theme.css has not landed yet. */

.ck-notice {
  position: fixed;
  left: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  /* above the page, below the intro lightbox (9999) so it never fights it */
  z-index: 9000;
  box-sizing: border-box;
  width: min(23.5rem, calc(100vw - 2.5rem));
  padding: 1.05rem 1.15rem 1.1rem;
  border: 1px solid var(--hairline, rgba(0, 0, 0, 0.08));
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  backdrop-filter: blur(22px) saturate(1.8);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 14px 38px rgba(0, 0, 0, 0.11);
  color: var(--ink, #1d1d1f);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* no backdrop-filter (Firefox on some setups) would leave the card see
   through, so fall back to a solid panel there */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .ck-notice {
    background: #fff;
  }
}

.ck-notice.is-in {
  opacity: 1;
  transform: none;
}

.ck-notice.is-out {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition-duration: 0.28s;
  pointer-events: none;
}

.ck-title {
  margin: 0 0 0.3rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--ink, #1d1d1f);
}

.ck-text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-2, #6e6e73);
}

.ck-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.95rem;
}

.ck-ok {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  padding: 0.5rem 1.1rem;
  background: var(--accent, #0356f0);
  color: #fff;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.ck-ok:hover {
  background: #0246c9;
}

.ck-ok:active {
  transform: scale(0.97);
}

.ck-more {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-2, #6e6e73);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ck-more:hover {
  color: var(--accent, #0356f0);
}

@media (max-width: 30rem) {
  .ck-notice {
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }

  /* the same 44px thumb target the rest of the site's floating controls use */
  .ck-ok,
  .ck-more {
    min-height: 44px;
  }

  .ck-actions {
    margin-top: 0.6rem;
  }
}

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

  .ck-notice,
  .ck-notice.is-out {
    transform: none;
  }

  .ck-ok:active {
    transform: none;
  }
}

@media print {
  .ck-notice {
    display: none;
  }
}
