/* Bottom Chat */
.bottom-chat-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: fixed;
    right: 20px;
    bottom: 19px;
    z-index: 2000;
}

.bottom-chat-box {
    position: fixed;
    display: none;
    bottom: -20px;
    right: 20px;
    width: 350px;
    border-radius: 10px;
    box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 50%);
    margin-bottom: 20px;
    transform: translateY(100%);
}

.bottom-chat-box.is_close {
    animation: slide-out 0.5s forwards;
    -webkit-animation: slide-out 0.5s forwards;
    transition: all .3s ease-out;
}

.bottom-chat-box.is_open {
    animation: slide-in 0.5s forwards;
    -webkit-animation: slide-in 0.5s forwards;
    opacity: 1;
    transition: all .3s ease-in-out;
    bottom: -1px;
}

@keyframes slide-in {
    0% {
        -webkit-transform: translateY(100%);
        opacity: 0;
    }
    100% {
        -webkit-transform: translateY(0%);
    }
}

@-webkit-keyframes slide-in {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0%);
    }
}

@keyframes slide-out {
    0% {
        transform: translateY(0%);
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

@-webkit-keyframes slide-out {
    0% {
        -webkit-transform: translateY(0%);
    }
    100% {
        -webkit-transform: translateY(100%);
        opacity: 0;
    }
}

.bottom-chat-box-header {
    padding: 10px 15px 10px 10px;
    inset: 0;
    display: flex;
    justify-content: end;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background: #d44747;
    color: white;
    height: 220px;
    transition: all .3s ease-in-out;
}

.bottom-chat-box-header.conv_open {
    height: 170px;
}

.bottom-chat-box-header .header-conv {
    position: fixed;
    top: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transition: all .3s ease-in-out;
}

.bottom-chat-box-header .header-conv .header-conv-title {
    padding: 10px 20px 0 10px;
}

.bottom-chat-box-header .header-conv .header-conv-title.is_open {
    animation: slide-in-header-conv 0.3s forwards;
}

.bottom-chat-box-header .header-conv .header-conv-title.is_close {
    animation: slide-out-header-conv 0.3s forwards;
}

@keyframes slide-in-header-conv {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0%);
    }
}

@keyframes slide-out-header-conv {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@-webkit-keyframes slide-in-header-conv {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0%);
    }
}

@-webkit-keyframes slide-out-header-conv {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

.bottom-chat-box-back {
    cursor: pointer;
    padding: 10px;
}

.info_typing {
    display: none;
    font-size: 11px;
    font-style: italic;
}

.bottom-chat-box-close {
    padding: 10px;
    cursor: pointer;
    z-index: 999;
}

.bottom-chat-box-body {
    display: flex;
    flex-direction: column;
    height: 400px;
    background: white;
    padding: 20px 20px 10px 20px;
    max-height: 400px;
    overflow: auto;
    -webkit-overflow-scrolling: auto;
    transition: all .3s ease-in-out;
}

.bottom-chat-box-body.conv_open {
    height: 450px;
    max-height: 450px;
}

.chat-box-info {
    position: fixed;
    inset: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.chat-box-info .chat-box-info-panel {
    padding: 10px 16px 55px;
    transition: all .3s ease-in-out;
}

.chat-box-info .chat-box-info-panel .header-welcome {
    padding-left: 10px;
    transition: all .3s ease-in-out;
    color: white;
}

.chat-box-info .chat-box-info-panel .header-welcome.is_open {
    animation: slide-in-header-welcome 0.3s forwards;
}

.chat-box-info .chat-box-info-panel .header-welcome.is_close {
    animation: slide-out-header-welcome 0.3s forwards;
}

@keyframes slide-in-header-welcome {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0%);
    }
}

@keyframes slide-out-header-welcome {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

.chat-box-info-panel .chat-box-info-panel-home {
    background: #ffffff;
    border-radius: 4px;
    padding: 20px;
    box-shadow: rgb(0 0 0 / 10%) 0 4px 15px 0, rgb(0 0 0 / 10%) 0 1px 2px 0;
    transform: translateX(-100%);
    transition: transform .3s ease-in-out, opacity .3s ease-in-out;
}

.chat-box-info-panel-home.is_close {
    animation: slide-out-box-info 0.5s backwards;
}

.chat-box-info-panel-home.is_open {
    animation: slide-in-box-info 0.5s forwards;
}

@-webkit-keyframes slide-in-box-info {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0%);
    }
}

@-webkit-keyframes slide-out-box-info {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

.chat-box-info-panel .chat-box-info-panel-home .btn-start-conv {
    height: 40px;
    font-size: 14px;
    line-height: 40px;
    pointer-events: auto;
    cursor: pointer;
    border-radius: 40px;
    text-align: center;
    padding: 0px 24px;
    background-color: rgb(35, 146, 236);
    color: rgb(255, 255, 255);
    transition: color 0.3s ease 0s, background-color 0.3s ease 0s;
}

.bottom-chat-box-lawan {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 3px;
}

.conv-lawan-box {
    display: flex;
    justify-content: start;
    max-width: 65%;
}

.conv-lawan-box.is_box_first:before {
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid #676767;
    border-top: 5px solid #676767;
    border-bottom: 5px solid transparent;
}

.conv-lawan-box.is_box_first .conv-lawan {
    border-top-left-radius: 0;
}

.conv-lawan-box.is_box_child .conv-lawan {
    margin-left: 10px;
}

.conv-lawan {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    font-size: 12px;
    background: #676767;
    color: white;
    padding: 5px 7px 5px 10px;
    border-radius: 10px;
}

.conv-lawan-box.is_box_child .conv-lawan-with-image {
    margin-left: 10px;
}

.conv-lawan-box.is_box_first .conv-lawan-with-image {
    border-top-left-radius: 0;
}

.conv-lawan-with-image {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    font-size: 12px;
    font-family: Tahoma, Verdana, Arial, serif;
    background: #676767;
    color: #ffffff;
    padding: 5px 7px 5px 10px;
    border-radius: 10px;
}

.conv-lawan-image {
    max-height: 200px;
    margin-right: 2px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.conv-lawan-image a {
    display: flex;
    width: 200px;
    height: 200px;
    cursor: pointer;
}

.conv-lawan-image a img {
    width: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.conv-lawan-nama {
    display: flex;
    color: #5effb8;
    margin-bottom: 3px;
}

.conv-lawan-text {
    display: flex;
    justify-content: space-between;
}

.conv-lawan-with-image > .conv-lawan-text {
    justify-content: end;
}

.conv-date-lawan {
    display: flex;
    align-items: end;
    font-size: 10px;
    margin-left: 8px;
    color: #e8e8e8;
}

.bottom-chat-box-users {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 3px;
}

.divider-box-message {
    display: flex;
    justify-content: center;
    margin: 10px 0;
    position: sticky;
    top: 0;
}

.divider-box-message-date {
    display: flex;
    justify-content: center;
    width: 130px;
    background: #f1f1f1;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 10px;
    font-family: Tahoma, Verdana, Arial, serif;
    color: #9b9b9b;
}

.conv-users-box{
    display: flex;
    justify-content: end;
    max-width: 65%;
}

.conv-users {
    display: flex;
    line-height: 1.2;
    font-size: 12px;
    background: #d44747;
    color: white;
    padding: 5px 7px 5px 10px;
    border-radius: 10px;
}

.conv-user-text {
    display: flex;
    justify-content: space-between;
}

.conv-user-with-image {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    font-size: 12px;
    background: #d44747;
    color: white;
    padding: 5px 7px 5px 10px;
    border-radius: 10px;
}

.conv-user-with-image > .conv-user-text {
    justify-content: end;
}

.conv-user-image {
    display: flex;
    width: 200px;
    height: 200px;
    max-height: 200px;
    margin-right: 2px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.conv-user-image a {
    display: flex;
    width: 200px;
    height: 200px;
    cursor: pointer;
}

.conv-user-image img {
    width: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.conv-users-status {
    display: flex;
    align-items: center;
    margin-left: 5px;
}

.conv-users-status i {
    margin-left: 4px;
    margin-right: 2px;
}

.conv-date-user {
    display: flex;
    align-items: end;
    font-size: 10px;
    margin-left: 10px;
    color: #e8e8e8;
}

.conv-date-user-info {
    font-size: 10px;
    font-style: italic;
    margin-right: 10px;
    color: #8a8a8a;
}

.button-scroll-bottom-warp {
    display: flex;
    justify-content: flex-end;
    position: absolute;
    bottom: 130px;
    right: 35px;
}

.button-scroll-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    width: 37px;
    height: 37px;
    border-radius: 100px;
    box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 50%);
    cursor: pointer;
    transition: all 0.5s ease-in-out;
    opacity: 0;
}

.button-scroll-bottom i {
    margin-top: 4px;
    font-size: 20px;
    color: #c03e3e;
}

.bottom-chat-box-footer {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
    padding: 13px 10px 13px 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background: #d44747;
    color: white;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
}

.bottom-chat-box-footer .footer-label {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    padding: 7px;
    transition: all 0.5s ease-in-out;
}

.bottom-chat-box-footer .footer-label.is_close {
    animation: slide-out-footer-label 0.5s forwards;
}

.bottom-chat-box-footer .footer-label.is_open {
    animation: slide-in-footer-label 0.5s forwards;
}

@-webkit-keyframes slide-in-footer-label {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0%);
    }
}

@-webkit-keyframes slide-out-footer-label {
    0% {
        transform: translateY(0%);
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

.bottom-chat-box-footer .footer-penel {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
    transition: all 0.5s ease-in-out;
}

.bottom-chat-box-footer .footer-penel.is_close {
    animation: slide-out-footer-penel 0.5s forwards;
}

.bottom-chat-box-footer .footer-penel.is_open {
    animation: slide-in-footer-penel 0.5s forwards;
}

@-webkit-keyframes slide-in-footer-penel {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0%);
    }
}

@-webkit-keyframes slide-out-footer-penel {
    0% {
        transform: translateY(0%);
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

.bottom-chat-input {
    width: 100%;
    margin-right: auto;
    border: 1px solid rgba(241,241,241,0.94);
    border-radius: 20px;
    background: white;
    padding: 7px 5px 7px 12px;
    font-size: 13px;
}

.bottom-chat-box-button-image {
    cursor: pointer;
    font-size: 20px;
}

.bottom-chat-box-button-image i {
    margin-top: 7px;
}

.bottom-chat-box-button-send {
    cursor: pointer;
    padding: 10px;
}

.bottom-chat-button {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: #ef3939;
    border-radius: 50px;
    padding: 10px 15px 10px 15px;
}

.bottom-chat-button i {
    margin-right: 10px;
    color: white;
    font-size: 17px;
}

@media (max-width: 576px) {
    .bottom-chat-box {
        width: 100%;
        top: 0;
        right: 0;
        border-radius: 0;
    }

    .bottom-chat-box.is_open {
        bottom: -20px;
    }

    .bottom-chat-box-header {
        border-radius: 0;
        padding: 10px 25px 10px 10px;
    }

    .bottom-chat-box-body {
        height: calc(100% - 115px);
        max-height: calc(100% - 115px);
        position: absolute;
        top: 250px;
        bottom: 55px;
        left: 0;
        right: 0;
    }

    .bottom-chat-box-body.conv_open {
        height: calc(100% - 231px);
        max-height: calc(100% - 231px);
        position: absolute;
        top: 169px;
        bottom: 55px;
        left: 0;
        right: 0;
    }

    .bottom-chat-box-footer {
        border-radius: 0;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
    }
}

@media (min-width: 576px) {
    .bottom-chat-box {
        width: 400px;
    }
}
