.mt-modal__overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  pointer-events: none;
  overflow-y: auto;
  pointer-events: auto;
}

.mt-modal {
  position: relative;
  padding: 20px 20px;
  border-radius: 6px;
  .box-shadow(0px 0px 200px 20px fade(@gray-8, 30%));
  background: @modal-background;
  overflow: hidden;
  margin: auto;

  &.show-overflow {
    overflow: visible;
  }
}

.mt-modal__controls {
  float: right;
}

.mt-modal__header {
  background: @modal-header-background;
  color: @modal-text-color;
  font-weight: bold;
  display: flex;
  flex: 1;
  align-items: flex-start;
  justify-content: space-between;

  & > * {
    margin-bottom: 0;
  }

  .h1 {
    font-size: @font-size-base;
    font-weight: bold;
    margin-right: 20px;
    word-break: break-all;
  }

  .h1:first-letter {
    text-transform: uppercase;
  }

  .icon-close {
    width: 20px;
    height: 20px;
    right: 10px;
    top: 15px;
    display: block;
    cursor: pointer;
  }
}

.mt-modal__content {
  .clearfix();
  overflow-y: auto;

  .show-overflow & {
    overflow: visible;
  }

  textarea {
    max-width: none;
    width: 100%;
    height: 170px;
  }

  input[type="text"] {
    max-width: none;
    width: 100%;
  }

  select {
    background-color: @blue-1;
  }

  .input input[type="text"],
  .input input[type="password"],
  .input textarea
  {
    background: @modal-input-background;
  }
}

.mt-modal__footer {
  border-top: 1px solid @modal-footer-border-color;
  background: @white;
  padding: 10px 15px 10px;
  margin-left: -15px;
  margin-right: -15px;
  position: relative;
  bottom: -15px;
  .clearfix();
}