#carChatbox .custom_chatbox_popup {
    height: auto;
}

.HIddenChatBox {

    display: none !important;
}

#carChatbox .custom_chatbox_popup .modal-content {
    padding: 8px;
}

#frame {
    width: 100%;
    max-width: 1000px;
    min-height: 300px;
/*    height: 300px !important;*/
    max-height: 465px;
}

@media screen and (max-width: 360px) {
    #frame {
        width: 100%;
        height: 100vh;
    }
}

#frame .chat-content {
    float: right;
    width: 60%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

@media screen and (max-width: 735px) {
    #frame .chat-content {
        width: calc(100% - 58px);
        min-width: 278px !important;
    }
}

@media screen and (min-width: 900px) {
    #frame .chat-content {
        width: calc(100%);
    }
}

#frame .chat-content .contact-profile {
    width: 100%;
    height: 60px;
    line-height: 60px;
    background: #f5f5f5;
}

#frame .chat-content .contact-profile img {
    width: 40px;
    border-radius: 50%;
    float: left;
    margin: 9px 12px 0 9px;
}

#frame .chat-content .contact-profile p {
    float: left;
}

#frame .chat-content .messages {
    height: auto;
    min-height: calc(100% - 50px);
    max-height: calc(100% - 50px);
    overflow-y: scroll;
    overflow-x: hidden;
}

@media screen and (max-width: 735px) {
    #frame .chat-content .messages {
        max-height: calc(100% - 105px);
    }
}

#frame .chat-content .messages::-webkit-scrollbar {
    width: 8px;
    background: transparent;
}

#frame .chat-content .messages::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
}

#frame .chat-content .messages ul li {
    display: inline-block;
    clear: both;
    float: left;
    position: relative;
    margin: 15px 15px 5px 15px;
    width: calc(100% - 25px);
    font-size: 14px;
}

#frame .chat-content .messages ul li:nth-last-child(1) {
    margin-bottom: 20px;
}

#frame .chat-content .messages ul li.sent img {
    margin: 6px 8px 0 0;
}


/*

  .messages ul li.sent::after {
   border-style: solid;
   position: absolute;
         border-width: 0px 10px 10px 0;
             content: '';
         border-color: transparent #005baa transparent transparent;
         top: 0;
         left: -10px;

       }*/


#frame .chat-content .messages ul li.sent p {
    background: #005baa;
    color: #f5f5f5;
}

#frame .chat-content .messages ul li.replies img {
    float: right;
    margin: 6px 0 0 8px;
}

#frame .chat-content .messages ul li.replies p {
    background: #e6edf4;
    float: right;
}

#frame .chat-content .messages ul li img {
    width: 22px;
    border-radius: 50%;
    float: left;
}

#frame .chat-content .messages ul li.replies p {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px 5px 0px 5px;
    max-width: 205px;
    line-height: 130%;
}

#frame .chat-content .messages ul li.sent p {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px 5px 5px 0;
    max-width: 205px;
    line-height: 130%;
}

@media screen and (min-width: 735px) {
    #frame .chat-content .messages ul li p {
        max-width: 300px;
    }
}

#frame .chat-content .message-input {
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 99;
}

#frame .chat-content .message-input .wrap {
    position: relative;
}

#frame .chat-content .message-input .wrap input {
    float: left;
    border: none;
    width: calc(100% - 50px);
    padding: 11px 32px 10px 8px;
    border: 1px solid #cbcaca;
    height: 40px;
    font-size: 14px;
    color: #000;
}

@media screen and (max-width: 735px) {
    #frame .chat-content .message-input .wrap input {
        padding: 15px 32px 16px 8px;
    }
}

#frame .chat-content .message-input .wrap input:focus {
    outline: none;
}

#frame .chat-content .message-input .wrap .attachment {
    position: absolute;
    right: 60px;
    z-index: 4;
    margin-top: 10px;
    font-size: 1.1em;
    color: #005baa;
    opacity: .5;
    cursor: pointer;
}

@media screen and (max-width: 735px) {
    #frame .chat-content .message-input .wrap .attachment {
        margin-top: 17px;
        right: 65px;
    }
}

#frame .chat-content .message-input .wrap .attachment:hover {
    opacity: 1;
}

#frame .chat-content .message-input .wrap button {
    float: right;
    border: none;
    width: 50px;
    padding: 10px 0;
    cursor: pointer;
    background: #ed1c24;
    color: #f5f5f5;
    border: 1px solid #ed1c24;
}

@media screen and (max-width: 735px) {
    #frame .chat-content .message-input .wrap button {
        padding: 10px 0;
    }
}

#frame .chat-content .message-input .wrap button:hover {
    background: #005baa;
}

#frame .chat-content .message-input .wrap button:focus {
    outline: none;
}
