/* Divi2 Overlays — popup shell styles. */
.dl-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--dl-z-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.dl-overlay--open {
  opacity: 1;
  visibility: visible;
}

.dl-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .62);
}

.dl-overlay__panel {
  position: relative;
  width: calc(100% - 32px);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: var(--dl-radius);
  box-shadow: var(--dl-shadow);
  transform: translateY(14px) scale(.98);
  transition: transform .25s ease;
}

.dl-overlay--open .dl-overlay__panel {
  transform: none;
}

.dl-overlay__close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.dl-overlay__close:hover {
  background: rgba(0, 0, 0, .78);
}

.dl-overlay__content {
  padding: 0;
}

.dl-overlay__content > .et_pb_section:first-child {
  border-radius: var(--dl-radius);
  overflow: hidden;
}
