﻿/*
    2020-04-11
    Replace all images with icons8 (line-awesome fonts) where possible.
    Redesign of chat interface with more modern and responsive design
*/

:root {
    --chat-header-one-foreground-color: #ffffff;
    --chat-header-one-background-color: #0065CA;
    --chat-header-two-foreground-color: #0065CA;
    --chat-header-two-background-color: #ffffff;
    --chat-busy-foreground-color: #c10b0b;
    --chat-busy-background-color: #ffffff;
    --chat-busy-foreground-hover-color: #de650a;
    --chat-busy-background-hover-color: #ffffff;
    --chat-offline-foreground-color: #5a5a5a;
    --chat-offline-background-color: #ffffff;
    --chat-offline-foreground-hover-color: #292827;
    --chat-offline-background-hover-color: #ffffff;
    --chat-body-foreground-color: #0f0f0f;
    --chat-body-background-color: #ffffff;
    --chat-body-foreground-hover-color: rgb(3, 46, 88);
    --chat-body-background-hover-color: #ffffff;
    --chat-body-foreground-color: #2a2a2a;
    --chat-body-background-color: #ffffff;
    --chat-body-foreground-hover-color: #2a2a2a;
    --chat-body-background-hover-color: #ffffff;
    --chat-banner-foreground-color: #ffffff;
    --chat-banner-background-color: #0065CA;
    --chat-button-foreground-color: #ffffff;
    --chat-button-background-color: #0065CA;
    --chat-button-hover-foreground-color: #ffffff;
    --chat-button-hover-background-color: #04207c;
    --speechbubble1-border-color: #cdcdcd;
    --speechbubble1-background-color: #fffee7;
    --speechbubble2-border-color: #6ecbe5;
    --speechbubble2-background-color: #def4fa;
    --replybubble-foreground-color: #f1f1f1;
    --replybubble-background-color: #232323;
    --replybubble-border-color: #3c3c3c;
    --replybubble-highlight-border-color: #07e527;
    --replybubble-close-color: #bebebe;
}

*, *::before, *::after {
    box-sizing: border-box;
    -webkit-box-sizing: border-box; /* Corrects 100% Width Issue */
    -moz-box-sizing: border-box; /* Corrects 100% Width Issue */
}

#divChatMain {
    position: fixed;
    z-index: 4000;
    right: unset;
    bottom: unset;
    background-color: transparent;
}

    #divChatMain.chatHidden {
        visibility: hidden;
        right: -490px;
        opacity: 0.0;
        filter: alpha(opacity=0);
        -webkit-transition-property: left, top, opacity, visibility;
        -webkit-transition-duration: 3000ms;
        -webkit-transition-timing-function: ease-in-out;
        transition-property: left, top, opacity, visibility;
        transition-duration: 3000ms;
        transition-timing-function: ease-in-out;
    }

    #divChatMain.chatMinimise {
        visibility: visible;
        right: 1px;
        bottom: 1px;
        width: 64px;
        height: 64px;
        min-height: 64px;
        opacity: 0.4;
        filter: alpha(opacity=40);
        -webkit-transition-property: width, height, min-height, opacity, visibility;
        -webkit-transition-duration: 750ms;
        -webkit-transition-timing-function: ease-out;
        transition-property: width, height, min-height, opacity, visibility;
        transition-duration: 750ms;
        transition-timing-function: ease-out;
    }

    #divChatMain.chatMinimise:hover {
        opacity: 0.9;
        filter: alpha(opacity=90);
    }

        #divChatMain.chatMinimise > div#divChatHeader {
            z-index: 2;
            display: block;
            width: 100%;
            height: 64px;
            background-color: var(--chat-header-two-background-color);
            border: solid 1px var(--chat-header-one-background-color);
        }

            #divChatMain.chatMinimise > div#divChatHeader:before {
                float: left;
                content: '\f086';
                font-family: "Line Awesome Free";
                font-weight: 900;
                font-size: 3rem;
                line-height: 3rem;
                text-align: center;
                color: var(--chat-header-one-foreground-color);
                background-color: var(--chat-header-one-background-color);
                padding: 8px;
                width: 64px;
                height: 100%;
            }

            #divChatMain.chatMinimise > div#divChatHeader > a:after {
                float: left;
                content: ' ';
                font-family: versaRegular, sans-serif;
                font-size: 1.2rem;
                line-height: 3rem;
                margin: 0 0 0 8px;
            }

            #divChatMain.chatRestore > div#divChatHeader > a:after {
                float: left;
                content: attr(data-header);
                font-family: versaRegular, sans-serif;
                font-size: 1.2rem;
                line-height: 4rem;
                width: calc(100% - 72px);
                margin: 0 0 0 8px;
            }

            div#divChatHeader > a[data-header*="Error"], div#divChatHeader > a[data-header*="Unsupported"] {
                color: #c10a0a;
            }

            div#divChatHeader > a[data-header*="Offline"] {
                color: var(--chat-offline-foreground-color);
            }

            div#divChatHeader > a[data-header="Start Chat"] {
                color: var(--chat-header-two-foreground-color);
            }

#divChatMain.chatMinimise > div#divChatBody {
    visibility: hidden;
    height: 0px;
    max-height: 0px;
    overflow: hidden;
}

#divChatMain.chatMinimise > div#divChatBanner {
    visibility: hidden;
    height: 0px;
    max-height: 0px;
    overflow: hidden;
}

#divChatMain.chatRestore {
    visibility: visible;
    right: 2px;
    bottom: 2px;
    width: 32rem;
    height: 64px;
    min-height: 64px;
    opacity: 1.0;
    filter: alpha(opacity=100);
    -webkit-transition-property: width, height, min-height, opacity, visibility;
    -webkit-transition-duration: 750ms;
    -webkit-transition-timing-function: ease-in-out;
    transition-property: width, height, min-height, opacity, visibility;
    transition-duration: 750ms;
    transition-timing-function: ease-in-out;
}

        #divChatMain.chatRestore > div#divChatHeader {
            display: block;
            width: 100%;
            height: 64px;
            background-color: var(--chat-header-two-background-color);
            border: solid 1px var(--chat-header-one-background-color);
        }

            #divChatMain.chatRestore > div#divChatHeader:before {
                float: left;
                content: '\f086';
                font-family: "Line Awesome Free";
                font-weight: 900;
                font-size: 3rem;
                line-height: 3rem;
                text-align: center;
                padding: 8px;
                width: 64px;
                height: 100%;
                color: var(--chat-header-one-foreground-color);
                background-color: var(--chat-header-one-background-color);
            }

        #divChatMain.chatRestore > div#divChatBody {
            visibility: hidden;
            height: 0px;
            max-height: 0px;
            overflow: hidden;
        }

        #divChatMain.chatRestore > div#divChatBanner {
            visibility: hidden;
            height: 0px;
            max-height: 0px;
            overflow: hidden;
        }

#divChatMain.chatMaximise {
    visibility: visible;
    right: 2px;
    bottom: 2px;
    width: 32rem;
    height: 40vh;
    min-height: 464px;
    opacity: 1.0;
    filter: alpha(opacity=100);
    -webkit-transition-property: width, height, min-height, opacity, visibility;
    -webkit-transition-duration: 1000ms;
    -webkit-transition-timing-function: ease-in;
    transition-property: width, height, min-height, opacity, visibility;
    transition-duration: 1000ms;
    transition-timing-function: ease-in;
}

    #divChatMain.chatMaximise > div#divChatHeader {
        display: block;
        width: 100%;
        height: 46px;
        background-color: var(--chat-header-two-background-color);
        border: solid 1px var(--chat-header-one-background-color);
    }

            #divChatMain.chatMaximise > div#divChatHeader > a:after {
                float: right;
                content: '\f410';
                margin: 0.2rem;
                font-family: "Line Awesome Free";
                font-size: 1.5rem;
                font-weight: 500;
                color: #d64343;
            }

            #divChatMain.chatMaximise > div#divChatHeader:before {
                float: left;
                content: '\f086';
                font-family: "Line Awesome Free";
                font-weight: 900;
                font-size: 2rem;
                line-height: 2rem;
                padding: 4px;
                width: 46px;
                height: 100%;
                text-align: center;
                color: var(--chat-header-one-foreground-color);
                background-color: var(--chat-header-one-background-color);
            }

            #divChatMain.chatMaximise > div#divChatHeader:after {
                float: left;
                content: 'VersaDev Chat';
                font-family: versaRegular, sans-serif;
                font-size: 1.2rem;
                line-height: 2.7rem;
                margin: 0 0 0 8px;
                color: var(--chat-header-two-foreground-color);
                background-color: var(--chat-header-two-background-color);
            }

        #divChatMain.chatMaximise > div#divChatBody {
            visibility: visible;
            height: calc(100% - 46px - 32px);
            max-height: unset;
            overflow: hidden;
        }

        #divChatMain.chatMaximise > div#divChatBanner {
            visibility: visible;
            height: 32px;
            max-height: unset;
            overflow: auto;
        }

@media (min-width: 420px) and (max-width: 767px) {
    #divChatMain.chatHidden {
        top: unset;
        right: -64px;
        bottom: 0px;
        left: unset;
    }

    #divChatMain.chatMinimise {
        top: unset;
        right: 2px;
        bottom: 0px;
        left: unset;
    }

    #divChatMain.chatRestore {
        top: unset;
        right: 2px;
        bottom: 0px;
        left: unset;
    }

    #divChatMain.chatMaximise {
        top: unset;
        right: 2px;
        bottom: 0px;
        left: unset;
    }
}

@media (min-width: 160px) and (max-width: 419px) {
    #divChatMain.chatHidden {
        right: 30px;
        bottom: -360px;
    }

    #divChatMain.chatMinimise {
        top: unset;
        right: 0px;
        bottom: 0px;
        left: 0px;
        width: unset;
        height: 32px;
        min-height: 32px;
        max-height: 32px;
        opacity: 1.0;
        filter: alpha(opacity=100);
        -webkit-transition-property: width, height, max-height, opacity, visibility;
        -webkit-transition-duration: 750ms;
        -webkit-transition-timing-function: ease-in-out;
        transition-property: width, height, max-height, opacity, visibility;
        transition-duration: 750ms;
        transition-timing-function: ease-in-out;
    }

        #divChatMain.chatMinimise > div#divChatHeader:before {
            float: left;
			display: flex;
			align-items: center;
			justify-content: center;
            content: '\f086';
            font-family: "Line Awesome Free";
            font-weight: 900;
            font-size: 1rem;
            color: var(--chat-header-one-foreground-color);
            background-color: var(--chat-header-one-background-color);
            padding: 5px;
        }

        #divChatMain.chatMinimise > div#divChatHeader > a:after, #divChatMain.chatRestore > div#divChatHeader > a:after {
            float: left;
            content: attr(data-header);
            font-family: versaRegular, sans-serif;
            font-size: 0.9rem;
            line-height: 1.7rem;
            margin: 0 0 0 8px;
        }

        div#divChatHeader > a[data-header*="Offline"] {
            color: var(--chat-offline-foreground-color);
        }

        div#divChatHeader > a[data-header="Start Chat"] {
            color: var(--chat-header-two-foreground-color);
        }

    #divChatMain.chatRestore {
        top: unset;
        right: 0px;
        bottom: 0px;
        left: 0px;
        width: 100%;
        height: 32px;
        min-height: 32px;
        max-height: 32px;
        opacity: 1.0;
        filter: alpha(opacity=100);
    }

        #divChatMain.chatRestore > div#divChatHeader:before {
            float: left;
			display: flex;
			align-items: center;
			justify-content: center;
            content: '\f086';
            font-family: "Line Awesome Free";
            font-weight: 900;
            font-size: 1rem;
            color: var(--chat-header-one-foreground-color);
            background-color: var(--chat-header-one-background-color);
            padding: 5px;
        }

    #divChatMain.chatMaximise {
        top: unset;
        right: 1px;
        bottom: 1px;
        left: unset;
        width: calc(100% - 2px);
    }

        #divChatMain.chatMinimise > div#divChatHeader, #divChatMain.chatMaximise > div#divChatHeader, #divChatMain.chatRestore > div#divChatHeader {
            display: block;
            width: 100%;
            height: 32px;
            background-color: var(--chat-header-two-background-color);
            border: solid 1px var(--chat-header-one-background-color);
        }

        #divChatMain.chatMaximise > div#divChatHeader:before {
            float: left;
			display: flex;
			align-items: center;
			justify-content: center;
            content: '\f086';
            font-family: "Line Awesome Free";
            font-weight: 900;
            font-size: 1.3rem;
            padding: 4px;
            color: var(--chat-header-one-foreground-color);
            background-color: var(--chat-header-one-background-color);
        }

            #divChatMain.chatMaximise > div#divChatHeader:after {
                float: left;
                content: 'VersaDev Chat';
                font-family: versaRegular, sans-serif;
                font-size: 1rem;
                line-height: 1.7rem;
                margin: 0 0 0 8px;
                color: var(--chat-header-two-foreground-color);
                background-color: var(--chat-header-two-background-color);
            }

        #divChatMain.chatMaximise > div#divChatHeader > a:after {
            float: right;
            content: '\f410';
            font-family: "Line Awesome Free";
            font-size: 1.5rem;
            font-weight: 900;
            color: #d64343;
        }

        #divChatMain.chatMaximise > div#divChatBody {
            visibility: visible;
            height: calc(100% - 32px - 32px);
            overflow: hidden;
        }

}

#divChatSorry {
    font-family: versaRegular, 'Segoe UI Light', 'Segoe UI', Verdana, Arial, Tahoma, sans-serif;
    font-size: 0.9rem;
    font-style: normal;
    font-weight: normal;
    white-space: pre-wrap;
    color: var(--chat-body-foreground-color);
    background-color: var(--chat-body-background-color);
    padding: 1rem;
    height: 100%;
}

#divChatWelcome {
    font-family: versaRegular, 'Segoe UI Light', 'Segoe UI', Verdana, Arial, Tahoma, sans-serif;
    font-size: 0.9rem;
    font-style: normal;
    font-weight: normal;
    color: var(--chat-body-foreground-color);
    background-color: var(--chat-body-background-color);
    white-space: pre-wrap;
    padding: 0.6rem;
    height: 100%;
    overflow: auto;
}

#divChatWelcome > div {
    height: 2.5rem;
    padding: 0.6rem;
}

#divChatWelcome > div:before {
    float: left;
    content: attr(data-label);
    width: 80px;
    padding: 0.4rem;
    white-space: nowrap;
}

    #divChatWelcome > div:after {
        float: left;
        content: '';
        padding: 0.4rem 0;
    }

    #divChatWelcome > div.mandatory:after {
        float: left;
        content: '*';
        color: #bd0d0d;
    }

    #divChatWelcome > div > input[type="text"] {
        float: right;
        width: calc(100% - 112px);
        padding: 0.4rem;
        font-family: versaRegular, 'Segoe UI Light', 'Segoe UI', Verdana, Arial, Tahoma, sans-serif;
        font-size: 0.9rem;
        font-style: normal;
        font-weight: normal;
        color: var(--chat-body-foreground-color);
        background-color: var(--chat-body-background-color);
        border: solid 1px #e0e0e0;
        outline: none;
    }

    #divChatWelcome > input[type="button"] {
        float: right;
        font-family: versaRegular, 'Segoe UI Light', 'Segoe UI', Verdana, Arial, Tahoma, sans-serif;
        font-size: 0.9rem;
        font-style: normal;
        font-weight: normal;
        color: var(--chat-button-foreground-color);
        background-color: var(--chat-button-background-color);
        border: solid 1px var(--chat-button-background-color);
        width: 80px;
        padding: 4px;
        margin: 8px;
        outline: none;
        cursor: pointer;
    }
    
    #divChatWelcome > input[type="button"]:hover {
        color: var(--chat-button-hover-foreground-color);
        background-color: var(--chat-button-hover-background-color);
        border: solid 1px var(--chat-button-hover-background-color);
    }

    #divChatBody {
        position: relative;
        display: block;
        background-color: var(--chat-body-background-color);
        width: 100%;
        border: 1px solid var(--chat-header-one-background-color);
        border-top: 0px none transparent;
        padding: 0px;
        /*filter: progid:DXImageTransform.Microsoft.Gradient(StartColorStr='#0065CA', EndColorStr='#000066');
    background-image: -moz-linear-gradient(top, #0065CA, #000066);
    background-image: -ms-linear-gradient(top, #0065CA, #000066);
    background: -webkit-gradient(linear, left top, left bottom, from(#0065CA), to(#000066));*/
    }

        #divChatBody img {
            display: none;
        }

        #divChatBody div.speechBubble1 > img, #divChatBody div.speechBubble2 > img, #divChatMessage > img {
            display: block;
            width: 100%;
            max-height: 86px;
            border: none;
            object-fit: scale-down;
        }

img.imgChatClose {
    cursor: pointer;
    margin: 0 -5px 0 0;
}

#divChatImage {
    display: none;
    position: absolute;
    left: 399px;
    top: -5px;
    width: 55px;
    height: 126px;
    background-color: transparent;
    background-image: url(../images/versaChat/chatnow.png);
    background-position: top;
    background-repeat: no-repeat;
}

#divChatBanner {
    position: relative;
    width: unset;
    height: 32px;
    padding: 6px;
    color: var(--chat-banner-foreground-color);
    background-color: var(--chat-banner-background-color);
    background-position: 6px center;
    background-repeat: no-repeat;
    background-image: url(../images/versaChat/logo.png);
}

@keyframes spinlogo {
        0% {
            -webkit-transform: rotate(0deg);
            -moz-transform: rotate(0deg);
            -ms-transform: rotate(0deg);
            -o-transform: rotate(0deg);
            transform: rotate(0deg);
        }

        100% {
            -webkit-transform: rotate(360deg);
            -moz-transform: rotate(360deg);
            -ms-transform: rotate(360deg);
            -o-transform: rotate(360deg);
            transform: rotate(360deg);
        }
    }

#divChatBusy {
    position: absolute;
    display: none;
    left: 0;
    top: 0;
    margin: 3px;
    padding: 25% 50%;
    border: 0px none #cdcdcd;
    font-family: versaRegular, 'Segoe UI Light', 'Segoe UI', Verdana, Arial, Tahoma, sans-serif;
    font-size: 0.6rem;
    font-style: italic;
    font-weight: normal;
    line-height: 10pt;
    color: #343434;
    animation: spinlogo linear 1500ms infinite;
}

#divChatControls {
    position: absolute;
    display: flex;
    flex-flow: column wrap;
    float: right;
    right: 0px;
    top: 0px;
    width: 36px;
    height: 100%;
    padding: 8px 0 8px 0;
    background-color: #FFFFFF;
    border: 1px solid #FFFFFF;
    border-left: 1px solid #d1d1d1;
    overflow: hidden;
}

    #divChatControls > div {
        font-size: 1.7rem;
        line-height: 2rem;
        width: 36px;
        height: 36px;
        color: #073d72;
        text-align: center;
        border: none;
        cursor: pointer;
    }

#divChatConversation {
    position: relative;
    width: calc(100% - 36px);
    height: calc(100% - 42px);
    padding: 4px;
    border: 1px solid #FFFFFF;
    background-color: #FFFFFF;
    overflow: auto;
}

#divChatMessage {
    position: relative;
    float: left;
    width: calc(100% - 42px);
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    color: #333;
    background-color: #FFFFFF;
    outline: none;

    font-family: versaRegular, 'Segoe UI Light', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.8rem;
    font-style: normal;
    font-weight: normal;
    line-height: 1.7rem;
    white-space: pre;
}

    #divChatFooter::before {
        content: attr(data-whos-typing);
        visibility: visible;
        opacity: 0.9;
        position: absolute;
        left: 2px;
        bottom: 42px;
        width: calc(100% - 56px);
        height: 24px;
        padding: 0.3em;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-family: 'Segoe UI', Verdana, Tahoma, Geneva, sans-serif, Arial;
        font-size: 0.85em;
        font-style: italic;
        color: #cfcfcf;
        background-color: #fff;
    }

    #divChatFooter[data-whos-typing=""]::before {
        visibility: hidden;
    }

    #divChatMessage:empty:not(:focus)::after {
        content: attr(data-placeholder);
        font-style: italic;
        color: #9e9e9e;
    }

.chatImgClose {
    position: relative;
    display: inline-table;
    width: 1rem;
    height: 1rem;
    font-size: 10pt;
    color: rgb(255,255,255);
    font-style: normal;
    font-weight: 500;
    font-family: 'Arial Black', Arial, Verdana;
    cursor: pointer;
    top: -1px;
}

    .chatImgClose:before {
        content: '\f410';
        width: 100%;
        height: 100%;
        margin: 0.2rem;
        font-family: "Line Awesome Free";
        font-size: 1.5rem;
        font-weight: 500;
        color: #d64343;
        text-align: center;
    }


#divChatSend {
    float: right;
    font-family: versaRegular, 'Segoe UI Light', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.8rem;
    color: #089c1d;
    background-color: transparent;
    margin: 0 4px 0 0;
    cursor: pointer;
}

#divChatFooter {
    display: block;
    width: calc(100% - 36px);
    height: 42px;
    overflow: hidden;
    margin: 0;
    border: 1px solid #FFFFFF;
    border-top: 1px solid #d1d1d1;
    background-color: #FFFFFF;
}

#divChatSettings {
    position: absolute;
    display: none;
    z-index: 4001;
    left: 50%;
    top: 50%;
    margin: 0 auto;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 324px;
    font-family: versaRegular, 'Segoe UI Light', 'Segoe UI', Verdana, Arial, Tahoma, sans-serif;
    font-size: 0.8rem;
    line-height: 1rem;
    border: 1px solid #003467;
    background-color: #f0f0f0;
    box-shadow: rgb(0 0 0 / 67%) 4px 4px 10px;
}

#divChatSettings > div.tableheading3:first-child {
    font-family: versaRegular, 'Segoe UI Light', 'Segoe UI', Verdana, Arial, Tahoma, sans-serif;
    font-size: 0.9rem;
    line-height: 1.1rem;
    font-style: normal;
    font-weight: normal;
    height: 28px;
    background-color: #003467;
    color: #FFFFFF;
    padding: 4px;
    white-space: nowrap;
}

    #divChatSettings > div:nth-child(n+2) {
        display: block;
        height: 2.5rem;
        padding: 6px;
        margin: 6px 6px 12px 6px;
    }

        #divChatSettings > div:nth-child(n+2):before {
            float: left;
            content: attr(data-label);
            font-family: versaRegular, 'Segoe UI Light', 'Segoe UI', Verdana, Arial, Tahoma, sans-serif;
            line-height: 1.5rem;
            width: 5rem;
            white-space: nowrap;
        }

    #divChatSettings > div > select {
        float: right;
        width: calc(100% - 6rem);
        padding: 4px;
        font-family: versaRegular, 'Segoe UI Light', 'Segoe UI', Verdana, Arial, Tahoma, sans-serif;
        outline: none;
    }

    #divChatSettings > div > input[type="text"] {
        float: right;
        width: calc(100% - 6rem);
        padding: 4px;
        border: solid 1px #767676;
        font-family: versaRegular, 'Segoe UI Light', 'Segoe UI', Verdana, Arial, Tahoma, sans-serif;
        text-align: center;
        cursor: default;
        outline: none;
    }

    #divChatSettings > div > input[type="button"] {
        float: right;
        width: 90px;
        height: 28px;
        margin: 8px 0;
	    color: var(--chat-button-foreground-color);
	    background-color: var(--chat-button-background-color);
	    border: solid 1px var(--chat-button-background-color);        
        outline: none;
    }

    #divChatSettings > div > input[type="button"]:hover {
	    color: var(--chat-button-hover-foreground-color);
	    background-color: var(--chat-button-hover-background-color);
	    border: solid 1px var(--chat-button-hover-background-color);        
        outline: none;
    }

    #divChatMask {
        position: absolute;
        width: 100% !important;
        height: 100% !important;
        left: 0;
        top: 0;
        background-color: #808080;
        opacity: 0.6;
        filter: alpha(opacity=60);
    }

.chatStyle1, .chatStyle1a, .chatStyle2, .hideChat, .chatNotify1, .chatBold1, .chatBold2, .chatBold3, .chatComp1, .chatError1, .messageStyle, .busyStyle1, .offlineStyle, .chatDateTime1, .chatDateTime2 {
    font-family: versaRegular, 'Segoe UI Light', 'Segoe UI', Verdana, Arial, Tahoma, sans-serif;
    font-size: 0.8rem;
    font-style: normal;
    font-weight: normal;
    color: var(--chat-body-foreground-color);
    white-space: pre-wrap;
}

.xmasStyle {
    display: block;
    font-family: versaRegular, 'Segoe UI Light', 'Segoe UI', Verdana, Arial, Tahoma, sans-serif;
    font-size: 0.8rem;
    font-style: normal;
    font-weight: bold;
    line-height: 1rem;
    color: rgb(250 27 78);
    margin: 0;
    overflow-x: hidden;
    text-overflow: ellipsis;
    white-space: pre-wrap;
}

    .xmasStyle::before, .xmasStyle::after {
        display: block;
        content: "******************************************************************************************************************************";
        width: calc(100% - 0.5rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: clip;
    }

.speechBubble1 {
    position: relative;
    width: calc(100% - 5rem);
    background-color: var(--speechbubble1-background-color);
    border: 1px solid var(--speechbubble1-border-color);
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    -webkit-box-shadow: 1px 1px 4px #aaa;
    -moz-box-shadow: 1px 1px 4px #aaa;
    box-shadow: 1px 1px 4px #aaa;
    font-family: versaRegular, 'Segoe UI Light', 'Segoe UI', Verdana, Arial, Tahoma, sans-serif;
    font-size: 0.8rem;
    font-style: normal;
    font-weight: normal;
    line-height: 1rem;
    color: #000000;
    white-space: pre-wrap;
    word-break: break-word;
    padding: 8px;
    margin: 0.6rem 4rem 2rem 1rem;
}

    .speechBubble1:before {
        content: ' ';
        position: absolute;
        width: 0;
        height: 0;
        left: 30px;
        top: -20px;
        border: 10px solid;
        border-right: 1px solid;
        border-color: transparent transparent var(--speechbubble1-border-color) transparent;
    }

    .speechBubble1:after {
        content: ' ';
        position: absolute;
        width: 0;
        height: 0;
        left: 30px;
        top: -19px;
        border: 10px solid;
        border-right: 1px solid;
        border-color: transparent transparent var(--speechbubble1-background-color) transparent;
    }

.speechBubble2 {
    position: relative;
    width: calc(100% - 5rem);
    background-color: var(--speechbubble2-background-color);
    border: 1px solid var(--speechbubble2-border-color);
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    -webkit-box-shadow: 1px 1px 4px #aaa;
    -moz-box-shadow: 1px 1px 4px #aaa;
    box-shadow: 1px 1px 4px #aaa;
    text-align: right;
    font-family: versaRegular, 'Segoe UI Light', 'Segoe UI', Verdana, Arial, Tahoma, sans-serif;
    font-size: 0.8rem;
    font-style: normal;
    font-weight: normal;
    line-height: 1rem;
    color: #000000;
    white-space: pre-wrap;
    word-break: break-word;
    padding: 8px;
    margin: 0.6rem 1rem 2rem 4rem;
}

    .speechBubble2:before {
        content: ' ';
        position: absolute;
        width: 0;
        height: 0;
        right: 30px;
        top: -20px;
        border: 10px solid;
        border-right: 1px solid;
        border-color: transparent transparent var(--speechbubble2-border-color) transparent;
    }

    .speechBubble2:after {
        content: ' ';
        position: absolute;
        width: 0;
        height: 0;
        right: 30px;
        top: -19px;
        border: 10px solid;
        border-right: 1px solid;
        border-color: transparent transparent var(--speechbubble2-background-color) transparent;
    }

    .speechBubble1 > *, .speechBubble2 > * {
        word-break: break-word;
	}

#replyPost, .replyBubble {
    display: block;
    z-index: 500;
    position: absolute;
    left: 2px;
    bottom: 42px;
    width: calc(100% - 56px);
    min-height: 1.5em;
    font-family: versaRegular, 'Segoe UI Light', 'Segoe UI', Verdana, Arial, Tahoma, sans-serif;
    font-size: 0.9em;
    font-style: normal;
    font-weight: normal;
    line-height: 1.2em;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--replybubble-foreground-color);
    border: solid 1px var(--replybubble-border-color);
    border-left: solid 3px var(--replybubble-highlight-border-color);
    border-radius: 0.5em;
    background-color: var(--replybubble-background-color);
    margin: 0;
    padding: 0.5em;
}

.replyBubble {
    z-index: unset;
    position: relative;
    width: 100%;
    left: unset;
    bottom: unset;
    font-size: 0.8rem;
    margin: 0 0 1rem 0;
}

#divChatConversation .replyBubble {
    width: 100%;
}

.replyClose {
    position: absolute;
    right: 0.5rem;
    top: 0.1rem;
    color: var(--replybubble-close-color);
    background-color: transparent;
    cursor: pointer;
}

.chatStyle1a {
    color: #ffffff;
}

a.hideChat {
    color: #ffffff;
}

.chatStyleAlignLeft {
    font-family: versaRegular, 'Segoe UI Light', 'Segoe UI', Verdana, Arial, Tahoma, sans-serif;
    font-weight: normal;
    line-height: 1rem;
    white-space: pre-wrap;
    float: left;
    color: #808080;
    font-style: normal;
    font-size: 0.8rem;
}

.chatStyleAlignRight {
    font-family: versaRegular, 'Segoe UI Light', 'Segoe UI', Verdana, Arial, Tahoma, sans-serif;
    font-weight: normal;
    line-height: 1rem;
    white-space: pre-wrap;
    float: right;
    color: #808080;
    font-style: normal;
    font-size: 0.8rem;
}

.chatStyle1 {
    float: left;
    color: #808080;
    font-style: normal;
    font-size: 0.8rem;
}

.chatDateTime1 {
    float: left;
    color: #9e9e9e;
    font-style: italic;
    margin: 0 0.5rem;
    font-size: 0.6rem;
}

.chatStyle2 {
    float: right;
    color: #808080;
    font-style: normal;
    font-size: 0.8rem;
}

.chatDateTime2 {
    float: right;
    color: #9e9e9e;
    font-style: italic;
    margin: 0 0.5rem;
    font-size: 0.6rem;
}

.chatNotify1 {
    width: 100%;
    height: 1.5rem;
    padding: 0.5rem;
    font-style: italic;
    color: #039020;
    font-size: 0.8rem;
    margin: 0.6rem 0;
}

.chatBold1 {
    font-weight: bold;
}

.chatBold2 {
    font-weight: bold;
    color: #FFFFFF;
}

.chatBold3 {
    font-weight: bold;
    font-style: italic;
}

.chatComp1 {
    font-weight: normal;
    font-style: italic;
    color: #FFFFFF;
}

.chatError1 {
    font-weight: bold;
    color: #FF0000;
}

.messageStyle {
    color: var(--chat-body-foreground-color);
}

.messageStyle a {
    color: var(--chat-body-foreground-color);
}

.messageStyle a:hover {
    color: var(--chat-body-foreground-hover-color);
}

.busyStyle {
    color: var(--chat-busy-foreground-color);
}

.busyStyle a {
    color: var(--chat-busy-foreground-color);
}

.busyStyle a:hover {
    color: var(--chat-busy-foreground-hover-color);
}

.offlineStyle {
    color: var(--chat-offline-foreground-color);
}

.offlineStyle a {
    color: var(--chat-offline-foreground-color);
}

.offlineStyle a:hover {
    color: var(--chat-offline-foreground-hover-color);
}

/* Start Chat Rating */
#divChatRating {
    position: absolute;
    font-family: versaRegular, 'Segoe UI Light', 'Segoe UI', Verdana, Arial, Tahoma, sans-serif;
    font-weight: normal;
    line-height: 1rem;
    padding: 24px 36px 24px 36px;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    background-color: #ffffff;
}

    #divChatRating p {
        font-size: 1.1rem;
        line-height: 1.8rem;
    }

    #divChatRating span {
        grid-column: 1/6;
        font-size: 1rem;
        line-height: 2.5rem;
    }

    #divChatRating div.rating-selection {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        font-size: 1rem;
        line-height: 1rem;
    }
            
        .chatStarOff {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 16px 0 0;
            width: 100%;
            height: 48px;
            font-size: 2.5rem;
            color: #afaeae;
            background-color: transparent;
        }

        .chatStarOn {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 16px 0 0;
            width: 100%;
            height: 48px;
            font-size: 2.5rem;
            color: #d7b30b;
            background-color: transparent;
        }

    #divChatRating .chatRatingTextBox {
        font-family: 'Segoe UI Light', 'Segoe UI', Verdana, Arial, Tahoma, sans-serif;
        font-style: normal;
        font-weight: normal;
        font-size: 10pt;
        line-height: 16pt;
        color: #000000;
        white-space: pre-wrap;
        margin: 12px 0 12px 0;
        padding: 6px;
        border: 1px solid #a0a0a0;
        border-radius: 2px 2px;
        width: 100%;
        height: 80px;
        resize: none;
        outline: none;
    }

    #divChatRating .chatRatingButton {
        display: block;
        margin-left: auto;
        margin-right: auto;
        font-family: 'Segoe UI Light', 'Segoe UI', Verdana, Arial, Tahoma, sans-serif;
        font-style: normal;
        font-weight: normal;
        font-size: 10pt;
        line-height: 16pt;
        color: #000000;
        width: 100%;
        height: 36px;
        background-color: #0b3a7a;
        border-color: #0b3a7a;
        color: #ffffff;
    }

        #divChatRating .chatRatingButton:hover {
            box-shadow: 2px 2px 15px #808080;
        }

/* End Chat Rating */


/* Colour Palette */
.colourPaletteContainer {
    position: absolute !important;
    left: -2px !important;
    top: 24px !important;
    width: 296px !important;
    height: 156px !important;
    padding: 0.5rem !important;
    margin: 0.4rem !important;
    background-color: #f9f8f7 !important;
    border: solid transparent !important;
}

.colourPaletteBody {
    position: relative;
    width: 270px;
    height: 96px;
    background-color: #f9f8f7;
    border: solid transparent !important;
}

.colourCellRow {
    position: relative;
    display: block;
    width: 100%;
    height: 20px;
    float: left;
    background-color: #f9f8f7;
}

.colourCell {
    position: relative;
    float: left;
    width: 12px;
    height: 12px;
    border-top: solid 1px #808080;
    border-right: solid 1px #808080;
    border-bottom: solid 1px #808080;
    border-left: solid 1px #808080;
    margin: 3px 3px 3px 3px;
}


/* Context Menu */
#divChatContextMenu {
    z-index: 500;
    position: fixed;
    visibility: visible;
    opacity: 1.0;
    width: 132px;
    height: 96px;
}

    #divChatContextMenu.hide {
        visibility: hidden;
        opacity: 0.0;
        width: 0;
        height: 0;
    }

.contextMenuBody {
    position: relative;
    padding: 1px;
    background-color: #ffffff;
    border: solid 1px #6593cf;
    box-shadow: #343434 5px 5px 10px;
}

.contextMenuItem {
    position: relative;
    clear: both;
    cursor: default;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9em;
    width: 100%;
    height: 32px;
    border: none;
    background-color: transparent;
    padding: 16px;
    margin: 0 0 0 0;
}

    .contextMenuItem > i, .contextMenuItem > span {
        position: absolute;
        z-index: 10;
        left: 10px;
        top: 10px;
        font-size: 1em;
        cursor: default;
    }

    .contextMenuItem:before {
        position: absolute;
        z-index: 10;
        left: 0;
        top: 0;
        content: '';
        width: 32px;
        height: 32px;
        border: solid 1px transparent;
        background-color: #ddd;
        cursor: default;
    }

    .contextMenuItem:after {
        position: absolute;
        left: 0px;
        top: 0;
        content: attr(data-label);
        color: #333;
        width: 100%;
        height: 32px;
        line-height: 32px;
        padding: 0 0 0 36px;
        border: solid 1px transparent;
        background-color: #fff;
    }

    .contextMenuItem:hover:before {
        border: solid 1px #ffbd69;
        border-right: solid 1px transparent;
        background-color: #ffe7a2;
    }

    .contextMenuItem:hover:after {
        border: solid 1px #ffbd69;
        border-left: solid 1px transparent;
        background-color: #ffe7a2;
    }


.contextMenuItemDivider {
    position: relative;
    clear: both;
    cursor: default;
    background-color: transparent;
    height: 3px;
    border: none 1px #000000;
    padding: 0;
}

    .contextMenuItemDivider:before {
        position: absolute;
        content: '';
        left: 0;
        top: 0;
        content: '';
        width: 32px;
        height: 3px;
        border: none 1px transparent;
        background-color: #ddd;
    }

    .contextMenuItemDivider:after {
        position: absolute;
        left: 0;
        top: 0;
        content: '';
        width: calc(100% - 32px);
        height: 1px;
        padding: 0;
        margin: 2px 0px 2px 32px;
        border: none 1px transparent;
        background-color: #9CC6FF;
    }
