/* Advertising choices: shared colors follow the site's light and dark themes. */
#ns-ads-consent.ns-ads-consent {
  position: fixed;
  z-index: 95;
  inset: auto auto max(16px, env(safe-area-inset-bottom)) 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 24px;
  width: min(780px, calc(100% - 32px));
  max-height: 50vh;
  max-height: 50dvh;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 20px 24px;
  border: 2px solid var(--line, #20231f);
  background: var(--paper, #f5f3ea);
  color: var(--ink, #20231f);
  box-shadow: var(--ns-shadow, 5px 5px 0 #20231f);
  font: 14px/1.5 Arial, Helvetica, sans-serif;
  text-align: left;
}

#ns-ads-consent[hidden] { display: none !important; }
.ns-ads-copy { min-width: 0; overflow-wrap: anywhere; }
.ns-ads-copy strong { display: block; font-size: 16px; margin-bottom: 7px; }
.ns-ads-copy p { margin: 0 0 8px; color: inherit; font-size: inherit; line-height: inherit; }
.ns-ads-copy a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ns-ads-actions { display: grid; gap: 10px; min-width: 140px; }
.ns-ads-actions button[data-ad-choice] {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border: 2px solid var(--line, #20231f);
  border-radius: 0;
  background: var(--white, #fffefa);
  color: var(--ink, #20231f);
  font: 700 13px/1.4 Arial, Helvetica, sans-serif;
  box-shadow: 3px 3px 0 var(--line, #20231f);
  cursor: pointer;
}
.ns-ads-actions button[data-ad-choice]:hover:not(:disabled) {
  background: var(--lime, #d8fa60);
  color: #20231f;
}
.ns-ads-actions button[data-ad-choice]:disabled { opacity: .65; cursor: not-allowed; }
.ns-ads-settings {
  display: inline-block;
  min-height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ns-ads-status {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 2px solid var(--line, #20231f);
  border-left-width: 6px;
  background: var(--paper, #f5f3ea);
  color: var(--ink, #20231f);
  font: 14px/1.6 Arial, Helvetica, sans-serif;
  overflow-wrap: anywhere;
}
.ns-ads-status:empty { display: none; }
.ns-ads-status a { color: inherit; text-decoration: underline; }
.ns-ads-actions button:focus-visible,
.ns-ads-copy a:focus-visible,
.ns-ads-settings:focus-visible {
  outline: 3px solid var(--theme-focus, #56761a);
  outline-offset: 4px;
}

@media (max-width: 600px) {
  #ns-ads-consent.ns-ads-consent {
    inset-inline: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100% - 24px);
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    font-size: 13px;
  }
  .ns-ads-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; }
  .ns-ads-actions button[data-ad-choice] { padding-inline: 8px; }
}
