.nj-popup {
  --nj-popup-z-index: 10000;
  --nj-popup-bg: rgba(0, 0, 0, 0.8);
  --nj-popup-box-width: 601px;
  --nj-popup-box-height: 530px;
  --nj-popup-box-bg: #fff;
  --nj-popup-padding: 27px 15px 70px 30px;
}

.nj-popup {
  position: fixed;
  top: 0;
  bottom: 0;
  right: -100%;
  z-index: var(--nj-popup-z-index);
  width: 100%;
  background: var(--nj-popup-bg);
  transition: all 0.8s ease;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 25px;
}

.nj-popup .hide {
  display: none;
}

.nj-popup-show.nj-popup {
  right: 0;
}

body.nj-popup-shown {
  overflow-y: hidden !important;
}

.nj-popup-close {
  display: inline-block;
  cursor: pointer;
  position: absolute;
  font-size: 0;
  top: 15px;
  right: 15px;
  width: 38px;
  height: 38px;
  background: url(img/close.svg) center no-repeat;
  transition: all 0.3s ease;
}

.nj-popup-close:hover {
  opacity: 0.8;
}

.nj-popup-box {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: flex-start;
  margin: 0 15px;
  padding: var(--nj-popup-padding);
  margin-top: 30px;
  background: var(--nj-popup-box-bg);
  width: 100%;
  max-width: var(--nj-popup-box-width);
  height: 100%;
  max-height: var(--nj-popup-box-height);
  border-radius: 4px;
}

.nj-popup-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
  padding-right: 35px;
}

.nj-popup-content {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  align-items: center;
}

/* custom scroll  */
.nj-popup-content {
  max-height: 380px;
  height: 100%;
  padding-right: 15px;
  overflow-y: auto;
  scrollbar-width: thin;
  display: flex;
  align-content: flex-start;
}

.nj-popup-content::-webkit-scrollbar {
  width: 2px;
}

.nj-popup-content::-webkit-scrollbar-track {
  background: #dbdbdb;
  margin-top: 0px;
  margin-bottom: 20px;
}

.nj-popup-content::-webkit-scrollbar-thumb {
  background-color: #262626;
  border-radius: 5px;
  border: 1px solid transparent;
}
