.mb-welcome-popup {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 17, 40, 0.72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
  box-sizing: border-box;
  isolation: isolate;
}

.mb-welcome-popup *,
.mb-welcome-popup *::before,
.mb-welcome-popup *::after {
  box-sizing: border-box;
}

.mb-welcome-popup.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.mb-welcome-popup__dialog {
  position: relative !important;
  z-index: 2147483647 !important;
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border-radius: 24px;
  background: #001c43;
  transform: translateY(18px) scale(0.985);
  opacity: 0;
  transition: transform 260ms cubic-bezier(.2,.8,.2,1), opacity 220ms ease;
}

.mb-welcome-popup.is-open .mb-welcome-popup__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.mb-welcome-popup__image-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.mb-welcome-popup__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 48px);
  object-fit: contain;
  background: #001c43;
}

.mb-welcome-popup__close {
  position: absolute !important;
  top: 14px;
  right: 14px;
  z-index: 10 !important;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 28, 67, 0.94);
  color: #fff;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease;
}

.mb-welcome-popup__close:hover {
  background: #0856a3;
  transform: scale(1.04);
}

.mb-welcome-popup__close:focus-visible,
.mb-welcome-popup__button:focus-visible {
  outline: 3px solid #54a7f6;
  outline-offset: 3px;
}

.mb-welcome-popup__close::before,
.mb-welcome-popup__close::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mb-welcome-popup__close::before {
  transform: rotate(45deg);
}

.mb-welcome-popup__close::after {
  transform: rotate(-45deg);
}

.mb-welcome-popup__button {
  position: absolute !important;
  left: 50%;
  bottom: 22px;
  z-index: 10 !important;
  transform: translateX(-50%);
  border: 0;
  border-radius: 999px;
  padding: 13px 24px;
  min-width: 170px;
  background: #0856a3;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.mb-welcome-popup__button:hover {
  transform: translateX(-50%) translateY(-1px);
  background: #004779;
}

html.mb-welcome-popup-lock,
body.mb-welcome-popup-lock {
  overflow: hidden !important;
}

@media (max-width: 767px) {
  .mb-welcome-popup {
    padding: 14px;
  }

  .mb-welcome-popup__dialog {
    width: 100%;
    max-height: calc(100dvh - 28px);
    border-radius: 18px;
  }

  .mb-welcome-popup__image {
    max-height: calc(100dvh - 28px);
  }

  .mb-welcome-popup__close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .mb-welcome-popup__button {
    bottom: 14px;
    width: calc(100% - 28px);
    max-width: 320px;
    padding: 12px 18px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mb-welcome-popup,
  .mb-welcome-popup__dialog,
  .mb-welcome-popup__close,
  .mb-welcome-popup__button {
    transition: none;
  }
}
