.ief-popup-overlay,
.ief-popup-wrapper {
  position: fixed !important;
  z-index: 999 !important;
  background-color: rgb(0 0 0 / 0.5) !important;
  inset: 0;
}

.ief-popup-overlay {
  display: none;
  background-color: rgb(0 0 0 / 0.5) !important;
}

.ief-popup-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ief-popup-wrapper div,
.ief-popup-wrapper fieldset {
  position: relative;
}

.ief-popup-wrapper > div,
.ief-popup-wrapper > fieldset {
  position: fixed !important;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  max-width: 90%;
  max-height: 90vh;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background-color: transparent !important;
}

.ief-popup-wrapper > fieldset > div {
  margin: 0;
}

@media (max-width: 48em) {
  .ief-popup-wrapper.ui-dialog {
    min-width: 100% !important;
    max-width: 100% !important;
  }

  .ief-popup-wrapper > div,
  .ief-popup-wrapper > fieldset {
    max-width: 100% !important;
    max-height: 100vh !important;
  }
}

.ief-popup-wrapper .ui-dialog-content {
  overflow: auto !important;
  max-height: 70vh;
  padding: 1.5rem !important;
  background-color: #fff;
}

.ui-autocomplete {
  z-index: 1001 !important;
}

.ief-popup-actions {
  padding: 1.5rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
  background-color: #f5f5f2;
}

.ief-popup-actions input {
  margin-top: 0.65rem;
  margin-bottom: 0.65rem;
}

.ief-popup-close {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translate(-50%, -50%);
  text-decoration: none;
  color: #fff;
  border-bottom: none !important;
}

.ief-popup-close:hover {
  color: inherit;
}

/* little fix to show tabs "under" dialog */
.vertical-tabs__menu-item.ief-open::after {
  z-index: 0;
}
