.chat__box {
    position: fixed;
    right: 60px;
    bottom: 130px;
    width: 310px;
    height: 450px;
    z-index: 1000;
    color: #000;
}

.hide__chat__box {
    display: none;
}

.chat__box__header {
    position: relative;
    width: 100%;
    height: 35px;
    background: linear-gradient(180deg, #ffb048 29.69%, #ffba60 100%);
    border: 0.3px rgba(187, 187, 187, 0.2);
    box-shadow: 6px 5px 4px rgba(0, 0, 0, 0.06);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.chat__box__body {
    position: relative;
    width: 100%;
    height: calc(100% - (35px + 50px));
    background: #FBFBFB;
    border: 0.3px solid rgba(187, 187, 187, 0.2);
    box-sizing: border-box;
    box-shadow: 6px 5px 4px rgba(0, 0, 0, 0.06);
    border-bottom: none;
}

.chat__box__body__messages {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.chat__box__minimize {
    position: relative;
    width: 25px;
    height: 6px;
    float: right;
    right: 20px;
    margin-top: 15px;
    background: #FFFFFF;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 10px;
}

.chat__box__minimize:hover {
    box-shadow: 0px 0px 10px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.chat__box__footer {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-shrink: 100%;
    height: 50px;
    background: rgb(247, 247, 247);
    border: 0.3px solid rgba(187, 187, 187, 0.2);
    box-sizing: border-box;
    border-top: none;
    box-shadow: 6px 5px 4px rgba(0, 0, 0, 0.06);
}

.chat__box__msg_input {
    position: relative;
    display: flex;
    flex-direction: row;
    flex: 1;
    margin-left: 15px;
    margin-top: 10px;
    float: left;
    border-radius: 25px;
    height: 30px;
    width: 70vw;
    min-width: 70px;
    padding-right: 10px;
    padding-left: 10px;
    background: #EBEBEB;
    border: 0.3px solid rgba(187, 187, 187, 0.2);
    box-sizing: border-box;
}

.chat__box__msg_input:focus {
    outline-color: #ffaf47;
}

.chat__box__msg_send {
    position: relative;
    margin-top: 10px;
    margin-left: 15px;
    margin-right: 15px;
    float: right;
    height: 30px;
    width: 45px;
    min-width: 45px;
    border-radius: 25px;
    background-color: #fcaf4c;
    border: 0.3px solid rgba(187, 187, 187, 0.2);
    box-sizing: border-box;
}

.chat__box__msg_send:hover {
    box-shadow: 0px 0px 2px 2px rgba(0, 0, 0, 0.2);
}

.chat__box_server_msg {
    position: relative;
    padding: 10px;
    padding-left: 14px;
    padding-right: 14px;
    max-width: 80%;
    width: max-content;
    margin-top: 10px;
    margin-bottom: 10px;
    height: auto;
    margin-left: 10px;
    background: #ffd194;
    border-radius: 25px;
    word-break: break-all;
}

.chat__box_user_msg {
    position: relative;
    padding: 10px;
    padding-left: 14px;
    padding-right: 14px;
    max-width: 80%;
    width: max-content;
    margin-top: 10px;
    margin-bottom: 10px;
    height: auto;
    margin: 10px 10px 10px auto;
    background: #ffebd2;
    border-radius: 25px;
    word-break: break-all;
}

.chatbox__open {
    position: fixed;
    right: 50px;
    bottom: 45px;
    width: 60px;
    height: 60px;
    background: #FFA633;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    z-index: 999;
}

.chatbox__open:hover {
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.chatbox__open__msg__count
{
    color: rgb(255, 255, 255);
    font-weight: bold;
    position: absolute;
    background:red;
    border-radius:50%;
    height: 24px;
    width: 24px;
    line-height: 24px;
    text-align: center;
    right: 0px;
}
.chatbox__open__msg__count__hide
{
    display: none;
}

.chatbox_msg_pop
{
    position: fixed;
    display: flex;
    flex-direction: row;
    width: 150px;
    height:25px;
    background: #fff7ed;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 25px;
    padding-top: 5px;
    padding-left: 15px;
    right: 122px;
    bottom: 58px;
    animation: shake 1s;
    /* When the animation is finished, start again */
    animation-iteration-count: infinite;

}
.chatbox_msg_pop span
{
    font-weight:550;
    color: gray;
    
}
.hide_chatbox_msg_pop
{
    display: none;
}

.chat__box__body__new_msg
{
    position:absolute;
    width: 30px;
    height: 30px;
    bottom:10px;
    left:50%;
    transform: translate(-15px, 0%);
    border-radius: 25px;
    background-color: #FFA633;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
}
.chat__box__body__new_msg_hide
{
    display: none;
}
.chat__box__body__new_msg:hover
{
    box-shadow: 0px 0px 2px 2px rgba(0, 0, 0, 0.2);
}
.chat__box_server_error {
    text-align: center;
    position: relative;
    padding: 10px;
    padding-left: 14px;
    padding-right: 14px;
    max-width: 80%;
    width: max-content;
    margin-top: 10px;
    margin-bottom: 10px;
    height: auto;
    margin-left: 10px;
    background: #fff1be;
}

@media only screen and (max-width: 767px) {
    .chat__box {
        position: fixed;
        right: 60px;
        bottom: 130px;
        width: 70vw;
        height: 80vh;
    }
}

@media only screen and (max-width: 576px) {
    .chat__box {
        right: 2.5vw;
        bottom: 13vh;
        width: 95vw;
        height: 75vh;
    }
    .chatbox__open {
        position: fixed;
        right: 5vw;
        bottom: 4vh;
    }
    .chatbox_msg_pop
    {
        position: fixed;
        right: 19vw;
        bottom: 5.6vh;
    }
}

@keyframes shake {
    0% { transform: translate(1px, 0px)  rotate(1deg); box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.12);;}
    50% { transform: translate(-1px, 0px) rotate(-1deg);}
  }