/* custom modal */
body.custom-modal-opened {
  overflow: hidden;
}

.custom-modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
}
.custom-modal-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px); /* not fully supported */
}
.custom-modal-close {
  width: 20px;
  height: 20px;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  cursor: pointer;
}
.custom-modal-close:before, .custom-modal-close:after {
  display: block;
  content: "";
  width: 21px;
  height: 2px;
  position: absolute;
  top: 9px;
  left: 0;
  z-index: 4;
  background-color: #585858;
}
.custom-modal-close:before {
  transform: rotate(-45deg);
}
.custom-modal-close:after {
  transform: rotate(45deg);
}
.custom-modal-header {
  width: 100%;
  height: 190px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgb(196, 196, 196);
  background: linear-gradient(180deg, rgba(88, 88, 88, 0.83) -40.84%, rgba(196, 196, 196, 0) 84.75%);
}
.custom-modal-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.custom-modal-content-box {
  max-height: 100vh;
  overflow: auto;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  background-color: #FFFFFF;
  overflow: auto;
  filter: drop-shadow(0px 0px 50px rgba(0, 0, 0, 0.7));
}
.custom-modal-details {
  padding: 18px;
}

/* // Medium devices (tablets, 768px and up) */
@media (min-width: 769px) {
  .custom-modal-content-box {
    max-width: 500px;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
  }
}