.pdl-popup-shell[hidden] {
  display: none !important;
}

.pdl-popup-shell {
  --pdl-popup-overlay: rgba(0, 0, 0, 0.65);
  --pdl-popup-max-width: 680px;
  --pdl-popup-z-index: 9999;
  position: fixed;
  inset: 0;
  z-index: var(--pdl-popup-z-index);
}

.pdl-popup-shell__overlay {
  position: absolute;
  inset: 0;
  background: var(--pdl-popup-overlay);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.pdl-popup-shell__viewport {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100%;
  width: 100%;
  padding: 24px 12px;
  justify-content: center;
  align-items: center;
}

.pdl-popup-shell[data-align="top"] .pdl-popup-shell__viewport {
  align-items: flex-start;
}

.pdl-popup-shell[data-align="bottom"] .pdl-popup-shell__viewport {
  align-items: flex-end;
}

.pdl-popup-shell__panel {
  position: relative;
  width: min(100%, var(--pdl-popup-max-width));
  max-width: 100%;
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  background: #fff;
  box-shadow: 0 0 36px rgba(255, 255, 255, 0.16), 0 28px 80px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.pdl-popup-shell.is-visible .pdl-popup-shell__overlay,
.pdl-popup-shell.is-visible .pdl-popup-shell__panel {
  opacity: 1;
}

.pdl-popup-shell.is-visible .pdl-popup-shell__panel {
  transform: translateY(0) scale(1);
}

.pdl-popup-shell__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.76);
  color: #fff;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.pdl-popup-shell__close:hover {
  opacity: 0.92;
  transform: scale(1.04);
}

.pdl-popup-shell__close span {
  display: inline-block;
  font-size: 24px;
  line-height: 1;
  transform: translateY(-1px);
}

.pdl-popup-shell__content {
  position: relative;
  min-height: 80px;
}

body.pdl-popup-lock {
  overflow: hidden;
}

@media (max-width: 767px) {
  .pdl-popup-shell__viewport {
    padding: 12px;
  }

  .pdl-popup-shell__panel {
    max-height: calc(100vh - 24px);
    border-radius: 24px;
  }
}
