div#modalBackground {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 99;
  animation: modalBgAnim 0.3s linear 1 forwards;
}
@keyframes modalBgAnim {
  0% {
    background-color: rgba(0, 0, 0, 0);
  }
  to {
    background-color: rgba(0, 0, 0, 0.7);
  }
}
div#modalBackground.sign-modal_bg {
  display: none !important;
}
@media screen and (max-width: 860px) {
  div#modalBackground.sign-modal_bg {
    display: block !important;
  }
}
div#modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-sizing: border-box;
  padding: 24px;
  z-index: 99;
  max-width: 80vw;
  max-height: 80vh;
  width: min(500px, 80vw);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}
div#modal.coin-select .search-container {
  background-position: 14px 10px;
  padding: 4px 16px 4px 48px;
}
div#modal .list-component {
  gap: 1px;
}
div#modal img.loader {
  animation: loading 2.5s linear infinite;
}
@keyframes loading {
  0% {
    transform: rotate(1turn);
  }
  to {
    transform: rotate(0deg);
  }
}
div#modal.direct-dep {
  overflow-y: auto;
  max-width: 550px;
  padding-bottom: 30px;
}
div#modal.sign-modal {
  display: none !important;
}
div#modal h2 {
  margin: unset;
  font-size: 32px;
  line-height: 140%;
  font-weight: 500;
}
div#modal h2,
div#modal p {
  color: #07130c;
  letter-spacing: -0.045em;
}
div#modal p {
  font-size: 18px;
  line-height: 150%;
  font-weight: 400;
}
div#modal button.btn,
div#modal p {
  margin: unset;
}
div#modal button.btn {
  width: -moz-fit-content;
  width: fit-content;
}
@keyframes modalAnim {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
div#modal button.close {
  box-sizing: border-box;
  position: absolute;
  width: 40px;
  height: 40px;
  right: 24px;
  top: 24px;
  border: 1px solid #e8e8e8;
  border-radius: 100%;
  background-color: #fff;
  background-image: url(/images/close.svg);
  background-repeat: no-repeat;
  background-position: 50%;
  cursor: pointer;
}
@media screen and (max-width: 600px) {
  div#modal {
    max-width: 95vw;
    max-height: 80vh;
    padding: 16px;
  }
  div#modal.withdraw-modal {
    max-height: 95vh;
  }
  div#modal.withdraw-modal .withdraw-content p br:first-of-type {
    display: none;
  }
  div#modal.withdraw-modal .withdraw-content .check label {
    display: flex;
    align-items: flex-start;
  }
  div#modal.withdraw-modal .withdraw-content .check label:before {
    top: 5px;
  }
  div#modal.withdraw-modal
    .withdraw-content
    .check
    input:checked
    + label:after {
    top: 15px;
  }
  div#modal button.close {
    top: 16px;
    right: 16px;
  }
  div#modal h2 {
    font-size: 24px;
    font-weight: 500;
  }
  div#modal h2,
  div#modal p {
    line-height: 140%;
    letter-spacing: -0.045em;
  }
  div#modal p {
    font-size: 16px;
    font-weight: 400;
  }
}
@media screen and (max-width: 400px) {
  div#modal {
    max-height: 95vh;
  }
}
