/* Uses the existing UrbanBites tokens. Both choices have equal weight. */
.ub-analytics-choice[hidden], .ub-analytics-close[hidden] { display: none !important; }
.ub-analytics-choice {
  position: fixed; z-index: 45; inset-inline: 24px; bottom: 24px;
  width: min(940px, calc(100% - 48px)); margin-inline: auto; padding: 24px 28px;
  border: 1px solid var(--line, #dce5dc); border-radius: var(--radius-card, 22px);
  background: #fff; color: var(--ink, #18382c); box-shadow: 0 12px 44px rgba(11,48,38,.18);
  max-height: 85vh; max-height: 85dvh; overflow-y: auto; overscroll-behavior: contain;
  text-align: start;
}
.ub-analytics-heading { display: flex; gap: 16px; align-items: start; justify-content: space-between; margin-bottom: 12px; }
.ub-analytics-heading h2 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -.02em; }
.ub-analytics-choice p { font-size: .9375rem; line-height: 1.65; }
.ub-analytics-choice p + p { margin-top: 10px; }
.ub-analytics-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.ub-analytics-actions button {
  flex: 1 1 220px; min-height: 48px; padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--forest, #123e32); background: var(--forest, #123e32);
  color: #fff; font: inherit; font-weight: 700; line-height: 1.3; cursor: pointer;
}
.ub-analytics-actions button:hover { background: var(--forest-dark, #0b3026); }
.ub-analytics-choice a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ub-analytics-status { color: var(--muted, #5b6b61); }
.ub-analytics-close { background: none; border: 0; padding: 0 6px; color: var(--forest, #123e32); font: inherit; min-width: 44px; min-height: 44px; cursor: pointer; }
.ub-analytics-footer {
  border: 0; padding: 6px 0; min-height: 44px; background: transparent; color: inherit;
  font: inherit; font-size: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 4px;
}
.ub-analytics-footer:hover { color: var(--lime, #d7ee8b); }
.ub-analytics-footer:focus-visible { outline: 2px solid var(--lime, #d7ee8b); outline-offset: 4px; border-radius: 4px; }
@media (max-width: 640px) {
  .ub-analytics-choice { inset-inline: 12px; bottom: 12px; width: calc(100% - 24px); padding: 20px; }
  .ub-analytics-heading h2 { font-size: 1.25rem; }
  .ub-analytics-actions { gap: 10px; }
  .ub-analytics-actions button { flex-basis: 100%; }
}
