/* ===== ngDialog wrapper overrides ===== */

.ngdialog.mms-launch-popup-wrapper .ngdialog-overlay {
  background: #000000BF;
}

.ngdialog.ngdialog.mms-launch-popup-wrapper .ngdialog-content {
  width: 720px;
  max-width: 95%;
  padding: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.ngdialog.mms-launch-popup-wrapper .ngdialog-close {
  display: none;
}

/* ===== Desktop layout ===== */

.mms-launch-popup {
  display: flex;
  width: 720px;
  max-width: 100%;
  height: 385px;
  align-items: center;
  justify-content: space-between;
}

.mms-launch-popup__left {
  position: relative;
  width: 360px;
  height: 385px;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  flex-shrink: 0;
}

.mms-launch-popup__text-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 360px;
  height: 385px;
  object-fit: cover;
  @media (max-width: 767px) {
    width: 100%;
    height: 100%;
  }
}

.mms-launch-popup__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 296px;
  justify-content: center;
}

.mms-launch-popup__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.mms-launch-popup__title {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.mms-launch-popup__title-light {
  font-family: 'Suisse Intl', sans-serif;
  font-weight: 300;
  font-size: 33px;
  line-height: 36px;
  color: #101820;
}

.mms-launch-popup__title-highlight {
  font-family: 'Suisse Intl', sans-serif;
  font-weight: 400;
  font-size: 33px;
  line-height: 36px;
  color: #4C61FF;
}

.mms-launch-popup__description {
  font-family: 'Suisse Intl', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 20px;
  color: #101820;
  margin: 0;
}

.mms-launch-popup__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 15px 28px;
  background: #FF5100;
  border: none;
  cursor: pointer;
  font-family: 'Suisse Intl', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  color: #FFFFFF;
  text-align: center;
  white-space: nowrap;
  align-self: flex-start;
}

.mms-launch-popup__btn:hover {
  opacity: 0.9;
}

.mms-launch-popup__right {
  position: relative;
  width: 360px;
  height: 385px;
  flex-shrink: 0;
  background: #FFFFFF;
  overflow: hidden;
}

.mms-launch-popup__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.mms-launch-popup__image--mobile {
  display: none;
}

.mms-launch-popup__close {
  position: absolute;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mms-launch-popup__close--desktop {
  top: 9px;
  right: 11px;
  width: 18px;
  height: 18px;
}

.mms-launch-popup__close--desktop img {
  width: 15.051px;
  height: 15.051px;
}

.mms-launch-popup__close--mobile {
  display: none;
}

/* ===== Mobile layout (328px) ===== */

@media only screen and (max-width: 767px) {

  .ngdialog.mms-launch-popup-wrapper .ngdialog-content {
    width: 328px;
    max-width: 95%;
  }

  .mms-launch-popup {
    position: relative;
    flex-direction: column;
    width: 100%;
    height: auto;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
  }

  /* --- Mobile close button --- */

  .mms-launch-popup__close--mobile {
    display: flex;
    position: absolute;
    top: 11px;
    right: 14px;
    width: 14px;
    height: 14px;
    z-index: 3;
  }

  .mms-launch-popup__close--mobile img {
    width: 11.706px;
    height: 11.706px;
    filter: brightness(0);
  }

  /* --- Content area (order 1) --- */

  .mms-launch-popup__left {
    order: 1;
    width: 100%;
    height: auto;
    padding: 20px 20px 18px;
    background: none;
    margin-bottom: 0;
    gap: 0;
    z-index: 1;
    overflow: hidden;
  }

  .mms-launch-popup__content {
    width: 100%;
    gap: 16px;
    z-index: 1;
  }

  .mms-launch-popup__text {
    gap: 16px;
  }

  .mms-launch-popup__title {
    white-space: normal;
    width: 100%;
  }

  .mms-launch-popup__title-light {
    font-size: 28px;
    line-height: 30px;
  }

  .mms-launch-popup__title-highlight {
    font-size: 28px;
    line-height: 30px;
  }

  .mms-launch-popup__description {
    font-size: 14px;
    line-height: 22px;
    width: 100%;
  }

  .mms-launch-popup__btn {
    padding: 12px 28px;
    font-size: 15px;
    height: auto;
  }

  /* --- Image section (order 2) --- */

  .mms-launch-popup__right {
    order: 2;
    width: 100%;
    height: 217px;
    background: #000000;
  }

  .mms-launch-popup__image--desktop {
    display: none;
  }

  .mms-launch-popup__image--mobile {
    display: block;
  }

  .mms-launch-popup__close--desktop {
    display: none;
  }
}
