@import '../../style/mixins/index';

@confirm-prefix-cls: ~'@{ant-prefix}-modal-confirm';

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

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

  .@{ant-prefix}-modal-body {
    padding: @modal-confirm-body-padding;
  }

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

  &-header {
    display: flex;
    align-items: center;

    .@{confirm-prefix-cls}-title {
      display: block;
      // create BFC to avoid
      // https://user-images.githubusercontent.com/507615/37702510-ba844e06-2d2d-11e8-9b67-8e19be57f445.png
      overflow: hidden;
      color: @modal-heading-color;
      font-weight: 600;
      font-size: @font-size-lg;
      line-height: 22px;
    }

    > .@{iconfont-css-prefix} {
      float: left;
      margin-right: 8px;
      padding: 6px;
      font-size: 18px;
      border-radius: 50%;
    }
  }

  .@{confirm-prefix-cls}-content {
    margin-top: 6px;
    margin-left: 38px;
    color: @text-color;
    font-size: @font-size-base;
  }

  .@{confirm-prefix-cls}-btns {
    margin-top: 30px;
    margin-left: 38px;

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

  &-error &-header > .@{iconfont-css-prefix} {
    color: @error-color;
    background-color: @red-1;
  }

  &-warning &-header > .@{iconfont-css-prefix},
  &-confirm &-header > .@{iconfont-css-prefix} {
    color: @warning-color;
    background-color: @yellow-1;
  }

  &-info &-header > .@{iconfont-css-prefix} {
    color: @info-color;
    background-color: @blue-1;
  }

  &-success &-header > .@{iconfont-css-prefix} {
    color: @success-color;
    background-color: @green-1;
  }
}
