@import '../../assets/scss/constants/colors.scss';
@import '../../assets/scss/constants/zIndexes.scss';
@import '../../assets/scss/base/mixins.scss';

.modal {
  background-color: $backDropColor;
  height: 100%;
  position: absolute;
  width: 100%;
  z-index: $ziModal;
  top: 0;
  left: 0;

  &-content {
    box-sizing: border-box;
    position: absolute;
    display: flex;
    flex-direction: column;
    left: 50%;
    top: 50%;
    max-height: 450px;
    transform: translate(-50%, -50%);
    background: $white;
  }

  &-header {
    background-color: $deepteal;
    @include alignElement(flex, center, null);
    color: $white;
    padding: 8px;
    height: 30px;
    box-sizing: border-box;

    p {
      font-family: sans-serif;
      font-size: 12px;
      text-align: left;
    }

    .close-modal-btn,
    .extra-modal-btns {
      cursor: pointer;
      font-size: 12px;
      position: absolute;
      right: 10px;
      &:hover {
        color: $black;
      }
    }
  }

  &-body {
    box-sizing: border-box;
    text-align: left;
    flex: auto;
    padding: 15px;
    height: 100%;
    font-size: 12px;
    color: $lightBlack;

    .body-children {
      max-height: 320px;
    }
  }

  &-footer {
    @include alignElement(flex, null, center);
    background: rgb(226, 224, 224);
    height: 45px;
    .button-wrapper {
      padding: 5px;
      width: 100%;
      @include alignElement(flex, center, center);
      button {
        padding: 8px 12px;
        min-width: 60px;
        margin: 0 20px;
      }

      .btn-cancel {
        background: $raven;
        border: none;
        color: $white;
      }

      .btn-continue {
        background-color: $deepteal;
        border: none;
        color: $white;
      }
    }
  }
  .resizer-bottom,
  .resizer-right {
    position: absolute;
    right: 0;
    bottom: 0;
  }
  .resizer-bottom {
    width: 30px;
    height: 2px;
    left: 0;
    cursor: row-resize;
    margin: 0 auto;
    border-top: 1px $eclipse solid;
  }
  .resizer-right {
    width: 2px;
    height: 30px;
    top: 0;
    cursor: col-resize;
    margin: auto;
    border-left: 1px $eclipse solid;
  }
}

@media (min-width: 576px) {
  .modal-content {
    width: 400px;
  }
}
