/* Scoped to the staging-only marketing popup. The dialog scrolls; its bar does not show. */
html.wnot-mkt-open,
body.wnot-mkt-open {
  overflow: hidden !important;
}

html.wnot-mkt-open {
  scrollbar-gutter: stable;
}

.wnot-mkt,
.wnot-mkt * {
  box-sizing: border-box;
}

.wnot-mkt {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 18px;
  font-family: inherit;
  color: #101b32;
  isolation: isolate;
}

.wnot-mkt[hidden],
.wnot-mkt [hidden] {
  display: none !important;
}

.wnot-mkt__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 20, 40, .68);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.wnot-mkt__panel {
  position: relative;
  width: min(900px, 100%);
  max-height: min(820px, calc(100vh - 36px));
  max-height: min(820px, calc(100dvh - 36px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border: 1px solid #dce5f5;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(8, 18, 42, .28);
  outline: 0;
}

.wnot-mkt__panel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.wnot-mkt__close {
  position: sticky;
  z-index: 2;
  top: 12px;
  float: right;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 12px 12px -54px 0;
  padding: 0;
  border: 1px solid #d7e0ef;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: #182542;
  font: inherit;
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
}

.wnot-mkt__close:hover,
.wnot-mkt__close:focus-visible {
  color: #335ef0;
  border-color: #335ef0;
}

.wnot-mkt__layout {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  min-height: 420px;
}

.wnot-mkt--text-only .wnot-mkt__layout {
  display: block;
  min-height: 0;
}

.wnot-mkt__media {
  display: grid;
  align-content: center;
  gap: 12px;
  min-width: 0;
  padding: 20px;
  background: #f1f5fb;
}

.wnot-mkt__image,
.wnot-mkt__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 480px;
  border-radius: 13px;
  object-fit: contain;
  background: #e9eef6;
}

.wnot-mkt__video {
  max-height: 300px;
}

.wnot-mkt__content {
  min-width: 0;
  padding: clamp(24px, 4vw, 44px);
}

.wnot-mkt--text-only .wnot-mkt__content {
  max-width: 680px;
  margin: 0 auto;
  padding-right: 60px;
}

.wnot-mkt__eyebrow {
  margin: 0 0 10px;
  color: #4165e9;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.wnot-mkt__title {
  margin: 0 24px 16px 0;
  color: #101b32;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.18;
}

.wnot-mkt__copy {
  margin: 0 0 22px;
  color: #51617e;
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.wnot-mkt__copy > :first-child {
  margin-top: 0;
}

.wnot-mkt__copy > :last-child {
  margin-bottom: 0;
}

.wnot-mkt__copy a,
.wnot-mkt__privacy {
  color: #335ef0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wnot-mkt__form {
  display: grid;
  gap: 12px;
}

.wnot-mkt__field {
  display: grid;
  gap: 7px;
  color: #182542;
  font-size: 13px;
  font-weight: 600;
}

.wnot-mkt__field input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #cbd7ea;
  border-radius: 10px;
  background: #fff;
  color: #101b32;
  font: inherit;
  font-size: 15px;
}

.wnot-mkt__field input:focus {
  outline: 2px solid #4165e9;
  outline-offset: 2px;
}

.wnot-mkt__consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #465571;
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
}

.wnot-mkt__consent input {
  flex: none;
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: #4165e9;
}

.wnot-mkt__privacy {
  justify-self: start;
  font-size: 12px;
}

.wnot-mkt__trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.wnot-mkt .wnot-mkt__submit {
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 10px;
  background: #4165ef;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.wnot-mkt .wnot-mkt__submit:hover,
.wnot-mkt .wnot-mkt__submit:focus-visible {
  background: #2f52d8;
}

.wnot-mkt .wnot-mkt__submit:disabled {
  opacity: .7;
  cursor: wait;
}

.wnot-mkt__status {
  min-height: 1em;
  margin: 11px 0 0;
  color: #206244;
  font-size: 13px;
  line-height: 1.5;
}

.wnot-mkt__status.is-error {
  color: #b02b2b;
}

.wnot-mkt :focus-visible {
  outline: 2px solid #4165e9;
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .wnot-mkt {
    align-items: end;
    padding: 8px;
  }

  .wnot-mkt__panel {
    width: 100%;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 18px;
  }

  .wnot-mkt__layout {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .wnot-mkt__media {
    padding: 12px;
  }

  .wnot-mkt__image,
  .wnot-mkt__video {
    max-height: 190px;
  }

  .wnot-mkt__content,
  .wnot-mkt--text-only .wnot-mkt__content {
    width: 100%;
    padding: 24px 20px 20px;
  }

  .wnot-mkt__title {
    margin-right: 38px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .wnot-mkt__panel {
    animation: wnot-mkt-enter .18s ease-out;
  }

  @keyframes wnot-mkt-enter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
