.ntc-panel,
.ntc-panel * {
  box-sizing: border-box;
}

.ntc-panel {
  position: fixed;
  z-index: 2147483000;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  color: #17324d;
  font-family: inherit;
}

.ntc-card {
  width: min(760px, 100%);
  max-height: min(82vh, 720px);
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(11, 79, 134, .2);
  border-radius: 22px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 24px 70px rgba(7, 35, 59, .28);
  pointer-events: auto;
}

.ntc-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.ntc-mark {
  display: inline-grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #0b4f86, #0c77b8);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(11, 79, 134, .25);
}

.ntc-kicker {
  margin: 0 0 3px;
  color: #0b6aa5;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.ntc-card h2 {
  margin: 0;
  color: #123554;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.2;
}

.ntc-card > p {
  margin: 0;
  color: #40556b;
  font-size: .98rem;
  line-height: 1.6;
}

.ntc-details {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.ntc-details[hidden] {
  display: none;
}

.ntc-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 16px;
  border: 1px solid #d8e3ec;
  border-radius: 14px;
  background: #f8fbfd;
  cursor: pointer;
}

.ntc-option strong,
.ntc-option small {
  display: block;
}

.ntc-option small {
  margin-top: 4px;
  color: #526579;
  line-height: 1.4;
}

.ntc-switch {
  position: relative;
  width: 48px;
  height: 28px;
  flex: 0 0 48px;
}

.ntc-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.ntc-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #8999a7;
  transition: background .18s ease;
}

.ntc-switch span::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .22);
  transition: transform .18s ease;
}

.ntc-switch input:checked + span {
  background: #0b6fae;
}

.ntc-switch input:checked + span::after {
  transform: translateX(20px);
}

.ntc-switch input:focus-visible + span {
  outline: 3px solid #f4b940;
  outline-offset: 3px;
}

.ntc-switch input:disabled + span {
  opacity: .68;
}

.ntc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.ntc-button,
.ntc-inline-button,
.ntc-manage {
  font: inherit;
  cursor: pointer;
}

.ntc-button {
  min-height: 48px;
  padding: 11px 16px;
  border: 2px solid transparent;
  border-radius: 12px;
  font-weight: 750;
}

.ntc-button--reject,
.ntc-button--accept {
  color: #fff;
}

.ntc-button--reject {
  background: #294861;
}

.ntc-button--accept {
  background: #0b6fae;
}

.ntc-button--customize {
  border-color: #0b6fae;
  background: #fff;
  color: #0b5e95;
}

.ntc-button:hover,
.ntc-inline-button:hover,
.ntc-manage:hover {
  filter: brightness(.94);
}

.ntc-button:focus-visible,
.ntc-inline-button:focus-visible,
.ntc-manage:focus-visible {
  outline: 3px solid #f4b940;
  outline-offset: 3px;
}

.ntc-card .ntc-note {
  margin-top: 14px;
  font-size: .82rem;
  text-align: center;
}

.ntc-note a {
  color: #075f99;
  font-weight: 700;
}

.ntc-manage {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid currentColor;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  font-size: .84rem;
}

.ntc-embed-placeholder {
  display: grid;
  min-height: 300px;
  padding: 28px;
  place-content: center;
  border: 1px solid #d5e3ed;
  border-radius: inherit;
  background: linear-gradient(145deg, #edf6fb, #f8fbfd);
  color: #17324d;
  text-align: center;
}

.ntc-embed-placeholder[hidden] {
  display: none;
}

.ntc-embed-placeholder p {
  max-width: 42ch;
  margin: 8px auto 16px;
  color: #526579;
  line-height: 1.55;
}

.ntc-inline-button {
  justify-self: center;
  min-height: 44px;
  padding: 9px 15px;
  border: 0;
  border-radius: 10px;
  background: #0b6fae;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 680px) {
  .ntc-panel {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .ntc-card {
    max-height: 88vh;
    padding: 19px;
    border-radius: 18px;
  }

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

  .ntc-option {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ntc-panel *,
  .ntc-panel *::before,
  .ntc-panel *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
