/* The analytics consent prompt (consent.js), shared by /carte/ and the pages.
   A fixed card of its own, never inside a panel or bottom sheet. Both answers
   are the same button. */
.pm-consent {
  /* On /carte/ the shared theme's palette tokens are defined and win; the
     server-rendered pages do not load theme.css and keep these fallbacks. */
  --c-bg: var(--surface, #ffffff); --c-fg: var(--text, #1b2130); --c-muted: var(--text-2, #4b5366);
  --c-line: var(--line, #cfd3dc); --c-focus: var(--focus, #0b6bcb);
  position: fixed; z-index: 60; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(420px, calc(100vw - 32px)); box-sizing: border-box; padding: 18px 18px 16px;
  background: var(--c-bg); color: var(--c-fg); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(27, 33, 48, 0.1), 0 10px 32px rgba(27, 33, 48, 0.22);
  font: 400 15px/1.45 var(--font, Geist, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
}
@media (prefers-color-scheme: dark) {
  .pm-consent:not(.pm-consent-light) { --c-bg: #1c1e22; --c-fg: #e8e8e6; --c-muted: #a3a7ad; --c-line: #3a3d44; --c-focus: #7ab7ff; }
}
.pm-consent[hidden] { display: none; }
.pm-consent h2 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.pm-consent p { margin: 0 0 14px; color: var(--c-muted); font-size: 14px; }
.pm-consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.pm-consent-actions button {
  flex: 1 1 0; min-width: 120px; min-height: 44px; padding: 0 16px; border-radius: 10px;
  border: 1.5px solid var(--c-fg); background: var(--c-bg); color: var(--c-fg);
  font: inherit; font-weight: 600; cursor: pointer;
}
.pm-consent-actions button:hover { background: var(--c-fg); color: var(--c-bg); }
.pm-consent-actions a { flex-basis: 100%; color: var(--c-muted); font-size: 13.5px; text-underline-offset: 3px; }
.pm-consent :focus-visible, .pm-consent-open:focus-visible { outline: 2px solid var(--c-focus, #0b6bcb); outline-offset: 2px; }
.pm-consent-open { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 720px) {
  .pm-consent { left: 8px; right: 8px; width: auto; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
}
