[data-nerd-consent] {
  --nc-primary: #0066cc;
  --nc-on-primary: #ffffff;
  --nc-surface: #1a1a1a;
  --nc-on-surface: #ffffff;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000;
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--nc-surface);
  color: var(--nc-on-surface);
  font-family: system-ui, sans-serif;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
}

[data-nerd-consent="preview"] {
  position: relative;
  z-index: 1;
  left: auto;
  right: auto;
  bottom: auto;
  transform: none;
  max-width: none;
  width: 100%;
}

[data-nerd-consent][data-nc-preset="centered-modal"] {
  left: 50%;
  right: auto;
  bottom: 1.5rem;
  transform: translateX(-50%);
  width: min(28rem, calc(100% - 2rem));
  border-radius: 8px;
}

[data-nerd-consent="preview"][data-nc-preset="centered-modal"] {
  transform: none;
  margin: 0 auto;
}

[data-nerd-consent][data-nc-preset="compact-chip"] {
  left: auto;
  right: 1rem;
  bottom: 1rem;
  width: min(22rem, calc(100% - 2rem));
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

[data-nerd-consent="preview"][data-nc-preset="compact-chip"] {
  margin-left: auto;
}

[data-nerd-consent] h2 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

[data-nerd-consent] p {
  margin: 0 0 0.75rem;
}

[data-nerd-consent] .nc-logo {
  margin-bottom: 0.75rem;
}

[data-nerd-consent] .nc-logo img {
  display: block;
  max-height: 2rem;
  max-width: 10rem;
  object-fit: contain;
}

[data-nerd-consent] button {
  margin: 0.25rem 0.5rem 0.25rem 0;
  padding: 0.5rem 0.875rem;
  border: 1px solid color-mix(in srgb, var(--nc-primary) 80%, #000);
  border-radius: 4px;
  background: var(--nc-primary);
  color: var(--nc-on-primary);
  font: inherit;
  cursor: pointer;
}

[data-nerd-consent] button[data-consent="reject"],
[data-nerd-consent] button[data-consent="customize"],
[data-nerd-consent] button[data-consent="back"] {
  background: transparent;
  color: var(--nc-on-surface);
  border-color: var(--nc-on-surface);
}

[data-nerd-consent] button:focus-visible {
  outline: 3px solid var(--nc-on-surface);
  outline-offset: 2px;
}

[data-nerd-consent] .nc-watermark {
  font-size: 12px;
  margin-top: 12px;
  opacity: 0.75;
}

[data-nerd-consent] .nc-watermark a {
  color: inherit;
  text-decoration: underline;
}

[data-nerd-consent] .nc-impact {
  font-size: 12px;
  line-height: 1.45;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  opacity: 0.92;
}

[data-nerd-consent] .nc-impact a {
  color: #8fd694;
  text-decoration: underline;
  font-weight: 600;
}

[data-nerd-consent] .nc-prefs {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}

[data-nerd-consent] .nc-prefs li {
  margin: 0.35rem 0;
}

[data-nerd-consent] .nc-prefs label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
}

[data-nerd-consent] .nc-required {
  font-size: 0.75rem;
  opacity: 0.75;
}

[data-nerd-consent][data-view="preferences"] {
  max-height: min(70vh, 28rem);
  overflow-y: auto;
}
