$namespace: re-message;
$contentFade: #{$namespace}-fade;

.#{$namespace} {
  &-container {
    position: fixed;
    left: 0;
    bottom: 0;
  }

  &-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: calc(100vw - .3rem);
    border-radius: .02rem;
    margin: .08rem .15rem;
    padding: .08rem;
    background-color: #333;
    color: #fff;
    box-shadow: 0 .04rem .08rem #00000059;
    transition: opacity 300ms;
  }

  &-close {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: .2rem;
    height: .2rem;
    font-size: .2rem;
    margin-left: .08rem;
    color: #b0b0b0;

    &:hover {
      color: #fff;
    }
  }
}

.#{$contentFade} {
  &-enter, &-appear {
    opacity: 0;
  }

  &-enter-active, &-appear-active, &-enter-done {
    opacity: 1;
  }

  &-exit {
    opacity: 1;
  }

  &-exit-active {
    opacity: 0;
  }

  &-exit-done {
    display: none;
  }
}

@media only screen and (max-width: 767px) {
  .#{$namespace} {
    &-content {
      width: calc(100vw - .3rem);
      margin: .08rem .15rem;
    }
  }
}