@import "../../base/mixins/clearfix";

@confirm-self-prefix-cls: ~"mx-confirm-self";

.@{confirm-self-prefix-cls} {
  .@{mx-prefix}-modal-header {
    display: none;
  }

  .@{mx-prefix}-modal-self-close {
    display: none;
  }

  .@{mx-prefix}-modal-body {
    padding: 30px 40px;
  }

  &-body-wrapper {
    .clearfix();
  }

  &-body {
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    .@{confirm-self-prefix-cls}-title {
      color: #FFF;
      // font-weight: bold;
      font-size: @font-size-lg;

      &-bg {
        padding: 0.8rem 1.7rem;
        border-top-left-radius: 3px;
        border-top-right-radius: 3px;
        background-color: #2d3244;
        color: #fff;
        user-select: none;
      }
    }

    .@{confirm-self-prefix-cls}-content {
      margin-left: 40px;
      margin-right: 40px;
      font-size: @font-size-base;
      color: @text-color;
      margin-top: 28px;
    }

    > .@{iconfont-css-prefix} {
      font-size: 24px;
      margin-right: 16px;
      padding: 0 1px;
      float: left;
    }
  }

  .@{confirm-self-prefix-cls}-btns {
    margin-top: 30px;
    margin-bottom: 16px;
    margin-right: 16px;
    float: right;

    button + button {
      margin-left: 10px;
      margin-bottom: 0;
    }
  }

  &-error &-body > .@{iconfont-css-prefix} {
    color: @error-color;
  }

  &-warning &-body > .@{iconfont-css-prefix},
  &-confirm &-body > .@{iconfont-css-prefix} {
    color: @warning-color;
  }

  &-info &-body > .@{iconfont-css-prefix} {
    color: @primary-color;
  }

  &-success &-body > .@{iconfont-css-prefix} {
    color: @success-color;
  }
}
