.ntm-consent,
.ntm-consent-reopen {
  font: 14px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ntm-consent {
  position: fixed;
  z-index: 99999;
  right: 16px;
  bottom: 16px;
  width: min(680px, calc(100vw - 32px));
  max-height: min(84vh, 760px);
  overflow: auto;
  padding: 22px;
  border: 1px solid #d2d6cb;
  background: #fffefa;
  color: #202923;
  box-shadow: 0 12px 44px rgb(0 0 0 / 22%);
}

.ntm-consent[hidden],
.ntm-consent-reopen[hidden],
.ntm-consent__preferences[hidden] {
  display: none !important;
}

.ntm-consent__copy strong {
  display: block;
  font-size: 18px;
}

.ntm-consent__copy p {
  max-width: 62ch;
  margin: 8px 0 6px;
  color: #5e685f;
  font-size: 14px;
}

.ntm-consent__security {
  display: block;
  max-width: 72ch;
  margin: 0 0 18px;
  color: #69736b;
  font-size: 11px;
}

.ntm-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ntm-consent button {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #26372d;
  border-radius: 3px;
  background: #26372d;
  color: #fffefa;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ntm-consent button:hover {
  background: #b8d66c;
  color: #202923;
}

.ntm-consent button:focus-visible,
.ntm-consent-reopen:focus-visible,
.ntm-consent__category input:focus-visible {
  outline: 3px solid #8aa857;
  outline-offset: 3px;
}

.ntm-consent .ntm-consent__settings {
  background: transparent;
  color: #202923;
}

.ntm-consent__preferences {
  display: grid;
  gap: 8px;
  max-height: 42vh;
  overflow: auto;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #d2d6cb;
}

.ntm-consent__category {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 3px;
  background: #f5f6f1;
  cursor: pointer;
}

.ntm-consent__category input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #708b4a;
}

.ntm-consent__category span {
  display: grid;
  gap: 2px;
}

.ntm-consent__category strong {
  font-size: 12px;
}

.ntm-consent__category small {
  color: #5e685f;
  font-size: 11px;
}

.ntm-consent__category--required {
  grid-template-columns: 18px minmax(0, 1fr);
  cursor: default;
}

.ntm-consent__category--required::before {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  margin-top: 2px;
  border-radius: 50%;
  background: #26372d;
  color: #fffefa;
  content: "✓";
  font-size: 12px;
  font-weight: 700;
}

.ntm-consent__preferences > button {
  justify-self: start;
  margin-top: 4px;
}

.ntm-consent-reopen {
  position: fixed;
  z-index: 99998;
  left: 16px;
  right: auto;
  bottom: 16px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #26372d;
  background: #fffefa;
  color: #202923;
  font-size: 11px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgb(0 0 0 / 14%);
}

.ntm-consent--dark {
  border-color: #354a3d;
  background: #14221a;
  color: #e7eee8;
  box-shadow: 0 12px 44px rgb(0 0 0 / 45%);
}

.ntm-consent--dark .ntm-consent__copy p,
.ntm-consent--dark .ntm-consent__security,
.ntm-consent--dark .ntm-consent__category small {
  color: #afbbb2;
}

.ntm-consent--dark button {
  border-color: #b8ed6e;
  background: #b8ed6e;
  color: #111a14;
}

.ntm-consent--dark button:hover {
  background: #c8f58b;
}

.ntm-consent--dark .ntm-consent__settings {
  border-color: #718477;
  background: transparent;
  color: #e7eee8;
}

.ntm-consent--dark .ntm-consent__preferences {
  border-color: #354a3d;
}

.ntm-consent--dark .ntm-consent__category {
  background: #1b2a21;
}

.ntm-consent--dark .ntm-consent__category--required::before {
  background: #b8ed6e;
  color: #111a14;
}

.ntm-consent-reopen:hover {
  background: #eef0e7;
}

@media (max-width: 600px) {
  .ntm-consent {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    max-height: 84vh;
    padding: 16px;
  }

  .ntm-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .ntm-consent__actions button {
    min-height: 44px;
  }

  .ntm-consent__settings {
    grid-column: 1 / -1;
  }

  .ntm-consent__preferences {
    max-height: 34vh;
  }

  .ntm-consent__preferences > button {
    justify-self: stretch;
  }

  .ntm-consent-reopen {
    left: 10px;
    right: auto;
    bottom: 10px;
  }
}
