/* CSS Reset */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* App styles */
#app {
  display: flex;
  flex-direction: column;
  height: 100%;
  font-family: "Arial", sans-serif;
  font-size: 16px;
}

.heading {
}
.heading .heading-inner {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #dddddd;
}
.heading .heading-inner .photo-container {
  padding-right: 10px;
}
.heading .heading-inner .photo-container .photo {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(
    180deg,
    rgb(243, 132, 243) 30%,
    rgb(208, 109, 208)
  );
  border-radius: 100%;
}
.heading .heading-inner .info .name {
  font-weight: bold;
  line-height: 1.3;
}
.heading .heading-inner .info .title,
.heading .heading-inner .info .availability {
  font-size: 14px;
  color: #555555;
  line-height: 1.3;
}
.heading .heading-inner .info .availability {
  display: flex;
  align-items: center;
  padding-top: 2px;
}
.heading .heading-inner .info .availability img {
  float: left;
  width: 12px;
  height: 12px;
  margin-right: 4px;
  line-height: 0;
}
.heading .heading-inner .info .availability .agent-status {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 4px;
  border-radius: 100%;
}
.heading .heading-inner .info .availability.online {
  font-weight: bold;
  color: #00a24e;
}
.heading .heading-inner .info .availability.online .agent-status {
  background: #00a24e;
}
.heading .heading-inner .info .availability.offline .agent-status {
  background: orange;
}

.conversation {
  position: relative;
  display: flex;
  -webkit-box-flex: 1;
  flex-grow: 1;
}
.conversation .conversation-inner {
  position: absolute;
  width: 100%;
  max-height: 100%;
  bottom: 0;
  overflow-x: hidden;
  overflow-y: scroll;
  padding: 10px 12px;
  box-sizing: border-box;
}
.conversation .conversation-inner .messages {
  display: flex;
  width: 100%;
  flex-direction: column;
}
.conversation .conversation-inner .messages .message.multi-agent {
  display: flex;
  flex-direction: row;
  align-items: end;
}
.conversation .conversation-inner .message.multi-agent .sender {
  font-size: 14px;
  font-weight: bold;
  padding: 0 0 6px 14px;
}
.conversation .conversation-inner .message.multi-agent .photo {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-right: 10px;
  flex-shrink: 0;
  background: linear-gradient(
    180deg,
    rgb(243, 132, 243) 30%,
    rgb(208, 109, 208)
  );
  border-radius: 100%;
}
.conversation .conversation-inner .message.multi-agent {
  padding: 18px 0;
}
.conversation .conversation-inner .message {
  padding: 6px 0;
}
.conversation .conversation-inner .message .message-container {
  display: inline-block;
}
.conversation .conversation-inner .message .message-container .text {
  position: relative;
  line-height: 1.4;
  padding: 10px 14px;
  background: #f2f2f2;
  border-radius: 16px;
  cursor: pointer;
}
.conversation .conversation-inner .message .message-container .details {
  display: flex;
  font-size: 14px;
  padding: 6px 0 0 14px;
  color: #555555;
}
.conversation
  .conversation-inner
  .message
  .message-container
  .details
  .copy-text {
  display: flex;
  margin-left: 12px;
  cursor: pointer;
}
.conversation
  .conversation-inner
  .message
  .message-container
  .details
  .copy-label {
  margin-left: 4px;
}
.conversation
  .conversation-inner
  .message
  .message-container
  .details
  .copy-label.copied {
  font-weight: bold;
  color: #00a24e;
}
.conversation
  .conversation-inner
  .message
  .message-container
  .details
  .copy-text
  img {
  width: 14px;
  height: 14px;
}
.conversation .conversation-inner .message.outgoing .message-container {
  float: right;
  display: flex;
  flex-direction: column;
  align-items: end;
}
.conversation
  .conversation-inner
  .message.outgoing
  .message-container
  .message-inner {
  display: flex;
  justify-content: end;
}
.conversation .conversation-inner .message.outgoing .message-container .text {
  max-width: calc(100% - 48px);
  color: #ffffff;
  background: #4b60fa;
}
.conversation
  .conversation-inner
  .message.outgoing
  .message-container
  .details {
  text-align: right;
  padding: 6px 14px 0 0;
}

.footer {
  z-index: 1;
  position: absolute;
  right: 0px;
  bottom: 0;
  left: 0px;
  padding: 0 12px 8px 12px;
}
.footer button.scroll-to-bottom {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-top: -26px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.05s ease-in-out;
}
.footer button.scroll-to-bottom img {
  width: 14px;
  height: 14px;
}
.footer .fade {
  z-index: -1;
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: 0;
  left: 0;

  -webkit-transition-property: background-color, -webkit-backdrop-filter;
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  backdrop-filter: saturate(180%) blur(30px);
  background-color: rgba(255, 255, 255, 0.4);

  -webkit-backdrop-filter: saturate(180%) blur(30px);
  background-color: rgba(255, 255, 255, 0.4);

  -webkit-transition: background-color 0.5s cubic-bezier(0.28, 0.11, 0.32, 1);
  transition: background-color 0.5s cubic-bezier(0.28, 0.11, 0.32, 1);
  transition-property: background-color, -webkit-backdrop-filter;
  transition-property: background-color, backdrop-filter;
  transition-property: background-color, backdrop-filter,
    -webkit-backdrop-filter;

  -webkit-mask-image: linear-gradient(
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.8) 75%,
    rgba(0, 0, 0, 1) 100%
  );
  mask-image: linear-gradient(
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.8) 75%,
    rgba(0, 0, 0, 1) 100%
  );
}
.footer .footer-inner {
  display: flex;
  background: #ffffff;
  border: 1px solid #aaaaaa;
  border-radius: 20px;
}
.footer .footer-inner .file-upload,
.footer .footer-inner .new-message,
.footer .footer-inner .send-message {
  display: flex;
}
.footer .footer-inner .file-upload,
.footer .footer-inner .send-message {
  align-items: end;
}
.footer .footer-inner .file-upload {
  /* display: none; */
}
.footer .footer-inner .file-upload input {
  display: none;
}
.footer .footer-inner .file-upload label {
  display: flex;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding-left: 12px;
}
.footer .footer-inner .file-upload label img {
  width: 18px;
  height: 18px;
}
.footer .footer-inner .new-message {
  flex-grow: 1;
}
.footer .footer-inner .new-message textarea {
  width: 100%;
  min-height: 40px;
  max-height: 220px;
  font-family: "Arial", sans-serif;
  font-size: 16px;
  padding: 10px;
  background: transparent;
  border: 0;
  resize: none;
  outline: none;
  line-height: 20px;
  box-sizing: border-box;
}
.footer .footer-inner .new-message textarea::-webkit-input-placeholder {
  color: #777777;
}
.footer .footer-inner .new-message textarea::-moz-placeholder {
  color: #777777;
  opacity: 1;
}
.footer .footer-inner .new-message textarea:-ms-input-placeholder {
  color: #777777;
}
.footer .footer-inner .new-message textarea::placeholder {
  color: #777777;
}
.footer .footer-inner .send-message {
  padding: 0 4px 4px 0;
}
.footer .footer-inner .send-message button,
.footer .footer-inner .send-message button:hover,
.footer .footer-inner .send-message button:active,
.footer .footer-inner .send-message button:focus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #0057ff;
  border: 0;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.05s ease-in-out;
}
.footer .footer-inner .send-message button:disabled {
  background: #aaaaaa;
  cursor: initial;
}
.footer .footer-inner .send-message button img {
  width: 14px;
  height: 14px;
}

@media screen and (min-width: 640px) {
  .footer .scroll-to-bottom:not([disabled]):hover {
    border-color: #c4e0fd;
    background: #c4e0fd;
  }
  .footer .footer-inner .send-message button:not([disabled]):hover {
    background: #013db3;
  }
}
