/* ROOT Colors */

:root {
    --base: rgba(0,0,0,0.7);
    --blue: rgb(51 147 223);
    --white: #fff;
    --chatPanelBackground: rgba(255,255,255,0.9);
    --welcomeBlue: rgb(0 115 157 / 10%);
    --aiIconBackground: rgb(0 174 223 / 31%);
}


body {
    font-family: Roboto, Arial, Helvetica, sans-serif;
    background-color: #f8fdff;
}

.ai {
    position: absolute;
    bottom: 80px;
    right: 40px;
    width: 200px;
    height: 50px;
    background-color: rgba(20,170,220,0.9);
    border-radius: 3px;
    box-shadow: 10px 10px 2px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
    border: 1px solid rgba(10,150,190);
}

    .ai:hover {
        background-color: rgba(30,180,230,0.9);
    }

    .ai > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: -webkit-fill-available;
    }

        .ai > div > div {
            font-size: 12px;
            color: #fff;
        }

.ai-icon {
    background-image: url(/gfx/ai.png);
    background-size: 45px 45px;
    width: 60px;
    background-position: center center;
    height: -webkit-fill-available;
    background-repeat: no-repeat;
    background-color: var(--blue);
    min-width: 60px;
    height: 60px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.ai-introduction {
    font-size: 11px;
    padding: 10px;
    line-height: 16px;
}

.introduction-highlight {
    background-color: var(--blue);
    color: #fff;
    padding: 2px 3px;
    border-radius: 4px;
    text-wrap-mode: nowrap;
}

.ai-disable {
    position: absolute;
    bottom: 135px;
    right: 40px;
    width: 10px;
    height: 10px;
    background-color: rgb(221 221 221 / 90%);
    border-radius: 2px;
    cursor: pointer;
    z-index: 1000;
    border: 1px solid rgb(157 157 157);
    background-image: url(/techsupport-new/gfx/ai-disable.png);
    background-position: center center;
    background-size: 12px 12px;
}

.ai-welcome {
    padding-left: 10px;
}

.ai-conversation {
    position: absolute;
    width: 650px;
    height: 600px;
    background-color: var(--chatPanelBackground);
    border-radius: 3px;
    /*transition: all 0.3s ease-in-out;*/
    z-index: 1000;
    border: 1px solid rgba(230,230,230);
    opacity: 0;
    pointer-events: none;
    user-select: none;
    min-width: 300px;
    min-height: 250px;
    /*max-height: 600px;*/
    max-width: 800px;
    top: 80px;
}

.ai-conversation-summary {
    height: -webkit-fill-available;
    padding: 10px;
    width: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: scroll;
    overflow-x: auto;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.ai-input {
    width: -webkit-fill-available;
    padding: 5px 10px;
    border-radius: 3px;
    display: flex;
    justify-content: space-between;
    background-color: rgba(0,0,0,0.03);
}

    .ai-input > input, .ai-input > textarea {
        width: -webkit-fill-available;
        border-bottom: 1px solid rgba(80, 80, 80, 0.4);
        font-size: 12px;
        outline: none;
        border: 1px solid #ddd;
        margin: 4px 0px;
        height: 24px;
        padding: 1px 6px;
    }
    .ai-input > textarea {
        height: 45px !important;
        padding: 6px !important;
        font-family: 'Roboto';
    }

.ai-conversation > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: -webkit-fill-available;
}

.ai-input-send {
    background-image: url(/techsupport-new/gfx/ai-input-send.png);
    width: 45px;
    background-position: center center;
    height: 45px;
    background-repeat: no-repeat;
    background-color: var(--blue);
    margin: 4px 0px 4px 8px;
    border-radius: 5px;
    cursor: pointer;
}

    .ai-input-send:hover {
        background-color: #3f9dc5;
    }

.ai-close {
    background-color: rgba(220,40,40,0.9) !important;
    border: 1px solid rgba(200,50,50) !important;
}

    .ai-close:hover {
        background-color: rgba(220,80,80,0.9) !important;
        border: 1px solid rgba(200,50,50) !important;
    }

.pop {
    animation: wiggle 1.5s linear;
    display: block !important;
}

.chat-message {
    border-radius: 4px;
    padding: 8px;
    background-color: rgba(120,120,120,0.1);
    font-size: 12px;
    margin: 2px;
    max-width: 80%;
    line-height: 15px;
    margin-bottom:8px;
}

.ai-assistant {
    background-color: #777777;
    color: rgba(255,255,255);
    /* transform: translateX(-10%); */
    margin-right: auto;
    /*box-shadow: -10px -10px 25px rgba(40,40,40,0.2) inset;*/
    opacity: 0;
    transform: translate3d(-50px, 0, 0);
    transition: 0.25s all ease-in-out;
}

    .ai-assistant:after {
        content: '';
        position: absolute;
        opacity: 1;
        color: #888;
        margin-top: 22px;
        pointer-events: none;
        text-align: center;
        font-size: 10px;
        z-index: 1500;
        left: 50px;
    }

.message-highlight {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 5px;
    border-radius: 3px;
}

.message-important {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0px 2px;
}

.ai-user {
    /*transform: translateX(10%);*/
    text-align: right;
    margin-left: auto;
    opacity: 0;
    transform: translate3d(-50px, 0, 0);
    transition: 0.25s all ease-in-out;
}

.ai-typing {
    width: 50px;
    /*transform: translateX(-102px);*/
    margin-right: auto;
    white-space: nowrap !important;
    padding-bottom:0px;
}

.ai-fadeIn {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0);
    pointer-events: auto !important;
    user-select: auto !important;
}

@keyframes wiggle {
    0%, 7% {
        transform: rotateZ(0);
    }

    15% {
        transform: rotateZ(-6deg);
    }

    20% {
        transform: rotateZ(4deg);
    }

    25% {
        transform: rotateZ(-4deg);
    }

    30% {
        transform: rotateZ(3deg);
    }

    35% {
        transform: rotateZ(-2deg);
    }

    40%, 100% {
        transform: rotateZ(0);
    }
}

.typing {
    align-items: center;
    display: flex;
    height: 15px;
    justify-content: center;
}

    .typing .dot {
        animation: mercuryTypingAnimation 1.2s infinite ease-in-out;
        background-color: #FFF;
        border-radius: 50%;
        height: 5px;
        margin-right: 4px;
        vertical-align: middle;
        width: 5px;
        display: inline-block;
    }

        .typing .dot:nth-child(1) {
            animation-delay: 200ms;
        }

        .typing .dot:nth-child(2) {
            animation-delay: 300ms;
        }

        .typing .dot:nth-child(3) {
            animation-delay: 400ms;
        }

        .typing .dot:last-child {
            margin-right: 0;
        }

@keyframes mercuryTypingAnimation {
    0% {
        transform: translateY(0px);
        background-color: #FFF;
    }

    28% {
        transform: translateY(-7px);
        background-color: #FFF;
    }

    44% {
        transform: translateY(0px);
        background-color: #FFF;
    }
}

.ai-typing-ocr {
    background-color: rgb(209 91 48) !important;
    display: flex;
    align-items: center;
    cursor: pointer;
    width: -webkit-fill-available;
    max-width: none;
    border-radius: 0px;
    margin: 0px;
}

.ai-typing-disable {
    background-color: rgb(167 1 1 / 61%) !important;
    box-shadow: -10px -10px 25px rgba(0,0,0,0.2) inset !important;
    position: absolute !important;
    bottom: 60px !important;
    white-space: initial !important;
}

.ai-controls {
    position: absolute;
    width: 650px;
    height: 60px;
    border-radius: 10px;
    /* transition: all 0.3sease-in-out; */
    z-index: 1001;
    opacity: 0;
    display: flex;
    justify-content: flex-start;
    pointer-events: none;
    user-select: none;
    background-color: var(--welcomeBlue);
    align-items: center;
}

.ai-control {
    height: 30px;
    width: 30px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 3px;
    background-position: center center;
    background-repeat: no-repeat;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.2);
    margin-left: 5px;
}

.ai-clear {
    background-image: url(/techsupport-new/gfx/ai-clear.png);
}

.ai-copy {
    background-image: url(/techsupport-new/gfx/ai-copy.png);
}

.ai-copy-green {
    background-image: url(/techsupport-new/gfx/ai-copy-green.png) !important;
}

.ai-quick {
    background-image: url(/techsupport-new/gfx/ai-quick.png);
}

.ai-control-trigger {
    width: -webkit-fill-available;
    height: -webkit-fill-available;
}

.dropbtn {
    background-color: #04AA6D;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    opacity: 0;
    position: absolute;
    background-color: #fefefe;
    min-width: 350px;
    z-index: 1005;
    top: 55px;
    right: 15px;
    font-size: 11px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 3px;
    pointer-events: none;
    user-select: none;
    max-height: 230px;
    overflow: auto;
    box-shadow: 0px 10px 5px rgba(0, 0, 0, 0.2);
    padding: 8px;
}

    .dropdown-content a {
        color: #777;
        padding: 7px;
        text-decoration: none;
        display: block;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

        .dropdown-content a:hover {
            background-color: var(--blue);
            color: var(--white);
        }

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #3e8e41;
}

.ai-resizer {
    width: 10px;
    height: 10px;
    position: absolute;
    left: 0;
    top: 0;
    cursor: se-resize;
    background-image: url(/techsupport-new/gfx/resizer.png);
    background-position: center center;
    user-select: none;
}

.ai-wrapper {
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.hidden {
    display: none;
}

.chat-message > div {
    margin-top: 0px;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}
    .chat-message > div > a {
        color: #28dfff;
    }
.disclaimer {
    position: absolute;
    bottom: 7px;
    font-size: 11px;
    color: #666;
}