@import '../../../../sass/variables';

.visible-text-area {
    pointer-events: auto;
    &.disabled {
        background-color: rgb(232, 233, 237);
    }
}

.chat21-textarea-button {
    pointer-events: auto;
}
.chat21-textarea-button {
    fill: $blue;
    pointer-events: auto;
}

textarea,
textarea:visited,
textarea:focus,
textarea:hover,
textarea:active{
    all: unset;
}

#button {
    position: absolute;
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}

#button.chat-open:not(.sidebar) {
    right: 5px;
    left: auto;
    background-color: white;
}

#button:not(.sidebar) .buttonWave {
    position: absolute;
    z-index: -1;
    width: 60px;
    height: 60px;
}

#button-body {
    width: 40px;
    height: 40px;
    border-radius: 28px;
    border-color: transparent;
    display: inherit;
    align-items: center;
    justify-content: center;
    pointer-events: initial;
    transition: all 0.2s ease-in-out 0s;
    position: relative;

    box-shadow: rgba(3, 6, 12, 0.5) 0px 4px 10px;
}


/* resize and hide the text input area */
// .hidden-text-area {
//     display: hidden;
//     height: 0px;
// }

// /* show and restore the text area size */
// .visible-text-area {
//     display: block;
//     height: 100%;
// }

/* button scroll to bottom page */
#chat21-buttonToBottom {
    display: flex;
    position: relative;
    margin-right: 10px;
    margin-top: -40px;
    float: right;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    z-index: 1;
    cursor: pointer;
    background-color: #ffffff;
    border: 1px solid $trasp-light-gray;
    // -webkit-box-shadow: 0 3px 2px $trasp-light-black;
    // box-shadow: 0 3px 2px $trasp-light-black;
    text-align: center;
    svg {
        margin: auto;
        fill: $gray;
    }
}
#chat21-buttonToBottom:hover {
    background-color: $blue;
    opacity: 1!important;
    transition: all .45s ease-in-out!important;
    -moz-transition: all .45s ease-in-out!important;
    -webkit-transition: all .45s ease-in-out!important;
    border: 1px solid #ffffff;
    svg {
        fill: #ffffff;
    }
}

textarea,
textarea:visited,
textarea:focus,
textarea:hover,
textarea:active{
    all: unset;
}

#chat21-main-message-context {
    overflow: hidden;
    word-wrap: break-word;
    resize: horizontal;
    overflow-y: auto;
    box-sizing: border-box;
    color: $black;
    min-width: 100%;
    outline: 0;
    resize: none;
    font-size: 1.4em;
    line-height: 1.4em;
    font-weight: 300;
    max-height: 110px;
    min-height: auto;
    height: 20px;
    padding: 0px 40px;
    margin: 10px 0px 10px;
    border: none;
}

.chat21-textarea-button {
    position: absolute;
    display: block;
    bottom: 22px;
    width: 20px;
    height: 20px;
    opacity: 0.3;
    cursor: initial;
    &.active {
        opacity: 1;
        cursor: pointer;
    }
}


#chat21-button-send {
    right: 8px;
    bottom: 10px;
}
#chat21-file{
    left: 8px;
    bottom: 10px;
}
#chat21-start-upload-doc,
#chat21-start-mic {
    left: 8px;
    top: 10px;
}

#floating-container{
    width: 98%; //not 100% due to vertical scroll bar
    // margin: 0px auto;
    // height: 46px;
    // position: absolute;
    // bottom: 0px;
    border-top: 0px solid $light-gray;
    display: inline-block;
    align-items: center;
    -webkit-box-shadow: none;
    box-shadow: none;
    vertical-align: top;
    text-align: center;

    .c21-label-button {
        margin-left: 8px;
        font-weight: 400;
        font-size: 1.2em;
    }

    .c21-button-primary {
        height: 36px;
        margin: 5px 0px;
    }

    .c21-waiting-time {
        font-size: 1.3em;
        font-weight: 200;
        padding: 0px 24px 5px 24px;
    }

}

.fade-in-bottom {
    -webkit-animation: fade-in-bottom 0.5s cubic-bezier(0.600, -0.280, 0.735, 0.045) 0.0s;
    animation: fade-in-bottom 0.5s cubic-bezier(0.600, -0.280, 0.735, 0.045) 0.0s;
}