.chat-body {
    background-color: #f5f6f7;
    overflow: hidden;
}

.chat-container {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-right: auto;
    margin-left: auto;
}

.chat-cont-row {
    align-items: center !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

.chat-card-body {
    padding-right: 0px !important;
}

.chat-input {
    margin-top: 10px;
}

.chat-new-ticket {
    height: calc(100vh - 100px);
    overflow-y: auto;
    padding-bottom: 10px;
}

#chat-messages {
    height: calc(100vh - 185px);
    overflow-y: scroll;
    padding-bottom: 10px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}

.chat-username {
    display: block;
    margin: 6px 0 0 0;
}

.chat-content {
    display: block;
    margin-bottom: 10px;
}

.chat-hour {
    color: #68737d;
    font-size: 13px;
    float: right;
    margin-right: 10px;
}

.chat-textarea-container {
    position: relative;
}

.chat-textarea-container textarea {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.chat-textarea-container button {
    position: absolute;
    top: 0;
    right: 0;
    width: 45px;
    height: 62px;
}

/* Center the loader */
#loader {
    position: fixed;
    display: none;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #494b57;
    width: 120px;
    height: 120px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 767px) {

    .chat-body {
        background-color: transparent !important;
    }

    .chat-container {
        width: 100%;
        padding-right: 0px;
        padding-left: 0px;
        margin-right: auto;
        margin-left: auto;
    }

    .chat-cont-row {
        padding-top: 0px !important;
        padding-bottom: 0px !important;
        margin: 0px !important;
    }

    .chat-cont-row {
        padding: 0px !important;
        margin: 0px !important;
    }

    .chat-card {
        height: 100vh;
        border: none !important;
        border-radius: 10px 10px 8px 8px;
    }

    .chat-header {
        border-radius: 8px 8px 0px 0px !important;
        border-bottom: 0px;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    #chat-messages {
        height: calc(100vh - 145px) !important;
    }

    .chat-input {
        margin-top: 10px;
        position: absolute;
        bottom: 15px;
        width: 100%;
    }

    .chat-resolved {
        bottom: 0px !important;
    }

    .chat-hour {
        margin-right: 7px;
    }
}