.cic-chat {
    display: none;
    position: fixed;
    bottom: 0;
    right: 0;
    width: 320px;
    min-height: 40px;
    border: 1px solid #e1e1e1;
    z-index: 10000;
}

.cic-chat.cic-chat--active {
    display: block;
}

.cic-chat.cic-chat--started .greetingsWrapper {
    display: none;
}


.cic-chat, .cic-chat .headerBox {
    -webkit-box-shadow: rgba(0,0,0,0.0980392) 0 0 1px 2px;
    -moz-box-shadow: rgba(0,0,0,0.0980392) 0 0 1px 2px;
    box-shadow: rgba(0,0,0,0.0980392) 0 0 1px 2px;

    border-radius: 8px 8px 0px 0px;
    -moz-border-radius: 8px 8px 0px 0px;
    -webkit-border-radius: 8px 8px 0px 0px;
    overflow: hidden;
}

.cic-chat .cic-chat-inner-wrapper {
    background: #fff;
}

.cic-chat .headerBoxWrapper {
    height: 45px;
}

.cic-chat .headerBox {
    background-color: #006cb7;
    height: 45px;
    position: relative;
    z-index: 30;
    color: white;
    box-sizing: border-box;
    padding: 0 15px;
}

.cic-chat .headerBoxTitle {
    float: left;
    line-height: 45px;
}

.cic-chat .headerBoxControlsContainer {
    float: right;
    font-size: 0;
    line-height: 0;
}
.cic-chat .headerBoxControlsContainer .icon {
    background-image: url(../images/icons.png);
    display: block;
    width: 11px;
    height: 7px;
    margin: 4.5px 2.5px;
}

.cic-chat .headerBoxControlsContainer a {
    width: 16px;
    height: 16px;
    margin: 14px 5px 15px 5px;
    display: inline-block;
}

.cic-chat .minimizeChat .icon {
    background-position: -95px 0;
    width: 11px;
    height: 7px;
    margin: 4.5px 2.5px;
}

.cic-chat .popinChat .icon,
.cic-chat .popoutChat .icon {
    background-position: -111px 0;
    width: 10px;
    height: 10px;
    margin: 3px;
}

.cic-chat .popinChat .icon {
    -webkit-transform: rotate(90deg);
        -ms-transform: rotate(90deg);
            transform: rotate(90deg);
}

.cic-chat .endChat .icon {
    background-position: -63px 0;
    width: 11px;
    height: 11px;
    float: right;
    margin: 2.5px;
}

.cic-chat a.maximizeChat {
    display: none;
}

.cic-chat .maximizeChat .icon {
    background-position: -79px 0;
    width: 11px;
    height: 7px;
    margin: 4.5px 2.5px;
}

.cic-chat .chatPanel {
    overflow: hidden;
    height: 100%;
}

.cic-chat .chatContainerWrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    background-color: #fcfcfc;
    height: 240px;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    overflow: auto;
}

.cic-chat .chatContainer {
    color: #6c6c6c;
}

.cic-chat .greetingsWrapper {
    text-align: center;
    width: 100%;
}

.cic-chat .greetingsContainer {
    padding: 5px;
    text-align: center;
    word-wrap: break-word;
    color: #777;
    font-weight: bold;
    font-size: 15px !important;
}

.cic-chat .embedArrow {
    background-position: -318px 0;
    width: 22px;
    height: 26px;
    background-image: url(../images/icons.png);
    background-repeat: no-repeat;
    margin: 5px auto;
}

.cic-chat .actionsContainer {
    border-top: 2px solid #e1e1e1;
    background-color: white;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
}


.cic-chat .nameWrapper {
    position: relative;
    width: 100%;
    padding: 2px 10px;
    border-bottom: 2px solid #e1e1e1;
}

.cic-chat .nameWrapper button {
    position: absolute;
    top: 50%;
    right: 0;
    -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
            transform: translateY(-50%);
    border: none;
    background-color: #006cb7;
    color: white;
    -webkit-transition: background-color .33s ease-in-out;
    -o-transition: background-color .33s ease-in-out;
    transition: background-color .33s ease-in-out;
    height: 31px;
    line-height: 31px;
    text-align: center;
    padding: 0 15px;
    font-weight: 700;
}

.cic-chat .nameWrapper button:hover {
    background-color: #555555;
}

.cic-chat .nameWrapper label {
    box-sizing: border-box;
    float: left;
    width: 15%;
}

.cic-chat .chatName {
    padding: 0 5px;
    box-sizing: border-box;
    width: 85%;
    border: none;
    outline: none;
    background-color: transparent;
    /*font-size: 14px;*/
}

.cic-chat .textareaContainer {
    width: 100%;
    padding: 10px;
    height: 52px;
}

.cic-chat .chatTextarea {
    width: 100%;
    outline: none;
    border: none;
    padding: 0;
    margin: 0;
    width: 100%;
    overflow: hidden;
    resize: none;
    border: 0;
    vertical-align: top;
    font-size: 14px;
    background-color: #fff;
    color: #000;
}

.cic-chat .chatName::-webkit-input-placeholder,
.cic-chat .chatTextarea::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    color: #e1e1e1;
    font-style: italic;
}

.cic-chat .chatName::-moz-placeholder,
.cic-chat .chatTextarea::-moz-placeholder { /* Firefox 19+ */
    color: #e1e1e1;
    font-style: italic;
}

.cic-chat .chatName:-ms-input-placeholder
.cic-chat .chatTextarea:-ms-input-placeholder { /* IE 10+ */
    color: #e1e1e1;
    font-style: italic;
}

.cic-chat .chatName:-moz-placeholder,
.cic-chat .chatTextarea:-moz-placeholder { /* Firefox 18- */
    color: #e1e1e1;
    font-style: italic;
}

/* Message table */
.cic-chat .chatTableWrapper {
    display: none;
    width: 100%;
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: flex-end;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    padding: 5px 10px;
    max-height: 100%;
}

.cic-chat .chatTableWrapper .msg {
    padding: 5px;
    width: 100%;
}

.cic-chat .chatTableWrapper .msg-inner {
    clear: both;
    position: relative;
}

.cic-chat .chatTableWrapper .msg-inner:after {
    content: "";
    clear: both;
    display: table;
}

.cic-chat .chatTableWrapper .msg-name {
    font-size: 11px;
    color: #777;
}

.cic-chat .chatTableWrapper .msg-name time {
    margin-left: 5px;
}

.cic-chat .chatTableWrapper .msg-text {
    font-size: 14px;
    padding: 5px 10px;
    max-width: calc(100% - 45px);
}

.cic-chat .chatTableWrapper .msg--system .msg-text {
    float: left;
    background-color: #3e5a63;
    border-radius: 0 15px 15px 15px;
    color: white;
}

.cic-chat .msg-text a {
    color: black;
    font-weight: bold;
}

.cic-chat .msg--system .msg-text a {
    text-decoration: none;
    color: white;
}

.cic-chat .msg-text a:hover {
    text-decoration: underline;
}

.cic-chat .chatTableWrapper .msg--system .msg-time {
    right: 0;
}

.cic-chat .chatTableWrapper .msg--user .msg-text {
    float: right;
    color: black;
    border-radius: 15px 0 15px 15px;
    background-color: #e5e5e5;
}

.cic-chat .msg.msg--user .msg-name {
    float: right;
}



/* States */
.cic-chat--minimized .chatPanel{
    height: 0px;

}
.cic-chat.cic-chat--minimized .popoutChat,
.cic-chat.cic-chat--minimized .minimizeChat,
.cic-chat.cic-chat--started .nameWrapper,
.cic-chat:not(.cic-chat--started) .textareaWrapper {
    display: none;
}


.cic-chat.cic-chat--minimized a.maximizeChat {
    display: inline-block;
}

.cic-chat.cic-chat--started .chatContainerWrapper {
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: flex-end;
}

.cic-chat.cic-chat--started .chatTableWrapper {
    display: block;
    /* display: -webkit-box;
    display: -ms-flexbox;
    display: flex; */
}

/* Popped out state */
.cic-chat.cic-chat--poppedout {
    position: fixed;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    max-width: 444px;
    width: 100%;
    height: 430px;
    background: white;
}

.cic-chat.cic-chat--poppedout.cic-chat--started {
    height: 490px;
}

.cic-chat.cic-chat--poppedout .chatContainerWrapper {
    height: 350px;
}

.cic-chat:not(.cic-chat--poppedout) .popinChat {
    display: none;
}

.cic-chat.cic-chat--poppedout .popoutChat {
    display: none;
}

.cic-chat.cic-chat--loading .greetingsWrapper {
    background-color: white;
    background-image: url(../images/loader.gif);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 220px;
}

.cic-chat.cic-chat--loading .greetingsContainer,
.cic-chat.cic-chat--loading .embedArrow {
    visibility: hidden;
}


.cic-chat.cic-chat--started .chatContainerWrapper {
    margin-bottom: 92px;
}


/* Baloon */
.cic-chat.cic-chat--active {
    overflow: visible;
}

.cic-chat-baloon {
    position: absolute;
    top: -85px;
    right: 8px;
    z-index: 1;
    -webkit-box-shadow: rgba(0,0,0,0.0980392) 0 0 1px 2px;
    -moz-box-shadow: rgba(0,0,0,0.0980392) 0 0 1px 2px;
    box-shadow: rgba(0,0,0,0.0980392) 0 0 1px 2px;
    border-radius: 8px 8px 0px 0px;
    -moz-border-radius: 8px 8px 0px 0px;
    -webkit-border-radius: 8px 8px 0px 0px;
}

.cic-chat-baloon.closed {
    display: none;
}

.cic-chat-baloon-wr {
    position: relative;
    background-color: #f47822;
    color: white;
    border-radius: 5px;
    width: 134px;
    padding: 15px 0px;
}

.cic-chat-baloon-wr:after {
    content: " ";
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: block;
    z-index: -1;
    background-color: #f47822;
}

.cic-chat-baloon-bubble {
    width: 12px;
    height: 12px;
    display: block;
    background-color: #f47822;
    border-radius: 50%;
    position: absolute;
    bottom: -20px;
    left: 40%;
    transform: translateX(-40%);
    -webkit-box-shadow: rgba(0,0,0,0.0980392) 0 0 1px 2px;
    -moz-box-shadow: rgba(0,0,0,0.0980392) 0 0 1px 2px;
    box-shadow: rgba(0,0,0,0.0980392) 0 0 1px 2px;
}

.cic-chat-baloon-text {
    font-style: italic;
    font-family: Arial;
    font-size: 14px;
    line-height: 1;
    text-align: center;
}

.cic-chat-baloon-close {
    position: absolute;
    width: 18px;
    height: 18px;
    line-height: 14px;
    font-weight: bold;
    background-color: #f47822;
    right: -7px;
    top: -7px;
    font-size: 12px;
    cursor: pointer;
    font-family: Arial;
    text-align: center;
    border-radius: 50%;
    z-index: 20;
    cursor: pointer;
}

.msg-agent--typing .msg-text {
    text-indent: -99999px;
    background-repeat: no-repeat;
    min-width: 64px;
}

.typing-indicator {
  background-color: transparent;
  width: auto;
  border-radius: 50px;
  padding: 5px;
  display: table;
  margin: 0 auto;
  position: relative;
  -webkit-animation: 2s bulge infinite ease-out;
          animation: 2s bulge infinite ease-out;
}

.typing-indicator span {
  height: 10px;
  width: 10px;
  float: left;
  margin: 0 1px;
  background-color: #9E9EA1;
  display: block;
  border-radius: 50%;
  opacity: 0.4;
}
.typing-indicator span:nth-of-type(1) {
  -webkit-animation: 1s blink infinite 0.3333s;
          animation: 1s blink infinite 0.3333s;
}
.typing-indicator span:nth-of-type(2) {
  -webkit-animation: 1s blink infinite 0.6666s;
          animation: 1s blink infinite 0.6666s;
}
.typing-indicator span:nth-of-type(3) {
  -webkit-animation: 1s blink infinite 0.9999s;
          animation: 1s blink infinite 0.9999s;
}

@-webkit-keyframes blink {
  50% {
    opacity: 1;
  }
}

@keyframes blink {
  50% {
    opacity: 1;
  }
}
@-webkit-keyframes bulge {
  50% {
    -webkit-transform: scale(1.05);
            transform: scale(1.05);
  }
}
@keyframes bulge {
  50% {
    -webkit-transform: scale(1.05);
            transform: scale(1.05);
  }
}

.additionalActions {
    display: none;
    padding: 5px 10px;
}

.cic-chat.cic-chat--started:not(.cic-chat--minimized) .additionalActions {
    display: block;
}


.additionalActions .action {
    display: inline-block;
}

.emailIcon {
    background-image: url(../images/icons.png);
    background-position: -418px 0;
    width: 20px;
    height: 14px;
    margin-top: 9px;
    cursor: pointer;
}


/* Chat transcript */
.chatTranscript {
    position: absolute;
    z-index: 1000;
    background-color: white;
    display: none;
    bottom: 0;
    left: 0;
    right: 0;
}

.chatTranscriptHeading {
    padding: 10px 20px;
    line-height: 1.2em;
    color: #616161;
    font-size: 15px;
    text-align: center;
    word-wrap: break-word;
    background: #ddd;
    margin: 0;
    padding: 10px;
    text-align: left;
}

.chatTranscriptInputWr {
    padding: 5px 15px;
    border: 1px solid #ccc;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -ms-border-radius: 3px;
    -o-border-radius: 3px;
    border-radius: 3px;
    background-color: #fff;
    position: relative;
}

.chatTranscriptInputWr input {
    width: 100%;
    margin: 0;
    border: 0;
    display: block;
    line-height: 1.2em;
    padding: 11px 0;
    color: #707070;
    font-family: Arial;
    font-size: 13px;
    font-weight: bold;
    outline: none;
}

.chatTranscriptButtonWr {
    font-size: 0;
}

.chatTranscriptButtonWr button {
    width: 50%;
    height: 50px;
    display: inline-block;
    zoom: 1;
    vertical-align: baseline;
    outline: 0 none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    overflow: visible;
    margin: 0;
    padding: 7px 15px 8px 15px;
    font: bold 14px/100% Arial,sans-serif;
    background-color: #c1c1c1;
    color: #3d3d3d;
    border: 0;
    outline: none;
}

.chatTranscriptButtonWr button.send {
    background-color: #006cb7;
    color: white;
}

.cic-chat--transcript .chatTranscript {
    display: block;
}

/* Offline mode */
.cic-chat.cic-chat--offline {

}

.cic-chat .offlineMessageWrapper {
    display: none;
    text-align: center;
    width: 100%;
    padding: 5px 15px;
    text-align: center;
    word-wrap: break-word;
    color: #777;
    font-weight: bold;
    font-size: 15px;
}

.cic-chat.cic-chat--offline .greetingsWrapper {
    display: none;
}

.cic-chat.cic-chat--offline .offlineMessageWrapper {
    display: block;
}

.cic-chat.cic-chat--loading .actionsContainer,
.cic-chat.cic-chat--offline .actionsContainer {
    visibility: hidden;
    pointer-events: none;
}

/* Responsive */
@media(max-width: 480px) {
    .cic-chat.cic-chat--poppedout {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        -webkit-transform: none;
            -ms-transform: none;
                transform: none;
        max-width: 100%;

    }

    .cic-chat.cic-chat--poppedout,
    .cic-chat.cic-chat--poppedout .headerBox {
        border-radius: 0px;
    }
}
