
.cch_chatbox {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0, 0.8);
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    text-align: center;
    z-index: 99999;
}

.cch_chatbox .chat_head h2 {
    display: inline-block;
    font-size: 16px;
    margin-bottom: 0;
    font-weight: 400;
}
.cch_chatbox .chat_head {
    border-bottom: solid 1px #eee;
    padding: 12px;
    background-color: #ececec;
    position: relative;
    padding-right: 45px;
}

.cch_chatbox .chat_head .chat_name {
    float: left;
    width: 50%;
    text-align: center;
    border-right: solid 2px #c1c1c1;
}
/*.cch_chatbox .chat_head .chat_service {
    float: right;
}*/
.cch_chatbox .chat_details {
    font-size: 12px;
    margin-bottom: 8px;
}
.chat_body {
    padding: 20px;
    overflow-y: auto;
    height: 300px;
    margin-right: -12px;
    padding-right: 30px;
    width: calc(100% + 12px)!important;
}
.cch_chatbox .chat_body > div {
    width: 80%;
    margin-bottom: 20px;
}
.chat_foot {
    padding: 15px;
    background-color: #f3f3f3;
}
.cch_chatbox .cch_chatbox_inner {
    background-color: #fff;
    max-width: 500px;
    margin: 50px auto;
    overflow: hidden;
}
.chat_body .chat_admin {
    text-align: left;
    float: left;
    clear: both;
}

.chat_body .chat_user .chat_message {
    text-align: right;
    margin-left: auto;
    float: right;
    background-color: #ff4953;
    color: #fff;
    padding: 15px;
    display: inline-block;
    border-radius: 15px;
    position: relative;
    max-width: 250px;
}
.chat_body .chat_user .chat_message p{
    color: #fff;
}
.chat_body .chat_user {
    float: right;
    clear: both;
    text-align: right;
}
.chat_admin .chat_message {
    background-color: #ececec;
    padding: 15px;
    display: inline-block;
    border-radius: 12px;
    max-width: 350px;
    color: #000;
    position: relative;
}
.chat_foot {
    position: relative;
}
.chat_admin .chat_message:before,
.chat_body .chat_user .chat_message:before{
    content: "";
    position: absolute;
    top: 20%;
}
.chat_admin .chat_message:before{
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 7px solid #ececec;
    left: -6px;
}
.chat_body .chat_user .chat_message:before {
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 7px solid #ff4953;
    right: -6px;
}
.chat_instruction p {
    padding: 20px;
}
.chat_sender {
    position: absolute;
    top: 15px;
    right: 15px;
}
.chat_message p {
	margin-bottom: 0;
}
.chatbox-main .chat_head .btn_close {
    /* float: right; */
    background-color: #ff4953 !important;
    border: none;
    box-shadow: none !important;
    color: #fff !important;
    height: 30px;
    width: 30px;
    cursor: pointer;
    position: absolute;
    outline: 0;
    top: 5px;
    right: 5px;
    padding: 0;
}
.cch_chatbox .chat_sender button {
    background-color: #ff4953;
    display: inline-block;
    border-radius: 50px;
    color: #fff;
    padding: 11px 30px;
    font-size: 17px;
    font-weight: 500;
    border: none;
    margin: 0;
}
.cch_chatbox .chat_sender button:focus {
	outline: none;
}
.cch_chatbox .chat_typo input {
    background: #f9f9f9;
    color: #1c3031 !important;
    font-size: 13px;
    border-radius: 27px !important;
    height: 45px;
    border: none;
    padding: 10px 120px 10px 15px;
    width: 100%;
    border: solid 1px #ececec;
}
.cch_chatbox .chat_sender button:hover {
    background-color: #1c3031;
    color: #fff !important;
}
span.chat_name {
    margin-right: 4px;
}
.cch_chatbox_panel {
    display: flex;
    flex-wrap: wrap;
    border: solid 1px #eee;
}
.cch_chatbox_panel > div {
    width: 100%;
}
#loader-chat {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    margin: 0 auto;
    text-align: center;
    background-color: rgb(255 255 255 / 80%);
    height: 100%;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

#loader-chat img {
    height: 100px;
}

/*Fornt chat  Module*/
.homeowner_chatbox {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0, 0.8);
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    text-align: center;
    z-index: 99999;
}

.homeowner_chatbox .chat_head h2 {
    display: inline-block;
    font-size: 16px;
    margin-bottom: 0;
    font-weight: 400;
}
.homeowner_chatbox .chat_head {
    border-bottom: solid 1px #eee;
    padding: 12px;
    background-color: #ececec;
    position: relative;
    padding-right: 45px;
}

.homeowner_chatbox .chat_head .chat_name {
    float: left;
    width: 50%;
    text-align: center;
    border-right: solid 2px #c1c1c1;
}
/*.cch_chatbox .chat_head .chat_service {
    float: right;
}*/
.homeowner_chatbox .chat_details {
    font-size: 12px;
    margin-bottom: 8px;
}

.homeowner_chatbox .chatbox_body > div {
    width: 50%;
    margin-bottom: 20px;
}

.homeowner_chatbox .homeowner_chatbox_inner {
    background-color: #fff;
    max-width: 500px;
    margin: 50px auto;
    overflow: hidden;
}
.chatbox-main .chat_head .ChatModuleClose {
    /* float: right; */
    background-color: #ff4953 !important;
    border: none;
    box-shadow: none !important;
    color: #fff !important;
    height: 30px;
    width: 30px;
    cursor: pointer;
    position: absolute;
    outline: 0;
    top: 5px;
    right: 5px;
    padding: 0;
}
.homeowner_chatbox .chat_sender button {
    background-color: #ff4953;
    display: inline-block;
    border-radius: 50px;
    color: #fff;
    padding: 11px 30px;
    font-size: 17px;
    font-weight: 500;
    border: none;
    margin: 0;
}
.homeowner_chatbox .chat_sender button:focus {
    outline: none;
}
.homeowner_chatbox .chat_typo input {
    background: #f9f9f9;
    color: #1c3031 !important;
    font-size: 13px;
    border-radius: 27px !important;
    height: 45px;
    border: none;
    padding: 10px 120px 10px 15px;
    width: 100%;
    border: solid 1px #ececec;
}
.homeowner_chatbox .chat_sender button:hover {
    background-color: #1c3031;
    color: #fff !important;
}

.homeowner_chatbox_panel {
    display: flex;
    flex-wrap: wrap;
    border: solid 1px #eee;
}
.homeowner_chatbox_panel > div {
    width: 100%;
}

.chatbox_body {
    padding: 20px;
    overflow-y: auto;
    height: 300px;
    margin-right: -12px;
    padding-right: 30px;
    width: calc(100% + 12px)!important;
}

.chatbox_body .chat_admin {
    text-align: left;
    float: left;
    clear: both;
}

.chatbox_body .chat_user .chat_message {
    text-align: right;
    margin-left: auto;
    float: right;
    background-color: #ff4953;
    color: #fff;
    padding: 15px;
    display: inline-block;
    border-radius: 15px;
    position: relative;
    max-width: 250px;
}
.chatbox_body .chat_user .chat_message p{
    color: #fff;
}
.chatbox_body .chat_user {
    float: right;
    clear: both;
    text-align: right;
}
.chatbox_body .chat_user .chat_message:before{
    content: "";
    position: absolute;
    top: 20%;
}

.chatbox_body .chat_user .chat_message:before {
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 7px solid #ff4953;
    right: -6px;
}

button.btn-estimate {
    text-transform: capitalize !important;
}