﻿
.chat-menu {
    width: 0;
    background-color: #f7f7f7;
    overflow-x: hidden;
    height: 200px;
    transition: all linear .5s;
    position: fixed;
    right: 0;
    top: 130px;
    z-index: 200;
    box-shadow: -3px 0px 10px -5px #000;
}

.messages-row {
    max-width: 90%;
    margin: auto;
}

.div-chat-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-chat {
    padding: 5px;
    background: #fff;
    width: 10px;
    height: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 5px;
}

.message-box {
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.m-t-0 {
    margin-top: 0;
}

.message-body {
    max-height: 30px;
    overflow-y: hidden;
    transition: ease-in-out all .5s;
}

.message-box.open-msg .message-body {
    max-height: initial;
}

.message-box p {
    margin-bottom: 5px;
}

/*======================================================================= Live Chat ===============================================================*/

#live-chat {
    bottom: 0;
    font-size: 12px;
    right: 5px;
    position: fixed;
    width: 300px;
    display: inline-flex;
    align-items: flex-end;
    flex-direction: row-reverse;
    z-index: 9999;
    justify-content: flex-start;
    transition: linear all .3s;
    pointer-events: none;
}

    #live-chat * {
        pointer-events: all;
    }

    #live-chat header {
        border-radius: 5px 5px 0 0;
        color: #fff;
        cursor: pointer;
    }

    #live-chat h4 {
        margin-top: 5px;
        margin-bottom: 5px;
    }

        #live-chat h4:before {
            border-radius: 50%;
            content: "";
            display: inline-block;
            height: 8px;
            margin: 0 8px 0 0;
            width: 8px;
        }

    #live-chat h4 {
        font-size: 16px;
    }

    #live-chat h5 {
        font-size: 10px;
    }

    #live-chat form {
        padding: 24px;
    }

    #live-chat input[type="text"] {
        padding: 8px;
        outline: none;
        width: 90%;
        height: 30px;
        border-radius: 25px;
        border: none;
        font-size: 16px;
    }


a.chat-send[name="message"],
a.chat-send[name="recorder"] {
    width: 25px;
    height: 25px;
    background-color: #fb5201;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.canvas2 {
    justify-content: space-evenly !important;
}

.nested-input-div {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
    background: white;
    width: 90%;
    border: 1px solid #d1cdcd4a;
}

.input-div > .chat-send > i {
    height: 11px;
    width: auto;
    font-size: 13px;
    color: white;
}

.chat-message-counter {
    background: #e62727;
    border: 1px solid #fff;
    border-radius: 50%;
    display: none;
    font-size: 12px;
    font-weight: bold;
    height: 28px;
    left: 0;
    line-height: 28px;
    margin: -15px 0 0 -15px;
    position: absolute;
    text-align: center;
    top: 0;
    width: 28px;
}

.chat-close {
    background: #ffffff;
    border-radius: 50%;
    color: #ca227b;
    display: block;
    float: right;
    font-size: 10px;
    height: 16px;
    line-height: 16px;
    margin: 2px 0 0 0;
    text-align: center;
    width: 16px;
}

.chat {
    background: #fff;
    min-height: 380px;
}

.chat-history {
    height: 380px;
    padding: 0;
    overflow-y: scroll;
}

.chat-message {
    padding: 0;
    background: #ededed;
    border-bottom: 1px solid #aaa;
}

    .chat-message:last-child {
        /*border-bottom: 0;*/
    }

    .chat-message img {
        border-radius: 50%;
        float: left;
    }

.chat-message-content {
    margin-left: 20px;
    margin-right: 20px;
    position: relative;
}

.chat-time {
    float: right;
    font-size: 10px;
}

.chat-feedback {
    font-style: italic;
    margin: 0 0 0 80px;
}

.openMsg {
    cursor: pointer;
}

.chat-message-content.closed-msg p {
    max-height: 40px;
    transition: all ease-in-out 0.5s;
    overflow-y: hidden;
    line-height: 1.5;
    margin: 0 !important;
}

.chat-message-content:not(.closed-msg) .dots {
    display: none;
}

.chat-message-content .dots {
    margin: 0;
    line-height: 1;
    color: #000;
    margin-bottom: 5px;
    position: relative;
    bottom: 3px;
}

.chat-message-content p {
    margin-bottom: 2px;
}

.bg-grey {
    background: #e2e0e2;
}

.listing-manager-tile-price {
    display: none;
}

.products span.price {
    display: none !important;
}

.inbox-window {
    width: 280px;
    margin-left: 10px;
}

.inbox-person {
    display: flex;
    width: 100%;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    max-width: 100%;
}

.getCommunication.inbox-person > div:nth-child(2) {
    width: fit-content;
    max-width: 75%;
}

#live-chat .inbox-history h5 {
    font-size: 16px;
    display: inline-block;
    margin: 0;
    line-height: 1;
    max-width: 100%;
}

#live-chat .inbox-history .chat-time {
    float: initial;
    font-size: 12px;
    text-align: right;
}

.subInbox {
    max-height: 219px;
}

.input-box {
    width: 100%;
    border-top: 1px solid #bbb4b4;
    position: relative;
}

    .input-box input[type=text] {
        width: 85%;
        height: 30px;
        border: 0 !important;
        outline: none;
        padding-left: 10px;
    }

    .input-box .sendBtn {
        position: absolute;
        right: 10px;
        top: 5px;
        color: #ffffff;
        border-radius: 100%;
        width: 25px;
        height: 25px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-color: #ca227b;
        cursor: pointer;
    }


div#open-chat {
    height: 328px;
    background: #fff;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    width: 280px;
    position: relative;
}

#open-chat .inbox-window {
    display: inline-block;
    width: 100%;
    height: 100%;
    margin: 0;
}

    #open-chat .inbox-window .chat-header {
        display: inline-block;
        width: 100%;
        overflow: hidden;
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
        position: relative;
    }

#open-chat .chat-header h5 {
    font-size: 10px;
    margin: 0;
    display: inline-flex;
    width: 100%;
    padding: 20px 10px;
    background: #ca227b;
    color: #fff;
    max-width: 100%;
    margin: 0;
}

.single-message {
    max-width: 60%;
    margin: 15px 0;
}

    .single-message.me-owner {
        border: 1px solid #fb5201;
        color: black !important;
        background-color: white;
        justify-self: flex-start;
        align-self: flex-end;
        color: #fff;
        border-radius: 10px;
        padding: 5px;
        width: 60%;
        margin: 2px 0;
        line-height: 1.4;
        padding-left: 5px;
    }

    .single-message.other-owner {
        border: 1px solid #b9dcff;
        background: #fefefe;
        border-radius: 10px;
        padding: 5px;
        width: 60%;
        margin: 2px 0;
        line-height: 1.4;
        padding-left: 5px;
    }

.chat-body {
    display: inline-flex;
    width: 100%;
    flex-direction: column;
    padding: 0 5px;
    box-sizing: border-box;
    height: 100%;
    overflow-y: auto;
    padding-bottom: 40px;
}

#chat-body {
    background-size: 80% auto;
    background-repeat: no-repeat;
    background-position: center;
}

p.short-msg {
    padding-left: 0;
    margin: 0;
    margin-top: 5px !important;
}

.inbox-window form {
    padding: 0 !important;
    height: 28px;
    position: relative !important;
}

    .inbox-window form .chat-input {
        height: 100% !important;
        max-width: 100%;
        resize: none;
    }

    .inbox-window form .chat-send {
        position: absolute;
        border: 0;
        background: transparent;
        font-size: 15px;
        top: 5px;
        right: 10px;
        transition: opacity 200ms;
    }

        .inbox-window form .chat-send:last-child {
            top: 35px;
        }

.close-openchat {
    position: absolute;
    color: #fff !important;
    right: 25px;
    top: 15px;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    z-index: 1000;
}

.rounded-Letter {
    color: #fff;
    margin: 0;
    font-size: 18px;
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: #1c7ea4;
    line-height: 1;
    vertical-align: middle;
    text-align: center;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
}

.flex-1 {
    flex: 1;
}


.flex-2 {
    flex: 2;
}

.flex-3 {
    flex: 3;
}

#live-chat .single-row {
    display: flex;
    align-items: center;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.5;
    padding-top: 10px !important;
}

.inbox-window form .chat-send:focus, .inbox-window form .chat-send:active {
    outline: 0;
}


#live-chat header {
    background: #FB5201;
}

#live-chat h4 {
    color: #fff;
}

.close-btn, .chat-btn {
    position: absolute;
    font-size: 18px;
}

    .close-btn i, .chat-btn i {
        color: #fff;
    }

.close-btn {
    right: 15px;
    top: 10px;
}

.chat-btn {
    right: 35px;
    top: 10px;
}

.chat-header {
    display: flex;
    flex-direction: row;
    position: relative;
    padding: 5px 0;
}

.btn-close-communication {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 18px;
    color: red;
}

#live-chat .inbox-history h5, #live-chat .single-row .short-msg, #live-chat .inbox-history .chat-time {
    color: #000 !important;
}

#live-chat .inbox-history .chat-time {
    line-height: 1.3;
    padding-bottom: 3px;
}

.hide-chat-message {
    display: none;
}

.back-communication .fa {
    color: #fff;
}

.back-communication {
    padding-right: 5px;
}

.active-chat {
    height: initial !important;
}

form#chatForm {
    position: absolute !important;
    bottom: 0;
    right: 0;
    left: 0;
    height: 60px;
}

.inbox-window form .chat-input {
    width: 100%;
    border: 0;
    border-top: 1px solid #ddd;
    padding: 0;
    padding-left: 5px;
    padding-right: 30px;
    line-height: 1.5;
    font-size: 14px;
}

    .inbox-window form .chat-input:focus {
        outline: none;
    }

.fix-obj-image {
    max-width: 40px;
    margin-right: 5px;
    position: relative;
}

.live-chat-scrollup {
    bottom: 0 !important;
}

.live-chat-scrolldown {
    bottom: -440px !important;
}

.live-chat-unvisible {
    display: none !important;
}

.cd-top.cd-is-visible {
    display: none;
}

.audio-single-message {
    width: 90% !important;
    max-width: 90%;
    overflow: hidden;
}

    .audio-single-message audio {
        width: 100% !important;
        max-width: 100%;
    }

.chat-tools {
    position: absolute;
    top: 34px;
    right: 4px;
    color: #fb5201;
    border-radius: 12px;
    border: 2px solid #fb5201;
    background-color: white;
    text-align: center;
    height: 23px;
    transition: width 400ms;
}

.close-tool {
    width: fit-content;
    display: flex;
    justify-content: start;
    flex-direction: row-reverse;
    height: fit-content;
    align-items: center;
    padding: 0 3px;
}

.open-tool {
    width: 95px;
    display: flex;
    flex-direction: row-reverse;
    gap: 18px;
    justify-content: flex-start;
    padding: 10px 5px;
    align-items: center;
}

.chat-send[name=recorder], .chat-send[name=images] {
    width: fit-content;
    position: initial !important
}

.opacity-1 {
    display: flex !important;
    opacity: 1
}

.opacity-0 {
    display: none !important;
    opacity: 0
}

.image-message {
    height: 58px;
    width: 139px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}


    .image-message > img {
        height: 100%;
        width: auto
    }

.delete-image {
    position: absolute;
    cursor: pointer;
    right: 10px;
}

.image-message-container img {
    height: auto;
    width: 145px;
}

.chat-tools .fa-plus {
    transition: transform 300ms;
}

.open-tool.chat-tools .fa-plus {
    transform: rotate(45deg);
}

.close-tool.chat-tools .fa-plus {
    transform: rotate(0deg);
}

.check-message {
    display: flex;
    flex-direction: row;
}

.blue-check span {
    color: #223cda;
    text-shadow: 0px 0px 1px #223cda;
}

.btn-unread-count {
    background: #ffffff00;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 48%;
    bottom: 0 !important;
    top: 8px;
    left: 220px;
    color: #f3eeee;
    font-size: 11px;
    text-align: center;
    position: absolute;
    background-color: #ff0000;
}

.badge_count {
    position: absolute;
    z-index: 1;
    top: 5px;
    right: 0;
    border-radius: 0.25rem;
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    -webkit-transform: translateY(-50%) translateX(50%);
    transform: translateY(-50%) translateX(50%);
    background-color: #ffffff00;
    color: #ff0000 !important;
}

.single-message p {
    overflow-wrap: break-word;
}

.status-circle {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: green;
    border: 2px solid white;
    bottom: 0;
    right: 0;
    position: absolute;
}

#user_image .status-circle {
    bottom: 15px !important;
    right: 25px !important;
}

.dealer-box #user_image .status-circle {
    bottom: 5px;
    right: 5px !important;
}

.chat-send > i {
    font-size: 13px;
    color: #fb5201;
}

.getCommunication p.short-msg,
.getCommunication h5 {
    min-width: 100%;
}

.action-ads {
    color: #000 !important;
    width: 99%;
    overflow: hidden;
    display: inline-block;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
}

    .action-ads:hover {
        color: #fb5201 !important;
    }

.chat-sender {
    height: 38px;
    background-color: #00000008;
    position: absolute;
    width: 100%;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    border-top: 1px solid #d1cdcd4a;
    padding-top: 2px;
}

.send-image {
    filter: invert(1) hue-rotate(.5turn);
    width: 13px;
    height: auto;
}

.input-div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 5px;
}

.nested-input-div.shadow-box {
    box-shadow: 0 0 3px #FB5201;
}

.canvas-record {
}

.canvas-box {
    display: flex;
    justify-content: space-around;
    background: #ffffff00;
    border: none !important;
}

.image-message-container {
    height: 280px;
    padding: 8px;
}

#record-icon {
    opacity: 0;
    font-size: 15px;
    color: red;
    text-shadow: 0px 0px 5px red;
    transition: opacity 800ms;
}

.recording-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.audio-react-recorder {
    height: 28px !important;
    max-width: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 20px;
}

.lds-dual-ring {
    display: inline-block;
    width: 80px;
    height: 80px;
}

    .lds-dual-ring:after {
        content: " ";
        display: block;
        width: 64px;
        height: 64px;
        margin: 8px;
        border-radius: 50%;
        border: 6px solid #FB5201;
        border-color: #FB5201 transparent #FB5201 transparent;
        animation: lds-dual-ring 1.2s linear infinite;
    }

#page-message-loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin: 10px auto;
}

    #page-message-loader:after {
        content: " ";
        display: block;
        width: 15px;
        height: 15px;
        margin: 2px;
        border-radius: 50%;
        border: 2px solid #FB5201;
        border-color: #FB5201 transparent #FB5201 transparent;
        animation: lds-dual-ring 1.2s linear infinite;
    }

.block-message {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12%;
    text-align: center;
    flex-direction: column;
    gap: 0px;
}

.dropbtn {
    background-color: #04AA6D;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }

        .dropdown-content a:hover {
            background-color: #ddd;
        }

.dropdown:hover .dropdown-content {
    display: block;
    left: -10px;
    top: 17px;
}

.dropdown:hover .dropbtn {
    background-color: #3e8e41;
}

@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.link-preview-card {
    padding: 5px 5px 0 5px;
    margin-top: 5px;
}

    .link-preview-card p {
        font-weight: 700;
        color: black;
        font-size: 16px;
    }

    .link-preview-card img {
        object-fit: contain;
        height: 170px;
    }

    .link-preview-card .card {
        padding: 5px;
    }

    .link-preview-card .title {
        font-weight: 700;
        font-size: 16px;
    }

    .link-preview-card .description,
    .link-preview-card .title {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-height: normal;
        -webkit-box-orient: vertical;
    }

.wanted-section {
    background-color: #ff410036 !important;
}

.listingUnavalabe {
    text-align: center;
    color: white;
    background: red;
}

.chatunavalable {
    text-align: center;
    color: #fb5201;
    padding-top: 20%;
}

@media (max-width: 768px) {
    .btn-unread-count {
        left: 90%;
    }

    .badge_count {
        top: 16px;
        right: 32px;
    }

    .chat-body {
        padding-bottom: 157px;
    }

    .chat-sender {
        position: fixed !important;
        background-color: #fcfcfc;
        height: 60px;
    }

    .input-div {
        background-color: #fcfcfc;
        min-height: 100%;
    }

    .chat {
        height: 100%;
    }

    .nested-input-div {
        height: 75%;
    }

    .chat-send > i.fa.fa-camera {
        font-size: 14px;
    }

    a.chat-send[name="message"], a.chat-send[name="recorder"] {
        width: 31px;
        height: 31px;
    }

    .inbox-window {
        width: 100%;
        height: 100%;
        margin-left: 0px;
    }

    #live-chat {
        height: 100%;
        width: 100%;
        left: 0px !important;
    }

    div#open-chat {
        width: 100%;
        height: 100%;
    }

    .live-chat-scrolldown {
        bottom: -1200px !important;
    }

    form#chatForm {
        position: relative !important;
    }

    .chat-history {
        height: 93%;
    }
}
