.nmc[hidden],
.nmc [hidden] {
  display: none !important;
}

.nmc {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  font-family: 'Inter', sans-serif;
}

.nmc__card {
  position: absolute;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom, 0px));
  width: min(920px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 44px));
  overflow: auto;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: auto;
  color: #031d30;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(3, 29, 48, 0.14);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(3, 29, 48, 0.28);
  padding: 28px 30px;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nmc--visible .nmc__card:not([hidden]) {
  opacity: 1;
  transform: translate(-50%, 0);
}

.nmc__notice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 38px;
}

.nmc__copy h2 {
  margin: 0 0 7px;
  color: #031d30;
  font-family: 'Titillium Web', sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.1;
}

.nmc__copy p {
  max-width: 680px;
  margin: 0;
  color: #5d7383;
  font-size: 0.96rem;
  line-height: 1.55;
}

.nmc__copy a {
  color: #087fb4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nmc__copy a[aria-disabled='true'] {
  cursor: default;
}

.nmc__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(145px, 1fr));
  gap: 12px;
}

.nmc__button,
.nmc__footer-trigger,
.nmc__close {
  appearance: none;
  font: inherit;
  cursor: pointer;
}

.nmc__button {
  min-height: 48px;
  border-radius: 9px;
  padding: 12px 24px;
  border: 1px solid transparent;
  font-family: 'Titillium Web', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.nmc__button:hover {
  transform: translateY(-1px);
}

.nmc__button:focus-visible,
.nmc__footer-trigger:focus-visible,
.nmc__close:focus-visible {
  outline: 3px solid rgba(0, 198, 255, 0.34);
  outline-offset: 3px;
}

.nmc__button--primary {
  color: #fff;
  background: linear-gradient(135deg, #078fcc, #00c6ff);
  box-shadow: 0 10px 24px rgba(0, 166, 224, 0.22);
}

.nmc__button--primary:hover {
  box-shadow: 0 14px 30px rgba(0, 166, 224, 0.3);
}

.nmc__button--secondary {
  color: #031d30;
  background: transparent;
  border-color: rgba(3, 29, 48, 0.35);
}

.nmc__button--secondary:hover {
  background: #eef6fa;
  border-color: rgba(3, 29, 48, 0.58);
}

.nmc__preferences {
  width: min(760px, calc(100vw - 32px));
}

.nmc__close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #5d7383;
  background: #eff5f8;
  border: 0;
  border-radius: 50%;
  font-size: 1.55rem;
  line-height: 1;
}

.nmc__preferences .nmc__copy {
  padding-right: 52px;
}

.nmc__choices {
  margin-top: 22px;
  border-top: 1px solid #dce7ed;
}

.nmc__choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 14px 0;
  color: #031d30;
  border-bottom: 1px solid #dce7ed;
  cursor: pointer;
}

.nmc__choice strong,
.nmc__choice span {
  display: block;
}

.nmc__choice strong {
  font-family: 'Titillium Web', sans-serif;
  font-size: 1.02rem;
  line-height: 1.2;
}

.nmc__choice div > span {
  margin-top: 3px;
  color: #708493;
  font-size: 0.82rem;
  line-height: 1.4;
}

.nmc__choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.nmc__switch {
  position: relative;
  width: 48px;
  height: 27px;
  flex: 0 0 auto;
  background: #cad7df;
  border-radius: 999px;
  transition: background 160ms ease;
}

.nmc__switch span {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 19px;
  height: 19px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(3, 29, 48, 0.22);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nmc__choice input:focus-visible + .nmc__switch {
  outline: 3px solid rgba(0, 198, 255, 0.34);
  outline-offset: 3px;
}

.nmc__choice input:checked + .nmc__switch,
.nmc__switch--locked {
  background: #00addf;
}

.nmc__choice input:checked + .nmc__switch span,
.nmc__switch--locked span {
  transform: translateX(21px);
}

.nmc__switch--locked {
  opacity: 0.58;
}

.nmc__preferences-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 22px;
}

.nmc__preferences-footer .nmc__button {
  min-width: 210px;
}

.nmc__footer-trigger {
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  opacity: 0.72;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nmc__footer-trigger:hover {
  opacity: 1;
}

.nmc-embed {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  background: #031d30;
  border: 1px solid rgba(0, 198, 255, 0.24);
}

.nmc-embed--video {
  aspect-ratio: 16 / 9;
}

.nmc-embed--map {
  min-height: 420px;
}

.nmc-embed__inner {
  max-width: 430px;
  padding: 34px;
  text-align: center;
}

.nmc-embed__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  color: #00c6ff;
  background: rgba(0, 198, 255, 0.1);
  border: 1px solid rgba(0, 198, 255, 0.26);
  border-radius: 50%;
}

.nmc-embed__icon svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.nmc-embed__inner p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.nmc-embed .nmc__button--secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
}

.nmc-embed .nmc__button--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 760px) {
  .nmc__card {
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 20px);
    max-height: calc(100vh - 24px);
    padding: 23px 20px;
    border-radius: 15px;
  }

  .nmc__notice {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .nmc__actions {
    grid-template-columns: 1fr 1fr;
  }

  .nmc__button {
    padding-inline: 14px;
  }

  .nmc__choice {
    gap: 15px;
  }

  .nmc-embed--map {
    min-height: 340px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nmc__card,
  .nmc__button,
  .nmc__switch,
  .nmc__switch span {
    transition: none !important;
  }
}

