.main-container {
  background-color: #fff;
  width: 100%;
  height: 100%;
}

.modal-visible {
  overflow: hidden;
}

.checkout-button-wrapper {
  justify-content: center;
  align-items: center;
  height: 200px;
  border: 3px solid #008000;
}

.iframe-checkout {
  flex: 1;
  border: none;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.iframe-foreground,
.iframe-background {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  flex-direction: column;
}

.iframe-foreground,
.iframe-background {
  position: fixed;
}

.iframe-foreground {
  z-index: -1;
}

.iframe-background {
  background: rgba(0, 0, 0, 0.5);
}

.iframe-foreground {
  flex-grow: 1;
  top: auto;
  width: 100%;
  max-width: 480px;
  height: 80vh;
  background-color: #ffffff;
  border-radius: 25px 25px 0 0;
}

.slide-in .iframe-foreground {
  transform: translateY(100vh);
  transition: transform 0.4s ease, z-index 0.3s ease 0.4s;
  z-index: -1;
}

.slide-in .iframe-background {
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease, z-index 0.3s ease 0.3s;
}

.slide-in.show .iframe-foreground {
  transform: none;
  transition: transform 0.4s ease;
  z-index: 100;
}

.ctp-iframe-container.slide-in.show .iframe-foreground {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	transition: none;
	z-index: 2000;
}

.ctp-iframe-container.slide-in .iframe-foreground {
  transition: none;
}

.slide-in.show .iframe-background {
  opacity: 1;
  z-index: 0;
  transition: opacity 0.3s ease;
}

@media only screen and (min-width: 480px) {
  .iframe-foreground {
    margin: 0 auto;
  }
}

@media only screen and (min-width: 768px) {
  .iframe-foreground {
    margin: 0;
    width: 400px;
    height: 100vh;
    left: 0;
  }

  .slide-in .iframe-foreground {
    transform: translateX(-400px);
  }
  
  .ctp-iframe-container .iframe-foreground {
	max-height: 700px;
  }
}
