@import "../style/var";

.fe-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  display: flex;
  color: @white;
  z-index: 5001;
  font-size: 15px;
  line-height: 1.2;
  border-radius: @base-border-radius;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-sizing: content-box;
  transform: translate3d(-50%, -50%, 0);
  background-color: rgba(51, 51, 51, 0.9);
  width: fit-content;
  white-space: pre-wrap;
  word-break: break-all;
  user-select: none;
  &-unclickable {
    * {
      pointer-events: none;
    }
  }

  &-wrapper {
    transition: opacity 0.2s;
  }

  &.fe-toast-text {
    padding: 12px;
    max-width: 201px;
    min-width: 97px;
    // width: auto
  }

  &-default {
    width: 120px;
    min-height: 120px;
    max-width: 128px;
    // padding: 15px;

    .fe-toast-icon {
      font-size: 38px;
      color: @white;
      white-space: normal;
    }

    .fe-loading {
      margin: 10px 0 5px;
    }
    .fe-toast-img {
      font-size: 38px;
    }
    .fe-toast-text {
      font-size: 14px;
      padding: 10px 8px 0;
      line-height: 20px;
      text-align: center;
    }
  }

  &-top {
    top: 50px;
  }

  &-bottom {
    top: auto;
    bottom: 50px;
  }
}

.fe-toast-fade-enter,
.fe-toast-fade-leave-to {
  opacity: 0;
}
