.bspopup-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.6);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}

.bspopup-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.bspopup-dialog {
  position: relative;
  background: #ffffff;
  color: inherit;
  width: min(90vw, 720px);
  max-height: 90vh;
  overflow: auto;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.35);
  transform: scale(0.98);
  transition: transform .2s ease;
}

.bspopup-overlay[aria-hidden="false"] .bspopup-dialog {
  transform: scale(1);
}

.bspopup-content {
  padding: 24px;
}

.bspopup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

body.bspopup-lock {
  overflow: hidden;
}
