/*CSS FOR MODAL*/
#app_common_modal,
#error_handler_overlay {
  position: fixed;
  top: 0;
  left: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  z-index: 2147483647;
  background: #333;
  background-color: rgba(31, 41, 55, 0.5);
  display: none;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
#app_common_modal .app_modal_body,
#error_handler_overlay .error_handler_body {
  max-width: 600px;
  -webkit-background-clip: padding-box;
  font-family: Verdana, Geneva, sans-serif;
  box-sizing: border-box;
  outline: 0;
}
#error_handler_overlay .error_handler_body {
  margin: 100px auto;
  width: 95%;
  padding: 20px;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #999;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0;
  -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
  font-size: 14px;
  line-height: 1.42857143;
  color: #333;
  position: relative;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}
#app_common_modal_close,
#error_handler_overlay_close {
  position: absolute;
  right: -10px;
  top: -10px;
  color: #fff;
  background-color: #333;
  border: 2px solid #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  line-height: 26px;
  padding: 0;
  margin: 0;
}
#app_common_modal .app_modal_body {
  margin: 100px auto;
  min-width: inherit;
  width: 95%;
  min-height: 400px;
  padding: 1%;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #999;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0;
  -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
  font-size: 14px;
  line-height: 1.42857143;
  color: #333;
  position: relative;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -ms-box-sizing: border-box;
}
#app_common_modal .app_modal_body iframe {
  min-height: 400px;
  width: 100%;
  border: 1px solid #d5d6ef;
}
.exitpop-content {
  position: fixed;
  height: 400px;
  width: 708px;
  margin: -200px 0 0 -354px;
  top: 50%;
  left: 50%;
  text-align: left;
  padding: 0;
  border: none;
  z-index: 2147483647;
}
.exitpopup-overlay {
  background: rgba(0, 0, 0, 0.6);
  height: 100%;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 2147483647;
  display: none;
}
.exitpop-content img {
  display: block;
  margin: 0 auto;
  position: relative;
  text-align: center;
  max-width: 100%;
  height: auto;
}
.exitpop-discountbar {
  background-color: red;
  border-bottom: 4px dashed #fff;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  height: 50px;
  line-height: 50px;
  position: fixed;
  text-align: center;
  top: 0;
  width: 100%;
  z-index: 9999;
  display: none;
}
.app-load-spinner {
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100px;
  height: 100px;
  margin: auto;
  background-color: #333;
  border-radius: 100%;
}
#loading-indicator::after,
#loading-indicator::before {
  box-sizing: border-box;
  left: 50%;
  position: absolute;
  top: 50%;
}
.all-card-types li {
  float: left;
  margin-right: 20px;
}
#loading-indicator {
  background-color: rgba(0, 0, 0, 0.5);
  bottom: 0;
  box-sizing: border-box;
  font-size: 1px;
  height: 100%;
  left: 0;
  margin: 0 !important;
  padding: 0 !important;
  position: fixed;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 2147483646;
}
#loading-indicator::before {
  background: url(../images/loading.gif) center center no-repeat
    rgba(0, 0, 0, 0);
  content: "";
  height: 70px;
  margin-left: -35px;
  margin-top: -70px;
  width: 70px;
  z-index: 2;
}
#loading-indicator::after {
  background: #fff;
  border-radius: 5px;
  color: #000;
  content: "Processing, one moment please... ";
  font-family: arial;
  font-size: 17px;
  height: 110px;
  line-height: 98px;
  margin-left: -150px;
  margin-top: -75px;
  padding-top: 35px;
  text-align: center;
  width: 300px;
  z-index: 1;
}

@-webkit-keyframes scaleout {
  0% {
    -webkit-transform: scale(0);
  }
  100% {
    -webkit-transform: scale(1);
    opacity: 0;
  }
}

@keyframes scaleout {
  0% {
    transform: scale(0);
    -webkit-transform: scale(0);
  }
  100% {
    transform: scale(1);
    -webkit-transform: scale(1);
    opacity: 0;
  }
}

@media screen and (max-device-width: 767px) and (orientation: landscape) {
  #app_common_modal .app_modal_body,
  #error_handler_overlay .error_handler_body {
    margin: 20px auto;
  }
  #app_common_modal .app_modal_body iframe {
    min-height: 360px;
  }
}

@media (max-device-width: 767px) {
  #app_common_modal .app_modal_body {
    margin: 2% auto;
  }
}

/* --- Trigger Button (optional styling) --- */
#openModalBtn {
  padding: 10px 20px;
  cursor: pointer;
  background-color: #1273de;
  color: #fff;
  border: none;
  border-radius: 4px;
}

/* --- Modal Overlay --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* semi-transparent overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  /* visibility: hidden; */
  /* hide by default */
  /* opacity: 0; */
  /* fade out by default */
  transition: visibility 0s, opacity 0.3s ease-in-out;
}

/* --- Modal Box --- */
.modal-box {
  background-color: #fff;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  /* slightly rounded corners */
  overflow: hidden;
  /* to ensure rounded corners are clean */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* --- Modal Header --- */
.modal-header {
  background-color: hsla(11, 100%, 62.2%, 1);
  padding: 16px;
  position: relative;
}

.modal-header h2 {
  font-size: 1.25rem;
  color: #fff;
}

.close-button {
  position: absolute;
  right: 16px;
  top: 16px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: #fff;
}

/* --- Modal Body --- */
.modal-body {
  padding: 16px;
}

.modal-body ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  line-height: 1.5;
  text-align: left;
  color: #212121;
}

/* --- Modal Footer --- */
.modal-footer {
  padding: 16px;
  background-color: #fff;
  text-align: right;
}

.modal-confirm-btn {
  padding: 8px 16px;
  background-color: hsla(11, 100%, 62.2%, 1);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* --- When Modal is active (e.g., via JS) --- */
.modal-overlay.active {
  visibility: visible;
  opacity: 1;
}

.hidden {
  display: none;
}
