@media screen and (min-width: 200px) {
    .chat-button {
        top: 0;
        color: white;
        border-radius: 12px 12px 0px 0px;
        padding: 7px 25px;
        font-weight: 700;
        background-color: #4172ed;
        opacity: 1;
        z-index: 1040;
    }
    .chat-content {
        position: fixed;
        right: 10px;
        width: 280px;
        /*height: 165px;*/
        z-index: 1040;
        bottom: 0px;
    }
    .chat-button-content {
        position: fixed;
        bottom: 0;
        right: 38px;
        margin: auto;
        height: 50px;
        margin-top: 10px;
        z-index: 1040;
    }
    .chat-button img {
        margin-right: 10px;
    }
    .chat-container form {
        margin-top: 0px;
        margin-block-end: 0px;
    }
    .chat-button:hover {
        cursor: pointer;
    }

    .chat-button-decoration {
        z-index: 9999;
        position: relative;
        margin: auto;
        top: 16px;
        width: 60px;
        height: 60px;
        border-radius: 40px;
        background-color: #4172ed;
    }

    .chat-container-decoration {
        z-index: -1;
        width: 200px;
        left: 86px;
        bottom: 31px;
        position: absolute;
        height: 200px;
        background-color: #f0f2f7;
        transform: rotate(45deg);
    }

    .chat-person-row:hover {
        cursor: pointer;
    }

    .chat-numberOfNoti {
        width: 14px;
        height: 14px;
        background-color: #f45e00;
        color: white;
        z-index: 3;
        border-radius: 7px;
        position: fixed;
        display: inline-block;
        margin-top: -12px;
        margin-left: 5px;
        font-size: 10px;
    }

    .chat-endlessLogo {
        position: relative;
        margin-top: 8px;
        margin-left: 8px;
    }

    .chat-container {
        display: none;
        position: fixed;
        width: 350px;
        bottom: 65px;
        right: 20px;
        /*right: -300px;*/
        z-index: 1035;
        box-shadow: 0px 0px 12px 6px rgb(58 58 58 / 40%);
        border-radius: 10px;
        font-family: "montserrat", Sans-Serif !important;
    }

    .chat-header {
        width: 100%;
        height: 89px;
        background: linear-gradient(to top, #4172ed, #1d56e3);
        border-radius: 10px 10px 0px 0px;
        text-align: center;
    }

    .chat-header-title {
        font-size: 17px;
        font-weight: bold;
        color: white;
        height: 75px;
        line-height: 75px;
    }

    .chat-header-content {
        width: 50%;
        position: relative;
        margin: auto;
        font-size: 14px;
        color: white;
        display: none;
    }

    .chat-back-button {
        position: fixed;
        margin-top: 15px;
        float: left;
        margin-left: 10px;
        width: 30px;
        height: 35px;
        padding-top: 15px;
        display: none;
    }

    .chat-back-button:hover {
        cursor: pointer;
    }

    .chat-profile-pic {
        width: 41px;
        height: 41px;
        border-radius: 20px;
        border: 1px solid #4ed812;
        background-color: white;
        display: inline-block;
        margin-top: 14px;
        float: left;
        margin-right: 10px;
    }

    .chat-cursor-down {
        transform: rotate(90deg);
    }

    .chat-person-name {
        display: inline-block;
        float: left;
        max-width: 120px;
        font-weight: bold;
        margin-top: 20px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .chat-person-title {
        display: inline-block;
        float: left;
        max-width: 100px;
        font-size: 9px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .chat-tab-content {
        position: relative;
        width: 100%;
        height: 75px;
        margin-top: -30px;
        padding: 10px;
        background-color: transparent;
    }

    .chat-tab {
        width: 49%;
        height: 55px;
        background-color: #364572;
        color: white;
        float: left;
        border-radius: 7px;
        box-shadow: 0px -5px 14px 0px rgb(0 0 0 / 5%);
    }

    .chat-tab.full-width {
        clear: both;
        float: left;
        width: 100%;
        margin-bottom: 10px;
    }

    .empty-chat-text {
        text-align: center;
        width: 100%;
        display: inline-block;
        height: 60px;
        line-height: 60px;
        color: #8c8c8c;
    }

    .chat-tab:hover {
        cursor: pointer;
    }
    .img-responsive {
        width: 100%;
        height: 100% !important;
        border-radius: 30px;
        object-fit: cover;
    }
    .chat-tab-active .chat-tab-icon {
        top: 43% !important;
    }

    .chat-tab-icon {
        width: 20px;
        margin-right: 10px;
        margin-left: 25px;
        float: left;
        display: block;
        top: 50%;
        position: relative;
        -ms-transform: translateY(-50%);
        transform: translateY(-50%);
    }

    .chat-tab-name {
        height: 55px;
        line-height: 55px;
        font-size: 13px;
    }

    .chat-tab-content .chat-institutions {
        float: left;
    }

    .chat-tab-content .chat-messages {
        float: right;
    }

    .chat-tab-active {
        background-color: white;
        color: #3a4757;
        height: 65px;
        border: 0px;
        border-radius: 7px 7px 0px 0px;
    }

    .chat-tab-active.chat-visitors {
        margin-top: 10px;
    }

    .chat-tab-active path.a,
    .chat-tab-active rect.a {
        fill: #3a4757 !important;
    }

    .footer-open .chat-message-content {
        border-radius: 0px !important;
    }
    .chat-message-content {
        width: 100%;
        min-height: 340px;
        /*height: 454px;*/
        background-color: white;
        padding: 10px;
        margin-top: -45px;
        padding-bottom: 0px;
        border-radius: 0px 0px 10px 10px;
    }

    .unvisible {
        display: none !important;
    }

    .chat-page {
        overflow: auto;
        width: 100%;
        height: 384px;
        grid-area: chat-message-list;
        display: flex;
        flex-direction: column-reverse;
        margin-top: 35px;
        border: 4px solid white;
        border-radius: 4px 4px 0px 0px;
        padding: 10px;
        background: white !important;
        box-shadow: 0px 0px 14px 0px rgba(0, 0, 0, 0.16);
    }

    .chat-date-info {
        text-align: center;
        font-size: 8px;
        color: #b4b8bc;
        position: absolute;
        bottom: -13px;
        margin-left: 29px;
    }

    .chat-msg {
        max-width: 245px;
        font-size: 10px;
        background-color: white;
        border-radius: 10px;
        padding: 10px;
        display: block;
        overflow-wrap: break-word !important;
    }

    .chat-get-msg {
        float: left;
        margin-left: 27px;
        font-size: 12px;
        line-height: 1.7;
        /*word-break: break-all;*/
        padding: 10px 20px 10px 20px;
        color: #313131ee;
        background-color: #c3c3c336;
    }

    .chat-get-msg-img {
        width: 30px;
        height: 30px;
        border-radius: 16px;
        border: 1px solid #4ed812;
        float: left;
        margin-left: -5px;
        background-color: white;
        position: absolute;
        top: 3px;
    }

    .chat-send-msg {
        float: right;
        font-size: 12px;
        line-height: 1.7;
        margin-left: 13px;
        padding: 10px 20px 10px 20px;
        /*word-break: break-all;*/
        background-color: rgb(232, 234, 253);
        color: rgb(13, 28, 140);
    }
}

.chat-msg-content {
    width: 100%;
    height: auto;
    z-index: 4;
    margin-bottom: 8px;
    position: relative;
    overflow-wrap: break-word !important;
}

/* *** footer *** */
.chat-footer {
    display: none;
    position: relative;
    margin-left: 0px;
    width: 100%;
    min-height: 56px;
    max-height: 120px;
    background-color: white;
    border-radius: 0px 0px 10px 10px;
    box-shadow: rgb(0 0 0 / 0.05) 4px -4px 10px;
}

.chat-media-button {
    display: inline-block;
    margin-top: 12px;
    margin-left: 10px;
    bottom: -5px;
    width: 42px;
    height: 42px;
    border-radius: 21px;
    position: absolute;
    right: 40px;
}

.chat-media-button:hover {
    cursor: pointer;
}

.chat-send-button {
    bottom: 10px;
    width: 36px;
    border: 0px;
    height: 36px;
    border-radius: 18px;
    background-color: #fd6a6a;
    position: absolute;
    right: 13px;
}

.chat-send-button {
    cursor: pointer;
}

.chat-new-message[contentEditable="true"]:empty:not(:focus):before {
    pointer-events: none;
    content: attr(placeholder);
}

.chat-send-button-icon {
    margin-top: 5px;
    padding: 2px;
    margin-left: -3px;
}

.chat-new-message:focus {
    outline-width: 0;
    outline: 0px !important;
}
.chat-new-message {
    max-height: 90px;
    overflow: auto;
    overflow-x: hidden;
    bottom: 11px;
    width: 70%;
    /*margin-top: 17px;*/
    /*height: 60px;*/
    padding-top: 17px;
    padding-bottom: 16px;
    border: 0px;
    padding-left: 10px;
    background: transparent;
    z-index: 999;
    font-size: 13px;
    color: #5c6774;
    outline-width: 0;
    display: inline-block;
}

/* *** ------ *** */
/* message list */
.chat-institution-list-icon path.c {
    fill: #d7dadf !important;
}
.chat-institutions-search-area {
    width: 100%;
    border: 1px solid #ededed !important;
    outline: 0 !important;
    box-shadow: 0px 0px 0px 0px transparent !important;
    border-radius: 20px !important;
    height: 35px !important;
    line-height: 40px !important;
}
.chat-institutions-search-area:focus {
    box-shadow: inset 0px 0px 0px 0px transparent !important;
    outline: 0 !important;
}
.chat-person-list,
.chat-visitors-list {
    width: 100%;
    background-color: white;
    border-radius: 7px;
    height: 440px;
    max-height: 440px;
    display: none;
    margin-top: 35px;
    overflow-y: scroll !important;
    box-shadow: 0px 0px 14px 0px rgba(0, 0, 0, 0.16);
}

.chat-person-row,
.chat-institution-row {
    width: calc(100% - 10px);
    height: 70px;
    padding: 5px;
    border-bottom: 1px solid #f0f2f7;
    font-size: 13px;
}

.chat-person-row {
    position: relative;
    width: calc(100% - 10px);
    height: 80px;
    padding: 5px;
    border-bottom: 1px solid #f0f2f7;
    font-size: 10px;
    background: white;
}

.chat-online-icon {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    display: inline-block;
    margin-right: 5px;
    background-color: #4ed812;
}

.chat-person-row:hover,
.chat-institution-row:hover {
    cursor: pointer;
}

.chat-person-row:hover {
    cursor: pointer;
}

.chat-person-active,
.chat-institutions-active {
    border: 2px solid #4ed812 !important;
}
.chat-person-active-point {
    width: 15px;
    position: relative;
    height: 15px;
    right: -28px;
    top: -11px;
    border-radius: 50%;
    background: #4ed812 !important;
    border: 2px solid white !important;
}

.chat-person-busy-point {
    width: 15px;
    position: relative;
    height: 15px;
    right: -28px;
    top: -11px;
    border-radius: 50%;
    background: #ff742c !important;
    border: 2px solid white !important;
}

.chat-person-inactive,
.chat-institutions-inactive {
    border: 2px solid #c6c6c6 !important;
}

.chat-person-image,
.chat-institutions-image {
    width: 44px;
    height: 44px;
    border: 2px solid #c6c6c6;
    border-radius: 23px;
    float: left;
}

.chat-institutions-image {
    border: 0px;
    height: 38px;
    margin-top: 8px;
    border-radius: 25px;
    width: 38px;
}

.chat-institutions-img {
    border: 0px;
    width: 100%;
    height: 100%;
    border-radius: 25px;
    line-height: 44px;
    object-fit: contain;
}

.chat-row-part-1 {
    width: 20%;
    height: 48px;
    float: left;
}

.chat-row-part-2 {
    width: 80%;
    height: 48px;
    font-size: 13px;
    float: left;
}

.chat-row-part-3 {
    z-index: 9999999;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translate(0, -50%);
}

.chat-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
}
.chat-close-btn:hover {
    cursor: pointer;
}

.chat-person-list-name,
.chat-institution-list-name {
    margin-top: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #3f3f3f;
}

.chat-person-list-title,
.chat-institution-list-title,
.chat-visitors-list-title {
    color: #adadad;
    font-size: 10px;
}

.chat-person-list-icon,
.chat-institution-list-icon,
.chat-visitors-list-icon {
    margin-top: -41px;
    z-index: 5;
    position: relative;
    top: 4px;
    line-height: 25px;
    float: right;
    padding: 10px;
}
.chat-person-list-icon {
    margin-top: -28px;
}
.form-control:focus {
    border-color: #ededed !important;
    outline: 0;
    /*-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6) !important;*/
    /*box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgb(102 175 233 / 0%) !important;*/
}

/*...*/
.chat-institutions-list {
    width: 100%;
    background-color: white;
    border-radius: 0px 7px 7px 7px;
    height: 397px;
    max-height: 397px;
    margin-top: 10px;
    overflow-y: auto !important;
}

.chat-institution-list .etc {
    width: 95% !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-institution-content {
    max-height: 300px;
    display: none;
    background-color: white;
    padding: 10px;
    overflow: scroll;
}

/* download button css */
.chat-file-download a {
    color: white;
}

.chat-file-download:hover {
    text-decoration-line: underline;
    cursor: pointer;
}

.chat-file-download {
    border-top: 1px solid #c4c8cf;
    text-align: center;
    font-weight: 700;
    font-size: 12px;
    margin-top: 5px;
    padding-top: 5px;
}
.chat-file-icon-name {
    font-weight: 700;
    font-size: 11px;
    margin-top: 5px;
}
.chat-file-name {
    font-weight: 700;
    font-size: 11px;
}
.chat-file-size {
    font-size: 9px;
    color: white;
}
.chat-send-file {
    padding: 13px;
    color: white;
}
.company-unread-count,
.agent-unread-count,
.total-unread-count,
.visitor-unread-count {
    float: right;
    margin-top: -22px;
    border-radius: 100%;
    color: white;
    width: 15px;
    height: 15px;
    margin-right: 5px;
    background: #4172ed;
    line-height: 15px;
    font-size: 10px;
    text-align: center;
}
.total-unread-count {
    margin-right: 10px;
    margin-top: -45px;
    background: #f45e00;
}
.agent-unread-count {
    margin-top: -10px;
}

@media screen and (max-width: 450px) {
    .chat-content {
        position: fixed;
        left: 0;
        right: 0;
        margin: auto;
        width: 84px;
        height: 84px;
        z-index: 1040;
        bottom: 10px;
    }
    .chat-container {
        position: fixed;
        width: 350px;
        bottom: 90px;
        right: 0;
        left: 0;
        margin: auto;
        /*right: -300px;*/
        z-index: 1035;
        box-shadow: 0px 0px 12px 6px rgb(58 58 58 / 40%);
        border-radius: 10px;
        font-family: "montserrat", Sans-Serif !important;
    }
    .chat-button {
        width: 75px !important;
        height: 75px !important;
        border-radius: 52px;
        background-color: #4172ed;
        opacity: 1;
        bottom: 18px;
        margin: auto;
        /* z-index: 1040; */
    }
    .chat-button-content {
        border-radius: 52px;
        position: fixed;
        left: 0;
        right: 0;
        margin: auto;
        height: 80px;
        z-index: 1040;
        bottom: 10px;
    }
    .chat-button-decoration {
        width: 55px;
        height: 55px;
        top: 10px;
    }
    .chat-endlessLogo {
        margin-top: 7px;
        margin-left: 5px;
    }
}
@media screen and (min-height: 650px) and (max-height: 700px) {
    .chat-institutions-list,
    .chat-visitors-list {
        height: 390px;
    }
    .chat-person-list,
    .chat-visitors-list {
        height: 390px;
    }
    .chat-page {
        height: 330px;
    }
    /*.chat-button-decoration{*/
    /*    top: 10px;*/
    /*    width: 70px;*/
    /*    height: 70px;*/
    /*}*/
}
@media screen and (max-height: 685px) {
    .chat-institutions-list {
        height: 300px;
    }
    .chat-person-list,
    .chat-visitors-list {
        height: 300px;
    }
    .chat-page {
        height: 300px;
    }
}
@media screen and (max-width: 320px) {
    .chat-button-content {
        position: fixed;
        left: 0;
        right: 0;
        margin: auto;
        height: 150px;
        z-index: 1040;
        bottom: 10px;
    }
    .chat-container {
        width: 290px !important;
    }
    .chat-message-content {
        min-height: auto;
    }
}

@media screen and (max-width: 851px) {
    .chat-button-content {
        position: fixed;
        left: 0;
        right: 0;
        margin: auto;
        height: 80px;
        z-index: 1040;
        bottom: 10px;
        width: 75px;
    }
    .chat-button-decoration {
        z-index: 9999;
        position: relative;
        margin: auto;
        top: 11px;
        width: 60px;
        height: 60px;
        border-radius: 40px;
    }
    .chat-button-text {
        display: none;
    }
    .chat-button {
        display: flex;
        padding: 20px !important;
        top: 0;
        width: 80px;
        height: 80px;
        border-radius: 52px;
    }
    .chat-button img {
        margin: 0px;
        width: 70px;
    }
    .chat-container {
        margin: auto;
        left: 0;
    }
}
/* ====  ANIMATION  ====  */
.slide-in.from-left {
    left: 0;
}

.slide-in.from-right {
    right: 0;
}
.slide-in.from-left .slide-in-content {
    transform: translateX(-100%);
    -webkit-transform: translateX(-100%);
}

.slide-in.from-right .slide-in-content {
    transform: translateX(100%);
    -webkit-transform: translateX(100%);
}

.slide-in.show .slide-in-content {
    transform: translateX(0);
    -webkit-transform: translateX(0);
}
.slide-in-content {
    transition: transform 0.5s ease; /* our nice transition */
}
#videoCaller {
    display: inline-block;
    margin-top: 12px;
    margin-left: 10px;
    bottom: -3px;
    width: 42px;
    height: 42px;
    position: absolute;
    right: 10rem;
    color: #fd6a6a;
    font-size: 1.3em;
    cursor: pointer;
}
