

.bubble
{
	position: relative;
	width: 35px;
	height: 30px;
	padding: 0px;
	background: #FFDEEB;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
	border: #E97F7F solid 3px;
}

.bubble:after
{
	content: '';
	position: absolute;
	border-style: solid;
	border-width: 7px 5px 0;
	border-color: #FFDEEB transparent;
	display: block;
	width: 0;
	z-index: 1;
	margin-left: -5px;
	bottom: -7px;
	left: 50%;
}

.bubble:before
{
	content: '';
	position: absolute;
	border-style: solid;
	border-width: 9px 7px 0;
	border-color: #E97F7F transparent;
	display: block;
	width: 0;
	z-index: 0;
	margin-left: -7px;
	bottom: -12px;
	left: 50%;
}


.unseenCount {
    position: absolute;
    top: -45px;
    float: left;
    left: 200px;
    text-align: center;
    font-size: 24px;
}

/* Parent row block */
.visitorMsg {
	display: block;
    text-align: right;
    margin-bottom: 10px;
}

/* chat bubble within the block */
.visitorMsg div {
	display: inline-block;
	text-align: left;
    max-width: 85%;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 15px;
    padding: 10px;
	white-space: pre-wrap;
}

.pendingMsg {
	display: block;
    text-align: right;
    margin-bottom: 10px;
}

.pendingMsg div {
	display: inline-block;
	text-align: left;

    max-width: 85%;
    color: #AAA;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    padding: 10px;
	white-space: pre-wrap;
}

.hostMsg {
	display: block;
    margin-bottom: 10px;
}

.hostMsg div {
	display: inline-block;
    max-width: 85%;
    padding: 10px;
    background-color: rgba(76, 138, 255, 0.29);
    border-radius: 15px;
	white-space: pre-wrap;
}


/* This is the region containing all the messages that scrolls */
.chat-scroll {
    padding: 10px 20px 10px 10px;
    /*max-height: 350px;*/
/*	height: 350px;*/
    overflow-y: scroll;
    font-family: sans-serif;
}

/* This is where the chat input is done */
.chat-entry {
	padding: 0px 15px 10px;
/*	text-align: right; */
    position: relative;
}

.chat-entry textarea {
	width: 100%;
	display: block;
	box-sizing: border-box;
	font-size: 16px;
}

.chatbutton {
	background-color: #0076FF;
	border: none;
	color: white;
	margin-top: 5px;
	padding: 5px 20px;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	font-size: 16px;
	margin-bottom: 5px;
	float: right;
	display: none;
}

#entertip {
    font-size: 10px;
    font-family: verdana;

}

.customScrollbar::-webkit-scrollbar {
    -webkit-appearance: none;
}

.customScrollbar::-webkit-scrollbar:vertical {
    width: 11px;
}

.customScrollbar::-webkit-scrollbar:horizontal {
    height: 11px;
}

.customScrollbar::-webkit-scrollbar-thumb {
    border-radius: 8px;
    border: 2px solid white; /* should match background, can't be transparent */
    background-color: rgba(0, 0, 0, .5);
}

.customScrollbar::-webkit-scrollbar-track {
    background-color: #fff;
    border-radius: 8px;
}



#chatbar {
    background-color: #07f;
    position: relative;
    height: 48px;
    color: white;
    line-height: 48px;
    padding-left: 8px;
    font-family: sans-serif;
    /*font-size: larger;*/
}



#chatmenu svg {
    fill: #fff;
    padding: 0px;
    width: 16px;
    height: 16px;
    /* margin-top: -8px; *//* account for padding and border if not using box-sizing: border-box; */
    padding-right: 8px;
    /* position: relative; */
    /* top: 50%; */
    /* left: 8px; */
    display: none; /* WIP: not needed until the feature is done */
    transform: translateY(1px); /* graphic is a little up-shifted; compensate */
}

#chatmenu svg:hover {
	fill: #eee;
}

/*	a:link - a normal, unvisited link
	a:visited - a link the user has visited
	a:hover - a link when the user mouses over it
	a:active
}*/

#closechat {
	font-size: 24px;
	position: absolute;
	right: 8px;
	font-weight: bold;
}
#closechat:link,
#closechat:visited {
	color: #fff;
}
#closechat:active,
#closechat:hover {
	color: #eee;
}


/* I think this is specific to the client view */
.chat {
	display: flex;
    flex-flow: column;    
    width: 400px;
    max-height: 500px;
    /*padding: 10px;*/
    background-color: #fff;
    position: fixed;
    left: initial;
    right: -400px;
    opacity: 0.0;
    display: none;
    bottom: 30px;
    /*background-color: #FAFAFA;*/
    z-index: 9999;
/*    border: 1px solid #555;*/
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

@media only screen and (max-device-width: 768px) {
	.chat {
		width: 100%;
		left: 0px;
		/*position: initial;*/
	    max-height: inherit;
		top: 0px;
		bottom: 0px;
	}
}