/*############################ popup ###################################*/
.mfp-bg,
.mfp-wrap .mfp-content,
.mfp-wrap .mfp-container {
  opacity: 0;
}

.mfp-container:before {
  display: block !important;
  height: 0 !important;
}

.mfp-wrap.mfp-ready .mfp-container {
  opacity: 1;
  padding: 0;
}

.mfp-wrap.mfp-ready .mfp-content {
  opacity: 1;
  visibility: visible;
  background: transparent !important;
  overflow: auto;
  min-height: 100dvh;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: unset;
  padding: 0px 24px 36px 24px;
}

@media screen and (max-width: 767px) {
  .mfp-wrap.mfp-ready .mfp-content:has(.splash-popup-theme) {
    padding: 40px 20px 40px 20px;
  }
}

.mfp-wrap.mfp-ready .mfp-content .sc-thumb-box.splash-popup-theme {
  padding: 0;
  background: transparent;
  /* max-width: 365px; */
  min-height: auto;
  margin: auto;
  position: relative;
}

.mfp-wrap.mfp-ready .mfp-content .sc-thumb-box.splash-popup-theme img {
  top: 0;
  position: relative;
  border-radius: 8px;
}

@media screen and (min-width: 768px) {
  .mfp-wrap.mfp-ready .mfp-content .sc-thumb-box.splash-popup-theme img {
    top: -40px;
  }
}

@media screen and (min-width: 1024px) {
  .mfp-wrap.mfp-ready .mfp-content .sc-thumb-box.splash-popup-theme img {
    top: -50px;
  }
}

.mfp-wrap.mfp-ready .mfp-content .sc-thumb-box.splash-popup-theme .btn.btn-secondary {
  width: 100%;
}

@media screen and (min-width: 768px) {
  .mfp-wrap.mfp-ready .mfp-content .sc-thumb-box.splash-popup-theme .btn.btn-secondary {
    width: 227px;
  }
}

@media screen and (max-width: 767px) {
  .mfp-wrap.mfp-ready .mfp-content .sc-thumb-box.splash-popup-theme .mfp-close {
    top: -8px;
    right: -16px;
  }
}

@media screen and (min-width: 768px) {
  .mfp-wrap.mfp-ready .mfp-content .sc-thumb-box.splash-popup-theme {
    padding: 0;
    background: transparent;
    max-width: 900px;
    width: 93%;
  }
}

@media screen and (min-width: 1024px) {
  .mfp-wrap.mfp-ready .mfp-content .sc-thumb-box.splash-popup-theme {
    width: 100%;
  }
}

.mfp-wrap.mfp-close-btn-in.mfp-auto-cursor.mfp-ready {
  background: rgba(0, 0, 0, 0.8);
  z-index: 100001;
}

.mfp-close-btn-in .mfp-close {
  width: 30px;
  height: 30px;
  background-color: #00000000;
  color: #fff;
  top: -15px;
  right: -15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  opacity: 1;
  font-size: 0px;
  transition: all 300ms ease;
  position: absolute;
}

.mfp-close-btn-in .mfp-close:before,
.mfp-close-btn-in .mfp-close:after {
  content: '' !important;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 15px;
  height: 2px;
  background-color: #ffffff;
  margin: auto;
  transition: all 300ms ease;
}

.mfp-close-btn-in .mfp-close:before {
  transform: rotate(45deg);
}

.mfp-close-btn-in .mfp-close:after {
  transform: rotate(-45deg);
}

.mfp-close-btn-in .mfp-close:hover:before,
.mfp-close-btn-in .mfp-close:hover:after {
  background-color: #ffffff;
}

@media screen and (max-width: 1024px) {
  .mfp-close-btn-in .mfp-close {
    top: -50px;
    right: -15px;
  }
}

@media screen and (min-width: 1024px) {
  .mfp-close-btn-in .mfp-close {
    width: 30px;
    height: 30px;
    top: 55px !important;
    right: 167px !important;
  }
}

.mfp-bg.mfp-ready {
  opacity: 0 !important;
}

.show-desktop {
  display: block;
}

@media (max-width: 768px) {
  .show-desktop {
    display: none;
  }
}

.show-mb {
  display: none;
}

@media (max-width: 768px) {
  .show-mb {
    display: block;
    max-width: 600px;
    width: 100%;
  }
}

@media screen and (max-width: 767px) {
  .mfp-content:has(.splash-popup-theme) {
    margin-top: 0;
  }
}

.splash-popup-theme {
  position: relative !important;
  overflow: visible !important;
}

.splash-popup-theme .show-desktop {
  width: 900px;
}

.splash-popup-theme .mfp-close {
  position: absolute !important;
  top: 5px !important;
  right: 5px !important;
  z-index: 100;
  border: 2px solid #ffffff;
}