﻿/*Copyright (c) Microsoft Corporation.
Licensed under the MIT License.*/

/*Helper chat css for Agent page helper chat component.*/

.helper-chat-container {
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,.5);
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    justify-content: flex-end;
}

.helper-chat-control {
    height: 62vh;
    width: 27vw;
}

.helper-chat-popup {
    border-radius: 12px;
    background-color: #fff;
    width: 27vw;
}

    .helper-chat-popup .ui-chat__messageheader,
    .helper-chat-popup span {
        display: none;
    }

.helper-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #00894F;
    border-radius: 10px 10px 0 0;
}

[data-icon-name="MessageSeen"] {
    color: #00894F;
}

[data-ui-id="chat-composite-message"].eq {
    background-color: #FFF;
    border: solid 2px #E5F3ED;
}

.helper-chat-popup .jm {
    background-color: #E5F3ED;
}

.helper-chat-header button {
    background: transparent;
    border: none;
    background-image: url('../assets/images/icon_dismiss.svg');
    background-repeat: no-repeat;
    width: 18px;
    display: block;
    text-indent: -9999px;
    cursor: pointer;
}

.chat-messages {
    max-height: 600px;
    overflow-y: auto;
    padding: 10px;
}

    .chat-messages > div {
        margin: 5px 0;
        font-size: 0.8em;
        display: block;
    }

        .chat-messages > div > p {
            background-color: #E5F3ED;
            padding: 10px;
            border-radius: 5px;
            display: inline-block;
        }

.chat-input {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.open-helper-chat-button {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background-color: #00894F;
    color: #fff;
    align-items: right;
    background-image: url('../assets/images/icon_question_circle.svg');
    background-position: 10px center;
    background-repeat: no-repeat;
    padding-left: 40px;
}

.You {
    text-align: right;
}

.helper-chat-title {
    color: white;
    margin: 0;
}
