#chat {
	position: fixed;
	bottom: 30px;
	right: 30px;
	font-size: 14px;
	z-index: 10000000;
}



#chat .chat-button {
	position: relative;
	box-sizing: border-box;
	background-color: #fff;
	box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
	border-radius: 10px;
	width: 65px;
	height: 65px;
	text-align: center;
	cursor: pointer;
	
}

#chat .chat-button:hover {
	box-shadow: 4px 4px 15px rgba(0,0,0,0.4);
}

#chat .chat-icon {
	position: absolute;
	top: -20px;
	left: 0px;
}

#chat .chat-icon img {
	width: 65px !important;
	height: auto !important;
	-ms-interpolation-mode: bicubic;
}

#chat .chat-cta {
	position: absolute;
	bottom: 4px;
	right: 0px;
	left: 0px;
	text-align: center;
	font-size: 12px;
	line-height: 1.2;
	font-weight: normal;
	color: #000;
}




@media all and (max-width: 800px) {

	#chat { bottom: 10px; right: 10px; }
	#chat .chat-button { width: 50px; height: 50px; }
	#chat .chat-icon { top: -15px; }
	#chat .chat-icon img { width: 50px !important; }
	#chat .chat-cta { font-size: 9px; }
}



#chat .chat-close {
	position: absolute;
	top: -10px;
	right: -10px;
	width: 20px;
	height: 20px;
	border-radius: 10px;
	background: #666;
	color: #fff;
	font-family: Arial;
	line-height: 20px;
	font-size: 20px;
	text-align: center;
	cursor: pointer;
}

#chat .chat-popup {
	display: none;
	position: absolute;
	bottom: 0px;
	right: 0px;
	width: 350px;
	height: 450px;
	background-color: #fff;
	border-radius: 10px;
	box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
	padding: 6px 10px;
}

#chat .chat-popup-icon {
	position: absolute;
	top: -30px;
	left: -10px;
}

@media all and (max-width: 800px) {

	#chat .chat-popup { width: 285px; height: auto; max-height: 450px; min-height: 200px; }

}



#chat .chat-popup-icon img {
	width: 50px !important;
	height: auto !important;
	-ms-interpolation-mode: bicubic;
}

#chat .chat-input {
	padding-top: 10px;
	flex: 1 5%;
}

#chat .chat-input textarea {
	width: 100%;
	outline: none;
	resize: none;
	overflow: auto;
	border-radius: 5px;
	color: #222;
	padding: 2px 4px;
	box-sizing: border-box;
	font-size: 14px;
	font-family: inherit;
}






/* Opened Chat */

#chat.open .chat-popup {
	display: flex;
	flex-direction: column;
}

#chat.open .chat-button { box-shadow: none; }






/* Static Chat (inside Backend) */

#chat.static { position: static; }
#chat.static .chat-button { display: none; }
#chat.static .chat-close { display: none; }
	
#chat.static .chat-popup {
	display: flex;
	flex-direction: column;
	position: static;
	width: auto;
	box-shadow: none;
	padding: 0px;
}








/* Messages */



#chat .chat-messages-outer {
	overflow-y: scroll;
	flex: 15;
}

#chat .chat-messages {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

#chat .chat-message {

	position: relative;
	background-color: #e2e2e2;
	color: #000;
	border-radius: 20px 20px 20px 0px;
	padding: 5px 10px;
	margin-right: 25px;
	margin-bottom: 5px;
	/* align-self: flex-start; */

	overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: normal;
    word-break: normal;
    word-break: break-word;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
	
}

#chat .chat-message a {
	color: #309;
	text-decoration: underline;
}


#chat .chat-message.chat-question {
	display: inline-block;
	background-color: #69c;
	color: #fff;
	margin-left: 25px; margin-right: 0px;
	border-radius: 20px 20px 0px 20px;
	align-self: flex-end;
	max-width: 90%;
	text-align: right;	
}

#chat .chat-message.chat-answer {
	margin-left: 35px;
}

#chat .chat-message.chat-answer:before {
	content: "";
	background-image: url(https://tramino.s3.amazonaws.com/s/oberstdorf/983751/skihrnchen.png);
	background-size: contain;
	-ms-interpolation-mode: bicubic;
	width: 30px;
	height: 30px;
	position: absolute;
	left: -35px;
	bottom: 0px;
}




#chat .chat-message.chat-info {
	font-size: 12px;
	line-height: 14px;
	background-color: #fff;
	border: 0px solid #ccc;
	padding: 3px 4px;
	color: #666;

}
/* Interactions */



#chat .chat-action-group {
	margin-top: 4px;
}

#chat .chat-email {
	font-size: 11px;
	width: 160px;
	
}

#chat .chat-action {
	display: inline-block;
	background-color: #778;
	color: #fff;
	padding: 1px 6px;
	border-radius: 5px;
	cursor: pointer !important;
	font-size: 12px;
	margin: 0.2em;
}

#chat .chat-action:hover {
	background-color: #446 !important;
}

#chat .chat-action.selected { 
	cursor: default;
	background-color: #363;
}
	
#chat .chat-action.unselected { 
	cursor: default;
	background-color: #778;
}
	
