.nq-consent,
.nq-consent * {
  box-sizing: border-box;
}

.nq-consent {
  position: fixed;
  z-index: 2147483000;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  left: max(16px, env(safe-area-inset-left));
  width: min(1060px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin-inline: auto;
  overflow: auto;
  border: 1px solid #17201d;
  border-radius: 10px;
  color: #17201d;
  background: #fffdf8;
  box-shadow: 12px 14px 0 rgba(18, 55, 47, 0.18), 0 28px 80px rgba(18, 55, 47, 0.22);
  font-family: "IBM Plex Sans Variable", "IBM Plex Sans", "Avenir Next", sans-serif;
  text-align: left;
}

.nq-consent[hidden],
.nq-consent [hidden] {
  display: none !important;
}

.nq-consent__edge {
  height: 7px;
  background: linear-gradient(90deg, #d7f266 0 61%, #f13b16 61% 100%);
}

.nq-consent__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 34px;
  padding: 25px 27px 26px;
  align-items: center;
}

.nq-consent__copy h2,
.nq-consent__settings h2 {
  margin: 5px 0 10px;
  color: #0d2b25;
  font-size: clamp(21px, 2.1vw, 30px);
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.nq-consent__copy p,
.nq-consent__category p {
  margin: 0;
  color: #53635e;
  font-size: 14px;
  line-height: 1.48;
}

.nq-consent a {
  color: #0d2b25;
  font-weight: 650;
  text-underline-offset: 3px;
}

.nq-consent__eyebrow {
  color: #cf2f0f;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.nq-consent__actions,
.nq-consent__settings-actions {
  display: grid;
  gap: 8px;
}

.nq-consent__button,
.nq-consent__text-button {
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid #17201d;
  border-radius: 5px;
  color: #17201d;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 680;
  cursor: pointer;
}

.nq-consent__button--accept {
  border-color: #12372f;
  color: #12372f;
  background: #d7f266;
}

.nq-consent__text-button {
  min-height: 34px;
  border-color: transparent;
  color: #53635e;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nq-consent button:hover {
  transform: translateY(-1px);
}

.nq-consent button:focus-visible,
.nq-consent a:focus-visible,
.nq-consent input:focus-visible,
.nq-cookie-settings:focus-visible {
  outline: 3px solid rgba(241, 59, 22, 0.28);
  outline-offset: 3px;
}

.nq-consent__settings {
  padding: 24px 27px 27px;
}

.nq-consent__settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.nq-consent__categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 17px;
}

.nq-consent__category {
  min-width: 0;
  padding: 17px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #d8d3c8;
  border-radius: 7px;
  background: #faf7f0;
}

.nq-consent__category strong {
  display: block;
  margin-bottom: 5px;
  color: #0d2b25;
  font-size: 15px;
}

.nq-consent__category input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: #12372f;
}

.nq-consent__always {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: #12372f;
  background: #effac7;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nq-consent__settings-actions {
  grid-template-columns: repeat(2, minmax(0, 240px));
  justify-content: end;
  margin-top: 14px;
}

.nq-cookie-settings {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 620;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nq-consent {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    left: max(10px, env(safe-area-inset-left));
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    box-shadow: 6px 7px 0 rgba(18, 55, 47, 0.16), 0 20px 55px rgba(18, 55, 47, 0.2);
  }

  .nq-consent__summary,
  .nq-consent__categories {
    grid-template-columns: 1fr;
  }

  .nq-consent__summary {
    gap: 18px;
    padding: 20px;
  }

  .nq-consent__settings {
    padding: 20px;
  }

  .nq-consent__settings-head {
    display: block;
  }

  .nq-consent__settings-head > a {
    display: inline-block;
    margin-top: 4px;
  }

  .nq-consent__category {
    padding: 14px;
  }

  .nq-consent__settings-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nq-consent button:hover {
    transform: none;
  }
}
