﻿
#requestText:focus {
    outline: none;
    box-shadow: none;
}

input::placeholder {
    color: #e36f1e;
    font-style: italic;    
}

.conversation {
    height: calc(100vh - 160px);
    /*height: 80vh;*/
    min-height: 50vh;
    max-height: 95vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column-reverse;
    vertical-align: bottom;
    top: -100px;
}

.conversation2 {
    height: calc(100vh - 120px);
    min-height: 50vh;
    max-height: 95vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column-reverse;
    vertical-align: bottom;
}

.cb-header {
    width: 100%;
    border-bottom: 1px solid #ccc;
}

.input-chat {
    position: absolute;
    bottom: 20px;
    margin-left: -15px;        
}

a:link {
    text-decoration: none;
    color: #4891ce;
}

.icon-mic {
    width: 50px;
    cursor: pointer;
    border-radius: 4px;
    background-image: url('../images/icon-send-inactive.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 50%;
}

    .btn-disabled {
        cursor: default;        
    }
/*override*/
.input-group-text {
    justify-content: center;
}

#voice-animate {
    margin-bottom: 10px;
    border: 0px solid #CCC;
    height: 50px;
}

canvas {
    height: 50px;
    width: 100%;
    display: block;
    position: relative;
    left: 0;
    z-index: -1;
}

.single-dr-container {
    display: flex;
    margin-bottom: 5px;
    min-height: 80px;
    max-height: 150px;    
    border: 0px solid lightblue;
    border-radius: 4px;
    width:100%; 
    color: #1f1f1f;
}

    .single-dr-container:nth-of-type(odd) {        
        background-color: #d1d1da;
    }

    .single-dr-container:nth-of-type(even) {        
        background-color: #e5e5ea;
    }

    .single-dr-container:hover, .result-button-div:hover, .more-less-btn:hover{
        background-color: #e36f1e;
        cursor: pointer;
    }


.single-dr-left {
    flex: 1;
    border: 0px solid lightblue;    
    display: flex;
    align-items: center;
    justify-content: center
}

.drimage {
    max-height: 70px;
    border-radius: 4px;
}

.single-dr-right {
    flex: 4;
    border: 0px solid lightblue;
    display: flex;
    flex-direction: column;
    padding: 5px;
}

.single-dr-right-top {
    font-weight: bold;
}
.single-dr-right-bottom {
    font-size: 0.85em;
    border: 0px solid red;
    height: 100%;
    position: relative;
}

.single-dr-right-bottom-2 {
    border: 0px solid red;
    position: absolute;
    bottom: 0px;
}


.result-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-top: -10px;
    margin-bottom: -10px;
}

.result-button-div {
    background-color: #1a3a67;
    text-align: center;
    border: 0px solid lightblue;
    border-radius: 4px;
    margin: 2px 2px;
    max-width: 300px;
    min-width: 100px;
    min-height: 34px;
    color: white;
    display: flex;
    flex-grow: 1;
    align-items: center;
    justify-content: center;
    /*padding: 2px;*/
}

.more-less-btn {
    background-color: #d1d1da;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: white;
    float: right;
    font-size: .8em;
    width: 75px;    
}

.nowrap {
    max-width: 100%;
}


ul.collapsed > li:nth-child(n+6) { /**maxRowDisplay + 1*/
    display: none;
}

ul.no-bullets {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width:100%
}

/*command page*/
.page-center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 82vh;
    color:white;
}


/**
    Chatbot Style 0: 
*/


p.s0-request {
    margin: 4px;
    padding: 4px 10px 4px 10px;
    border-radius: 4px;
    text-align: left;
    width: 98%;
    max-width: 98%;
    float: left;
    background-color: #1a3a67;
    color: white;
    font-style: italic;
}

p.s0-response {
    margin: 4px;
    padding: 4px 10px 4px 10px;
    border-radius: 4px;
    min-width: 98%;
    max-width: 98%;
    text-align: left;
    float: left;
    background-color: #4891ce;
    color: white;
}

p.s0-error {
    margin: 4px;
    padding: 4px 10px 4px 10px;
    border-radius: 4px;
    text-align: right;
    min-width: 98%;
    max-width: 98%;
    float: right;
    background-color: #f77;
}


/**
    Chatbot Style 1: iMessage
*/


.chatbot-style-1 {
    background-color: #fff;
    border: 1px solid #e5e5ea;
    border-radius: 0.25rem;    
    font-size: 1rem;
    /*margin: 0 auto 1rem;*/
    padding: 0.5rem 1.5rem;
}

    .chatbot-style-1 p {
        border-radius: 1.15rem;
        line-height: 1.25;
        max-width: 75%;
        padding: 0.5rem .875rem;
        position: relative;
        word-wrap: break-word;        
    }

        .chatbot-style-1 p::before,
        .chatbot-style-1 p::after {
            bottom: -0.1rem;
            content: "";
            height: 1rem;
            position: absolute;
        }

p.s1-error {
    background-color: #f77;
}

p.s1-request {
    align-self: flex-end;
    background-color: #248bf5;
    color: #fff;
}

    p.s1-request::before {
        border-bottom-left-radius: 0.8rem 0.7rem;
        border-right: 1rem solid #248bf5;
        right: -0.35rem;
        transform: translate(0, -0.1rem);
    }

    p.s1-request::after {
        background-color: #f8f9fa; /*make sure this value the same with bg color*/
        border-bottom-left-radius: 0.5rem;
        right: -40px;
        transform: translate(-30px, -2px);
        width: 10px;
    }

p[class^="s1-"] {
    margin: 0.5rem 0;
}

p.s1-request ~ p.s1-request {
    margin: 0.25rem 0 0;
}

    p.s1-request ~ p.s1-request:not(:last-child) {
        margin: 0.25rem 0 0;
    }

    p.s1-request ~ p.s1-request:last-child {
        margin-bottom: 0.5rem;
    }

p.s1-response {
    align-items: flex-start;
    background-color: #e5e5ea;
    color: #000;
}

    p.s1-response:before {
        border-bottom-right-radius: 0.8rem 0.7rem;
        border-left: 1rem solid #e5e5ea;
        left: -0.35rem;
        transform: translate(0, -0.1rem);
    }

    p.s1-response::after {
        background-color: #f8f9fa; /*make sure this value the same with bg color*/
        border-bottom-right-radius: 0.5rem;
        left: 20px;
        transform: translate(-30px, -2px);
        width: 10px;
    }

p[class^="s1-"].emoji {
    background: none;
    font-size: 2.5rem;
}

    p[class^="s1-"].emoji::before {
        content: none;
    }

.no-tail::before {
    display: none;
}


.margin-b_none {
    margin-bottom: 0 !important;
}

.margin-b_one {
    margin-bottom: 1rem !important;
}

.margin-t_one {
    margin-top: 1rem !important;
}

.comment {
    color: #222;
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    max-width: 100%;
    padding: 0;
}

#disconnect-agent-icon {
    display: none;
    background: url('../images/disconnect-agent-icon.png') no-repeat 50% 50%;
    cursor: pointer;
    position: relative;
    background-size: 32px 32px;
    width:50px;
    height:50px;
}

#user-icon {
    display: none;
    background: url('../images/icon-user-32.png') no-repeat 50% 50%;
    cursor: pointer;
    position: relative;
    border: solid 0px red;
    background-size: 32px 32px;
    width: 50px;
    height: 50px;
}
    #user-icon #agent-icon span {
        position: absolute;
        bottom: 0;
    }

.qr-code{
    padding: 10px;
    text-align: center;
    width:50%;
}

.qr-code img{
    width:100%;
    height:100%;
}

@media screen and (max-width: 640px) {
    body {
        margin: 0 0.1rem;
    }

    .container {
        padding: 0.1rem;
    }

    .chatbot-style-1 {
        font-size: 1rem;
        margin: 0 auto 1rem;
        max-width: 600px;
        padding: 0.25rem 0.875rem;
        border: 0px solid #e5e5ea;
    }
    .chatbot-style-1 p {
            max-width: 100%;
            margin: 0.25rem 0;
        }

    .single-dr-right-bottom {
        font-size: 0.77em;
    }
    .result-container {       
        margin-left: -20px;
        width: 110%;     
    }
    .input-chat {
        position: absolute;
        bottom: 0px;
        margin-left: -4px;
    }
}


.bold-text{

}