.openchat {
    width: 250px;
    height: 70px;
    position: fixed;
    right: 40px;
    bottom: 20px;
    z-index: +28;
    color: white;
    border-radius: 25px;
    /*  box-shadow: 0 0 10px #d53e96;*/
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.openchat img {
    width: 100%;
    height: 100%;
    border-radius: 25px;
}

.openchat img:hover {
    cursor: pointer;
}


/* history chat *************************************************************/

.history_chat {
    display: none;
    width: 320px;
    height: 300px;
    position: fixed;
    right: 20px;
    top: 50px;
    z-index: +30;
    /* background-color: #d14b5d; */
}

.viewold {
    width: 92%;
    height: 35px;
    position: absolute;
    top: 1px;
    left: 0px;
    z-index: +2;
    border-radius: 7px 7px 0px 0px;
    background-color: white;
    color: black;
    font-weight: bold;
    padding-left: 5px;
}

.viewold span {
    color: #633668;
}

.closechat {
    width: 25px;
    height: 25px;
    position: absolute;
    top: 0px;
    right: 0px;
    z-index: +2;
    color: black;
    padding-left: 7px;
    font-weight: bold;
    font-size: 20px;
    border-radius: 50%;
}

.closechat:hover {
    cursor: pointer;
    color: #d53e95;
}

.hchatbox {
    width: 300px;
    height: 300px;
    /* sofia colors*/
    border-radius: 7px;
    overflow: hidden;
    position: relative;
    background-color: white;
}

.hchatbox .hclosechat {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: +2;
    color: #d53e95;
    padding: 3px;
    font-weight: bold;
}

.hchatbox .hclosechat:hover {
    cursor: pointer;
    color: red;
}

.hchatbox .hchat {
    width: 98%;
    height: 300px;
    overflow: auto;
    overscroll-behavior: contain;
    margin: 0px auto;
    background-color: white;
    margin-top: 4px;
    border-radius: 7px;
}


/* me */

.hchatbox .hchat .hme {
    float: left;
    width: 90%;
    min-height: 30px;
    height: auto;
    margin-left: 3%;
    margin-top: 5px;
    border-radius: 7px;
}

.hchatbox .hchat .hme .hcontent {
    width: 80%;
    height: auto;
    overflow: hidden;
}

.hchatbox .hchat .hme .hcontent p {
    width: fit-content;
    height: auto;
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 5px;
    background-color: #d53e95;
    color: white;
    border-radius: 10px;
}

.hchatbox .hchat .hme .hcontent img {
    width: 200px;
    height: 200px;
    float: left;
    border-radius: 7px;
}

.hchatbox .hchat .hme .hcontent a {
    float: left;
    color: blue;
}


/* me */


/* other */

.hchatbox .hchat .hother {
    float: right;
    width: 90%;
    min-height: 30px;
    height: auto;
    background-color: white;
    margin-right: 3%;
    margin-top: 5px;
    border-radius: 7px;
}

.hchatbox .hchat .hother .hcontent {
    float: right;
    width: 80%;
    height: auto;
    overflow: hidden;
}

.hchatbox .hchat .hother .hcontent p {
    float: right;
    width: fit-content;
    height: auto;
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 5px;
    background-color: rgb(115, 113, 113);
    color: white;
    border-radius: 10px 3px 10px 3px;
}


/* other */


/* history chat   ********************************************************************************************************/

.parent_chat {
    display: none;
    width: 320px;
    height: 400px;
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: +30;
}

.chatbox {
    width: 300px;
    height: 400px;
    border: 1px solid #ddd;
    border-radius: 7px;
    overflow: hidden;
    position: relative;
    background-color: white;
}

.chatbox .headtitle {
    width: 90%;
    height: 20px;
    overflow: hidden;
    padding-top: 2px;
    padding-left: 5px;
}

.chatbox .chat {
    width: 98%;
    height: 340px;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0px auto;
    background-color: white;
    margin-top: 4px;
    border-radius: 7px;
}


/* me */

.chatbox .chat .me {
    float: left;
    width: 90%;
    min-height: 30px;
    height: auto;
    background-color: white;
    margin-left: 3%;
    margin-top: 20px;
    border-radius: 7px;
}

.chatbox .chat .me .sofia {
    float: left;
    width: 20%;
    height: 50px;
    margin-left: 5px;
}

.chatbox .chat .me .sofia img {
    width: 40px;
    height: 40px;
}

.chatbox .chat .me .content {
    float: left;
    width: 76%;
    height: auto;
    overflow: hidden;
    background-color: white;
}

.chatbox .chat .me .content p {
    width: fit-content;
    height: auto;
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 5px;
    background-color: #e1dfdf;
    color: #191919;
    border-radius: 10px;
}

.chatbox .chat .me .content img {
    width: 200px;
    height: 200px;
    float: left;
    border-radius: 7px;
}

.chatbox .chat .me .content a {
    float: left;
    color: blue;
}


/* me */


/* other */

.chatbox .chat .other {
    float: right;
    width: 90%;
    min-height: 30px;
    height: auto;
    background-color: white;
    margin-right: 3%;
    margin-top: 5px;
    border-radius: 7px;
}

.chatbox .chat .other .content {
    float: right;
    width: 80%;
    height: auto;
    overflow: hidden;
}

.chatbox .chat .other .content p {
    float: right;
    width: fit-content;
    height: auto;
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 5px;
    background-color: #633668;
    color: white;
    border-radius: 10px;
}


/* other */


/* send ***************************/

.chatbox .send {
    width: 100%;
    height: 50px;
    position: absolute;
    left: 0px;
    bottom: 3px;
    /*  background-color: crimson;*/
}

.chatbox .send input {
    width: 70%;
    height: 30px;
    margin: 3px;
    border-radius: 15px;
    border: 1px solid #ddd;
    padding-left: 10px;
    /* sofia colors*/
}

.chatbox .send input:focus {
    outline-color: rgba(28, 31, 199, 0.295);
}

.chatbox .send button {
    width: 40px;
    height: 40px;
    margin: 3px;
    border-radius: 7px;
    background-color: #20610a;
    color: white;
    border: 1px solid white;
    border-radius: 50%;
    transform: rotate(60deg);
}

.chatbox .send button:hover {
    cursor: pointer;
}

.chat .rateq {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.chat .rateq h3 {
    width: 95%;
    color: #82569b;
    margin-left: 2%;
}

.chat .rateq button {
    width: 80px;
    height: 27px;
    border: 1px solid white;
    background-color: #82569b;
    color: white;
    border-radius: 7px;
    margin-left: 2%;
}

.chat .rateq button:hover {
    cursor: pointer;
}