#custom-scroll-popup {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.custom-scroll-popup__body {
  overscroll-behavior: contain;
  touch-action: pan-y;
}
#custom-scroll-popup {
  position: fixed !important;
  z-index: 99999 !important;
  display: none;
  pointer-events: none;
  transform: translateY(8px);
  transition: transform .25s ease;
  background: #fff;
  color: #fff;
  border-radius: 14px;
  box-sizing: border-box;
  overflow: visible;
  flex-direction: column;
  padding: 1px;
}
#custom-scroll-popup.is-visible {
  display: flex !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}
#popup-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 20;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #d40000;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.custom-scroll-popup__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  height: 100%;
}
.custom-scroll-popup__body iframe {
  display: block;
  width: 100%;
  border: none;
}
@media (min-width: 768px) {
  #custom-scroll-popup {
    right: 20px;
    bottom: 20px;
    width: min(520px, calc(100vw - 40px));
    height: min(85vh, 860px);
    max-height: calc(100vh - 40px);
  }
}
@media (max-width: 767px) {
  #custom-scroll-popup {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    height: min(85vh, 860px);
    max-height: calc(100vh - 24px);
    border-radius: 12px;
    padding: 10px;
  }
  #popup-close {
    top: -10px;
    right: -10px;
    width: 34px;
    height: 34px;
    font-size: 22px;
  }
}

/* Move to main CSS file after that is workable */
.btn--accent:hover {color: white}