@include prefix(alert) {
  $icon-width-large: 56px;
  $icon-width-normal: 32px;
  border-radius: plv(box-size-normal-border-radius);
  position: relative;
  padding: 8px 16px;
  line-height: initial;

  .alert-label {
    font-size: plv(font-size-small);
    line-height: plv(line-height);
  }

  .alert-desc {
    font-size: plv(font-size-small);
    line-height: plv(line-height);
  }

  &.alert-has-icon {
    padding-left: $icon-width-normal;

    .alert-icon {
      font-size: 1.2em;
      position: absolute;
      width: $icon-width-normal;
      left: 0;
      top: 0.075em;
      padding-top: inherit;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
  }

  &.alert-has-close {
    $close-width: 34px;
    position: relative;
    padding-right: $close-width;

    .alert-close {
      border-radius: inherit;
      position: absolute;
      top: 0;
      right: 0;
      width: $close-width;
      height: $close-width;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }
  }

  &.alert-has-desc {
    .alert-label {
      font-weight: 600;
    }

    .alert-icon {
      font-size: 28px;
    }

    &.alert-align-left {
      .alert-label, .alert-desc {
        text-align: left
      }
    }

    &.alert-align-center {
      .alert-label, .alert-desc {
        text-align: center
      }
    }

    &.alert-align-right {
      .alert-label, .alert-desc {
        text-align: right
      }
    }
  }

  &:not(.alert-has-desc) {

    &.alert-align-left {
      text-align: left
    }

    &.alert-align-center {
      text-align: center
    }

    &.alert-align-right {
      text-align: right
    }
  }

  &.alert-has-icon {
    &:not(.alert-has-desc) {
      .alert-label {
        display: inline-block;
      }
    }

    &.alert-has-desc {
      padding-left: $icon-width-large;

      .alert-icon {
        width: $icon-width-large;
      }
    }
  }

  /*---------------------------------------theme-------------------------------------------*/

  &.alert-theme-lite {
    @include statusMixin(alert) {
      border:solid 1px $color-3;
      background-color: $color-light-2;
      color: $color-6;
      .alert-close {
        &:hover {
          background-color: $color-light-3;
        }
      }
    }
  }

  &.alert-theme-deep {
    @include statusMixin(alert) {
      background-color: $color-6;
      color: plv(pbfc);
      .alert-close {
        &:hover {
          background-color: $color-8;
        }
      }
    }
  }
}
