.nhn-consent {
  background: #fff;
  border: 1px solid #dce5e2;
  border-radius: 0.8rem 0.8rem 0 0;
  bottom: 0;
  box-shadow: 0 -16px 50px rgba(11, 31, 42, 0.16);
  color: #0b1f2a;
  left: 50%;
  max-height: min(82vh, 42rem);
  max-width: 70rem;
  overflow: auto;
  position: fixed;
  transform: translateX(-50%);
  width: min(calc(100% - 2rem), 70rem);
  z-index: 99998;
}

.nhn-consent[hidden],
.nhn-consent__settings[hidden] {
  display: none;
}

.nhn-consent__inner {
  align-items: center;
  display: grid;
  gap: 1rem 2rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 1.35rem;
}

.nhn-consent h2,
.nhn-consent p {
  margin: 0;
}

.nhn-consent h2 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.nhn-consent p,
.nhn-consent label {
  font-size: 0.88rem;
}

.nhn-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.nhn-consent button,
.nhn-consent-open {
  background: #0e7c78;
  border: 2px solid #0e7c78;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
}

.nhn-consent button[data-nhn-consent-essential] {
  background: #fff;
  color: #0b1f2a;
}

.nhn-consent__settings {
  border-top: 1px solid #dce5e2;
  display: grid;
  gap: 0.8rem;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 1rem;
}

.nhn-consent__settings label {
  align-items: start;
  display: flex;
  gap: 0.55rem;
}

.nhn-consent__settings small {
  color: #53636b;
  display: block;
  margin-top: 0.2rem;
}

@media (max-width: 720px) {
  .nhn-consent {
    border-radius: 0;
    width: 100%;
  }

  .nhn-consent__inner,
  .nhn-consent__settings {
    grid-template-columns: 1fr;
  }
}
