#iframe-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.iframe-modal-content {
  position: relative;
  width: 80%;
  height: 80%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overflow-x: hidden;
}

#iframe-popup {
  width: 100%;
  height: 100%;
  border: none;
}

.iframe-modal-timer {
  position: absolute;
  top: 16px;
  right: 24px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 6px 14px;
  border-radius: 18px;
  font-size: 1.1em;
  z-index: 1001;
  letter-spacing: 1px;
  font-weight: bold;
}

.iframe-modal-timeout-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 24px 32px;
  border-radius: 12px;
  font-size: 1.2em;
  z-index: 1002;
  text-align: center;
}

body.iframe-modal-active {
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}

body.iframe-modal-active #iframe-modal {
  pointer-events: auto;
}

#iframe-modal-iframe-container {
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  overscroll-behavior: contain;
  position: relative;
}