.spopup { position: fixed; inset: 0; display: none; }
.spopup[aria-hidden="false"] { display: block; }

.spopup__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
}
.spopup {
  z-index: 10;
}

.spopup__dialog {
  position: relative;
  z-index: 90;
  margin: 6rem auto;
  max-width: 640px;
  border-radius: 6px;
  background-color: #b7b8b8;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
}

.spopup.is-open .spopup__dialog {
  opacity: 1;
  transform: translateY(0);
}

.spopup__header {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}

.spopup__title { margin: 0; }

/* Body scroll lock */
body.spopup-lock {
  overflow: hidden;
}
.spopup .text__padding {
  padding: 2rem;
}