
.rp-backdrop {
  position: fixed; inset: 0;
  background: #000; opacity: .5;
  z-index: 99998;
  transition: opacity .2s ease, visibility .2s ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.rp-wrap {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 99999;
  opacity: 0;
  transition: opacity .2s ease, visibility .2s ease;
  visibility: hidden;
  pointer-events: none;
}

.rp-wrap.rp-center .rp-inner { margin: 0 auto; }

.rp-inner {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  background: #fff;
  overflow: auto;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,.2);
  transform: scale(.98);
  opacity: 0;
  transition: transform .2s ease, opacity .2s ease;
}

.rp-wrap.rp-show { opacity: 1; visibility: visible; pointer-events: auto; }
.rp-backdrop.rp-show { opacity: 1; visibility: visible; pointer-events: auto; }

.rp-wrap.rp-show .rp-inner {
  transform: scale(1);
  opacity: 1;
}

.rp-close {
  cursor: pointer;
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
}

.rp-close-inside {
  position: absolute;
  top: 8px; right: 10px;
}

.rp-close-outside {
  position: absolute;
  top: -40px; right: 0;
  padding: 6px 10px;
  background: #000;
  color: #fff;
  border-radius: 6px;
}

.rp-content { padding: 24px; }
.screen-reader-text {
  position: absolute !important; height: 1px; width: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; clip-path: inset(50%);
}
