/* ==========================================================================
   consent.css — cookie/consent banner. Inherits the Ink & Wisp tokens from
   styles.css, so it tracks light/dark automatically. Injected on every page.
   ========================================================================== */

.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
  /* visibility:hidden also removes the closed banner from the tab order and the
     accessibility tree; delayed so the exit animation still plays. */
  visibility: hidden;
  opacity: 0;
  transform: translateY(120%);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, visibility 0s linear 0.55s;
}
.consent.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, visibility 0s;
}

.consent-card {
  width: min(760px, 100%);
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 20px;
  background: var(--surface, #15121b);
  border: 1px solid var(--hairline-strong, rgba(128, 128, 128, 0.25));
  border-radius: var(--r-xl, 12px);
  box-shadow: var(--shadow-pop, 0 24px 60px -20px rgba(0, 0, 0, 0.6));
}

.consent-text { flex: 1; min-width: 0; }

.consent-title {
  margin: 0 0 4px;
  font-family: var(--sans, sans-serif);
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink, inherit);
}
.consent-body {
  margin: 0;
  font-family: var(--sans, sans-serif);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted, inherit);
}
.consent-link {
  color: var(--accent-text, inherit);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.consent-link:hover { text-decoration-thickness: 2px; }

.consent-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.consent-btn {
  font-family: var(--sans, sans-serif);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1;
  padding: 10px 18px;
  border-radius: var(--r-lg, 9px);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.consent-btn:active { transform: translateY(1px); }
.consent-btn:focus-visible { outline: 2px solid var(--accent, #8b7dff); outline-offset: 2px; }

.consent-accept {
  background: var(--btn-fill, #6c5cff);
  color: var(--on-accent, #fff);
}
.consent-accept:hover { background: var(--btn-fill-strong, #5a49f0); }

.consent-decline {
  background: transparent;
  color: var(--ink, inherit);
  border-color: var(--hairline-strong, rgba(128, 128, 128, 0.3));
}
.consent-decline:hover { background: var(--surface-2, rgba(128, 128, 128, 0.1)); }

@media (max-width: 640px) {
  .consent { padding: 10px; }
  .consent-card {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
  }
  .consent-actions { flex-direction: row; }
  .consent-btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .consent { transition: opacity 0.2s ease, visibility 0s; transform: none; }
}
