@include prefix(notice-manager) {
  pointer-events: none;

  @include prefix(notice-container) {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;

    @each $horizontal in (start, end) {
      @each $vertical in (start, end) {
        &.notice-container-#{$horizontal}-#{$vertical} {
          justify-content: flex-#{$vertical};

          & > .#{componentName(list)} {
            & > .#{componentName(item)} {
              width: 100%;

              $textAlign: center;
              @if ($horizontal == "start") {
                $textAlign: left;
              }
              @if ($horizontal == "end") {
                $textAlign: right;
              }
              text-align: $textAlign;
            }
          }
        }
      }
    }
  }
}

@include prefix(notice) {
  text-align: initial;
  pointer-events: auto;
  background-color: plv(bg-4);
  display: inline-block;
  padding: plv(notice-padding);
  box-shadow: plv(notice-box-shadow);
  width: plv(notice-width);
  max-width: plv(notice-max-width);
  margin-bottom: plv(notice-space);
  box-sizing: border-box;
  border-radius: plv(box-size-normal-border-radius);
  position: relative;
  overflow: hidden;

  .notice-close {
    position: absolute;
    right: 0;
    top: 0;
    transition: opacity 300ms linear;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    @include prefix(icon) {
      color: plv(pbfc);
      position: relative;
      z-index: 1;

      transform: scale(0.8);
      right: -3px;
      top: -3px;
    }

    &:after {
      position: absolute;
      top: -25px;
      left: 0;
      height: 40px;
      width: 40px;
      content: "";
      transform: rotate(45deg);
      background-color: plv(primary-6);
    }
  }

  .notice-head {
    display: flex;
    align-items: center;
    position: relative;

    .notice-title {
      flex: 1;
      font-size: plv(notice-title-font-size);
      color: plv(text-1);
    }

    .notice-head-icon {
      position: absolute;
      font-size: 24px;
      left: 0;
      top: -0.15em;
      border-radius: 100px;
      padding: 1px;
    }
  }

  .notice-content {
    font-size: plv(notice-content-font-size);
    padding-top: 16px;
    color: plv(text-2);
    line-height: plv(line-height);
  }

  .notice-foot {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 16px;

    & > * {
      & + * {
        margin-left: 8px;
      }
    }
  }

  &.notice-has-icon {
    .notice-head,
    .notice-content,
    .notice-foot {
      padding-left: 32px;
    }
  }

  @include statusMixin(notice) {

    .notice-close {
      &:after {
        background-color: $color-6;
      }

      &:hover {
        &:after {
          background-color: $color-8;
        }
      }
    }
    .notice-title {
      color: $color-6;
    }
    .notice-head-icon {
      color: $color-6;
    }
  }
}
