/* chat_open */

.chat_open {
    width: 10vw;
    position: fixed;
    right: 2%;
    bottom: 0%;
    cursor: pointer;
}

.chat_open .text {
    display: none;
    opacity: 0;
    position: absolute;
    bottom: 70%;
    right: 30%;
    padding: 1em .5em 3vw;
    border: 1px solid #fff;
    border-radius: 7px;
    background-color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    line-height: 18px;
    color: #000;
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
}

.chat_open img {
    width: 100%;
    -webkit-transform: scaleX(-1);
        -ms-transform: scaleX(-1);
            transform: scaleX(-1);
}



/* chat */

.chat {
    display: none;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    position: fixed;
    right: 3%;
    bottom: 3%;
    width: 400px;
    height: 80vh;
    overflow: hidden;
    border-radius: 3px;
    background: #fff;
    -webkit-box-shadow: 1px 1px 30px 4px rgba(255, 255, 255, 0.2);
    box-shadow: 1px 1px 30px 4px rgba(255, 255, 255, 0.2);
    z-index: 2;
}


.chat .chat_header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    padding: .75em;
    background: #000;
}

.chat .chat_header .close {
    width: .75em;
    height: .75em;
    margin-right: 1.75em;
    cursor: pointer;
}

.chat .chat_header .online {
    position: relative;
    margin: 0 1.5em;
    padding: .25em 1em;
    color: #000;
    background: #fff;
    border-radius: 3px;
    font-size: 12px;
}

.chat .chat_header .online::after {
    content: "";
    position: absolute;
    top: -4px;
    right: -4px;
    width: 8px;
    height: 8px;
    background-color: #A5F4FF;
    border-radius: 50%;
}


.chat .messages {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    overflow-y: auto;
    padding: .5em 1em 1em;
    color: #000;
    background: #fff;
}

.chat .messages .welcome {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    margin: 0 auto 1.75em;
}

.chat .messages a {
    color: #000;
}

.chat .messages .message {
    position: relative;
    margin: 1em 0;
    background: #f5f5f5;
    border-radius: 3px;
}

.chat .messages .message.user-message {
    max-width: 80%;
    margin-left: auto;
}

.chat .messages .message.bot-message {
    max-width: 85%;
    margin: 0 auto 0 1.5em;
    padding-left: .75em;
}

.chat .messages .message > img {
    position: absolute;
    left: -2em;
    width: 3em;
}

.chat .messages .message > img.manager {
    width: 2em;
}

.chat .messages .message .message-content {
    padding: 10px 15px;
    margin-bottom: 5px;
}


.chat form {
    width: 93%;
    margin: 1.5em auto;
}

.chat form input {
    width: 100%;
    border-radius: 3px;
}

.chat .loading .message-content:after {
    content: '.';
    -webkit-animation: dots 1.5s steps(5, end) infinite;
            animation: dots 1.5s steps(5, end) infinite;
}

@-webkit-keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}


.chat .property-card {
    margin: 1em 0;
}

.chat .property-card .photo {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.chat .property-card .photo img{
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.chat .property-card .location {
    padding-top: .3em;
    font-size: .9em;
    font-weight: 300;
}

.chat .property-card .params {
    margin: .5em 0;
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr .5em 1fr .5em 1fr;
    grid-template-columns: repeat(3, 1fr);
    gap: .5em;
    color: #828282;
    font-size: .9em;
}


.chat .property-card .params .param {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: .3em;
}

.chat .property-card .params .param img {
    -webkit-filter: 
        brightness(0) 
        saturate(100%) 
        invert(54%) 
        sepia(0%) 
        saturate(1352%) 
        hue-rotate(176deg) 
        brightness(89%) 
        contrast(87%);
            filter: 
        brightness(0) 
        saturate(100%) 
        invert(54%) 
        sepia(0%) 
        saturate(1352%) 
        hue-rotate(176deg) 
        brightness(89%) 
        contrast(87%);
    width: 20px;
    height: 20px;
    -o-object-fit: cover;
       object-fit: cover;
}

.chat .property-card .price {
    padding-right: 1.5em;
}

.chat .property-card .price .equivalent {
    font-size: .8rem;
    white-space: nowrap;
}