﻿@import "/UI/Styles/Theme.scss";

Chat {
    &.open {
        pointer-events: all;


        .textentry {
            background-color: $widget-color-dark;
            opacity: 1;
        }

        .ChatBox {
            background-color: $widget-color;
            backdrop-filter: $widget-backdrop-filter;
            border: $widget-border;
            box-shadow: $widget-shadow;
        }
    }

    .textentry {
        border: none;
        border-radius: 0px;
        overflow: hidden;
        opacity: 0.001;
    }

    .ChatBox {
        position: absolute;
        left: $safe-zone-y;
        border-radius: $widget-radius;
        border: 1px solid transparent;
        box-shadow: none;
        overflow: hidden;

        .Content {
            flex-direction: column;
            justify-content: space-between;
            width: 500px;
            font-size: 16px;
            max-height: 330px;
            height: 330px;

            .MessageList {
                flex-direction: column;
                justify-content: flex-end;
                flex-grow: 1;
                overflow: scroll;

                &.hidden {
                    display: none;
                }

                .ChatEntry {
                    padding: 8px;
                    align-items: center;
                    flex-shrink: 0;

                    .ChatEntryContent {
                        flex-direction: column;

                        .EntryTop {
                            align-items: center;

                            label {
                                font-size: 18px;
                                margin-left: 8px;
                            }
                        }

                        .EntryBottom {
                            label {
                                margin-left: 8px;
                                font-size: 16px;
                            }
                        }
                    }

                    img {
                        border-radius: 50%;
                        height: 38px;
                        width: 38px;
                    }
                }
            }

            .InputField {
                flex-shrink: 0;
                min-height: 48px;
                flex-direction: row;

                .textentry {
                    min-height: 48px;
                    height: 48px;
                    width: 500px;
                }
            }
        }
    }
}