.privacy-choice {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mist, #c9dcff);
  font: inherit;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.privacy-choice:hover {
  color: var(--cream, #e8ddc2);
}

.privacy-choice:focus-visible {
  outline: 2px solid var(--blue, #7aa7ff);
  outline-offset: 4px;
}

.analytics-consent[hidden] {
  display: none;
}

.analytics-consent {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(201, 220, 255, 0.24);
  background: rgba(4, 10, 19, 0.98);
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.32);
  color: #e8ddc2;
  font-family: 'Figtree', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.analytics-consent__inner {
  width: min(100%, 980px);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.analytics-consent__copy {
  margin: 0;
  color: rgba(232, 221, 194, 0.84);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
}

.analytics-consent__copy strong {
  display: block;
  margin-bottom: 3px;
  color: #c9dcff;
  font-size: 1rem;
  font-weight: 600;
}

.analytics-consent__copy a {
  color: #c9dcff;
  text-underline-offset: 3px;
}

.analytics-consent__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.analytics-consent__button {
  min-width: 0;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 3px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
}

/* Accept and Reject carry equal visual weight on purpose — neither is
   styled to be the easier click. */
.analytics-consent__button--primary {
  border: 1px solid rgba(122, 167, 255, 0.55);
  background: transparent;
  color: #7aa7ff;
}

.analytics-consent__button--secondary {
  border: 1px solid rgba(201, 220, 255, 0.5);
  background: transparent;
  color: #c9dcff;
}

.analytics-consent__button:hover {
  border-color: #e8ddc2;
  color: #e8ddc2;
}

.analytics-consent__button:focus-visible {
  outline: 2px solid #e8ddc2;
  outline-offset: 3px;
}

@media (min-width: 720px) {
  .analytics-consent__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .analytics-consent__actions {
    grid-template-columns: repeat(2, 128px);
  }
}

@media (prefers-contrast: more) {
  .analytics-consent {
    border-top-width: 3px;
    background: #000000;
  }

  .analytics-consent__copy,
  .analytics-consent__copy strong,
  .analytics-consent__copy a,
  .analytics-consent__button {
    color: #ffffff;
  }

  .analytics-consent__button { border-width: 2px; border-color: #ffffff; }
}

@media (forced-colors: active) {
  .analytics-consent { background: Canvas; color: CanvasText; }
  .privacy-choice,
  .analytics-consent a,
  .analytics-consent button { forced-color-adjust: auto; }
  :focus-visible { outline: 3px solid Highlight !important; }
}
