﻿body {
    font-family: 'Calibri', Helvetica, Arial, Verdana, sans-serif;
}

.table {
    display: table;
}

.tr {
    display: table-row;
}

.td {
    display: table-cell;
}

.chatContainer {
    position: absolute;
    top: 5px;
    bottom: 5px;
    width: 400px;
    border: 1px solid black;
    left: 30%;
}

.cursor-pointer {
    cursor: pointer;
}

.imagebutton {
    cursor: pointer;
}

.imagebutton:hover {
    filter: brightness(65%);
}

.customerPanel {
    padding: 2px;
    height: 40px;
    /*line-height: 36px;*/
    overflow: hidden;
    background-color: #d12630;
    color: white;
}

#customerInfoPanel {
    /*float: left;
    max-width: 90%;
    max-width: 84%;*/
    width:auto;
    overflow:hidden;
    font-size:1.5em;
}

#customerThumb {
    float: left;
    height: 40px;
    margin-top: 2px;
    margin-left: 2px;
    margin-right: 5px;
}

#customerName {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    /*font-size: larger;*/
}

#cutomerTypingState {
    font-size: 12px;
}

.text-ellipsis:after {
    overflow: hidden;
    display: inline-block;
    vertical-align: bottom;
    -webkit-animation: ellipsis steps(4,end) 2000ms infinite;
    animation: ellipsis steps(4,end) 2000ms infinite;
    content: "\2026"; /* ascii code for the ellipsis character */
    width: 0px;
}

@keyframes ellipsis {
    to {
        width: 1.25em;
    }
}

@-webkit-keyframes ellipsis {
    to {
        width: 1.25em;
    }
}

#terminateButton {
    background-color: transparent;
    border: none;
    float: right;
    box-sizing: border-box;
    /*height: 32px;
    width: 32px;*/
    padding: 0;
    /*margin: 2px 2px 0 0;*/
}

    #terminateButton img {
        width: 30px;
        height: 30px;
    }

#mailChatHistoryButton {
    background-color: transparent;
    border: none;
    float: right;
    box-sizing: border-box;
    height: 28px;
    width: 28px;
    padding: 0;
    margin: 2px 2px 0 0;
}

    #mailChatHistoryButton img {
        width: 25px;
        height: 25px;
    }

.conversationPanel {
    position: absolute;
    top: 0px;
    bottom: 90px;
    width: 100%;
    overflow-y: auto;
}

.dateBanner {
    height: 22px;
    margin-left: 3px;
    margin-right: 3px;
    background-color: black;
    color: white;
}

.dateBannerText {
    margin: 3px;
    font-size: 14px;
}

.chatInputPanel {
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #d12630;
}

#chatInputTextBoxPanel {
    width: 100%;
    padding: 4px 6px 4px 4px;
    vertical-align: top;
}

.chatInput {
    background-color: white;
    border: 1px solid white;
}

#edChatInput {
    display: none;
    visibility: hidden;
}

#attachmentButtonPanel {
    vertical-align: middle;
}

#addAttachmentButton {
    padding-left: 0;
    padding-right: 0;
    background-color: transparent;
    border: none;
}

#locationButtonPanel {
    vertical-align: middle;
}

#sendCurrentLocationButton {
    padding-left: 0;
    padding-right: 0;
    background-color: transparent;
    border: none;
}

#emojiSelectButtonPanel {
    vertical-align: middle;
}

#emojiSelectButton {
    margin-right: 4px;
    padding-left: 0;
    padding-right: 0;
    background-color: transparent;
    border: none;
}

#sendMessageButtonPanel {
    vertical-align: middle;
    padding-right: 4px;
}

#sendMessageButton {
    background-color: transparent;
    border: none;
    padding-left: 0;
    padding-right: 0;
}

.chatItem-time {
    font-size: small;
    /*color: black;*/
    text-align: right;
}

.chatItem {
    padding: 3px;
    margin: 5px 0 5px 0;
    clear: both;
    float: left;
    border-radius: 5px;
    /*border: 1px solid #c7c7c7;*/
    background-color: #dfdfdf;
    color: #4a4a4a;
}

.chatItem-msg {
    min-width: 100px;
    border-radius: 15px;
    padding: 10px 10px 2px 10px;
}

.chatItem-msg-incoming {
    margin-right: 15%;
    margin-left: 1%;
    border-bottom-left-radius: 0;
}

.chatItem-msg-outgoing {
    float: right;
    margin-left: 15%;
    margin-right: 1%;
    border-bottom-right-radius: 0;
}

.chatItem-content {
    line-height: 1em;
}

.chatItem-notification {
    float: none;
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
    text-align: center;
    background-color: #d12630;
    color: white;
}

.chatItem-dateSeparator {
    float: none;
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
    text-align: center;
    background-color: #f7f7f7;
    border: 1px solid #c7c7c7;
    border-left: none;
    border-right: none;
}

/* Not visible to the user and ignored by Screenreaders.
   Should possibly be used with the additional attribute aria-hidden.
*/
.aria-hidden {
    display: none;
    visibility: hidden;
}

/* Not visible, but will be read by ScreenReaders */
.aria-hidden-readable {
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
}

.inputfile {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

    .inputfile + label {
        cursor: pointer;
    }

.attachmentPreview {
    max-width: 100%;
}

.attachmentInfo {
    font-size: smaller;
    font-style: italic;
    text-align: right;
}

#sidebar {
    z-index: 10;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%); 
    /*border: 1px solid grey; */
    background-color: #d12630;
    color: white;
    padding: 0.5em;
    border-radius: 5px;
    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.3);
}

#chatOverlay {
    z-index: 998;
    position: absolute;
    right: 0;
    top: 90px;
    bottom: 60px;
    width: 420px;
    /*border: 1px solid grey;*/
    overflow-y: auto;
    /*border-radius: 5px;*/
    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.3);
}

#chatOverlayHeader {
    box-sizing: border-box;
    height: 44px;
    overflow: hidden;
    /*padding: 0.3em 0.4em 0.4em 0.4em;*/
    background-color: #d12630;
    color: white;
    /*font-size: larger;
    font-weight: 600;*/
}

.chatOverlayContent {
    position: absolute;
    top: 44px;
    bottom: 23px;
    left: 0;
    right: 0;
    background-color: #f4f4f4;
    overflow-y: auto;
}

.chatOverlayContentPadded {
    padding: 8px;
}

#chatOverlayFooter {
    box-sizing: border-box;
    height: 23px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    padding: 0.2em 0.3em 0.3em 0.3em;
    font-size: small;
    text-align: right;
    background-color: #d12630;
    color: white;
}

#chatOverlayFooter a,
#chatOverlayFooter a:active,
#chatOverlayFooter a:visited {
    text-decoration: none;
    cursor: pointer;
    color: white;
}

#chatOverlayFooter a:hover {
    text-decoration: none;
    cursor: pointer;
    color: white;
    filter: brightness(65%);
}

.overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0; 
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
}

#chatPrivacyTermsHeader {
    box-sizing: border-box;
    height: 44px;
    overflow: hidden;
    background-color: #d12630;
    color: white;
}

#closePrivacyTermsButton {
    background-color: transparent;
    border: none;
    float: right;
    box-sizing: border-box;
    /*height: 32px;
    width: 32px;*/
    padding: 0;
    /*margin: 2px 2px 0 0;*/
}

    #closePrivacyTermsButton img {
        width: 30px;
        height: 30px;
    }

#chatPrivacyTerms {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    background-color: #f4f4f4;
    width: 50%;
    height: 50%;
}

#chatPrivacyTermsText {
    position: absolute;
    top: 44px;
    bottom: 0px;
    overflow-y: auto;
    padding: 8px;
}

.sidebar-entry {
    cursor: pointer;
}

.sidebar-entry-text {
    vertical-align: middle;
    padding-left: 10px;
    font-size: 1.1em;
}

.sidebar-entry:hover {
    filter: brightness(65%);
}

.loader,
.loader:before,
.loader:after {
    border-radius: 50%;
    width: 2.5em;
    height: 2.5em;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation: load7 1.8s infinite ease-in-out;
    animation: load7 1.8s infinite ease-in-out;
}
.loader {
    color: #808080;
    font-size: 10px;
    margin: 80px auto;
    position: relative;
    text-indent: -9999em;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}
.loader:before,
.loader:after {
    content: '';
    position: absolute;
    top: 0;
}
.loader:before {
    left: -3.5em;
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}
.loader:after {
    left: 3.5em;
}
@-webkit-keyframes load7 {
    0%,
    80%,
    100% {
        box-shadow: 0 2.5em 0 -1.3em;
    }
    40% {
        box-shadow: 0 2.5em 0 0;
    }
    }
    @keyframes load7 {
    0%,
    80%,
    100% {
        box-shadow: 0 2.5em 0 -1.3em;
    }
    40% {
        box-shadow: 0 2.5em 0 0;
    }
}
