/* Storage notice (cookie-notice.js): fixed and compact, so it never shifts the page. */
.cn {
  --cn-bg: #ffffff;
  --cn-ink: #161816;
  --cn-muted: #5c625d;
  --cn-line: #e3e5dc;
  --cn-soft: #f3f4ee;
  --cn-green: #0e6b3f;
  --cn-on: #ffffff;
  color: var(--cn-ink);
  background: var(--cn-bg);
  border: 1px solid var(--cn-line);
  font-family: var(--font, system-ui, sans-serif);
}

@media (prefers-color-scheme: dark) {
  .cn {
    --cn-bg: #1d201d;
    --cn-ink: #f3f4ee;
    --cn-muted: #a3aba5;
    --cn-line: #333833;
    --cn-soft: #272b27;
    --cn-green: #d6f55c;
    --cn-on: #161816;
  }
}

.cn-banner {
  position: fixed;
  left: max(12px, env(safe-area-inset-left, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  max-width: 720px;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(22, 24, 22, 0.16);
}

.cn-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 520px) {
  .cn-banner {
    flex-direction: row;
    align-items: center;
  }

  .cn-choices,
  .cn-sheet .cn-choices {
    flex-direction: row;
  }
}

.cn-current {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
}

.cn-text {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.cn-link,
.cn-more {
  padding: 0;
  border: 0;
  background: none;
  color: var(--cn-green);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.cn-btn {
  flex: 1;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--cn-green);
  color: var(--cn-on);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cn-btn-full {
  min-height: 48px;
}

.cn :is(button, a):focus-visible {
  outline: 3px solid var(--cn-green);
  outline-offset: 2px;
}

.cn-sheet-wrap {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
}

.cn-scrim {
  position: absolute;
  inset: 0;
  background: rgba(22, 24, 22, 0.55);
}

.cn-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px;
  border-radius: 24px;
}

.cn-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cn-sheet h2 {
  margin: 0;
  font-family: var(--display, inherit);
  font-size: 1.3rem;
}

.cn-x {
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  color: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.cn-intro {
  margin: 0;
  color: var(--cn-muted);
  font-size: 0.92rem;
}

.cn-cat {
  padding: 12px;
  border-radius: 16px;
  background: var(--cn-soft);
}

.cn-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cn-cat h3 {
  margin: 0;
  font-size: 0.95rem;
}

.cn-cat p {
  margin: 6px 0 0;
  color: var(--cn-muted);
  font-size: 0.85rem;
}

.cn-pill {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--cn-line);
  color: var(--cn-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.cn-pill.cn-on {
  background: #d3f0de;
  color: #0e6b3f;
}

.cn-more {
  align-self: flex-start;
  font-size: 0.9rem;
}

/* The "Cookie settings" footer control. */
button.cn-open {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.foot-cols .cn-open {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
}

.foot-cols .cn-open:hover,
.doc-foot .cn-open:hover {
  color: var(--lime, #d6f55c);
}

.doc-foot .cn-open:hover {
  color: var(--green, #0e6b3f);
}
