@import url('../util.css');

.modal-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.25);
}

.modal-overlay.hidden {
  display: none;
}

.modal {
  display: flex;
  flex-direction: column;
  transform: translate(-50%, -50%);
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  background: #fff;
  width: var(--modal-width);
  height: var(--modal-height);
  max-width: var(--modal-max-width);
  max-height: var(--modal-max-height);
  border-radius: var(--modal-border-radius);
  border: none;
  padding: 0;
  margin: 0;
}

.modal::-webkit-scrollbar,
.modal-body::-webkit-scrollbar{
  display: none;
}

.modal-header,
.modal-footer {
  width: 100%;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header {
  border-bottom: var(--border);
}

.modal-footer {
  border-top: var(--border);
}

.modal-title {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.modal-close-button {
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  background: none;
  appearance: none;
  width: 30px;
  height: 30px;
  display: block;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 50%;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url(../../images/icons/close.svg);
}

.modal-close-button:hover {
  background-color: #ddd;
}

.modal-body {
  height: 100%;
  padding: 20px;
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
