/* ==================== Common ==================== */
.is-mobile .livechat-subtext {
  display: none;
}

/* ==================== In-Chat ==================== */
.livechat-inchat {
  background-color: white;
}

.client {
  background-color: #666666;
  color: white;
}

.client:after {
  border-bottom-color: #666666;
}

.operator {
  background-color: #E7E7E7;
}

.operator:after {
  border-bottom-color: #E7E7E7;
}


/* ================= Custom styles: Chat Loading ================== */

@keyframes slide-from-left-margin {
    0% {
        margin-left: 0%;
    }
    100% {
        margin-left: 100%;
    }
}

.livechat-loading-image {
    height: 40px;
    margin-top: 20px;
}

.livechat-loading-container:before {
    content: '';
    transition: all 500ms ease;
    height: 45px;
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    position: absolute;
    left: 0;
    bottom: 0;
    animation: slide-from-left-margin 4s ease infinite;
}

.livechat-loading-text {
    margin: -2em 10px 10px 0;
}


/* ==================== Custom styles: In-Chat ==================== */
@font-face {
    font-family: 'Open Sans';
    src: url('https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,700');
}

html {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #333;
}

.livechat-loading-modal {
    background: white;
}

.livechat-company-logo {
    display: block;
    height: 22px;
    margin: 0 auto;
    margin-top: 20px;
}

.livechat-inchat-buttons {
    position: absolute;
    top: -47px;
    right: -10px;
}

.livechat-inchat-buttons > span {
    display: block;
    margin-bottom: 5px;
}

.liveAgentSaveButton,
.liveAgentEndButton {
    border: none;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #E09D00;
    background-color: white;
    width: 80px;
    margin: 0;
}

.livechat-text {
    font-size: 16px;
    text-align: center;
}

.livechat-client-input {
    display: flex;
}

.livechat-client-input-left {
    flex-grow: 1;
    margin-right: 25px;
}

.livechat-client-input-right {
    flex-shrink: 0;
}

.liveAgentSendButton {
    background-color: #E09D00;
    font-size: 16px;
    height: 42px;
    width: 100%;
    border: 0;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: unset;
}

.liveAgentSendButton:hover,
.liveAgentSendButton:active,
.liveAgentSendButton:focus {
    background-color: #E09D00;
    font-size: 16px;
}

.liveAgentChatInput {
    border-radius: 5px;
    margin-bottom: 50px;
}

.livechat-inchat-container * {
    box-sizing: border-box;
}

#liveAgentChatLog {
    padding: 0;
}

#liveAgentChatLogText {
    display: flex;
    flex-direction: column;
}

.timestamp {
    padding: 0 10px 5px 10px;
    font-size: 12px;
}

.client {
    align-self: flex-end;
    float: none;
    margin-bottom: 5px;
}

.client + .timestamp {
    text-align: right;
}

.operator {
    align-self: flex-start;
    float: none;
    margin-bottom: 5px;
}
