.nl-christmas-popup {
  --nlcp-bg: #0c2c23;
  --nlcp-panel: #f7f1e6;
  --nlcp-text: #17352b;
  --nlcp-muted: #59665f;
  --nlcp-accent: #a51c30;
  --nlcp-button-bg: #a51c30;
  --nlcp-button-text: #fff;
  --nlcp-gold: #cfb276;
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 32px);
  color: var(--nlcp-text);
  font-family: Baskerville, "Libre Baskerville", Georgia, serif;
}

.nl-christmas-popup[hidden],
.nl-christmas-popup [hidden] {
  display: none !important;
}

.nl-christmas-popup__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(207, 178, 118, 0.13), transparent 30%),
    rgba(4, 17, 13, 0.76);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.nl-christmas-popup__dialog {
  position: relative;
  display: grid;
  width: min(100%, 1080px);
  min-height: 560px;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  overflow: hidden;
  border: 1px solid rgba(207, 178, 118, 0.8);
  background: var(--nlcp-panel);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.55);
}

.nl-christmas-popup__dialog::after {
  position: absolute;
  inset: 10px;
  z-index: 5;
  border: 1px solid rgba(23, 53, 43, 0.1);
  pointer-events: none;
  content: "";
}

.nl-christmas-popup__close {
  position: absolute;
  z-index: 8;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--nlcp-text);
  background: rgba(247, 241, 230, 0.94);
  cursor: pointer;
}

.nl-christmas-popup[data-layout="poster"] .nl-christmas-popup__close {
  color: var(--nlcp-text);
}

.nl-christmas-popup__close:hover,
.nl-christmas-popup__close:focus-visible {
  color: #fff;
  background: var(--nlcp-accent);
  outline: none;
}

.nl-christmas-popup__media {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--nlcp-bg);
}

.nl-christmas-popup__media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 70%, rgba(12, 44, 35, 0.2)),
    linear-gradient(180deg, transparent 55%, rgba(6, 24, 18, 0.22));
  pointer-events: none;
  content: "";
}

.nl-christmas-popup__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.nl-christmas-popup__image {
  position: absolute;
  inset: 0;
}

.nl-christmas-popup__image--mobile {
  display: none;
}

.nl-christmas-popup__spark {
  position: absolute;
  z-index: 2;
  right: 26px;
  bottom: 24px;
  width: 32px;
  height: 32px;
  background: var(--nlcp-gold);
  clip-path: polygon(50% 0, 59% 40%, 100% 50%, 59% 60%, 50% 100%, 41% 60%, 0 50%, 41% 40%);
}

.nl-christmas-popup__content {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 5vw, 70px) clamp(30px, 4vw, 56px) clamp(32px, 4vw, 54px);
  background:
    radial-gradient(circle at 100% 0, rgba(165, 28, 48, 0.08), transparent 34%),
    var(--nlcp-panel);
}

.nl-christmas-popup__eyebrow {
  margin: 0 0 14px;
  color: var(--nlcp-accent);
  font-family: "Cabin Variable", Cabin, Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.nl-christmas-popup__title {
  max-width: 12ch;
  margin: 0 0 12px;
  color: var(--nlcp-text);
  font-family: Baskerville, "Libre Baskerville", Georgia, serif;
  font-size: clamp(38px, 4.2vw, 58px);
  font-style: italic;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.nl-christmas-popup__description {
  max-width: 38ch;
  margin: 0 0 21px;
  color: var(--nlcp-muted);
  font-family: "Cabin Variable", Cabin, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.nl-christmas-popup__description p {
  margin: 0;
}

.nl-christmas-popup__offers {
  display: grid;
  margin-bottom: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(23, 53, 43, 0.28);
  border-left: 1px solid rgba(23, 53, 43, 0.28);
}

.nl-christmas-popup__offer {
  min-width: 0;
  padding: 12px 8px 11px;
  border-right: 1px solid rgba(23, 53, 43, 0.28);
  border-bottom: 1px solid rgba(23, 53, 43, 0.28);
  color: var(--nlcp-text);
  font-family: "Cabin Variable", Cabin, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: 0.035em;
  text-align: center;
  text-transform: uppercase;
}

.nl-christmas-popup__offer p {
  margin: 0;
}

.nl-christmas-popup__offer strong,
.nl-christmas-popup__offer b {
  color: var(--nlcp-accent);
  font-family: Baskerville, "Libre Baskerville", Georgia, serif;
  font-size: 19px;
  font-weight: 400;
}

.nl-christmas-popup__form-note {
  margin: 0 0 10px;
  color: var(--nlcp-muted);
  font-family: "Cabin Variable", Cabin, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.5;
}

.nl-christmas-popup__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.nl-christmas-popup__field {
  min-width: 0;
}

.nl-christmas-popup__field input {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid rgba(23, 53, 43, 0.32);
  border-radius: 0;
  background: #fffdf9;
  color: var(--nlcp-text);
  font-family: "Cabin Variable", Cabin, Arial, sans-serif;
  font-size: 14px;
  outline: none;
}

.nl-christmas-popup__field input::placeholder {
  color: #758079;
  opacity: 1;
}

.nl-christmas-popup__field input:focus {
  border-color: var(--nlcp-accent);
  box-shadow: 0 0 0 1px var(--nlcp-accent);
}

.nl-christmas-popup__submit,
.nl-christmas-popup__shop {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--nlcp-button-bg);
  border-radius: 0;
  background: var(--nlcp-button-bg);
  color: var(--nlcp-button-text);
  font-family: "Cabin Variable", Cabin, Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.nl-christmas-popup__submit:hover,
.nl-christmas-popup__submit:focus-visible,
.nl-christmas-popup__shop:hover,
.nl-christmas-popup__shop:focus-visible {
  background: var(--nlcp-bg);
  border-color: var(--nlcp-bg);
  outline: none;
}

.nl-christmas-popup__submit:disabled {
  opacity: 0.72;
  cursor: wait;
}

.nl-christmas-popup__message,
.nl-christmas-popup__copy-message {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--nlcp-accent);
  font-family: "Cabin Variable", Cabin, Arial, sans-serif;
  font-size: 11px;
  line-height: 1.45;
}

.nl-christmas-popup__decline {
  align-self: flex-start;
  margin-top: 5px;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--nlcp-muted);
  background: transparent;
  font-family: "Cabin Variable", Cabin, Arial, sans-serif;
  font-size: 11px;
  cursor: pointer;
}

.nl-christmas-popup__decline:hover,
.nl-christmas-popup__decline:focus-visible {
  color: var(--nlcp-accent);
  outline: none;
}

.nl-christmas-popup__success-kicker {
  margin: 0 0 10px;
  color: var(--nlcp-accent);
  font-family: "Cabin Variable", Cabin, Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.nl-christmas-popup__success h3 {
  max-width: 14ch;
  margin: 0 0 10px;
  color: var(--nlcp-text);
  font-family: Baskerville, "Libre Baskerville", Georgia, serif;
  font-size: clamp(28px, 3vw, 42px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.02;
}

.nl-christmas-popup__success > p {
  max-width: 40ch;
  margin: 0 0 16px;
  color: var(--nlcp-muted);
  font-family: "Cabin Variable", Cabin, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.55;
}

.nl-christmas-popup__coupon {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border: 1px dashed var(--nlcp-text);
  background: transparent;
  color: var(--nlcp-text);
  cursor: pointer;
}

.nl-christmas-popup__coupon-code {
  font-family: "Cabin Variable", Cabin, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.nl-christmas-popup__coupon-action {
  color: var(--nlcp-accent);
  font-family: "Cabin Variable", Cabin, Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nl-christmas-popup__shop {
  width: 100%;
  margin-top: 12px;
}

.nl-christmas-popup[data-layout="poster"] .nl-christmas-popup__dialog {
  grid-template-columns: 1fr;
  min-height: 620px;
}

.nl-christmas-popup[data-layout="poster"] .nl-christmas-popup__media {
  position: absolute;
  inset: 0;
}

.nl-christmas-popup[data-layout="poster"] .nl-christmas-popup__media::after {
  background:
    linear-gradient(90deg, rgba(6, 24, 18, 0.12), rgba(6, 24, 18, 0.52) 62%, rgba(6, 24, 18, 0.72)),
    linear-gradient(0deg, rgba(6, 24, 18, 0.3), transparent 55%);
}

.nl-christmas-popup[data-layout="poster"] .nl-christmas-popup__content {
  width: min(56%, 560px);
  min-height: 620px;
  justify-self: end;
  background: rgba(247, 241, 230, 0.94);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.nl-christmas-popup-preview-button {
  position: fixed;
  z-index: 10049;
  top: 116px;
  left: 16px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid #a51c30;
  border-radius: 0;
  background: #fff;
  color: #7d1123;
  font-family: "Cabin Variable", Cabin, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.nl-christmas-popup__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html.nl-christmas-popup-open,
html.nl-christmas-popup-open body {
  overflow: hidden !important;
}

@media (max-width: 900px) {
  .nl-christmas-popup__dialog {
    max-height: calc(100dvh - 24px);
    min-height: 0;
    grid-template-columns: 1fr;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .nl-christmas-popup__media {
    min-height: 245px;
    aspect-ratio: 4 / 3;
  }

  .nl-christmas-popup__content {
    padding: 34px 28px 30px;
  }

  .nl-christmas-popup[data-layout="poster"] .nl-christmas-popup__dialog {
    min-height: 0;
  }

  .nl-christmas-popup[data-layout="poster"] .nl-christmas-popup__media {
    position: relative;
  }

  .nl-christmas-popup[data-layout="poster"] .nl-christmas-popup__content {
    width: 100%;
    min-height: 0;
  }
}

@media (max-width: 767px) {
  .nl-christmas-popup {
    align-items: end;
    padding: 10px;
  }

  .nl-christmas-popup__dialog {
    max-height: calc(100dvh - 20px);
    overflow-x: hidden;
    overflow-y: auto;
  }

  .nl-christmas-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .nl-christmas-popup__media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .nl-christmas-popup__image--desktop {
    display: none;
  }

  .nl-christmas-popup__image--mobile {
    display: block;
  }

  .nl-christmas-popup__media--no-mobile {
    display: none;
  }

  .nl-christmas-popup__content {
    padding: 58px 20px 24px;
  }

  .nl-christmas-popup__title {
    max-width: none;
    font-size: clamp(34px, 10vw, 44px);
  }

  .nl-christmas-popup__description {
    font-size: 13px;
  }

  .nl-christmas-popup__offers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nl-christmas-popup__form {
    grid-template-columns: 1fr;
  }

  .nl-christmas-popup__submit {
    width: 100%;
  }

  .nl-christmas-popup__offer {
    font-size: 10px;
  }

  .nl-christmas-popup-preview-button {
    top: 92px;
    left: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nl-christmas-popup *,
  .nl-christmas-popup-preview-button {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
