/**
* CSS for Networking-Chat widget
*/

.networking-chat-widget, .chat-fab {
  animation: fadeInAfterLoad 1.0s 2s forwards;
  opacity: 0.0;
}

@keyframes fadeInAfterLoad {
  to   { opacity: 1.0; }
}

.hidden {
    display: none !important;
}

.networking-chat-widget {
    font-size: 12pt;
    border-left: 1px solid var(--e-global-color-secondary);
    background-color: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(5px);
    z-index: 998; /* before: 2147483647; */
    position: fixed;
    right: 0;
    bottom: 0;
    height: 100vh;
    display: flex;
    flex-direction: row;
    justify-content: center;
    transition: bottom .3s ease-in-out .3s;
}

.networking-chat-widget.offcanvas {
    bottom: -100vh;
    transition: bottom .3s ease-in-out;
}

.networking-chat-widget .main-chat-window,
.networking-chat-widget .group-chat-window,
.networking-chat-widget .private-chat-window {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    /*height: 88%;*/
    height: 100%;
}

.networking-chat-widget .toolbar {
    display: flex;
    z-index: 999;
    flex-direction: column;
    justify-content: flex-end;
    background-color: gainsboro;
    width: 50px;
}

.networking-chat-widget .toolbar span,
.networking-chat-widget .toolbar button{
    width: 100%;
    color: var(--e-global-color-text);
    text-align: center;
    font-size: 1em;
    margin: .5em 0;
	padding: 0;
    cursor: pointer;
	transition: color 0.3s linear;
	background: transparent;
	border: none;
	border-radius: 0;
}

.networking-chat-widget .toolbar span:hover,.networking-chat-widget .toolbar span.active:hover,
.networking-chat-widget .toolbar button:hover,.networking-chat-widget .toolbar button.active:hover {
    color: var(--e-global-color-accent);
}

.networking-chat-widget .toolbar span.active,
.networking-chat-widget .toolbar button.active {
    color: var(--e-global-color-primary);
}

.networking-chat-widget .toolbar span span.title,
.networking-chat-widget .toolbar button span.title{
	font-size: 9px;
    display: block;
    width: 100%;
    margin: 0 auto;
    text-align: center;
	white-space: normal;
}

.networking-chat-widget .toolbar span#smartsupp-chat,
.networking-chat-widget .toolbar button#smartsupp-chat{
    color: #ca3232;
}
.networking-chat-widget .toolbar span#smartsupp-chat:hover,
.networking-chat-widget .toolbar button#smartsupp-chat:hover {
    color: var(--e-global-color-accent);
}

.windows {
    z-index: 998;
    height: 100%;
    width: 25vw;
    min-width: 300px;
    max-width: 400px;
    margin-right: 0;
    display: flex;
	overflow-x: hidden;
	overflow-y: auto;
    flex-direction: column;
    justify-content: space-between;
}

@media (min-width: 992px) {
	.windows {
		width: 400px;
		min-width: 400px;
		max-width: 400px;
	}
}

.windows > div > ul:not(#userlist-global):not(#userlist-local) {
    list-style: none;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
	overflow-y: auto;
}

/*
.windows #userlist-global, .windows #userlist-local {
    overflow-x: auto;
	overflow-y: scroll;
}
*/

.windows li {
    line-height: 1.5;
    margin: 0.5em 0 0 1.5em;
}

.chat-input-form {
    position: relative;
    display: flex;
	margin: 0.5em 1.5em 0.5em 1.5em;
}

.chat-input-form textarea {
    height: 100%;
    display: inline-block;
    width: 85%;
    resize: none;
	border-radius: 10px 0px 0px 10px;
}
.chat-input-form textarea:hover {
	animation-duration: 1s;
    animation-fill-mode: both;
    animation-name: pulse;
}

.chat-input-form button {
    border: none;
    display: inline-flex;
    width: 15%;
    padding: 5px 5px;
    background-color: gray;
    justify-content: center;
    align-items: center;
	transition: background-color 0.3s linear;
	border-radius: 0px 10px 10px 0px;
}

.chat-input-form button:hover {
    border: none;
    display: inline-flex;
    width: 15%;
    padding: 5px 5px;
    background-color: var(--e-global-color-accent);
    justify-content: center;
    align-items: center;
}

.networking-chat-widget #lwd-messages li {
    padding: 5px 10px;
    font-family: 'Inter var', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, sans-serif;
    margin: 0;
}

.networking-chat-widget #lwd-messages li span {
    font-weight: bold;
}

.networking-chat-widget #lwd-messages li:nth-child(odd) {
    background-color: #eee;
}

.networking-chat-widget .userlist-window {
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
}

.networking-chat-widget .userlist-window h3 {
    color: #333;
	margin: 0 0.2em;
    font-size: 1em;
}

.networking-chat-widget #userlist-global div:hover,
.networking-chat-widget #userlist-local div:hover {
    cursor: pointer;
}

.networking-chat-widget #userlist-global,
.networking-chat-widget #userlist-local{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}
.networking-chat-widget #userlist-global div.userlist-entry,
.networking-chat-widget #userlist-local div.userlist-entry {
	order: 2;
}
.networking-chat-widget #userlist-global div.userlist-entry.self,
.networking-chat-widget #userlist-local div.userlist-entry.self {
	order: 0;
}
.networking-chat-widget #userlist-global div.userlist-entry.contacted,
.networking-chat-widget #userlist-local div.userlist-entry.contacted {
	order: 1;
}

#usermenu {
    position: absolute;
    height: 200px;
    width: 200px;
    background-color: var(--e-global-color-primary);
    list-style-type: none;
}

#usermenu.hidden {
    display: none;
}

#usermenu-privmsg {
    color: black;
    background-color: white;
    cursor: pointer;
}

#privmsg {
    position: absolute;
    height: 250px;
    width: 250px;
    list-style-type: none;
    background-color: green;
    display: flex;
    flex-direction: column;
}

#privmsg.hidden {
    display: none;
}

#privmsg #lwd-messages-private {
    height: 70%;
    background-color: white;
    overflow-y: scroll;
}

.call-actions {
    width: 30%;
    padding: 0 1em;
    display: inline-flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.chat-message, .chat-message-info {
    position: relative;
    width: 88%;
    height: auto;
    padding: 15px;
    color: #333;
	background: #e0e0e0;
	background: linear-gradient(143deg, rgb(243 243 243) 25%, rgb(243 243 243) 100%);
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
	overflow: hidden;
	word-break: break-word;
}
.chat-message-info {
	background: lightgrey;
    color: #000;
}


.chat-message > span, .chat-message-info > span {
    font-size: smaller;
    font-weight: bold;
    display: block;
    margin-top: -10px;
	color: #333;
}

.chat-message:hover, .chat-message-info:hover {
    box-shadow: rgb(52 58 64 / 20%) 5px 5px 5px -3px;
}

.chat-message .delMsg {
    -webkit-transition: color 1s; /* For Safari 3.0 to 6.0 */
    transition: color 1s; /* For modern browsers */
}
.chat-message .delMsg:hover {
    color: #cc0000;
}

.chat-message:last-child {
	animation-duration: .5s;
    animation-fill-mode: forwards;
    animation-name: fadeInUp;
}

/*
.chat-message-incoming:after {
    content: '';
    position: absolute;
    border-style: solid;
    border-width: 10px 20px 10px 0;
    border-color: transparent rgba(224,224,224,1);
    display: block;
    width: 0;
    z-index: 1;
    left: -19px;
    top: 12px;
}
*/

.chat-message-incoming.profilePic, .chat-message-outgoing.profilePic {
	margin-left: 70px;
    width: calc(95% - 70px);
	overflow: visible;
}
.chat-message-incoming.profilePic img.chat-message-profilePic, .chat-message-outgoing.profilePic img.chat-message-profilePic {
position: absolute;
    left: -60px;
    display: block;
    top: 0px;
    border-radius: 100%;
    width: 50px;
    height: 50px;
    object-fit: cover;
    object-position: center;
}
img.chat-message-profilePic.user-avatar[src=undefined], img.chat-message-profilePic.user-avatar[src=false] {
    display: none;
}

.chat-message-outgoing {
    background: #a6cffd;
	/*background: radient(90deg, rgba(4,102,167,1) 0%, rgba(107,33,120,1) 100%);*/
	color: #fff;
}

.chat-message-username {
    cursor: pointer;
}

.chat-message.chat-message-outgoing, .chat-message.chat-message-outgoing > span {
	color: #fff;
}
/*
.chat-message-outgoing:after {
    content: '';
    position: absolute;
    border-style: solid;
    border-width: 10px 0 10px 20px;
    border-color: transparent rgba(107,33,120,1);
    display: block;
    width: 0;
    z-index: 1;
    right: -19px;
    top: 12px;
}
*/
.chat-message-outgoing:after {
	display: none;
}

.chat-fab {
    color: white;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 997; /* before:2147483647; */
    width: 60px;
    height: 60px;
    border: 2px solid transparent;
    background-color: var(--e-global-color-primary);
    border-radius: 50%;
    transition: bottom .3s ease-in-out .3s;
    padding: 15px 13px;
    cursor: pointer;
	transition: background-color 0.3s linear;
}

.chat-fab:hover {
    color: var(--e-global-color-primary);
	background-color: #fff;
}

.chat-fab .tooltip {
    position: absolute;
    display: block;
    width: fit-content;
	min-width: 100px;
    height: fit-content;
	top: -60px;
    left: 50%;
    opacity: 0;
	transform: translate(-50%, 0);
    padding: 0.5rem;
    font-size: 1rem;
	text-align: center;
	color: white;
    border: 2px solid transparent;
    background-color: var(--e-global-color-primary);
	transition: all 0.3s linear;
}
.chat-fab:hover .tooltip {
    opacity: 1;
}
.chat-fab.offcanvas .tooltip {
    opacity: 0;
}

.chat-fab.notification:after {
    content: "\f0f3";
    position: absolute;
	top: -5px;
    right: -10px;
    width: 25px;
    height: 25px;
    text-align: center;;
    color: white;
    background-color: var(--e-global-color-accent);
    border-radius: 50%;
	font-family: "Font Awesome 5 Free";
    font-weight: 400;
	font-size: 1rem;
	-webkit-animation-duration: 1.5s;
	animation-duration: 1.5s;
	animation-delay: 1.25s;
	animation-iteration-count: 10;
	animation-name: wobble;
}



.chat-fab.offcanvas {
    bottom: -100px;
    transition: bottom .3s ease-in-out;
}

.chat-fab > span {
    font-size: 30px;
    color: white;
    margin: auto auto;
}

.chat-window-heading {
    padding: 1em;
    align-items: center;
    font-weight: bold;
    font-size: 16pt;
	color: #333;
}

.chat-window-heading > svg {
    font-size: 16pt;
    margin-right: .5em;
	color: #333;
}

.chat-window-content {
    padding: 0 .5em;
}

#toggleToolbar {
    background-color: var(--e-global-color-primary);
    border-radius: 50%;
    color: white;
    height: 30px;
    width: 30px;
    margin: .5em auto;
	transition: all 0.3s linear;
}

#toggleToolbar:hover {
    background-color: white;
	color: var(--e-global-color-accent);
}

.userlist-entry,
.private-chat-recipient {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    padding: 7px 0;
}

.userlist-entry:hover .user-info {
    box-shadow: rgb(52 58 64 / 35%) 5px 5px 10px;
}

.userlist-entry:last-child .user-info {
	animation-duration: 1s;
    animation-fill-mode: both;
    animation-name: fadeIn;
}

.userlist-entry * {
    pointer-events: none;
}

.userlist-entry .user-avatar {
    background-color: #e0e0e0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
	object-fit: cover;
	object-position: center;
}

.userlist-entry .user-info {
    position: relative;
    flex: 1;
    color: #333;
	background-color: #e0e0e0;
    border-radius: 15px;
    margin-left: 10px;
    padding: 5px 5px 5px 10px;
    height: auto;
    max-height: 85px;
    overflow: hidden;
    font-size: 1em;
}

/* Colors for organizer */
.userlist-entry.role-administrator .user-info, .chat-message-incoming.role-administrator,
.userlist-entry.role-editor .user-info, .chat-message-incoming.role-editor,
.userlist-entry.role-author .user-info, .chat-message-incoming.role-author,
.userlist-entry.role-contributor .user-info, .chat-message-incoming.role-contributor,
.userlist-entry.role-event-sales .user-info, .chat-message-incoming.role-event-sales {
	border-bottom: 3px solid transparent;
	box-sizing: border-box;	
	background-image: linear-gradient(#e0e0e0, #e0e0e0), linear-gradient(180deg, var(--e-global-color-primary), purple 50%, var(--e-global-color-accent));
	background-repeat: no-repeat;
	background-size: 100% 100%, 100% 200%;
	background-position: 0 0, 0 100%;
	background-origin: padding-box, border-box;
	animation: highlight 1s infinite alternate;
}

/*
.userlist-entry.role-administrator .user-info .user-info-name,
.userlist-entry.role-editor .user-info .user-info-name,
.userlist-entry.role-author .user-info .user-info-name,
.userlist-entry.role-contributor .user-info .user-info-name {
	color: var(--e-global-color-primary);
}
*/

@keyframes highlight {
    100% {
		background-position: 0 0, 0 0;
    }
}
/* *** */

.unread .user-info:after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 15px;
    height: 15px;
    color: white;
    background-color: var(--e-global-color-accent);
    border-radius: 50%;
}

.userlist-entry .user-info .user-info-name {
    font-weight: bold;
}

.private-chat-recipient {
    padding: 1em .5em;
    border-bottom: 1px solid black;
}

.private-chat-recipient .user-avatar {
    background-color: #e0e0e0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
	object-fit: cover;
	object-position: center;
}

.private-chat-recipient .user-info {
    flex: 1;
    /*background-color: #e0e0e0;*/
	color: #fff;
	background: #a6cffd;
	/*background: linear-gradient(90deg, rgba(4,102,167,1) 0%, rgba(107,33,120,1) 100%);*/
    border-radius: 15px;
    margin-left: 10px;
    padding: 5px 5px 5px 10px;
    height: auto;
    font-size: 1em;
}

.private-chat-recipient .user-info a {
	color: #fff;
	text-decoration: none;
}

.private-chat-recipient .user-info a:hover {
    color: #fff;
	text-decoration: underline;
}

.private-chat-recipient .block, .private-chat-recipient .unblock {
	-webkit-transition: color 1s; /* For Safari 3.0 to 6.0 */
    transition: color 1s; /* For modern browsers */
}

.private-chat-recipient .block {
	color: #4BB543;
}

.private-chat-recipient .block:hover {
	color: #cc0000;
}
.private-chat-recipient .unblock {
	color: #cc0000;
}
.private-chat-recipient .unblock:hover {
	color: #4BB543;
}

.private-message-actions {
    width: 40px;
    cursor: pointer;
}

.get-conversation {
    cursor: pointer;
}

.get-conversation svg {
    color: gray;
    pointer-events: none;
}

.private-message-actions svg {
    color: var(--e-global-color-accent);
    pointer-events: none;
}

.private-message-actions:hover svg{
    color: #4BB543;
	animation: callPending 2s 1;
}

.private-message-actions.call-pending svg {
    animation: callPending 2s infinite;
	color: #4BB543;
}

.private-message-actions[data-call-action='accept'] svg path {
	fill: #4BB543;
}
.private-message-actions[data-call-action='deny'] svg path {
	fill: #cc0000;
}

@keyframes callPending {
    0% {
        transform: translateY(0px);
    }
    10% {

        transform: translateY(-10px);
    }
    15% {
        /*color: var(--e-global-color-accent);*/
        transform: translateY(0px);
    }
    20% {
        transform: translateY(10px);
    }
    30% {
        transform: translateY(0px);
    }
    100% {
        /*color: var(--e-global-color-primary);*/
        transform: translateY(0px);
    }
}

#profile-chat-form>label {
	margin-top: 1rem;
	color: #333;
}

#profile-chat-submit {
    background-color: var(--e-global-color-secondary);
	color: var(--e-global-color-primary);
	border-color: var(--e-global-color-primary);
	width: 100%;
    margin-top: 2rem;
	transition: background-color 0.3s linear;
}
#profile-chat-submit:hover {
    background-color: var(--e-global-color-primary);
	color: var(--e-global-color-secondary);
	border-color: var(--e-global-color-secondary);
}

#existingProfilePicture, #existingProfilePicturePlaceholder {
    max-height: 200px;
    display: block;
	-webkit-filter: grayscale(0%);
	-moz-filter: grayscale(0%);
	filter: grayscale(0%);
	transition: all 1.0s ease;
}

#existingProfilePicture:hover, #existingProfilePicturePlaceholder:hover {
    cursor: alias;
	-webkit-filter: grayscale(100%);
	-moz-filter: grayscale(100%);
	filter: grayscale(100%);
}

img#existingProfilePicture[src=undefined], img#existingProfilePicture[src=false], img#existingProfilePicture[src=""], img.user-avatar[src=undefined], img.user-avatar[src=false], img.user-avatar[src=""] {
    display: none;
}

.profile-window {
    overflow-y: scroll;
}

.profile-window input {
    max-height: 40px;
}

.profile-notification {
    background-color: var(--e-global-color-accent);
    padding: 10px;
    border-radius: 5px;
}

#chat-application {
    display: none !important;
}
body:not(.home) #chat-application {
	bottom: 160px!important;
    right: 21px!important;
}
#chat-application.show {
    display: block !important;
}

.role-event-moderator .user-avatar {
    border: 2px solid var(--e-global-color-accent);
}

.toolbar .notifications {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.toolbar .notifications .notification svg{
    pointer-events: none;
    color: var(--e-global-color-text);
}
.toolbar .notifications .notification i.fa,
.toolbar .notifications .notification i.far,
.toolbar .notifications .notification i.fas {
    pointer-events: none;
    color: var(--e-global-color-text);
	font-size: 25px;
	-webkit-animation-duration: 1.5s;
	animation-duration: 1.5s;
	animation-delay: 1.25s;
	animation-iteration-count: infinite;
	animation-name: wobble;
}

.toolbar .notifications .notification .title {
    pointer-events: none;
	white-space: normal;
}

#shareProfileCheckbox input[type=checkbox], #eallowCallCheckbox input[type=checkbox] {
    transform: scale(1.5);
}

#shareProfileCheckbox , #eallowCallCheckbox{
  margin-top: 1rem;
  white-space: nowrap;
}
#shareProfileCheckbox input[type=checkbox], #eallowCallCheckbox input[type=checkbox] {
  vertical-align: top;
  display:inline-block;
}
#shareProfileCheckbox label , #eallowCallCheckbox label{
  white-space: normal;
  display:inline-block;
  padding-left: 5px;
}


#privacyCheckbox {
    margin-top: 20px;
}
#privacyCheckbox input[type=checkbox] {
    transform: scale(1.5);
}

#privacyCheckbox label {
    max-width: 90%;
    padding-left: 10px;
}

.spin {
    display: inline;
    animation: spin 1s infinite;
    animation-timing-function: linear;
}

@keyframes spin {
    0% {
        transform: rotate( 0deg );
    }
    100% {
        transform: rotate( 360deg );
    }
}

#messages-saved-info {
    color: #333;
	position: absolute;
    background: linear-gradient(143deg, rgb(243 243 243) 25%, rgb(243 243 243) 100%);
    padding: 10px;
    bottom: 0;
    text-align: center;
    border: 0px solid transparent;
    border-radius: 10px;
}
#messages-saved-info #messages-saved-info-accept {
    color: var( --e-global-color-text );
    background-color: var( --e-global-color-primary );
	border-color: var( --e-global-color-text );
	border-style: solid;
    border-width: 2px 2px 2px 2px;
}
#messages-saved-info #messages-saved-info-accept:hover {
    color: var( --e-global-color-primary );
	background-color: var( --e-global-color-text );
	border-color: var( --e-global-color-primary );
}


.networking-chat-widget.pageflow,
.networking-chat-widget.pageflow.offcanvas{
	bottom: 0!important;
	position: relative!important;
	z-index: 998!important;
	height: 100%!important;
    margin-bottom: 0!important;
    min-height: 480px!important;
	
	animation: none!important;
	opacity: 1.0
}
.networking-chat-widget.pageflow .main-chat-window,
.networking-chat-widget.pageflow .group-chat-window,
.networking-chat-widget.pageflow .userlist-window,
.networking-chat-widget.pageflow .profile-window {
	height: 100%!important;
	max-height: 100%!important;
}

.networking-chat-widget .main-chat-window .room-description {
	margin-top: -1rem;
}

.networking-chat-widget.pageflow .windows {
	height: unset!important;
	width: 100%;
    min-width: 200px;
    max-width: 400px;
}
.networking-chat-widget.pageflow #toggleToolbar,
.networking-chat-widget.pageflow.offcanvas #toggleToolbar{
	display: none!important;
}
.chat-fab.pageflow {
	display: none!important;
}

.networking-chat-widget .main-chat-window,
.networking-chat-widget.pageflow .main-chat-window,
.networking-chat-widget .group-chat-window,
.networking-chat-widget.pageflow .group-chat-window,
.networking-chat-widget .private-chat-window,
.networking-chat-widget.pageflow .private-chat-window {
	max-height: calc(100% - 82px)!important;
}

.clear-log {
    padding: 5px;
    font-size: 0.8em;
	margin: 0.5em 2em 0.5em 2em;
	background-color: var(--e-global-color-accent)!important;
	color: var(--e-global-color-text)!important;
	border-color: var(--e-global-color-text)!important;
}
.clear-log:hover {
    background-color: var(--e-global-color-text);
	color: var(--e-global-color-accent);
	border-color: var(--e-global-color-accent);
}

#badword-hint {
    padding: 5px;
    font-size: 0.8em;
    margin: 0.5em 2em 0.5em 2em;
    background-color: white;
    color: red;
    border: 1px solid red;
}

.swal-phone {
    font-size: 0.75em;
}