@z-index: 110;
@body-color: rgb(7, 49, 177);

//动画效果
/* 可以设置不同的进入和离开动画 */
/* 设置持续时间和动画函数 */
.slide-fade-enter-active {
  transition: all .4s ease;
}

.slide-fade-leave-active {
  transition: all .4s ease;
}

.slide-fade-enter, .slide-fade-leave-to {
  transform: translateY(10px);
  opacity: 0;
}

.pp-post-layer {
  div, p, span, input, button, h1 {
    font-family: intercom-font, "Helvetica Neue", "Apple Color Emoji", Helvetica, Arial, sans-serif;
  }

  max-width: 376px;
  background: #fff;
  position: fixed;
  z-index: @z-index;
  right: 40px;
  bottom: 100px;
  box-shadow: rgba(0, 0, 0, 0.14) 0 3px 32px 0;
  border-radius: 7px;
  margin-left: 8px;

  .pp-post-layer-header {
    padding: 24px 24px 16px;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.5;

    .logo {
      border-radius: 50%;
      cursor: default;
      width: 32px;
      height: 32px;
      line-height: 32px;
      font-size: 16px;
      display: inline-block;
      vertical-align: middle;
      margin-right: 16px;

      img {
        border-radius: 50%;
        width: 32px;
        height: 32px;
      }
    }

    .title {
      display: inline-block;
      vertical-align: middle;
      font-size: 13px;
      color: rgb(115, 115, 118);

      .badge {
        width: 10px;
        height: 10px;
        margin-right: 3px;
        margin-bottom: 2.5px;
        vertical-align: middle;
        background-color: #2EA852;
        border-radius: 50%;
        display: inline-block;
      }

      .pp-post-layer-nickname {
        font-weight: bold;
        color: rgb(104, 104, 104);
      }
    }

    .close {
      position: absolute;
      top: 0;
      right: 0;
      z-index: @z-index;
      margin: 0 !important;
      padding: 0 !important;
      width: 72px;
      height: 72px;
      outline-offset: -5px;
      background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMBAMAAACkW0HUAAAAElBMVEWsrbSsrbRHcEysrbSsrbSsrbRHSeN5AAAABXRSTlPIDwC3M1c57JQAAAA6SURBVAjXY3AWUlJSNGEwZVRSEghmEAgQUmRlZABiIItBSSCAlVGJQUmRNUAIQUEEoUqgGqDaIYYBAHZMCOc5ZtbuAAAAAElFTkSuQmCC);
      background-position: center center;
      background-size: 12px 12px;
      background-repeat: no-repeat;
      opacity: 1;
      cursor: pointer;
    }
  }

  .pp-post-layer-title {
    font-size: 24px;
    line-height: 1.33;
    margin: 0 7.31% 14px;
    text-align: center;
    color: @body-color;
    font-weight: normal;
  }

  .pp-post-layer-body {
    padding-left: 14px;
    padding-right: 14px;
    margin: 0 14px 14px;

    p {
      margin: 0 0 10px;
      font-size: 14px;
      line-height: 1.4;
    }
  }

  .pp-post-layer-footer {
    border-top: 1px solid rgb(210, 215, 219);
    width: 100%;
    background-color: rgb(255, 255, 255);
    box-sizing: border-box;
    padding: 15px 25px;
    color: rgb(115, 115, 118);
    font-size: 14px;
    line-height: 26px;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;

    .pp-post-layer-input {
      display: flex;
      justify-content: space-between;

      input {
        padding: 0;
        width: 190px;
        height: 27px !important;
        outline: none;
        border: none;
        min-height: unset;
        flex: 1;
        font-size: 14px !important;
      }
    }
  }


  //操作按钮组
  .pp-post-layer-button-group {
    .pp-post-layer-button-item {
      &.svg-btn {
        background: none;
        outline: none;
        border: none;
      }

      svg {
        height: 18px;
        cursor: pointer;
        position: relative;
        top: 3px;
        fill: #7c7c7c;
      }
    }
  }
}

@media screen {
  @media (max-width: 425px) {
    .pp-post-layer {
      right: 8px;
    }
  }
}
