.nct-consent[hidden] {
  display: none;
}

.nct-consent {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.62);
  font-family: inherit;
}

.nct-consent__panel {
  width: min(760px, 100%);
  display: grid;
  gap: 20px;
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: 6px;
  border: 1px solid #161616;
  background: #fff;
  color: #111;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.36);
}

.nct-consent__panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: #ffd100;
}

.nct-consent__content h2 {
  margin: 0 0 8px;
  color: #111;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.nct-consent__content p {
  margin: 0 0 16px;
  color: #2b2b2b;
  font-size: 15px;
  line-height: 1.55;
}

.nct-consent__choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 32px;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid #dedede;
  border-radius: 5px;
  background: #fafafa;
  font-size: 15px;
}

.nct-consent__choice:has(input:checked) {
  border-color: #ffd100;
  background: #fff9d8;
}

.nct-consent__choice input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: #ffd100;
}

.nct-consent__choice span {
  display: grid;
  gap: 3px;
}

.nct-consent__choice small {
  color: #555;
  font-size: 13px;
  line-height: 1.35;
}

.nct-consent__privacy {
  display: inline-block;
  margin-top: 8px;
  color: #111;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #ffd100;
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

.nct-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.nct-consent .nct-button,
.nct-consent-open {
  min-height: 40px;
  border: 1px solid transparent !important;
  border-radius: 4px !important;
  padding: 10px 16px !important;
  font: inherit;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  appearance: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.nct-consent .nct-button:hover,
.nct-consent-open:hover {
  transform: translateY(-1px);
}

.nct-consent .nct-button--primary {
  background: #ffd100 !important;
  color: #111 !important;
  border-color: #111 !important;
  box-shadow: 0 4px 0 #111 !important;
}

.nct-consent .nct-button--secondary {
  background: #111 !important;
  color: #fff !important;
  border-color: #111 !important;
}

.nct-consent .nct-button--ghost {
  background: #fff !important;
  color: #111 !important;
  border-color: #111 !important;
}

.nct-consent-open {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 2147482999;
  background: #ffd100;
  color: #111;
  border-color: #111;
  box-shadow: 0 4px 0 #111, 0 10px 28px rgba(0, 0, 0, 0.2);
}

@media (max-width: 560px) {
  .nct-consent {
    padding: 10px;
  }

  .nct-consent__panel {
    padding: 18px;
  }

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