// @import '../_utils.scss';
// @import "./icon.scss";
.#{$notice-prefix-cls} {
  width: $notice-width;
  margin-right: $notice-margin-right;
  position: fixed;
  z-index: $zindex-notification;

  &-notice {
    margin-bottom: $notice-margin-bottom;
    // padding: $notice-padding;
    padding: $notice-notice-padding;
    //border: 1px solid $border-color-split;
    border-radius: $border-radius-small;
    box-shadow: $shadow-base;
    @include theme-box-shadow($__notice_box-shadow);
    background: $notice-notice-background;
    @include theme-background-color($__notice_background-color);
    line-height: 1;
    position: relative;
    overflow: hidden;

    &-close {
      position: absolute;
      right: $notice-notice-close-right;
      top: $notice-notice-close-top;
      color: $notice-notice-close-color;
      @include theme-color($__notice-close_icon-color);
      outline: none;

      i {
        @include close-base(1px,14px);
      }
    }

    &-with-desc {
      .#{$notice-prefix-cls}-notice-close {
        top: 11px;
      }
    }
  }

  &-title {
    font-size: $font-size-base;
    font-weight: $notice-title-font-weight;
    color: $text-color;
    @include theme-color($__notice-title_font-color);
    padding-right: $notice-title-padding-right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
  }

  &-with-desc &-title {
    margin-bottom: $notice-with-desc-margin-bottom;
    margin-left: $notice-with-desc-margin-left;
  }

  &-desc {
    font-size: $notice-desc-font-size;
    color: $notice-desc-color;
    @include theme-color($__notice-desc_font-color);
    text-align: justify;
    line-height: 1.5;
  }

  &-with-icon &-title {
    margin-left: $notice-with-icon-margin-left;
  }

  &-with-desc &-desc {
    margin-left: $notice-with-desc-desc-margin-left;
  }

  &-icon {
    // position: absolute;
    position: relative;
    left: 0;
    margin-top: -1px;
    font-size: $notice-icon-font-size;
    display: inline-block;

    &-success {
      color: $success-color;
      @include theme-color($__notice-success_icon-color);
    }

    &-info {
      color: $primary-color;
      @include theme-color($__notice-info_icon-color);
    }

    &-warning {
      color: $warning-color;
      @include theme-color($__notice-warning_icon-color);
    }

    &-error {
      color: $error-color;
      @include theme-color($__notice-error_icon-color);
    }
  }

  &-with-desc &-icon {
    & i.iconfont {
      font-size: $notice-with-desc-iconfont-font-size;
    }
  }

  &-custom-content {
    &::after {
      content: "";
      display: block;
      width: 4px;
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
    }
  }

  &-with-normal {
    &::after {
      background: $notice-with-normal-color;
      @include theme-background-color($__notice_background-color);
    }
    .#{$notice-prefix-cls}-title,.#{$notice-prefix-cls}-desc {
      margin-left: 0;
    }
  }

  &-with-info {
    &::after {
      background: $notice-with-info-color;
      @include theme-background-color($__notice-info_background-color);
    }
  }

  &-with-success {
    &::after {
      background: $notice-with-success-color;
      @include theme-background-color($__notice-success_background-color);
    }
  }

  &-with-warning {
    &::after {
      background: $notice-with-warning-color;
      @include theme-background-color($__notice-warning_background-color);
    }
  }

  &-with-error {
    &::after {
      background: $notice-with-error-color;
      @include theme-background-color($__notice-error_background-color);
    }
  }
}
