/* Consent uses the website palette, typography and CTA radii. */
.cookie-ui {
  --cookie-bg: var(--stone, #FCFBF8);
  --cookie-fg: var(--navy, #07111B);
  --cookie-muted: var(--slate, #446080);
  --cookie-line: var(--limestone, #DDDCD6);
  --cookie-button-bg: var(--navy, #07111B);
  --cookie-button-fg: var(--stone, #FCFBF8);
  color: var(--cookie-fg);
  font: 400 14px/1.5 var(--font-text, 'Public Sans', sans-serif);
  text-align: left;
  color-scheme: light;
}
html[data-notes-theme="dark"] .cookie-ui {
  --cookie-bg: #0C141D;
  --cookie-fg: #E9EFF5;
  --cookie-muted: #9FB0C1;
  --cookie-line: #334454;
  --cookie-button-bg: #E9EFF5;
  --cookie-button-fg: #0C141D;
  color-scheme: dark;
}
.cookie-ui [hidden], [data-cookie-preferences][hidden] { display: none !important; }
.cookie-banner {
  position: fixed;
  z-index: 200;
  inset: auto 24px 24px;
  max-width: 1120px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px;
  max-height: calc(100svh - 48px);
  overflow: auto;
  border: 1px solid var(--cookie-line);
  border-radius: var(--radius-lg, 16px);
  background: var(--cookie-bg);
  box-shadow: 0 8px 32px rgba(7, 17, 27, .16);
}
.cookie-ui h2, .cookie-ui h3 { font-family: inherit; letter-spacing: -.02em; font-weight: 500; }
.cookie-banner h2 { font-size: 16px; line-height: 1.4; margin-bottom: 6px; }
.cookie-ui p { color: var(--cookie-muted); font-size: 14px; line-height: 1.5; }
.cookie-ui a { color: var(--cookie-fg); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; flex: none; gap: 8px; flex-wrap: wrap; }
.cookie-button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--cookie-button-bg);
  border-radius: var(--radius-primary, 5px);
  font: 500 13px/1.4 var(--font-text, 'Public Sans', sans-serif);
  cursor: pointer;
}
.cookie-choice, .cookie-save { color: var(--cookie-button-fg); background: var(--cookie-button-bg); }
.cookie-customise { color: var(--cookie-fg); background: transparent; border-radius: var(--radius-secondary, 16px); }
.cookie-button:hover { opacity: .85; }
.cookie-ui :is(button, a, input):focus-visible { outline: 2px solid var(--cookie-fg); outline-offset: 3px; }
.cookie-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(600px, calc(100% - 32px));
  max-height: calc(100svh - 48px);
  padding: 32px;
  overflow: auto;
  border: 1px solid var(--cookie-line);
  border-radius: var(--radius-lg, 16px);
  color: var(--cookie-fg);
  background: var(--cookie-bg);
  box-shadow: 0 16px 64px rgba(7, 17, 27, .22);
}
.cookie-dialog::backdrop { background: rgba(7, 17, 27, .48); }
.cookie-dialog h2 { margin: 0 32px 10px 0; font-size: 24px; line-height: 1.25; }
.cookie-dialog h2:focus { outline: none; }
.cookie-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--cookie-fg); font: 400 28px/1 sans-serif; cursor: pointer; }
.cookie-categories { margin: 22px 0; }
.cookie-category { display: flex; align-items: center; gap: 24px; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--cookie-line); }
.cookie-category h3, .cookie-category strong { display: block; margin-bottom: 5px; font-size: 15px; font-weight: 500; }
.cookie-description { display: block; color: var(--cookie-muted); font-size: 14px; }
.cookie-category input { flex: none; width: 22px; height: 22px; accent-color: var(--cookie-button-bg); cursor: pointer; }
.cookie-always { flex: none; color: var(--cookie-muted); font-size: 12px; }
.cookie-ui .cookie-information { font-size: 12px; }
.cookie-dialog-actions { margin-top: 22px; }
.cookie-preferences { display: inline; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.footer-col .cookie-preferences { color: var(--sky); font-size: .92rem; align-self: flex-start; }
.cookie-preferences:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal-content .cookie-preferences { text-decoration: underline; text-underline-offset: 3px; }
.footer-col .cookie-preferences:hover { color: var(--brass); }
.cookie-embed-placeholder { padding: 24px; margin-top: 20px; border: 1px solid var(--limestone); border-radius: var(--radius-lg); background: var(--stone); color: var(--navy); }
.cookie-embed-placeholder p { margin: 8px 0 16px; font-size: 14px; color: var(--slate); }
.cookie-embed-placeholder .cookie-button { color: var(--stone); background: var(--navy); border-color: var(--navy); }
.cookie-embed-placeholder a { text-decoration: underline; text-underline-offset: 3px; }
.cookie-policy-table { overflow-x: auto; margin-block: 24px; }
.cookie-policy-table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.cookie-policy-table :is(th, td) { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--limestone); overflow-wrap: anywhere; }
.cookie-policy-table th { font-weight: 500; color: var(--navy); }
.legal-content .cookie-policy-table table { min-width: 32rem; }
.cookie-policy-table caption { padding: 14px; text-align: left; font-weight: 500; }
.cookie-policy-table code { font-size: 12px; }
@media (max-width: 1000px) { .cookie-banner { flex-direction: column; align-items: stretch; gap: 16px; } }
@media (max-width: 600px) {
  .cookie-banner { inset: auto 16px 16px; padding: 20px; max-height: calc(100svh - 32px); }
  .cookie-dialog { padding: 24px; }
  .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-actions :is(.cookie-customise, .cookie-save) { grid-column: 1 / -1; }
  .cookie-category { gap: 16px; }
}
