.chat_mobile_main {
    position: relative;
    width: 100%;
    height: 247px;
    overflow: hidden;
    display: none;
}

.chat_container {
    position: relative;
    width: 100%;
    margin: auto;
    display: flex;
    align-items: center;
}

.chat_bubble_mobile {
    position: absolute;
    padding: 12px;
    color: #505050;
    margin-bottom: 30px;
    text-align: left;
    opacity: 0;
    --timeline: start;
    z-index: 10000;
}

.chat_bubble1_mobile {
    margin-right: 10%;
    background-color: #FFF0E4;
    border-radius: 4px 4px 4px 0;
    left: 0;
}

.chat_bubble2_mobile {
    margin-left: 10%;
    background-color: #CDE4FF;
    border-radius: 4px 4px 0 4px;
    right: 0;
}

.chat_bubble_mobile .chat_arrow {
    position: absolute;
    bottom: -19px;
    width: 0;
    height: 0;
}

.chat_bubble1_mobile .chat_arrow {
    left: 0;
    border-right: 20px solid transparent;
    border-top: 20px solid #FFF0E4;
}

.chat_bubble2_mobile .chat_arrow {
    right: 0;
    border-left: 20px solid transparent;
    border-top: 20px solid #CDE4FF;
}

@keyframes chatmobile {
    0% {
        opacity: 0;
        transform: scale3d(0,0,0);
    }
    15% {
        opacity: 1;
        transform: scale3d(1,1,1);
    }
    50% {
        opacity: 1;
        transform: scale3d(1,1,1);
    }
    90% {
        opacity: 1;
        transform: scale3d(1,1,1);
    }
    100% {
        opacity: 0;
        transform: scale3d(0,0,0);
        --timeline:done;
    }
}

/*
@media screen and (min-width: 500px) and (max-width: 767px) {
  .chat_mobile_main {
      display: flex;
      position: absolute;
      width: 46%;
      left: 24%;
  }
}
*/

@media screen and (max-width: 767px) {
    .chat_mobile_main {
        display: flex;
        max-width: 350px;
        margin: auto;
    }
}