.po-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease-in-out;
  transition: none;
  z-index: 999;
  overflow-y: auto;
}

.po-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.po-modal {
  background: #fff;
  border-radius: 4px;
  border-width: 1px;
  border-color: #dadedf;
  width: 33%;
  min-width: 320px;
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 20px;
  transform: translateY(-40px);
  opacity: 0;  
  transition: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  position: relative;
}

.po-modal.show {
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.po-modal-header {
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 15px;
  flex-shrink: 0;
}

.po-modal-title {
  font-size: 1.5rem;
  font-family: var(--font-family-theme-extra-light);
  font-weight: 400;
  color: #222;
  margin: 0;
}

.po-modal-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 5px;
}

.po-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  min-height: 300px;
}

.po-modal-close {
  position: absolute;
  top: 24px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-primary);
  transition: color 0.2s ease;
}

.po-modal-close:hover {
  color: var(--color-neutral);
}

.po-icon {
  display: inline-block;
  font: normal normal normal 14px/1 PoIcon;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.po-icon.po-icon-close:before {
  content: "\e918";
}

@media (max-width: 1024px) {
  .po-modal {
    width: 50%;
  }
}

@media (max-width: 768px) {
  .po-modal {
    width: 90%;
    height: auto;
    max-height: 90vh;
    margin: 20px auto;
  }

  .po-modal-iframe {
    min-height: 250px;
  }
}
