
.event-chat-ryt{

    .chat-area{
        .chat-reciver, 
        .chat-sender {
            margin-bottom: 1.875rem;
            padding: 0;
            img{
                border-radius: 1.875rem;
            }
        }

        .media {
            position: relative;

            &-body {

                p {
                    margin: 0;
                    max-width: 100%;
                    display: inline-block;
                    position: relative;

                    @include media-breakpoint-up(sm) {
                        // max-width: 60%;
                    }

                    span {
                        padding: 1rem;
                        display: inline-block;
                        top: 103%;
                        position: relative;
                        border: 0.0625rem solid $border;
                    }
                }
            }
        }
    }

    .chat-reciver{
        padding: .5rem 1rem;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: end;
            -ms-flex-pack: end;
                justify-content: flex-end;

        .media {
            -webkit-box-flex: 1;
                -ms-flex: 1;
                    flex: 1;

            .media-body {
                margin-#{$dlab-pos-right}: 2rem;
                text-align: #{$dlab-pos-right};

                p {
                    background: $white;
                    margin-bottom: 0;
                    border-radius: 0.3125rem 0.3125rem 0 0.3125rem;

                    span {
                        text-align: #{$dlab-pos-left};
                        border: 0.0625rem solid $border;
                        
                        &::after{
                            content: "";
                            width: 1.25rem;
                            height: 1.25rem;
                            border-bottom: 0.0625rem solid $border;
                            border-#{$dlab-pos-right}: 0.0625rem solid $border;
                            position: absolute;
                            #{$dlab-pos-right}: 0;
                            bottom: 0;
                            background: $white;
                            -webkit-transform: rotate(-45deg) translateX(15px);
                                    transform: rotate(-45deg) translateX(15px);

                            @at-root [direction="rtl"] & {
                                -webkit-transform: rotate(135deg) translateY(15px);
                                transform: rotate(135deg) translateY(15px);
                            }
                        }
                        
                    }
                    
                    .time {
                        position: absolute;
                        font-size: 0.75rem;
                        color: $body-color;
                        font-weight: 400;
                        bottom: 0;
                        #{$dlab-pos-left}: -5rem;
                    }
                }
            }
        }
    }

    .chat-sender{
        text-align: #{$dlab-pos-left};
        padding: .5rem 1rem;

        .media {

            .media-body {
                margin-#{$dlab-pos-left}: 2rem;

                p {
                    background-color: $white;
                    margin-bottom: 0;
                    span {
                        
                        &::after {
                            content: "";
                            width: 1.25rem;
                            height: 1.25rem;
                            border-bottom: 0.0625rem solid $border;
                            border-#{$dlab-pos-left}: 0.0625rem solid $border;
                            position: absolute;
                            #{$dlab-pos-left}: 0;
                            bottom: 0;
                            background: $white;
                            -webkit-transform: rotate(45deg) translateX(-15px);
                                    transform: rotate(45deg) translateX(-15px);

                            @at-root [direction="rtl"] & {
                                -webkit-transform: rotate(-135deg) translateY(15px);
                                transform: rotate(-135deg) translateY(15px);
                            }
                        }
                    }

                    .time {
                        position: absolute;
                        font-size: 0.625rem;
                        color: $body-color;
                        font-weight: 400;
                        bottom: 0;
                        #{$dlab-pos-right}: -5rem;
                    }

                }
            }
        }

    }
}

.char-type{
    padding-top: 1.875rem;
    padding-bottom: 1.875rem;

    form{
        
        .form-control{
            height: 2.8125rem;
            // border-radius: 1.875rem;
            padding-#{$dlab-pos-left}: 1.125rem;
            background: $body-bg;
            border-#{$dlab-pos-right}: 0;
        }

        .input-group{

            &-append{
                i{
                    color: $gray;
                    font-size: 1.125rem;
                }
                .input-group-text{
                    padding-#{$dlab-pos-left}: .7rem;
                    padding-#{$dlab-pos-right}: .7rem;
                    background: $body-bg;
                    border-color: $border;
                    border-#{$dlab-pos-left}: 0;

                    &:last-child{
                        // border-bottom-#{$dlab-pos-right}-radius: 1.875rem;
                        // border-bottom-#{$dlab-pos-right}-radius: 1.875rem;
                        padding-#{$dlab-pos-right}: 1.8rem;
                    }
                }
            }
        }
    }
}

.media-avatar{
    padding: 1.5625rem 0;
    border-bottom: 0.0625rem solid $border;
    &:last-child{
        border-bottom: 0rem;
    }
    p{
        margin-bottom: 0;
    }
    .avatar-status{
        position: relative;
        i{
            position: absolute;
            #{$dlab-pos-right}: 0;
            bottom: 0;
        }
    }
}