@import './../index.scss';
@import '~amos-framework/lib/styles/mixins/scrollbar.scss';

.eb-modal {
  .amos-modal-container {
    background: $background-transparent;
    border-radius: 6px;
    box-shadow: 0 0 6 rgba(0, 0, 0, 0.16);
  }

  &.no-overflow {
    overflow: inherit;

    .amos-modal-container {
      overflow: inherit;
    }

    .amos-modal-container .amos-modal-content {
      overflow: inherit;
    }
  }

  .amos-modal-header {
    display: flex;
    width: 100%;
    height: 30px;
    align-items: center;
    padding: 0 0 0 18px;
    // background: $modal-header-bg;
    background: $eb-model-header-background;
    border-bottom: 1px solid $border-color-eaeaea;
    border-radius: 6px 6px 0 0;

    .amos-modal-title {
      font-size: 14px;
      // color: $frame-fourth-color;
      color: $font-color-333333;
    }
  }

  .amos-modal-close {
    display: flex;
    width: 30px;
    height: 30px;
    padding: 0;
    background: $modal-colse-bg;
    align-items: center;
    justify-content: center;

    .amos-modal-close-x {
      width: auto;
      height: auto;
      line-height: inherit;
      color: $frame-third-color;

      &::after {
        display: block;
        width: 20px;
        height: 20px;
        background-image: url('~@gm/graphmod-assets/assets/common/closeWhite.png');
        background-size: 100%;
        content: '';
      }
    }
  }

  .amos-modal-content {
    // @include default-scroll;
    @include pretty-scrollbar(5px, 8px, $scrollOutColor, $scrollInnerColor);

    max-height: 60vh;
    min-height: 100px;
    padding: 10px 0;
    /* stylelint-disable-next-line declaration-no-important */
    background: $eb-modal-content-background !important;
  }

  .amos-modal-footer {
    display: flex;
    width: 100%;
    height: 60px;
    padding: 0;
    // background: $modal-footer-bg;
    // border: 1px solid $frame-main-bordercolor;
    background: $eb-model-header-background;
    border-top: 1px solid $border-color-eaeaea;
    border-bottom: 1px solid $border-color-eaeaea;
    align-items: center;
    justify-content: flex-end;
    border-radius: 0 0 6px 6px;

    .amos-btn {
      height: 32px;
      padding: 0 20px;
      font-size: $frame-second-fontsize;
      border: 0;
      border-radius: 6px;

      &.eb-modal-save {
        // color: $frame-third-color;
        // background: $frame-main-color;
        color: $font-color-999999;
        background: $eb-modal-btn-save-background;
        border: 1px solid $eb-modal-btn-save-border;
      }

      &.eb-modal-cancel {
        margin-right: 35px;
        margin-left: 32px;
        color: rgba(153, 153, 153, 1);
        // background: $frame-main-bg;
        // border: 1px solid $frame-main-bordercolor;
        background: $eb-modal-btn-cancel-background;
        border: 1px solid $eb-modal-btn-cancel-border;
      }

      &:last-child {
        margin-right: 35px;
        margin-left: 32px;
      }
    }
  }
}
