/* modal */
.modal-container {
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  overflow-y: auto;
}

.overlay {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: var(--bg-overlay);
  overflow-y: auto;
  z-index: 9998;
  -webkit-animation: fadeIn 0.3s;
  animation: fadeIn 0.3s;
  display: flex;
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-xs {
  width: 360px;
  height: fit-content;
  background: var(--white);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  margin: 30px auto;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}

.modal-sm {
  width: 560px;
  height: fit-content;
  background: var(--white);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  margin: 30px auto;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}

.modal-md {
  width: 768px;
  height: fit-content;
  background: var(--white);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  margin: 30px auto;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}

.modal-lg {
  width: 1000px;
  height: fit-content;
  background: var(--white);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  margin: 30px auto;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}

.modal-header {
  width: 100%;
  padding: 10px 16px;
  font-size: 18px;
  position: relative;
  display: inline-block;
}

.modal-body {
  width: 100%;
  position: relative;
  overflow-y: auto;
}

.modal-footer {
  width: 100%;
  padding: 16px;
  position: relative;
  display: inline-table;
}

.match-height {
  height: 90%;
  margin: 0;
}

.match-height .modal-body {
  height: 100%;
}

.fixed-center {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
}

.absolute-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
}

/* end modal */

@media screen and (max-width: 1100px) {
  .modal-lg,
  .modal-md {
    width: 90%;
  }
}

@media screen and (max-width: 600px) {
  .modal-sm {
    width: 90%;
  }
}

@media screen and (max-width: 400px) {
  .modal-xs {
    width: 95%;
  }
}
