.mh-promo-popup-open {
  overflow: hidden;
}

.mh-promo-popup {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 40px);
  visibility: hidden;
  opacity: 0;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.mh-promo-popup.is-open {
  visibility: visible;
  opacity: 1;
}

.mh-promo-popup__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(18, 22, 28, 0.76);
  backdrop-filter: blur(5px);
  cursor: default;
}

.mh-promo-popup__dialog {
  position: relative;
  display: block;
  width: min(100%, 1000px);
  height: min(680px, 88vh);
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: #fbf8f3;
  color: #191d23;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
  transform: translateY(18px) scale(0.985);
  transition: transform 280ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.mh-promo-popup.is-open .mh-promo-popup__dialog {
  transform: translateY(0) scale(1);
}

.mh-promo-popup__dialog.has-image {
  display: block;
}

.mh-promo-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(210, 168, 102, 0.65);
  border-radius: 50%;
  background: rgba(18, 25, 29, 0.8);
  color: #fffdf9;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.mh-promo-popup__close:hover {
  background: #e8d5b5;
  transform: rotate(90deg);
}

.mh-promo-popup__close:focus-visible,
.mh-promo-popup__cta:focus-visible,
.mh-promo-popup__remember input:focus-visible {
  outline: 3px solid #d2a866;
  outline-offset: 3px;
}

.mh-promo-popup__close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.mh-promo-popup__image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #1c2b2a;
}

.mh-promo-popup__image-wrap::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 20, 23, 0.58) 0%, rgba(12, 20, 23, 0.46) 52%, rgba(12, 20, 23, 0.16) 100%);
  content: "";
  pointer-events: none;
}

.mh-promo-popup__image-wrap[hidden] {
  display: none;
}

.mh-promo-popup__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
}

.mh-promo-popup__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
  width: 86%;
  height: 100%;
  padding: clamp(28px, 4vw, 48px);
  background: transparent;
}

.mh-promo-popup__brand {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 16px;
  margin: 0 0 12px;
}

.mh-promo-popup__logo {
  display: block;
  flex: 0 0 auto;
  width: 44px;
  height: 54px;
  padding: 4px;
  border-radius: 4px;
  background: rgba(251, 248, 243, 0.94);
  object-fit: contain;
  object-position: left center;
}

.mh-promo-popup__eyebrow {
  margin: 0;
  color: #e4bd79;
  font: 700 0.78rem/1.4 Montserrat, sans-serif;
  letter-spacing: 0.14em;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
  text-transform: uppercase;
}

.mh-promo-popup__eyebrow[hidden] {
  display: none;
}

.mh-promo-popup__title {
  max-width: 18ch;
  margin: 0;
  color: #fffdf9;
  font: 400 clamp(2.25rem, 3.8vw, 3.5rem)/0.99 Manrope, sans-serif;
  letter-spacing: -0.055em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.34);
}

.mh-promo-popup__title.is-spanish {
  max-width: none;
  font-size: clamp(2.25rem, 3.8vw, 3.5rem);
  white-space: nowrap;
}

.mh-promo-popup__description {
  max-width: 66ch;
  margin: 10px 0 18px;
  color: #fffdf9;
  font: 400 1rem/1.55 Montserrat, sans-serif;
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.55);
}

.mh-promo-popup__highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  color: #fffdf9;
  font: 500 0.96rem/1.4 Montserrat, sans-serif;
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.55);
  list-style: none;
}

.mh-promo-popup__highlights[hidden],
.mh-promo-popup__terms[hidden] {
  display: none;
}

.mh-promo-popup__highlights li {
  position: relative;
  min-height: 0;
  padding: 3px 8px 3px 25px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.mh-promo-popup__highlights li:first-child {
  border: 0;
  background: transparent;
  color: #fffdf9;
  font-weight: 700;
}

.mh-promo-popup__highlights li::before {
  position: absolute;
  top: 0.72em;
  left: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c99d5a;
  content: "";
}

.mh-promo-popup__terms {
  margin: 0 0 12px;
  color: rgba(255, 253, 249, 0.9);
  font: 400 0.8rem/1.5 Montserrat, sans-serif;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.mh-promo-popup__cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid #d2a866;
  border-radius: 999px;
  background: #d2a866;
  color: #191d23;
  font: 700 0.82rem/1.2 Montserrat, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.mh-promo-popup__cta:hover {
  transform: translateY(-2px);
  border-color: #191d23;
  background: #191d23;
  color: #fffdf9;
}

.mh-promo-popup__remember {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  color: #fffdf9;
  cursor: pointer;
  font: 500 0.82rem/1.4 Montserrat, sans-serif;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.mh-promo-popup__remember input {
  display: grid;
  width: 18px;
  height: 18px;
  margin: 0;
  place-content: center;
  appearance: none;
  border: 1px solid rgba(167, 132, 99, 0.75);
  border-radius: 5px;
  background: #fffdf9;
  accent-color: #b8914f;
}

.mh-promo-popup__remember input:checked {
  border-color: #d2a866;
  background: #d2a866;
}

.mh-promo-popup__remember input:checked::after {
  width: 5px;
  height: 9px;
  border: solid #191d23;
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg) translate(-1px, -1px);
}

@media (max-width: 760px) {
  .mh-promo-popup {
    padding: 12px;
  }

  .mh-promo-popup__dialog.has-image {
    height: min(760px, 88vh);
  }

  .mh-promo-popup__image-wrap {
    min-height: 0;
    height: 100%;
  }

  .mh-promo-popup__image {
    min-height: 0;
    height: 100%;
    object-position: center 52%;
  }

  .mh-promo-popup__content {
    width: 100%;
    height: 100%;
    justify-content: flex-start;
    padding: clamp(104px, 15vh, 128px) 24px 24px;
    background: transparent;
  }

  .mh-promo-popup__image-wrap::after {
    background: linear-gradient(180deg, rgba(12, 20, 23, 0.14) 0%, rgba(12, 20, 23, 0.3) 18%, rgba(12, 20, 23, 0.68) 38%, rgba(12, 20, 23, 0.76) 100%);
  }

  .mh-promo-popup__brand {
    min-height: 48px;
    gap: 12px;
    margin-bottom: 12px;
  }

  .mh-promo-popup__logo {
    width: 40px;
    height: 48px;
  }

  .mh-promo-popup__eyebrow {
    font-size: 0.66rem;
    letter-spacing: 0.1em;
  }

  .mh-promo-popup__title {
    max-width: none;
    font-size: clamp(1.95rem, 8.4vw, 2.45rem);
    line-height: 1;
  }

  .mh-promo-popup__title.is-spanish {
    font-size: clamp(1.95rem, 8.4vw, 2.45rem);
    white-space: normal;
  }

  .mh-promo-popup__description {
    margin: 10px 0 16px;
    font-size: 0.94rem;
    line-height: 1.5;
  }

  .mh-promo-popup__highlights {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .mh-promo-popup__highlights li {
    padding: 2px 0 2px 19px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .mh-promo-popup__highlights li::before {
    top: 0.58em;
    left: 3px;
    width: 6px;
    height: 6px;
  }

  .mh-promo-popup__highlights li:first-child {
    border: 0;
    background: transparent;
  }

  .mh-promo-popup__terms {
    margin-bottom: 12px;
    font-size: 0.76rem;
  }

  .mh-promo-popup__cta {
    width: 100%;
    min-height: 46px;
    padding: 12px 18px;
  }

  .mh-promo-popup__remember {
    margin-top: 12px;
    font-size: 0.78rem;
  }

  .mh-promo-popup__close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
  }
}

@media (max-height: 680px) {
  .mh-promo-popup {
    padding-block: 10px;
  }

  .mh-promo-popup__dialog {
    height: calc(100dvh - 20px);
  }

  .mh-promo-popup__brand {
    margin-bottom: 7px;
  }

  .mh-promo-popup__description {
    margin-top: 7px;
    margin-bottom: 10px;
  }

  .mh-promo-popup__highlights {
    gap: 5px;
    margin-bottom: 8px;
  }

  .mh-promo-popup__highlights li {
    padding-top: 1px;
    padding-bottom: 1px;
  }

  .mh-promo-popup__remember {
    margin-top: 8px;
  }
}

@media (max-width: 760px) and (max-height: 680px) {
  .mh-promo-popup__content {
    padding: 96px 20px 18px;
  }

  .mh-promo-popup__brand {
    min-height: 40px;
    margin-bottom: 8px;
  }

  .mh-promo-popup__logo {
    width: 34px;
    height: 40px;
  }

  .mh-promo-popup__description {
    margin: 7px 0 10px;
  }

  .mh-promo-popup__highlights {
    gap: 6px;
    margin-bottom: 9px;
    font-size: 0.76rem;
  }

  .mh-promo-popup__highlights li {
    padding-top: 0;
    padding-bottom: 0;
  }
}

@media (max-width: 360px) {
  .mh-promo-popup__content {
    padding-inline: 18px;
  }

  .mh-promo-popup__title {
    font-size: 1.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mh-promo-popup,
  .mh-promo-popup__dialog,
  .mh-promo-popup__close,
  .mh-promo-popup__cta {
    transition-duration: 0.01ms;
  }
}
