#frame {
    width: 100%;
    height: 500px;
    background: #fff;

    .content {
        width: 100%;
        height: 100%;
        overflow: hidden;
        position: relative;

        .contact-profile {
            width: 100%;
            padding: 15px;
            background: #4776E6;

            h4 {
                margin: 0;
                color: #fff;
                font-weight: 600;
                font-size: 14px;
            }
        }

        .messages {
            height: auto;
            min-height: calc(100% - 114px);
            max-height: calc(100% - 114px);
            overflow-y: scroll;
            overflow-x: hidden;
            padding: 10px;

            .timeline {
                margin-bottom: 20px;
                padding: 0;
                position: relative;

                &::before {
                    background-color: #dee2e6;
                    bottom: 0;
                    content: "";
                    left: 31px;
                    margin: 0;
                    position: absolute;
                    top: 0;
                    width: 2px;
                }
                .system-message-background{

                    height: 45px;
                    line-height: 40px;
                    font-size: 13px;
                    font-weight: bold;
                    text-align: center;
                    
                    .system-engraved-text{

                        color: #333;
                        background-color: rgba(220,220,220,.3);
                        text-shadow: 0px 1px 0px rgba(255,255,255,.5); /* 50% white from bottom */
                        /*ref: https://css-snippets.com/engraved-text/ */                        
                        &.error-state{
                            color: #f33;
                        }
                    }
                    
                }

                .time-label {
                    position: relative;

                    span {
                        border-radius: 4px;
                        display: inline-block;
                        font-weight: 600;
                        padding: 4px;
                        font-size: 12px;
                        color: #fff;
                    }
                    .bg-violet {
                        background-color: #796AEE;
                    }

                    .bg-green {
                        background-color: #31d281 !important; 
                    }
                }

                .timeline-box {
                    margin: 15px 0;
                    position: relative;

                    .usericon {
                        border-radius: 50%;
                        height: 32px;
                        left: 18px;
                        line-height: 30px;
                        position: absolute;
                        text-align: center;
                        top: 0;
                        width: 32px;
                        overflow: hidden;

                        img {
                            width: 100%;
                            height: 100%;
                        }

                    }
                    .image-content-wrapper{
                        
                        margin-left: 60px;
                        margin-right: 15px;

                        .timeline-body-img {
                            width: 100px;
                            min-width: 100px;
                            height: 80px;
                            overflow: hidden;
                            border-radius: 2px;
                            cursor: pointer;
                            margin:  auto 0;
                            img {
                                width: 100%;
                                height: 100%;
                            }
                        }
                    }

                    .timeline-item {
                        box-shadow: 0 5px 5px -8px rgba(0, 0, 0, 10%);
                        border: 1px solid #e9e9e9;
                        background-color: #fff;
                        margin-left: 60px;
                        margin-right: 15px;
                        margin-top: 0;
                        padding: 0;
                        position: relative;

                        .time {
                            color: #999;
                            float: right;
                            font-size: 11px;
                            padding: 10px;
                        }

                        .timeline-body {
                            padding: 10px;
                            font-size: 13px;

                        }

                    }
                    
                }
            }
        }

        .message-input {
            position: absolute;
            bottom: 0;
            width: 100%;
            background: #f5f5f5;
            padding: 10px;

            .wrap {
                position: relative;

                input {
                    float: left;
                    border: none;
                    width: 90%;
                    padding: 14px 12px;
                    font-size: 12px;
                    height: 50px;
                }

                .wrapinput {
                    width: 70%;
                    float: left;
                }
                .wrapattach {
                    width: 30%;
                    float: left;
                }
                
                button {
                    float: right;
                    border: none;
                    width: 50px;
                    height: 50px;
                    cursor: pointer;
                    background: #4776e6;
                    color: #fff;
                    border-radius: 50%;
                    font-size: 15px;
                }

                .attachment {
                    position: absolute;
                    right: 65px;
                    z-index: 4;
                    top: 17px;
                    font-size: 18px;
                    color: #4776e6;
                    opacity: .5;
                    cursor: pointer;
                }

                .video {
                    position: absolute;
                    right: 96px;
                    z-index: 4;
                    top: 17px;
                    font-size: 18px;
                    color: #4776e6;
                    opacity: .5;
                    cursor: pointer;
                }
            }
        }
    }
}


.username-title{
    font-size: 12px;
    font-weight: 700;
}