@charset "utf-8";

/********************************************
    NEX modal
********************************************/
.nex-modal-dim {
  position: fixed;
  z-index: 110000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--background-dim);
}

.nex-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - (var(--header-height) * 2) - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  padding: 28px 24px 20px;
  border-radius: var(--radius-lg);
  background: var(--background-normal);
  box-shadow: var(--shadow-modal);
  color: var(--label-normal);
  text-align: center;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.nex-modal::-webkit-scrollbar {
  display:none;
}
/* .nex-modal::-webkit-scrollbar-thumb {
  height: 10%;
  background: rgba(0,0,0,.5);
}
.nex-modal::-webkit-scrollbar-track {
  background: var(--background-neutral)
} */


.nex-modal--large {
  max-width: 1000px;
}

.nex-modal__content {
  min-height: 0;
  text-align: left;
}

.nex-modal__close {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 44px;
  margin: 0 0 16px auto;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--label-strong);
  color: var(--white);
  transition: background-color var(--deafult-transition), box-shadow var(--deafult-transition);
}

.nex-modal__close:hover,
.nex-modal__close:focus-visible,
.nex-modal__confirm:hover,
.nex-modal__confirm:focus-visible {
  background: var(--primary-strong);
  box-shadow: var(--shadow-focus);
  outline: none;
}


.nex-modal__title {
  margin: 0 0 12px;
  color: var(--label-strong);
  font-size: 20px;
}

.nex-modal__title--hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nex-modal__message {
  color: var(--label-normal);
  font-size: 16px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.nex-modal__confirm {
  min-width: 100px;
  min-height: 44px;
  margin-top: 24px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: var(--label-strong);
  color: var(--white);
  transition: background-color var(--deafult-transition), box-shadow var(--deafult-transition);
}

@media screen and (max-width: 1024px) {
  .nex-modal {
    padding: 24px 20px 18px;
  }
}
