.ModalContent {
  position: fixed;
  width: rem(360px);
  padding: rem(40px) rem(20px) rem(20px);
  border-radius: rem(20px);
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  overflow: auto;
  animation: fadeIn ease 0.3s;

  @include iftablet {
    top: unset;
    width: rem(540px);
    padding: rem(40px) rem(24px) rem(24px);
  }

  @include iflaptop {
    padding: rem(40px) rem(30px) rem(30px);
  }

  @include ifdesktop {
    width: rem(640px);
    padding: rem(60px) rem(40px) rem(40px);
  }

  &_open {
    animation: fadeOut ease 0.3s;
  }

  &_isIOS {
    height: 100vh !important;

    @include iftablet {
      height: 100%;
    }
  }
}


.Inner {
  position: relative;
  overflow: hidden;
}


.CloseBtn {
  position: absolute;
  top: rem(20px);
  right: rem(20px);
  width: rem(24px);
  height: rem(24px);
  cursor: pointer;
  transform: rotate(0deg);
  transition: transform 0.3s;

  &:hover,
  &:active {
    transform: rotate(90deg);
    transition: transform 0.3s;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
