/* Root modal container – created by JS, hidden by default */
#chooseNumberModal2 {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

/* When visible, JS adds this class */
#chooseNumberModal2.checkout-modal--visible {
  display: block;
}

/* Dimmed background behind the dialog */
.checkout-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

/* Dialog box */
.checkout-modal__dialog {
  position: relative;
  margin: 30px auto;
  padding: 0;
  width: 750px;
  max-width: 100%;
  height: -webkit-fill-available !important; /*70vh;*/          /* ~70% of viewport height */
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Close button (X) in the top-right corner, above iframe */
.checkout-modal__close {
  position: absolute;
  top: 8px;
  right: 12px;
  bottom: auto;
  margin: 0;
  border: none;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;            /* sit above iframe */
}
.checkout-modal__dialog.thank-you-class {
                height: 490px !important;
                overflow: hidden !important;
            }
/* Main content area for the iframe */
.checkout-modal__body {
  position: relative;
  flex: 1;
  height: 100%;          /* like original iframe-container */
  padding: 0;
  /* background: #ffffff; */
  z-index: 1;            /* under the close button */
}

/* The iframe itself – fills the body area */
.checkout-modal__iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100% !important;
  overflow-y: scroll !important;
  border: 0 !important;
  clear: both !important;
  display: block;
  z-index: 1;            /* under the close button */
}

/* Prevent page from scrolling when modal is open */
body.checkout-modal-open {
  overflow: hidden;
}

/* Mobile tweaks – mirror original responsive width behavior */
@media (max-width: 768px) {
  .checkout-modal__dialog {
    width: auto !important;
  }
}

@media only screen and (min-width: 992px) {
  .checkout-modal__dialog {
    width: 750px;
    max-width: 100%;
  }
}
