.nlm {
  --nlm-primary: var(--s-primary-color, #1f6feb);
  --nlm-on-primary: var(--s-text-on-primary-color, #ffffff);
  --nlm-ink: #161616;
  --nlm-text: #444444;
  --nlm-muted: #7a7a7a;
  --nlm-line: #d9d9d9;
  --nlm-tint: #f3f5f7;
  --nlm-radius: 18px;
}

@supports (background: color-mix(in srgb, red 10%, white)) {
  .nlm {
    --nlm-tint: color-mix(in srgb, var(--nlm-primary) 13%, #ffffff);
    --nlm-ring: color-mix(in srgb, var(--nlm-primary) 25%, transparent);
    --nlm-edge: color-mix(in srgb, var(--nlm-primary) 45%, #ffffff);
  }
}

.nlm .nlm-dialog {
  max-width: 800px;
  margin: 12px auto;
  padding: 0 12px;
}

.nlm .nlm-content {
  position: relative;
  border: 0;
  border-radius: var(--nlm-radius);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .04);
}

.nlm .nlm-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .85);
  color: #333333;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}

.nlm .nlm-close:hover {
  background: #eeeeee;
  color: #000000;
}

.nlm .nlm-close:focus-visible,
.nlm .nlm-submit:focus-visible,
.nlm .nlm-consent a:focus-visible {
  outline: 3px solid var(--nlm-ring, rgba(0, 0, 0, .25));
  outline-offset: 2px;
}

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

.nlm .nlm-voucher {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "head head" "main main";
  gap: 6px 16px;
  padding: 22px 60px 20px 24px;
  background-color: var(--nlm-tint);
  background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, .025) 0 1px, transparent 1px 9px);
  border-bottom: 2px dashed var(--nlm-edge, #c9c9c9);
  color: var(--nlm-ink);
}

.nlm .nlm-crop {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(0, 0, 0, .28);
  border-style: solid;
  border-width: 0;
}

.nlm .nlm-crop--tl { top: 10px; left: 10px; border-top-width: 1.5px; border-left-width: 1.5px; }
.nlm .nlm-crop--tr { top: 10px; right: 10px; border-top-width: 1.5px; border-right-width: 1.5px; }
.nlm .nlm-crop--bl { bottom: 10px; left: 10px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.nlm .nlm-crop--br { bottom: 10px; right: 10px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.nlm .nlm-voucher-head {
  grid-area: head;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--nlm-ink);
}

.nlm .nlm-voucher-main {
  grid-area: main;
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.nlm .nlm-voucher-value {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  padding-bottom: 8px;
  font-weight: 800;
  line-height: .85;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

.nlm .nlm-voucher-value::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 5px;
  border-radius: 3px;
  background: var(--nlm-primary);
}

.nlm .nlm-num {
  font-size: 56px;
}

.nlm .nlm-unit {
  margin-left: 2px;
  font-size: 28px;
  line-height: 1;
}

.nlm .nlm-voucher-word {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.nlm .nlm-voucher--plain .nlm-voucher-main {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.nlm .nlm-voucher--plain .nlm-voucher-word br {
  display: none;
}

.nlm .nlm-voucher--plain .nlm-voucher-sub {
  padding-bottom: 0;
}

.nlm .nlm-voucher-sub {
  padding-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: #333333;
}

.nlm .nlm-voucher-code {
  display: none;
}

.nlm .nlm-body {
  padding: 22px 22px 18px;
}

.nlm .nlm-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--nlm-muted);
}

.nlm .nlm-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-transform: none;
  text-wrap: balance;
  color: var(--nlm-ink);
}

.nlm .nlm-title:focus {
  outline: none;
}

.nlm .nlm-lead {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--nlm-text);
}

.nlm .nlm-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.nlm .nlm-field label {
  display: block;
  margin: 0 0 5px;
  font-size: 13px;
  font-weight: 600;
  color: #333333;
}

.nlm .nlm-field input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--nlm-line);
  border-radius: 10px;
  background: #ffffff;
  font-size: 16px;
  color: var(--nlm-ink);
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.nlm .nlm-field input::placeholder {
  color: #a8a8a8;
}

.nlm .nlm-field input:hover {
  border-color: #bdbdbd;
}

.nlm .nlm-field input:focus {
  outline: none;
  border-color: var(--nlm-primary);
  box-shadow: 0 0 0 4px var(--nlm-ring, rgba(0, 0, 0, .08));
}

.nlm .nlm-field input.is-invalid {
  border-color: #c62828;
  background-image: none;
}

.nlm .nlm-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.nlm .nlm-consent {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--nlm-text);
  cursor: pointer;
}

.nlm .nlm-consent input {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.nlm .nlm-check {
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 0;
  border: 1.5px solid #b8b8b8;
  border-radius: 6px;
  background: #ffffff;
  color: transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.nlm .nlm-consent:hover .nlm-check {
  border-color: #8c8c8c;
}

.nlm .nlm-consent input:checked + .nlm-check {
  border-color: var(--nlm-primary);
  background: var(--nlm-primary);
  color: var(--nlm-on-primary);
}

.nlm .nlm-consent input:focus-visible + .nlm-check {
  box-shadow: 0 0 0 4px var(--nlm-ring, rgba(0, 0, 0, .12));
}

.nlm .nlm-consent.is-invalid .nlm-check {
  border-color: #c62828;
}

.nlm .nlm-consent a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nlm .nlm-feedback:empty {
  display: none;
}

.nlm .nlm-feedback {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-left: 3px solid #e09b1a;
  border-radius: 8px;
  background: #fff6e6;
  font-size: 13.5px;
  line-height: 1.45;
  color: #5c3d00;
}

.nlm .nlm-feedback.is-error {
  border-left-color: #c62828;
  background: #fdecea;
  color: #7a1a1a;
}

.nlm .nlm-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: var(--nlm-primary);
  color: var(--nlm-on-primary);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: none;
  cursor: pointer;
  box-shadow: 0 8px 20px -10px var(--nlm-primary);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

.nlm .nlm-submit:hover {
  filter: brightness(.93);
  transform: translateY(-1px);
}

.nlm .nlm-submit:active {
  transform: translateY(0);
}

.nlm .nlm-submit-arrow {
  transition: transform .2s ease;
}

.nlm .nlm-submit:hover .nlm-submit-arrow {
  transform: translateX(3px);
}

.nlm .nlm-submit-spin {
  display: none;
  animation: nlm-spin .8s linear infinite;
}

.nlm .nlm-submit.is-loading {
  pointer-events: none;
  filter: saturate(.7);
}

.nlm .nlm-submit.is-loading .nlm-submit-arrow {
  display: none;
}

.nlm .nlm-submit.is-loading .nlm-submit-spin {
  display: inline-block;
}

.nlm .nlm-submit--ghost {
  width: auto;
  min-width: 200px;
  border: 1.5px solid var(--nlm-line);
  background: #ffffff;
  color: var(--nlm-ink);
  box-shadow: none;
}

.nlm .nlm-submit--ghost:hover {
  filter: none;
  border-color: var(--nlm-ink);
}

.nlm .nlm-micro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--nlm-muted);
}

.nlm .recaptcha-notice {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  color: #9a9a9a;
}

.nlm .recaptcha-notice a {
  color: inherit;
  text-decoration: underline;
}

.nlm .nlm-step--done {
  padding: 36px 8px 24px;
  text-align: center;
}

.nlm .nlm-done-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--nlm-tint);
  color: var(--nlm-ink);
}

.nlm .nlm-step--done .nlm-lead {
  margin-bottom: 24px;
}

.nlm.show .nlm-voucher-value,
.nlm.show .nlm-voucher-word {
  animation: nlm-stamp .55s cubic-bezier(.2, .9, .3, 1.3) .12s both;
}

.nlm.show .nlm-voucher-value::after {
  animation: nlm-bar .5s ease .4s both;
}

.nlm.show .nlm-step--form > * {
  animation: nlm-rise .45s ease both;
}

.nlm.show .nlm-step--form > :nth-child(2) { animation-delay: .05s; }
.nlm.show .nlm-step--form > :nth-child(3) { animation-delay: .1s; }
.nlm.show .nlm-step--form > :nth-child(4) { animation-delay: .15s; }

.nlm .nlm-step--done:not([hidden]) {
  animation: nlm-rise .4s ease both;
}

@keyframes nlm-stamp {
  from { opacity: 0; transform: scale(1.25) rotate(-4deg); }
  to { opacity: 1; transform: none; }
}

@keyframes nlm-bar {
  from { transform: scaleX(0); transform-origin: left; }
  to { transform: scaleX(1); transform-origin: left; }
}

@keyframes nlm-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes nlm-spin {
  to { transform: rotate(360deg); }
}

@media (min-width: 576px) {
  .nlm .nlm-fields {
    grid-template-columns: 1fr 1.4fr;
  }

  .nlm .nlm-body {
    padding: 28px 30px 22px;
  }
}

@media (min-width: 768px) {
  .nlm .nlm-dialog {
    margin: 1.75rem auto;
  }

  .nlm .nlm-grid {
    grid-template-columns: 290px 1fr;
  }

  .nlm .nlm-voucher {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas: "head" "main" "code";
    gap: 0;
    padding: 34px 30px 30px;
    border-bottom: 0;
    border-right: 2px dashed var(--nlm-edge, #c9c9c9);
  }

  .nlm .nlm-voucher-main {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
  }

  .nlm .nlm-num {
    font-size: 104px;
  }

  .nlm .nlm-unit {
    margin-top: 6px;
    font-size: 46px;
  }

  .nlm .nlm-voucher-value {
    padding-bottom: 12px;
  }

  .nlm .nlm-voucher-value::after {
    height: 7px;
  }

  .nlm .nlm-voucher-word {
    font-size: 40px;
  }

  .nlm .nlm-voucher--plain .nlm-voucher-main {
    gap: 14px;
  }

  .nlm .nlm-voucher--plain .nlm-voucher-word br {
    display: inline;
  }

  .nlm .nlm-voucher-sub {
    padding-bottom: 0;
    font-size: 16px;
  }

  .nlm .nlm-voucher-code {
    grid-area: code;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border: 1.5px dashed rgba(0, 0, 0, .3);
    border-radius: 10px;
    background: rgba(255, 255, 255, .6);
    font-size: 12px;
    color: #555555;
  }

  .nlm .nlm-code-dots {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .3em;
    line-height: 1;
    color: var(--nlm-ink);
  }

  .nlm .nlm-body {
    padding: 44px 40px 28px;
  }

  .nlm .nlm-title {
    padding-right: 24px;
    font-size: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nlm *,
  .nlm *::after {
    animation: none !important;
    transition: none !important;
  }
}
