.messages-scroller {
    position: relative;
    height: 100%;
    max-width: 100%;
    outline: 0;
    direction: ltr;
	padding-bottom: 20px;
}

.messages-scroller-container {
    overflow: hidden;
    width: auto;
    height: auto;
	
	margin-right: 0px;
    padding: 0 10px;
}

img.flip {
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
}

/*--------------------
Chat
--------------------*/
.aoz-ui-chatbox {
  /*position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 80vh;
  max-height: 500px;*/
  z-index: 2;
  overflow: hidden;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
  /*background: rgba(0, 0, 0, 0.5);*/
  /*border-radius: 20px;*/
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  
  font-family: "Open Sans", sans-serif;
  /*font-size: 15px;*/
  line-height: 1.3;

}


/*--------------------
Chat Title
--------------------*/
.chat-title {
  flex: 0 1 45px;
  position: relative;
  z-index: 2;
  /*background: rgba(0, 0, 0, 0.2);*/
  /*color: #fff;*/
  text-transform: uppercase;
  text-align: left;
  padding: 10px 10px 10px 50px;
  box-sizing: border-box;
  display: flex;
  flex-flow: column;
  justify-content: center;
}

.chat-title h1, .chat-title h2 {
  font-weight: normal;
  font-size: 0.83em; /*10px;*/
  margin: 0;
  padding: 0;
}
.chat-title h2 {
  /*color: rgba(255, 255, 255, 0.5);*/
  font-size: 0.66em; /*8px;*/
  letter-spacing: 1px;
}
.chat-title .avatar {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 9px;
  border-radius: 0;
  width: 30px;
  height: 30px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  /*border: 2px solid rgba(255, 255, 255, 0.24);*/
  box-sizing: border-box;
  top: 50%;
  transform: translateY(-50%);
}
.chat-title .avatar img {
  width: 100%;
  height: auto;
  vertical-align: baseline;
}

/*--------------------
Messages
--------------------*/
.messages {
  flex: 1 1 auto;
  color: rgba(255, 255, 255, 0.5);
  overflow: hidden;
  position: relative;
  width: 100%;
}
.messages .messages-content {
  position: absolute;
  top: 0;
  left: 0;
  height: 101%;
  width: 100%;
}
.messages .message {
  clear: both;
  float: left;
  padding: 6px 10px 7px;
  border-radius: 10px 10px 10px 0;
  background: rgba(0, 0, 0, 0.3);
  margin: 10px 0;
  font-size: 0.92em; /*11px;*/
  line-height: 1.4;
  /*margin-left: 35px; redefined by JS
  margin-right: 35px;*/
  position: relative;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.messages .message span i[data-citation] {
    cursor: pointer;
}
.messages .message .under {
  position: absolute;
  bottom: -1.5em;
  display: flex;
  /*justify-content: space-between;*/
  width: 100%;
  padding-right: 20px;
  align-items: end;
  gap: 1rem;
}

.messages .message.participant_host .under {
	flex-direction: row-reverse;
}


.messages .message .under .timestamp {
	font-size: 0.75em;	
}

.messages .message .under .cc {
	font-size: 0.9em;
	transition-duration: 1s;
	cursor: pointer;
}

.messages .message .under .cc[data-type="msword"], 
.messages .message .under .cc[data-type="sendmail"], 
.messages .message .under .cc[data-type="copynotes"] {
	font-size: 1em;
}

.messages .message .under .cc[data-type="copynotes"] {
	cursor: not-allowed;
}


.messages .message.participant_host .cc {
    margin-right: 6px;
}

.messages .message.participant_guest .cc {
    margin-left: 6px;
}

.messages .message .under .cc:hover {
	color: white;
}

.messages .message .under i.bi-check {
	color: darkgreen;
	font-size: 1.5em;
	margin-left: -2px;
    margin-right: -2px;
    /*position: relative;
    top: 5px;
	left: 4px;*/
}

.messages .message .under i.bi-check::before {
	vertical-align:sub;
}

.messages .message::before {
  content: "";
  position: absolute;
  bottom: -9px;
  border-top: 8px solid rgba(0, 0, 0, 0.3);
  left: 0;
  /*border-right: 8px solid transparent;*/
}
/* https://stackoverflow.com/questions/30299093/speech-bubble-with-arrow*/
.messages .message::after {
    content: "";
    bottom: -8px;
    position: absolute;
	transform: translateZ(-1px);
}

.messages .message .avatar {
  position: absolute;
  z-index: 1;
  bottom: -15px;
  /*left: -35px;*/
  border-radius: 30px;
  width: 30px;
  height: 30px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.24);
  box-sizing: border-box;
  display:flex;
}
.messages .message .avatar img {
  width: 100%;
  height: auto;
  vertical-align: top;
  object-fit: cover;
}
.messages .message.message-personal {
  float: right;
  color: #fff;
  text-align: right;
  background: linear-gradient(120deg, #248A52, #257287);
  border-radius: 10px 10px 0 10px;
}
.messages .message.message-personal::before {
  left: auto;
  right: 0;
  border-right: none;
  border-left: 5px solid transparent;
  border-top: 4px solid #257287;
  bottom: -4px;
}
.messages .message:last-child {
  margin-bottom: 30px;
}
.messages .message.new {
  transform: scale(0);
  transform-style: preserve-3d;
  transform-origin: 0 0;
  min-height: 1.5em;
  -webkit-animation: bounce 500ms linear both;
          animation: bounce 500ms linear both;
}
.messages .message.loading::before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  content: "";
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  z-index: 2;
  margin-top: 4px;
  -webkit-animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
          animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
  border: none;
  -webkit-animation-delay: 0.15s;
          animation-delay: 0.15s;
}
.messages .message.loading span {
  display: block;
  font-size: 0;
  width: 20px;
  height: 10px;
  position: relative;
}
.messages .message.loading span::before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  content: "";
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  z-index: 2;
  margin-top: 4px;
  -webkit-animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
          animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
  margin-left: -7px;
}
.messages .message.loading span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  content: "";
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  z-index: 2;
  margin-top: 4px;
  -webkit-animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
          animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
  margin-left: 7px;
  -webkit-animation-delay: 0.3s;
          animation-delay: 0.3s;
}

.messages .message .msg {
	word-break: break-word;
}

.msg h1, .msg h2, .msg h3, .msg h4, .msg h5, .msg h6 {
	font-size: revert;
	font-weight: revert;
	margin-top: 1em;
}
.msg li {
	margin-top: 0.25em;
}

.msg ol .msg ol, .msg ol .msg ul, .msg ul .msg ol, .msg ul .msg ul {
    margin-bottom: 0.5em;
}

.msg code {
	background-color: color-mix(in srgb, transparent, black 20%); /* slightly darker when inline */
	/*padding: 2px;*/
	color: unset;
}

.msg pre {
	/*padding: 8px;
	border-width: 1px;
	border-style: solid;
	border-color: unset;*/
	white-space: pre-wrap;
	background-color: color-mix(in srgb, transparent, black 10%);
	width: fit-content;
}

.msg pre:last-child {
	margin-bottom: unset;
}

.msg pre code {
	background-color: unset;
	tab-size: 4;
}

.msg a {
	color: currentcolor;
}

.msg p {
	margin-bottom: 0.5rem;
}

.msg table, .msg th, .msg td {
	border: 1px solid;
}

.msg table {
	margin-bottom: 10px;
}

.msg th, .msg td {
	padding: 5px;
}

.msg blockquote {
	border-left: 5px solid color-mix(in srgb, transparent, currentcolor 25%);
	margin-left: 5px;
	padding-left: 5px;
}

.msg table.hljs-ln {
    border: 0;
	margin: 0;
}

.msg table.hljs-ln tr:nth-child(even) {
    background-color: color-mix(in srgb, transparent, white 5%);
}

.msg table.hljs-ln tr:last-child {
    background-color: inherit;
}


td.hljs-ln-line.hljs-ln-numbers {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    text-align: right;
    color: #ccc;
	border:0;
    border-right: 1px solid #CCC;
    vertical-align: top;
    padding-right: 5px;
	padding-left: 5px;

    /* your custom style here */
}

td.hljs-ln-line.hljs-ln-code {
    border: 0;
	padding-left: 5px;
	padding-right: 5px;
}

/* for block of code */
.hljs-ln-code {
    padding-left: 10px;
}

.msg td.hljs-lang {
	border: 0;
    position: relative;
    top: -5px;
    color: goldenrod;
	text-align: right;
    width: 0;
    white-space: nowrap;
	vertical-align: top;
	user-select: none;
}

.msg td.hljs-lang div {
	background-color: color-mix(in srgb, transparent, black 25%);
	padding-left: 5px;
    padding-right: 5px;
    padding-top: 1px;
    padding-bottom: 1px;
    transition-duration: 1s;
}

.msg td.hljs-lang div.first {
	width: fit-content;
    right: 0;
    position: absolute;
}

.msg td.hljs-lang div:before {
	content: var(--lang)
}

.msg td.hljs-lang div i:hover {
	cursor: pointer;
	/*background-color: color-mix(in srgb, transparent, black 75%);*/
	color: gold;
}

.msg td.hljs-lang div i {
	font-size: 1.15em;
	transition-duration: 0.5s;
}

.msg td.hljs-lang div i[data-type="copy"] {
	position: absolute;
    top: 3px;
    left: 4px;
}

.msg td.hljs-lang div i[data-type="insert"] {
    font-size: 1.4em;
	margin-right: 20px;
}

.msg td.hljs-lang div i[data-type="replace"] {
    font-size: 1.4em;
}

.msg td.hljs-lang div i.bi-check {
	color:limegreen;
	font-size: 1.2em;
	vertical-align: middle;
}


/*
.msg td.hljs-lang div > i.far.fa-copy {
	color:#ccc;
	transition-duration: 1s;
}

.msg td.hljs-lang div:hover > i.far.fa-copy {
	color:white;
}

.msg td.hljs-lang div > i.fas.fa-check {
	color:limegreen;
}
*/
/*--------------------
Message Box
--------------------*/
.message-box {
  flex: 0 1 40px;
  width: 100%;
  /*background: rgba(0, 0, 0, 0.3);*/
  padding: 10px;
  position: relative;
  box-sizing: border-box;
  max-height: 40%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.message-box .message-input {
  background: none;
  border: none;
  outline: none !important;
  resize: none;
  /*color: rgba(255, 255, 255, 0.7);*/
  font-size: 0.92em; /*11px;*/
  height: 17px;
  margin: 0 10px;
  padding-right: 20px;
 /* width: 265px;*/
  box-sizing: border-box;
  overflow: hidden;
  max-height: 100%;
  flex-grow: 1;
}

.message-box .files-box {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
}

.message-box .files-box .files-left-arrow, .message-box .files-box .files-right-arrow {
	cursor: pointer;
    padding-top: 3px;
    padding-bottom: 3px;
	line-height: 1;
	background-color: inherit;
    color: inherit;
    border-style: none;
}

.message-box .files-box .files-left-arrow {
	margin-left: 7px;
    margin-right: 10px;
}

.message-box .files-box .files-right-arrow {
	margin-left: 10px;
    margin-right: 7px;
}

.files-right-arrow-wrap {
	margin-left: auto;
}


.message-box .files {
	display: flex;
	/*width: auto;*/ /*100%;*/
	/*flex-wrap: wrap;*/
	overflow: auto;
	scrollbar-width: none;
	/*scroll-behavior: smooth;*/
	/*margin-bottom: 5px;*/
}

.message-box .files::-webkit-scrollbar { /* only for safari and older non-firefox browsers */
	width: 0;
	height: 0;
}

.message-box .files .file {
	font-size: 0.7em;
    border: 1px solid white; /*grey*/
    border-radius: 5px;
    display: flex;
    align-items: center;
	margin-right: 6px;
	white-space: nowrap;
}

.message-box .files .file i {
	line-height: 1.3;
}

.message-box .files .file i:first-child {
	margin-left: 5px;
	overflow: hidden;
}

.message-box .files .file .filename {
	margin: 5px 0px 5px 5px;
    display: inline-block;
    text-overflow: ellipsis;
    overflow: hidden;
	user-select: none;
	max-width: 200px;
}

.message-box .files .file i:last-child {
	padding: 5px 10px 5px 5px;
	overflow:hidden;
}

.message-box .files .file i:last-child:hover {
	cursor: pointer;
}


.message-box .files .file i::before {
    line-height: 1.3;
    vertical-align: sub; /* this should be middle but it looks even better with sub */
}

.message-box textarea:focus:-webkit-placeholder {
  color: transparent;
}
.message-box .message-submit {
  /*position: absolute;*/
  z-index: 1;
  top: 9px;
  right: 10px;
  /*color: #fff;*/
  border: none;
  /*background: #248A52;*/
  font-size: 0.83em; /*10px;*/
  text-transform: uppercase;
  line-height: 1;
  padding: 6px;
  border-radius: 7px;
  outline: none !important;
  transition: background 0.2s ease;
}

.message-box .message-submit span[data-submit-text] {
	margin-left: 0.5em;
}

.message-box .message-submit:hover {
  background: #1D7745;
}

.message-box .message-attach {
	/*display: inline-block;
    position: absolute;*/
    top: 9px;
    left: 10px;
    font-size: 0.83em;
    text-transform: uppercase;
    /*background: #b72b2b;*/
    line-height: 1;
	padding: 6px;
    border-radius: 7px;
    outline: none !important;
    border: none;
	cursor:pointer;
}

button.title-button:not(:disabled):hover {
	background-color: #909090;
}

button.title-button {
    width: 32px;
    height: 32px;
    position: absolute;
    right: 9px;
    border-radius: 7px;
    color: #b2b2b2;
    background-color: #565656;
    border-bottom-width: 1px;
    border-right-width: 1px;
    transition: background-color 0.5s ease-in-out;
}

.bi-aoz-spin::before {
	animation: spin 2s linear infinite;
}

@keyframes spin {
	from { 
		transform:rotate(0deg); 
	}
	to {
		transform:rotate(360deg);
	}
}


/*--------------------
Bounce
--------------------*/
@-webkit-keyframes bounce {
  0% {
    transform: matrix3d(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  4.7% {
    transform: matrix3d(0.45, 0, 0, 0, 0, 0.45, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  9.41% {
    transform: matrix3d(0.883, 0, 0, 0, 0, 0.883, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  14.11% {
    transform: matrix3d(1.141, 0, 0, 0, 0, 1.141, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  18.72% {
    transform: matrix3d(1.212, 0, 0, 0, 0, 1.212, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  24.32% {
    transform: matrix3d(1.151, 0, 0, 0, 0, 1.151, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  29.93% {
    transform: matrix3d(1.048, 0, 0, 0, 0, 1.048, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  35.54% {
    transform: matrix3d(0.979, 0, 0, 0, 0, 0.979, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  41.04% {
    transform: matrix3d(0.961, 0, 0, 0, 0, 0.961, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  52.15% {
    transform: matrix3d(0.991, 0, 0, 0, 0, 0.991, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  63.26% {
    transform: matrix3d(1.007, 0, 0, 0, 0, 1.007, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  85.49% {
    transform: matrix3d(0.999, 0, 0, 0, 0, 0.999, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  100% {
    transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
}
@keyframes bounce {
  0% {
    transform: matrix3d(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  4.7% {
    transform: matrix3d(0.45, 0, 0, 0, 0, 0.45, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  9.41% {
    transform: matrix3d(0.883, 0, 0, 0, 0, 0.883, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  14.11% {
    transform: matrix3d(1.141, 0, 0, 0, 0, 1.141, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  18.72% {
    transform: matrix3d(1.212, 0, 0, 0, 0, 1.212, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  24.32% {
    transform: matrix3d(1.151, 0, 0, 0, 0, 1.151, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  29.93% {
    transform: matrix3d(1.048, 0, 0, 0, 0, 1.048, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  35.54% {
    transform: matrix3d(0.979, 0, 0, 0, 0, 0.979, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  41.04% {
    transform: matrix3d(0.961, 0, 0, 0, 0, 0.961, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  52.15% {
    transform: matrix3d(0.991, 0, 0, 0, 0, 0.991, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  63.26% {
    transform: matrix3d(1.007, 0, 0, 0, 0, 1.007, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  85.49% {
    transform: matrix3d(0.999, 0, 0, 0, 0, 0.999, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  100% {
    transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
}
@-webkit-keyframes ball {
  from {
    transform: translateY(0) scaleY(0.8);
  }
  to {
    transform: translateY(-10px);
  }
}
@keyframes ball {
  from {
    transform: translateY(0) scaleY(0.8);
  }
  to {
    transform: translateY(-10px);
  }
}