.popup-container-global {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 200000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 0;
}

.popup-container-global.active-global {
  display: flex;
}

.popup-container-global.visible-global {
  opacity: 1;
}

.popup-close-global {
  align-self: center;
  margin: 20px 0 10px;
  background: #233578;
  color: #fff;
  padding: 10px 16px;
  font-size: 16px;
  border-radius: 4px;
  text-decoration: none !important;
  z-index: 200001;
}

/* Fix alignment of iframe container */
.popup-container-global .iframe-container {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  height: 720px;
  max-height: 90vh;
  box-sizing: border-box;
}

/* Force iframe to fit container */
.popup-container-global .iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Responsive fix for mobile phones */
@media screen and (max-width: 600px) {
  .popup-container-global {
    padding: 20px;
  }

  .popup-container-global .iframe-container {
    max-width: 100%;
    height: calc(100vh - 80px); /* room for button */
    border-radius: 4px;
  }

  .popup-close-global {
    font-size: 14px;
    padding: 8px 12px;
  }
}
