.np-consent-banner {
  --np-consent-ink: #17202a;
  --np-consent-muted: #4d5a66;
  --np-consent-border: #b7c2cc;
  --np-consent-surface: #ffffff;
  --np-consent-action: #164e63;
  box-sizing: border-box;
  width: min(100% - 2rem, 54rem);
  margin: 1rem auto;
  padding: 1.25rem;
  color: var(--np-consent-ink);
  background: var(--np-consent-surface);
  border: 1px solid var(--np-consent-border);
  border-radius: .5rem;
  box-shadow: 0 .25rem 1rem rgb(23 32 42 / 12%);
  font: inherit;
  line-height: 1.45;
  position: relative;
  z-index: 10;
}

.np-consent-banner[hidden],
.np-consent-settings[hidden] {
  display: none;
}

.np-consent-banner h2,
.np-consent-banner h3 {
  color: var(--np-consent-ink);
  margin: 0 2.5rem .5rem 0;
  font-size: 1.1rem;
  line-height: 1.25;
}

.np-consent-banner h3 {
  margin-top: 1.25rem;
}

.np-consent-description,
.np-consent-banner > a,
.np-consent-gpc-note,
.np-consent-opt-out-note,
.np-consent-opt-out-title {
  margin: .5rem 0;
}

.np-consent-banner > a {
  color: var(--np-consent-action);
  display: inline-block;
  font-weight: 600;
}

.np-consent-close {
  appearance: none;
  border: 0;
  color: var(--np-consent-ink);
  background: transparent;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  padding: .2rem .45rem;
  position: absolute;
  right: .65rem;
  top: .65rem;
}

.np-consent-actions,
.np-consent-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}

.np-consent-action {
  appearance: none;
  background: var(--np-consent-action);
  border: 2px solid var(--np-consent-action);
  border-radius: .3rem;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 2.75rem;
  padding: .55rem 1rem;
  text-align: center;
}

.np-consent-actions .np-consent-action {
  flex: 1 1 10rem;
}

.np-consent-action:hover {
  filter: brightness(.9);
}

.np-consent-action:focus-visible,
.np-consent-close:focus-visible,
.np-consent-banner a:focus-visible,
.np-consent-category input:focus-visible + .np-consent-category-label {
  outline: 3px solid #f2b84b;
  outline-offset: 2px;
}

.np-consent-settings {
  border-top: 1px solid var(--np-consent-border);
  margin-top: 1rem;
  padding-top: .25rem;
}

.np-consent-category {
  border-bottom: 1px solid rgb(183 194 204 / 65%);
  padding: .75rem 0;
}

.np-consent-category-heading {
  align-items: center;
  display: flex;
  gap: .6rem;
}

.np-consent-category-heading input {
  block-size: 1.15rem;
  inline-size: 1.15rem;
}

.np-consent-category-label {
  cursor: pointer;
  font-weight: 700;
}

.np-consent-category-heading input:disabled + .np-consent-category-label {
  cursor: default;
}

.np-consent-category-description {
  color: var(--np-consent-muted);
  font-size: .95rem;
  margin: .35rem 0 0 1.8rem;
}

.np-consent-opt-out-title {
  font-weight: 700;
}

@media (max-width: 36rem) {
  .np-consent-banner {
    width: calc(100% - 1rem);
    margin: .5rem auto;
    padding: 1rem;
  }

  .np-consent-actions,
  .np-consent-settings-actions {
    flex-direction: column;
  }

  .np-consent-action {
    width: 100%;
  }

  .np-consent-actions .np-consent-action {
    flex: 0 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .np-consent-banner * {
    scroll-behavior: auto;
    transition: none;
  }
}
