
  *, *::before { box-sizing: border-box; }
  .chat {
    display: flex;
    flex-direction: column-reverse;
    height: 100%;
    overflow: hidden;
    border: none;
    font-family: 'Open Sans';
    color: #313131;
    position: relative;
  }
  .chat::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    height: 10%;
    width: 100%;
    background: linear-gradient(to bottom, white 10%, rgba(255, 255, 255, 0)) repeat-x;
  }
  .chat p { margin: 0; padding: 0; }
  .chat__content {
    flex: 0 1 auto;
    padding: 1rem;
    margin: 0 0.5rem;
    background: linear-gradient(300deg, #ffffff 0%, #b5bfce 150%) !important;
    border-radius: var(--radius);
    max-width: 35%;
  }
  .chat__message {
    width: 45%;
    display: flex;
    align-items: flex-end;
    transform-origin: 0 100%;
    padding-top: 0;
    transform: scale(0);
    max-height: 0;
    overflow: hidden;
    animation: message 0.15s ease-out 0s forwards;
    animation-delay: var(--delay);
    --bgcolor: #d8d8d8;
    --radius: 8px 8px 8px 0;
  }
  .chat__message_B {
    flex-direction: row-reverse;
    text-align: right;
    align-self: flex-end;
    transform-origin: 100% 100%;
    --bgcolor: #d2ecd4;
    --radius: 8px 8px 0 8px;
  }
  .chat__message::before {
    content: "";
    flex: 0 0 30px;
    aspect-ratio: 1/1;
    background: var(--bgcolor);
    border-radius: 50%;
    background-image: url(user.png);
    background-repeat: no-repeat;
    background-position: 0px 0px;
  }

  @keyframes message {
    0% { max-height: 100vmax; }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); max-height: 100vmax; overflow: visible; padding-top: 1rem; }
  }