html, body {
  height: 100%;
  width: 100%;
}

body {
  background-size: cover;
  font-family: "Arial", "Helvetica Neue", "Helvetica", sans-serif;
  font-size: 14px;
  overflow: hidden;

  display: flex;
  flex-direction: column;
}

a {
	color: rgba(0,0,0,.6);
  text-decoration: underline;
  font-weight: bold;
  transition: all 0.6s ease;
}

a:hover {
  text-decoration: underline;
  font-weight: bold;
  color: rgba(0,0,0,1);
  transition: all 0.15s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Nunito", "Arial", "Helvetica Neue", "Helvetica", sans-serif;
  font-weight: 400;
}

.clear-fix {
  clear: both;
}

.button {
  color: white;
  padding: 10px;
  background-color: #289dd2;
  border-radius: 4px;
  cursor: pointer;
}

.button:hover {
  color: black;
}

#mask {
  display: none;
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
}

/* prechat form */

#prechat {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#prechat .prechat-header {
  flex: 0 0 50px;

  font-size: 16px;
  font-weight: 300;
  color: gray;
  padding: 20px;
  border: 0px solid red;
  box-sizing: border-box;
}

#prechat .prechat-header #prechat-minimize {
  position: absolute;
  top: 0px;
  right: 10px;
  z-index: 1;
  color: #ddd;
  font-size: 30px;
  cursor: pointer;
  transition: all .5s ease;
}

#prechat .prechat-header #prechat-minimize:hover {
  color: black;
}

#prechat .body {
  background: transparent;
  flex: 1 1 auto;
  font-family: Verdana, Geneva, sans-serif;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;

  overflow: auto;
  padding-left: 20px;
  padding-right: 20px;
}

#prechat .body .title {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 12px;
}

#prechat .body .label {
  color: white;
  font-weight: bold;
  margin-top: 15px;
  margin-bottom: 5px;
  font-size: 12px;
}

#prechat .body .error-msg {
  display: none;
  font-style: italic;
  color: #CC0000;
  font-weight: bold;
  font-size: 12px;
}

#prechat .body .input-box {
  margin-top: 5px;
  margin-bottom: 20px;
  border: none;
  outline: none;
  padding: 5px 5px 5px 0px;
  width: calc(100% - 50px);
  border-bottom: 1px solid #ddd;
  color: black;
  font-size: 16px;
}

#prechat .body .input-box::placeholder {
  font-style: italic;
  color: gray;
}

#prechat .body .input-box:focus {
  color: black;
  border-bottom: 1px solid #289dd2;
}

#prechat .body .textarea-box {
  margin-top: 30px;
  margin-bottom: 5px;
  border: none;
  outline: none;
  padding: 5px;
  width: calc(100% - 10px);
  border-radius: 3px;
  border: 1px solid #ddd;
  color: gray;
  max-height: 400px;
  overflow: auto;
}

#prechat .body .copy-icon {
  font-size: 10px;
  cursor: pointer;
  transition: all .5s ease;
}

#prechat .body .copy-icon:hover {
  color: #289dd2;
}

#prechat .footer {
  font-family: Verdana, Geneva, sans-serif;
  flex: 0 0 auto;
  height: 60px;
  border: 0px solid red;

  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

#prechat .footer .button {
  height: 25px;
  margin-top: 10px;
  border-radius: 3px;
  color: white;
  margin-left: auto;
  margin-right: auto;
  background-color: #0099d5;
  border: 0px solid #0099d5;
  font-size: 14px;
  padding: 10px 10px 5px 10px;
  font-weight: 600;
  cursor: pointer;
  width: 100px;
  text-align: center;
}

#prechat .footer .button:hover {
  color: black;
}

#chatWindow {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: transparent;
}

/* IE10, IE11 */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  #chatWindow {
    display: -ms-flexbox;
    -ms-flex-direction: column;
  }
}

.header {
  position: relative;
  height: 45px;
  border-radius: 10px 10px 0px 0px;
  background-color: white;

  font-size: 14px;
  color: rgb(40, 157, 210);
  user-select: none;

  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: flex-start;
}

/* IE10, IE11 */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  .header {
    display: -ms-flexbox;
    -ms-flex-pack: start;
    -ms-flex-align: start;
  }
  #popin, #popout {
    display: none !important;
    position: absolute;
    top: 10px;
    right: 30px;
  }
  #minimize {
    position: absolute;
    top: 5px;
    right: 0px;
  }

}

.header-logo {
  position: absolute;
  top: 3px;
  left: 5px;
  width: 37px;
  z-index: 1;
}

.persona-background {
  position: absolute;
  width: calc(100% - 24px);
  height: 35px;
  border-radius: 5px;

  top: 4px;
  left: 20px;
  color: #333;
  background-color: #e1e1e1;
}

.persona-name {
  padding: 5px 20px 0px 10px;
  font-size: 16px;
  position: absolute;
  bottom: 14px;
  left: 40px;
  max-width: calc(100% - 200px);
  overflow: hidden;
  max-height: 20px;
  color: #333;
  text-align: left;
}

.header-icon-wrapper {
  margin-top: 12px;
  margin-right: 15px;
  width: 15px;
  cursor: pointer;
  color: #666;
  transition: all .25s ease;
  z-index: 1;
  user-select: none;
}

.header-icon-wrapper:hover {
  color: #00adef;
  transition: all .25s ease;
}

.icon-wrapper {
  cursor: pointer;
  width: 15px;
  height: 15px;
  margin-top: 5px;
  margin-left: 15px;
  font-size: 14px;
  color: gray;
  transition: all .25s ease;
  z-index: 1;
}

.icon-wrapper:hover {
  color: #00adef;
  transition: all .25s ease;
}

#msg-list-wrapper {
  flex: 1 1 0px; /* IE11 unit need to specified */
  border: 0px solid green;

  font-family: "Arial", "Helvetica Neue", "Helvetica", sans-serif;
  font-size: 16px;
  line-height: 22px;

  padding-top: 5px;
  padding-bottom: 5px;

  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* ios safari - smooth scrolling */
}

/* IE10, IE11 */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  #msg-list-wrapper {
    -ms-flex: 1 1 0px;
  }
}

#msg-list {
}

.bot-msg-label {
  margin-left: 10px;
  color: #888;
  font-family: "Roboto", "Arial", "Helvetica Neue", "Helvetica", sans-serif;
  font-size: 12px;
  font-style: italic;
  font-weight: 600;
}

.bot-msg {
  position: relative;
  max-width: calc(90% - 20px);
  margin-left: 10px;
  margin-bottom: 10px;
  padding: 10px;
  overflow: hidden;

  background-color: #ebebeb;
  border-radius: 0px 12px 12px 12px;
  color: #333;
  float: left;
}

.bot-msg-misc {
  position: absolute;
  top: -3px;
  right: 5px;
  opacity: 0;
  cursor: pointer;
  color: green;
  transition: all 0.5s ease;
}

.bot-msg-misc:hover {
  opacity: 1;

}

.user-msg {
  max-width: calc(90% - 20px);
  margin-right: 10px;
  margin-bottom: 10px;
  padding: 10px;
  overflow: hidden;

  border-radius: 12px 0px 12px 12px;
  background: #00adef;
  color: white;
  float: right;
}

.live-msg-label {
  margin-left: 10px;
  color: #888;
  font-family: "Roboto", "Arial", "Helvetica Neue", "Helvetica", sans-serif;
  font-size: 12px;
  font-style: italic;
  font-weight: 600;
}

.live-msg {
  max-width: calc(90% - 20px);
  margin-left: 10px;
  margin-bottom: 10px;
  padding: 10px;
  overflow: hidden;

  background-color: lightgreen;
  border-radius: 0px 12px 12px 12px;
  color: #333;
  float: left;
}

.system-msg {
  max-width: calc(90% - 20px);
  margin-left: 10px;
  margin-bottom: 10px;
  padding: 10px;
  padding-left: 0px;
  overflow: hidden;
  color: #333;
  float: left;
  font-style: italic;
  color: gray;
}

.card-row {
  float: right;
	margin-bottom: 10px;
	width: 95%;
	border: 0px solid red;
}
.card-row .cell {
  float: left;
	margin-right: 10px;
	width: calc(50% - 10px);
	border: 0px solid green;
}
.card-row .right {
  float: right;
}
.card-row .cell-wide {
  float: right;
  margin-right: 10px;
	width: calc(100% - 10px);
	border: 0px solid green;
}
.card-row .message {
  width: calc(100% - 15px);
  border: 1px solid #00adef;
  border-radius: 12px 0px 12px 12px;
  background-color: #ebebeb;
  padding: 7px;
  text-align: center;
  color: #333;
  overflow: hidden;
  transition: all .5s ease;
}
.card-row .message:hover {
  cursor: pointer;
  background-color: #00adef;
  color: white;
  transition: all .5s ease;
}

.card-row .not-clickable {
  border: 1px solid #ebebeb;
  border-radius: 12px;
}

.card-row .not-clickable:hover {
  cursor: auto;
  background-color: #ebebeb;
  color: #333;
}

.carousel-row-wrapper {
  position: relative;
  margin-bottom: 10px;
  width: calc(100vw - 2px);
}

.carousel-row-wrapper .left-arrow-wrapper {
  cursor: pointer;
  position: absolute;
  opacity: .3;
  top: calc(50% - 25px);
  left: 0px;
  width: 35px;
  height: 40px;
  border-radius: 0px 5px 5px 0px;
  background-color: gray;
  transition: all .5s ease;
  user-select: none;
  z-index: 4;
}

.carousel-row-wrapper .left-arrow-wrapper:hover {
  color: white;
  opacity: .7;
}

.carousel-row-wrapper .left-arrow-wrapper .arrow {
  position: absolute;
  bottom: 10px;
  left: 15px;
}

.carousel-row-wrapper .right-arrow-wrapper {
  transition: all .5s ease;
  cursor: pointer;
  background-color: gray;
  position: absolute;
  opacity: .3;
  top: calc(50% - 25px);
  right: -2px; /* -2 since when popped out, there's a 2px gap */
  width: 35px;
  height: 40px;
  border-radius: 5px 0px 0px 5px;
  user-select: none;
  z-index: 4;
}

.carousel-row-wrapper .right-arrow-wrapper:hover {
  opacity: .7;
  color: white;
}

.carousel-row-wrapper .right-arrow-wrapper .arrow {
  position: absolute;
  bottom: 10px;
  right: 15px;
}

.carousel-row {
  margin-left: 10px;
  margin-right: 10px;

  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  overflow: auto;
}

.carousel-row .cell {
  flex-shrink: 0;
  margin-right: 10px;
  margin-bottom: 10px;
  border-radius: 12px;
  padding: 10px;
  background-color: #ebebeb;
  border: 1px solid #00adef;
  color: #333;
  overflow: auto;
}

.carousel-row .cell:hover {
  cursor: pointer;
  background-color: #00adef;
  color: white;
}

.carousel-row .not-clickable {
  border: 1px solid #ebebeb;
}

.carousel-row .not-clickable:hover {
  cursor: auto;
  border: 1px solid #ebebeb;
  background-color: #ebebeb;
  color: #333;
}

.carousel-cell:last-child {
  margin-right: 0px;
}



/* typing indicator */

.typing-indicator {
  width: auto;
  border-radius: 50px;
  padding: 4px;
  display: table;
  margin: 0 auto;
  position: relative;
  animation: 2s bulge infinite ease-out;
  -webkit-animation: 2s bulge infinite ease-out;
}
.typing-indicator span {
  height: 8px;
  width: 8px;
  float: left;
  margin: 0 1px;
  background-color: #9E9EA1;
  display: block;
  border-radius: 50%;
  opacity: 0.4;
}
.typing-indicator span:nth-of-type(1) {
  animation: 1s blink infinite 0.3333s;
  -webkit-animation: 1s blink infinite 0.3333s;
}
.typing-indicator span:nth-of-type(2) {
  animation: 1s blink infinite 0.6666s;
  -webkit-animation: 1s blink infinite 0.6666s;
}
.typing-indicator span:nth-of-type(3) {
  animation: 1s blink infinite 0.9999s;
  -webkit-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);
  }
}

/* tests */

.flowtest-sub-panel, .variables-sub-panel {
  margin-top: 40px;
  padding: 10px;
  border-bottom: 1px solid #eeeeee;
  background-color: #eeeeee;
  display: none;
}

.flowtest-sub-panel .flowtest-description, .variables-sub-panel .variables-input {
  padding: 5px;
  border-radius: 5px;
  border: 1px solid #eeeeee;
  width: 70%;
  transition: all .5s ease;
}

.flowtest-sub-panel .flowtest-description:focus, .variables-sub-panel .variables-input:focus {
  outline: none;
  border: 1px solid rgb(31, 181, 245);
  transition: all .5s ease;
}
.flowtest-sub-panel .flowtest-save-button, .variables-sub-panel .variables-save-button {
  margin-left: 15px;
  color: rgb(31, 181, 245);
  font-size: 16px;
  cursor: pointer;
}

/* footer */

.footer {
  height: 75px;
  border: 0px solid blue;
  user-select: none;
}

.reply-box-wrapper {
  position: relative;
}

.reply-box-send {
  position: absolute;
  right: 10px;
  top: 7px;
  width: 15px;
  height: 20px;
  color: #00adef;
  transition: all 0.25s ease;
}

.reply-box-send:hover {
  color: green;
  cursor: pointer;
  transition: all 0.25s ease;
}

.reply-box {
  margin: 5px 10px 0px 10px;
  width: calc(100% - 40px);
  height: 26px;
  padding: 0px 20px 0px 0px;
  outline: none;
  border: 0px solid #00adef;
  border-bottom: 2px solid #00adef;
  background-color: #fff;
  font-size: 16px;
  color: #222;
  transition: all 0.30s ease-in-out;
  resize: none;
  box-shadow: 0 10px 20px -10px gray;
  overflow: none;
}

.reply-box::-webkit-input-placeholder {
  font-family: "Arial", sans-serif;
  font-style: italic;
  font-weight: normal;
  color: #ddd;
}

.reply-box::-moz-placeholder {
  font-family: "Arial", sans-serif;
  font-style: italic;
  font-weight: normal;
  color: #ddd;
}

.reply-box::-ms-input-placeholder {
  font-family: "Arial", sans-serif;
  font-style: italic;
  font-weight: normal;
  color: #ddd;
}

#masked-box {
  display: none;
  margin: 5px 10px 0px 10px;
  width: calc(100% - 50px);
  height: 26px;
  padding: 0px 20px 0px 5px;
  outline: none;
  border: 2px solid #00adef;
  border-radius: 5px;
  border-bottom: 2px solid #00adef;
  background-color: #fff;
  font-size: 16px;
  color: #222;
  transition: all 0.30s ease-in-out;
  overflow: none;
}

#ccPrompter {
  display: none;
  position: absolute;
  top: -90px;
  left: 10px;
  vertical-align: center;
  font-size: 16px;
  opacity: .9;
  background-color: black;
  border-radius: 4px;
  color: white;
  width: 80%;
  padding: 20px 10px 10px 10px;
  z-index: 3;
}

#ccAlert {
  display: none;
  position: absolute;
  top: -90px;
  left: 10px;
  vertical-align: center;
  font-size: 16px;
  opacity: .8;
  background-color: black;
  border-radius: 4px;
  color: white;
  width: 80%;
  padding: 20px 10px;
  z-index: 3;
}

#footer-menu {
  z-index: 999;
  height: 40px;
  border: 0px solid black;
  text-align: right;
  padding: 3px 10px 2px 5px;

  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  #footer-menu {
    display: -ms-flex;
    -ms-flex-direction: row;
    -ms-justify-content: end;
    -ms-align-items: center;
  }
}

.footer-menu-left {
  position: relative;
  flex: auto;
  align-self: flex-start;

  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}

/* IE10, IE11 */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {

  .footer-menu-left {
    display: -ms-flex;
    -ms-flex-direction: row;
    -ms-justify-content: end;
    -ms-align-items: center;
  }

  .footer-menu-left .svg-paperclip-icon {
    position: absolute;
    top: 10px;
    left: 0px;
    width: 15px;
    height: 15px;
  }

  .footer-menu-left .svg-refresh-icon {
    position: absolute;
    top: 10px;
    left: 25px;
    width: 15px;
    height: 15px;
  }


}

#lastUpdated {
  position: absolute;
  bottom: -15px;
  left: 10px;
  font-size: 11px;
  font-style: italic;
  color: green;
}


#poweredBy {
  margin-top: -10px;
  margin-right: 5px;
  color: #666;
  font-size: 14px;
  font-weight: normal;
}

.rulai-img {
  margin-top: -5px;
}

#console-indicator-box {
  position: relative;
  margin-top: -10px;
  margin-left: 5px;
  height: 15px;
  color: #666;
  font-size: 14px;
  font-weight: normal;
}

#console-indicator-box .console-indicator {
  display: none;
}

#console-indicator-box .widget-version {
  position: absolute;
  opacity: 0;
  top: 100%;
  right: 0px;
  color: #ccc;
  font-size: 10px;
  font-style: italic;
}

#console-indicator-box .widget-version:hover {
  opacity: 1;
}

.spin {
  -webkit-animation: spin 1s infinite linear;
  animation: spin 1s infinite linear;
}
@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}
@keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}
