/* ===============================
   ATMS Home Popup
================================ */

#atms-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;
  background: rgba(0, 22, 42, 0.78);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 350ms ease,
    visibility 350ms ease;
}

#atms-popup-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#atms-popup-overlay .atms-popup-box {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);

  transform: translateY(18px) scale(0.96);
  transition:
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

#atms-popup-overlay.is-active .atms-popup-box {
  transform: translateY(0) scale(1);
}

/* ===============================
   Close Button - Inside Popup
================================ */

#atms-popup-overlay .atms-popup-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 10;

  width: 36px;
  height: 36px;

  border: 0 !important;
  outline: 0 !important;
  border-radius: 50% !important;

  background: #111111 !important;
  color: #ffffff !important;

  font-family: Arial, sans-serif !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 !important;
  margin: 0 !important;

  cursor: pointer;
  box-shadow: none !important;
  text-decoration: none !important;
}

#atms-popup-overlay .atms-popup-close:hover,
#atms-popup-overlay .atms-popup-close:focus,
#atms-popup-overlay .atms-popup-close:active {
  background: #ed1c24 !important;
  color: #ffffff !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

/* ===============================
   Popup Image
================================ */

#atms-popup-overlay .atms-popup-image-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: #f5f5f5;
}

#atms-popup-overlay .atms-popup-image {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

/* ===============================
   Register Button
================================ */

#atms-popup-overlay .atms-popup-register,
#atms-popup-overlay button.atms-popup-register {
  width: 100% !important;
  max-width: none !important;
  height: 54px !important;
  min-height: 54px !important;

  margin: 10px 0 0 !important;
  padding: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  border: 0 !important;
  outline: 0 !important;
  border-radius: 8px !important;

  background: #ed1c24 !important;
  color: #ffffff !important;

  font-family: "Geist", Arial, sans-serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;

  cursor: pointer;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;

  transition:
    background 300ms ease,
    color 300ms ease;
}

#atms-popup-overlay .atms-popup-register:hover,
#atms-popup-overlay .atms-popup-register:focus,
#atms-popup-overlay .atms-popup-register:active {
  width: 100% !important;
  max-width: none !important;
  background: #ffe331 !important;
  color: #111111 !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

body.atms-popup-open {
  overflow: hidden;
}

/* ===============================
   Tablet
================================ */

@media (max-width: 991px) {
  #atms-popup-overlay .atms-popup-box {
    max-width: 500px;
  }

  #atms-popup-overlay .atms-popup-register,
  #atms-popup-overlay button.atms-popup-register {
    height: 52px !important;
    min-height: 52px !important;
    font-size: 22px !important;
  }
}

/* ===============================
   Mobile
================================ */

@media (max-width: 767px) {
  #atms-popup-overlay {
    padding: 16px;
  }

  #atms-popup-overlay .atms-popup-box {
    max-width: 360px;
    padding: 9px;
    border-radius: 10px;
  }

  #atms-popup-overlay .atms-popup-close {
    width: 34px;
    height: 34px;
    right: 11px;
    top: 11px;
    font-size: 26px !important;
  }

  #atms-popup-overlay .atms-popup-register,
  #atms-popup-overlay button.atms-popup-register {
    height: 48px !important;
    min-height: 48px !important;
    font-size: 19px !important;
    margin-top: 9px !important;
  }
}

/* ===============================
   Small Mobile
================================ */

@media (max-width: 480px) {
  #atms-popup-overlay {
    padding: 12px;
  }

  #atms-popup-overlay .atms-popup-box {
    max-width: 330px;
    padding: 8px;
    border-radius: 10px;
  }

  #atms-popup-overlay .atms-popup-close {
    width: 32px;
    height: 32px;
    right: 10px;
    top: 10px;
    font-size: 24px !important;
  }

  #atms-popup-overlay .atms-popup-register,
  #atms-popup-overlay button.atms-popup-register {
    height: 46px !important;
    min-height: 46px !important;
    font-size: 18px !important;
  }
}