.add_post_messages {
    min-height: 350px;
    border: 1px solid;
    margin-bottom: 5px;
    padding: 10px 10px;
    overflow-y: scroll;
    height: 350px;
}
.input_area input {
    height: 40px;
    padding: 0px 10px;
    padding-top: 10px;
}
.add_post_messages p.smsg {
    background-color: #E8E8EB;
    border-radius: 8px;
    margin-bottom: 10px;
}
p.pl-left.rsure span {
    border-color: none;
    color: red;
}

.add_post_messages p.smsg span {
    padding: 5px;
    font-size: 20px;
    color: #000000;
    border-radius: 4px;
    background-color: #E8E8EB;
    border: none;
}
.add_post_messages p span {
    border: 1px solid rgb(0, 131, 41);
    padding: 5px;
    font-size: 18px;
    color: rgb(0, 131, 41);
    border-radius: 4px;
}
p.pl-right.p-title span {
    background: rgb(0, 131, 41);
    color: #FFF;
}
.add_post_messages p {
    padding: 4px;
    width: 100%;
    margin-bottom: 0;
}
.chat-popup span img {
    width: 80px;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}
span.pttitle {
    margin-left: 50px;
    font-weight: bold;
}
.add_post_messages p.pl-right {
    display: block;
    background: rgb(0,131,41);
    text-align: left;
}
.add_post_messages p.pl-left {
    display: block;
    text-align: left;
}
.add_post_messages p {
    margin-bottom: 10px !important;
}

/* Button used to open the chat form - fixed at the bottom of the page */
.open-button {
    width: 80px;
    height: auto;
}
.aspost_popup p {
    margin-bottom: 0;
    color: #FFF;
    font-size: 18px;
    font-weight: bold;
}
.aspost_popup {
    border: none;
    cursor: pointer;
    position: fixed;
    bottom: 0;
    right: 28px;
    background: #73CB72;
    padding: 10px 15px;
    width: 165px;
    text-align: center;
}

/* The popup chat - hidden by default */
.chat-popup {
    display: none;
    position: fixed;
    bottom: 0;
    right: 15px;
    border: 3px solid #f1f1f1;
    z-index: 99999999999;
}
.input_area input, .input_area textarea {
    background: #dadada !important;
    color: #000;
    font-weight: bold;
}

/* Add styles to the form container */
.form-container {
    width: 500px;
    padding: 10px;
    background-color: white;
}


/* Full-width textarea */
/*.form-container textarea {
    width: 100%;
    padding: 15px;
    margin: 5px 0 22px 0;
    border: none;
    background: #f1f1f1;
    resize: none;
    min-height: 200px;
}*/

/* When the textarea gets focus, do something */


/* Set a style for the submit/send button */
.form-container .btn {
    background-color: #4CAF50;
    color: #FFFFFF;
    padding: 13px 14px;
    border: none;
    cursor: pointer;
    margin-bottom: 0;
    opacity: 0.8;
}
#add_post_send img {
    width: 14px;
}
.input_area {
    width: 90%;
    float: left;
    margin-right: 5px;
}
.input_area input, .input_area textarea {
 
    border-radius: 4px;
}

/* Add a red background color to the cancel button */
.form-container .cancel {
    background-color: red;
}

/* Add some hover effects to buttons */
.form-container .btn:hover,
.open-button:hover {
    opacity: 1;
}
span.closepup {
    display: inline-block;
    float: right;
    font-size: 24px;
    line-height: 25px;
    cursor: pointer;
    font-weight: bold;
}


span[data-key="0"] {
    background: red !important;
}
.clsbtns span {
    margin-right: 5px;
    font-weight: bold;
    color: #FFF !important;
    background-color: rgb(0, 131, 41);
    cursor: pointer;
    padding: 8px 20px !important;
    margin-top: 5px;
    display: inline-block;
}
.clearfix {
    clear: both;
}
.input_area input#file {
    padding-top: 10px !important;
    display: inline-block;
}
.add_post_messages.loadingBot:after {
    width: 100%;
    content: "";
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #12191f87 url('../images/botLoading.gif') no-repeat center;
    z-index: 999999999;
    background-size: 20%;
}
@media (max-width: 640px) {
    .chat-popup, .aspost_popup {
        right: 0;
    }
    p.pl-right.p-title span{
        background: transparent;    
    }
    .add_post_messages p.pl-right {
        background: rgb(0, 131, 41);
        text-align: left;
        margin-bottom: 5px;
        margin-top: 5px;
    }
    
    .add_post_messages p span {
        border: none;
    }
    .add_post_messages p.pl-left {
        display: block;
        text-align: left;
        border: 1px solid rgb(0, 131, 41);
        margin-bottom: 5px;
        margin-top: 5px;
    }
    .form-container {
        width: 100%;
        padding: 10px;
        background-color: white;
    }
    .input_area {
        width: 87%;
        float: left;
        margin-right: 5px;
    }
}
@media (max-width: 400px) {
    .input_area {
        width: 82%;
        float: left;
        margin-right: 5px;
    }
}
