/*------------------------floating-wpp------------------------*/

.floating-wpp {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  font-size: 1.4rem;
  transition: bottom 0.2s;

  .floating-wpp-button {
    position: relative;
    border-radius: 50%;
    box-shadow: 1px 1px 4px rgba(60, 60, 60, 0.4);
    transition: box-shadow 0.2s;
    cursor: pointer;
    overflow: hidden;

    img,
    svg {
      position: absolute;
      width: 100%;
      height: auto;
      object-fit: cover;
      top: 50%;
      left: 50%;
      transform: translate3d(-50%, -50%, 0);
    }
  }

  &:hover {
    bottom: 1.7rem;

    .floating-wpp-button {
      box-shadow: 1px 2px 8px rgba(60, 60, 60, 0.4);
    }
  }

  .floating-wpp-popup {
    border-radius: 0.6rem;
    background-color: #ffffff;
    position: absolute;
    right: 0;
    overflow: hidden;
    padding: 0;
    box-shadow: 1px 2px 8px rgba(60, 60, 60, 0.25);
    width: 0;
    height: 0;
    bottom: 0;
    opacity: 0;
    transition: bottom 0.1s ease-out, opacity 0.2s ease-out;
    transform-origin: bottom;

    &.active {
      padding: 0 12px 12px 12px;
      width: 21rem;
      height: auto;
      bottom: 5.5rem;
      opacity: 1;

      .floating-wpp-message {
        opacity: 1;
        transition-delay: 0.2s;
      }
    }

    .floating-wpp-message {
      background-color: white;
      padding: 8px;
      border-radius: 0 5px 5px 5px;
      box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15);
      opacity: 0;
      transition: opacity 0.2s;
    }

    .floating-wpp-head {
      text-align: right;
      color: white;
      padding: 3px 5px 0 0;
      cursor: pointer;
      display: none;
    }
  }

  .floating-wpp-input-message {
    background-color: white;
    margin: -2px -19px -15px -17px;
    padding: 0 15px;
    display: flex;
    align-items: center;

    textarea {
      border: 1px solid #ccc;
      border-radius: 4px;
      box-shadow: none;
      padding: 8px;
      margin: 10px 0;
      width: 100%;
      max-width: 100%;
      font-family: inherit;
      font-size: 14px;
      resize: none;

      &.scroll::-webkit-scrollbar {
        display: none;
      }
    }
  }

  .floating-wpp-btn-send {
    margin-left: 12px;
    font-size: 0;
    cursor: pointer;
  }
}
