.chat-container {
    position: fixed;
    right: 0px;
    bottom: 0px;
    width: 0px;
    height: 0px;
    padding: 15px;
    z-index: 9999;
}

.chat-container-active {
    width: 400px;
    height: 100%;
}

.chat-bubble {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    right: 20px;
    bottom: -100px;
    background-color: #D58512;
    font-size: 30px;
    color: #fff;
    border-radius: 50%;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 4px 8px;
    cursor: pointer;
    transition: all ease-in-out 0.3s;
}

.chat-bubble-counter {
    position: absolute;
    left: 0px;
    top: 0px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
    background: #ff0000;
    border-radius: 50%;
    display: none;
}

.chat-bubble-active {
    bottom: 20px;
}

.chat-box-container {
    position: absolute;
    right: 0px;
    bottom: 0px;
    width: 0%;
    height: 0%;
    padding: 1em;
    transition: all ease-in-out 0.2s;
}

.chat-box-container-active {
    width: 100%;
    height: 100%;
}

.chat-box {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0px;
    height: 100%;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 4px 16px;
    overflow: hidden;
    border-radius: 10px;
    background: rgb(233, 238, 244);
}

.chat-box-nav-top {
    -webkit-box-pack: center;
    justify-content: flex-end;
    width: 100%;
    position: relative;
    z-index: 2;
    background-color: rgb(255, 255, 255);
    color: rgb(66, 77, 87);
    font-size: 1em;
    height: 50px;
    flex-shrink: 0;
    -webkit-box-flex: 0;
    flex-grow: 0;
    text-align: left;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    font-weight: 700 !important;
    border-width: initial;
    border-style: initial;
    border-color: rgb(0, 0, 0);
    border-image: initial;
    padding: 0px 0.8em;
    transition: background-color 0.3s ease 0s;
}

.chat-box-close-btn {
    font-size: 25px;
    cursor: pointer;
}

.chat-box-contents {
    height: calc(100% - 135px);
    padding: 15px 10px;
    overflow: auto;
}

.chat-box-msg-header {
    display: flex;
    align-items: center;
    font-size: 12px;
}

.chat-box-msg-header-avatar {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    border-radius: 50%;
}

.chat-box-msg-container-receiver .chat-box-msg-body {
    padding-left: 35px;
}

.chat-box-msg-container-receiver .chat-box-msg-body .chat-box-msg {
    display: inline-block;
    overflow-wrap: break-word;
    max-width: 100%;
    font-size: 14px;
    padding: 1em;
    background: #fff;
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px;
}

.chat-box-msg-container-sender .chat-box-msg-header {
    justify-content: flex-end;
}

.chat-box-msg-container-sender .chat-box-msg-body .chat-box-msg {
    display: inline-block;
    float: right;
    overflow-wrap: break-word;
    max-width: 100%;
    font-size: 14px;
    padding: 1em;
    color: #fff;
    background: rgb(67, 132, 245);
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px;
}

.chat-box-msg-container-receiver, .chat-box-msg-container-sender {
    clear: both;
}

.chat-box-bottom-group {
    position: absolute;
    display: flex;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 85px;
    background: #fff;
    padding: 14px;
    box-shadow: rgba(0, 0, 0, 0.03) 0px -1em 1em;
}

.chat-box-bottom-group textarea{
    resize: none;
    width: 100%;
    height: 100% !important;
    line-height: 1.5em;
    font-size: 1em;
    font-family: 'Roboto', Sans-Serif;
    border: none;
}

.chat-box-bottom-group button {
    -webkit-appearance: none;
    display: inline-block;
    color: inherit;
    opacity: 0.4;
    background: transparent;
    border: none;
    margin: 0px;
    padding: 0px 5px;
    font-size: 20px;
    cursor: pointer;
}

.chat-box-bottom-group textarea:focus, .chat-box-bottom-group button:focus {
    outline: none;
}
