#msg-box-container {
    overflow: visible;
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    align-items: flex-end;
    height: 100%;
    line-height: 1.2;
    font-family: Graphik-Regular !important;
}

#msg-box-container * {
    box-sizing: unset;
}

.message-box {
    background: white;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    margin: 0 0 0 16px;
    width: 334px;
    height: 384px;
}

.message-box.minimized {
    transition-timing-function: cubic-bezier(.4, 0, 1, 1);
    transition-duration: 167ms;
    transform: translateY(100%) translateY(-44px);
}

.message-box.unread-indicator .msg-box-header {
    -webkit-animation: blink 1s infinite;  /* Safari 4+ */
    -moz-animation: blink 1s infinite;  /* Fx 5+ */
    -o-animation: blink 1s infinite;  /* Opera 12+ */
    animation: blink 1s infinite;  /* IE 10+, Fx 29+ */
}

@-webkit-keyframes blink {
    0%, 49% {
      background-color: #3A7AF3;
    }
    50%, 100% {
      background-color: #283e4a;
    }
  }

.msg-box-header {
    padding: 14px;
    color: white;
    background-color: #3A7AF3;
    font-size: 14px;
    border-radius: 8px 8px 0 0;
    letter-spacing: 0.5;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    align-items: center;
}

.msg-box-header img {
    cursor: pointer;
    padding: 2px;
    height: 13px;
    width: 13px;
    margin: 0 7px;
    vertical-align: middle;
}

.prev-msg-container {
    padding: 10px;
    height: 260px;
    background-color: #f6f9fc;
    overflow: auto;
}

.msg-user-img {
    border-radius: 50%;
    height: 29px;
    width: 29px;
    margin-right: 10px;
    border: 1px solid #e2e2e2;
    cursor: pointer;
}

.msg-no-user-img {
    display: inline-block;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    text-align: center;
    border: 1px solid #e2e2e2;
    margin-right: 10px;
}

.msg-no-user-img span {
    display: block;
    font-size: 17px;
    color: #fff;
    font-weight: 600;
    line-height: 32px;
    text-align: center;
}

.prev-msg-container>div {
    margin: 20px 0;
}

.your-msg {
    display: flex;
    justify-content: flex-end;
}

.other-msg {
    display: flex;
    justify-content: left;
}

.your-msg .message-content {
    background-color: #3a7af3;
    color: #ffffff;
}

.other-msg .message-content {
    background-color: #e3e6ed;
    color: #333333;
}

.other-msg .message-content.img-msg, .your-msg .message-content.img-msg {
    background: none;
    border-radius: 4px;
    max-height: 180px;
    width: 227px;
}

.your-msg .message-content.img-msg {
    display: flex;
    justify-content: flex-end;
}

.other-msg .message-content.img-msg img, .your-msg .message-content.img-msg img {
    max-height: 180px;
    max-width: 227px;
    border: 1px solid e2e2e2;
    border-radius: 4px;
}

.message-content {
    max-width: 227px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.43;
    padding: 8px 12px;
    font-family: Graphik-Regular !important;
    white-space: pre-wrap;
}

.msg-content-container {
    display: flex;
    padding-right: 9px;
}

.other-msg .msg-content-container {
    justify-content: flex-start;
}

.your-msg .msg-content-container {
    justify-content: flex-end;
}

.msg-date-time {
    font-size: 12px;
    line-height: 1.67;
    color: #757982;
    padding: 7px 10px;
}

.admin-msg>div {
    text-align: center;
    color: #757982;
    font-size: 12px;
}

.file-msg {
    text-decoration: underline;
    word-break: break-all;
    cursor: pointer;
}

.your-msg .file-msg {
    color: #ffffff;
}

.other-msg .file-msg {
    color: #333333;
}

.msg-input-container {
    display: flex;
}

.msg-input-container.disabled, .send-btn:disabled, .msg-input-container.disabled .attachment-btn img {
    background-color: #eaeaea;
    cursor: default;
}

.message-input {
    width: 100%;
    border: 0;
    outline: 0;
    line-height: 1.45;
    height: 56px;
    overflow-y: hidden;
    padding: 18px 0px 18px 0px;
    resize: none;
    font-family: Graphik-Regular !important;
    font-size: 13.2px;
    box-sizing: border-box !important;
}

.message-input.edit {
    padding: 18px 0px 18px 16px;
}

.attachment-btn img {
    padding: 18px 15px 17px 10px;
    cursor: pointer;
}

.send-btn {
    background: white;
    border: white;
    cursor: pointer;
    padding: 10px;
    outline: 0;
}

.msg-info {
    display: flex;
}

.your-msg .msg-info {
    float: right;
}

.msg-action-btn {
    width: 26px;
    padding: 4px;
    height: 26px;
}

.msg-actions {
    border: none;
    cursor: pointer;
    position: relative;
}

.msg-actions:focus, .msg-actions:hover {
    background-color: none;
    outline: 0;
}

.other-msg .msg-actions {
    order: 2;
}

.action-dropdown {
    display: none;
    overflow: auto;
    border-radius: 5px;
    box-shadow: 0 2px 4px 0 rgba(255, 255, 255, 0.5), 0 2px 4px 0 rgba(0, 0, 0, 0.1), 0 5px 16px 1px rgba(0, 0, 0, 0.2);
    background-color: #fff;
    z-index: 1;
}

.action-dropdown .action-label {
    color: #333;
    text-decoration: none;
    display: flex;
    line-height: 1.63;
    width: 54px;
    font-size: 12px;
}

.action-dropdown .action-label.disabled {
    cursor: not-allowed;
    background-color: #ecedf0;
}

.action-dropdown .action-label.disabled:active {
    pointer-events: none;
}

.action-dropdown .action-label:hover {
    background-color: #ecedf0;
}

.action-dropdown.visible {
    z-index: 99;
    display: block;
    position: absolute;
    right: 30px;
    bottom: 10px;
}

.other-msg .action-dropdown.visible, .img-msg .action-dropdown.visible {
    bottom: 27px;
    right: -42px;
}

.action-label {
    padding: 4px 9px!important;
}

.msg-status {
    padding: 10px 0px 10px 10px;
}

.user-status {
    font-size: 13px;
    position: relative;
    margin-left: 30px;
}

.user-status::before {
    content: '';
    padding: 5px;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    right: 41px;
}

.user-status.online::before {
    background: #6eca70;
}

.user-status.offline::before {
    background: red;
}

#snackbar {
    visibility: hidden;
    min-width: 160px;
    background-color: #333333a8;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 5px;
    position: fixed;
    z-index: 1;
    bottom: 30px;
    font-size: 12px;
}

#snackbar.error {
    background-color: red;
}

#snackbar.visible {
    visibility: visible;
    -webkit-animation: fadein 0.5s;
    animation: fadein 0.5s;
    z-index: 1000;
}

.sending-status{
    position: absolute;
    bottom: 50px;
    left: 135px;
    min-width: 100px;
    background-color: #333333a8;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 5px;
    z-index: 1000;
    font-size: 12px;
}

@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}


/* mobile */

#msg-box-container.mobile .prev-msg-container{ 
    height: calc(100% - 121px);
}

#msg-box-container.mobile .message-box{ 
    margin: 0px;
    width: 100%;
    height: 100%;
}

.mobile-msg-box-header {
    padding: 7px;
    color: #333;
    background-color: white;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    box-shadow: 0 2px 3px 0 rgba(0,0,0,.2);
    -webkit-text-stroke-width: 0.2px;
}

.mobile-msg-box-header .back-btn {
    color: #3a7af3;
    cursor: pointer;
}

.mobile-msg-box-header .back-btn img {
    vertical-align: bottom;
    margin-right: 2px;
}

.mobile-msg-box-header .connection-status {
    position: absolute;
    right: 37px;
    top: 27px;
    padding: 5px 5px;
    border-radius: 50%;
    color: white;
    border: 1px solid white;
}
.mobile-msg-box-header .connection-status.online {
    background: #6eca70;
}

.mobile-msg-box-header .connection-status.offline {
    background: red;
}

