/*
 * General 
 *
 */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

* {
	box-sizing: border-box;
}
body,
html {
	margin: 0;
	padding: 0;
	font-size: 17px;
	/* font-family: 'helvetica', sans-serif; */
	font-family: 'Lato', sans-serif;
}
.wrapper {
	margin: 0 auto; 
	position: relative;
}
.wrapper:after {
	clear: both;
	content: "";
	display: table;
}
.box {
	border: 2px solid #dedede;
	padding: 1rem calc(1rem - 2px);
	margin-bottom: 1rem;
}
.box:after {
	clear: both;
	content: "";
	display: table;
}
.box h1,
.box h2,
.box h3 {
	margin-top: 0;
}
footer {
	text-align: center;
}
.hero {
	padding: 2rem;
	text-align: center;
}
.hero h1 {
	margin: 0;
	font-size: 4rem;
}
/* a {
	color: #363636;
	text-decoration: underline;
}
a:hover {
	color: #ff6805;
} */
.copyurl {
	width: 100%;
	font-size: 1.25rem;
}
div.input label {
	font-weight: bold;
	font-size: smaller;
}
.addon {
	display: flex;
	border: 1px solid #999;
	border-radius: 6px;
	padding: 5px;
	background: #F0F0F0;
}
.addon input,
.addon textarea {
	border: 0;
	flex-grow: 1;
	background: transparent;
}
.addon button {
	flex-grow: 0;
	font-weight: bold;
	border-radius: 6px;
	background: transparent;
	border: 1px solid #999;
}
.addon button.textarea {
	padding: 0.5rem;
	align-self: flex-start;
}
.addon button:hover {
	color: #a795ef;
	background: #FFF;
}
div.hr {
	width: 10%;
	height: 1px;
	border: 1px dashed #dedede;
	margin: 4rem auto;
}
a.button {
	border: 2px solid #a795ef;
	font-weight: bold;
	margin: 0;
	border-radius: 3px;
	display: inline-block;
	padding: 0.5rem 2rem;
	text-align: center;
	text-decoration: none;
	box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
	background-color: #FFF;
	transition: box-shadow 0.1s linear;
}
a.button:hover {
	box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
}

/*
 * Container 
 *
 */
#message_window {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	font-family: Arial;
	/* font-family: 'helvetica', sans-serif; */
}

#message_window #message_template {
	display: none;
}

/*
 * Messages timeline
 *
 */
#message_window section {
	width: 93%;
	margin: 0 auto;
	display: flex;
	outline: none;
	flex-grow: 1;
	overflow-y: auto;
	overflow-x: hidden;
	box-sizing: border-box;
	flex-direction: column-reverse;
}
#message_window section .simple-message {
	clear: both;
	margin: 0.25rem;
}
#message_window section .message-container {
	/* vertical-align: top; */
}
#message_window section .message {
	vertical-align: middle;
	width: auto;
	/* float: left; */
	max-width: 75%;
	margin: 0.3rem 0.7rem 0.3rem 0.4rem;
	padding: 0.8rem 1rem 0.8rem 1rem;
	position: relative;
	display: inline-block;
	word-wrap: break-word;
	border-radius: 10px;
	background: #80c5e0;
	color: #ffffff;
	font-size: 0.85rem;
	line-height: 1.1rem;
}

#message_window section .avatar {
	vertical-align: middle;
	display: inline-block;
	width: 55px;
	height: 55px;
	background: url(../images/chat-button.png) no-repeat;
	background-size: 100% 100%;
	border-radius: 50%;
}

#message_window section .message .share-list {
	list-style: none;
	margin: 10px 0 0 0;
	padding: 0;
}

#message_window section .message .share-list li {
	display: inline-block;
}

#message_window section .message .share-list img {
	max-width: 30px;
}

#message_window section .message:before {
	content: "";
	width: 5px;
	height: 10px;
	top: 50%;
	right: 100%;
	position: absolute;
	background-color: #5eb4d7;
	transform: translateY(-50%);
	border-top-left-radius: 10px;
	border-bottom-left-radius: 10px;
}

#message_window section .message h1,
#message_window section .message h2,
#message_window section .message h3,
#message_window section .message h4,
#message_window section .message h5,
#message_window section .message h6 {
	margin: 0;
}
#message_window section .message p {
	margin-top: 0;
	margin-bottom: 0.2rem;
	line-height: 1.1rem;
	letter-spacing: 0.01rem;
}
#message_window section .message p:last-child {
	margin-bottom: 0;
}
#message_window section .message .whois {
	display: inline-block;
	width: 100%;
	opacity: 0.7;
	font-size: 0.50rem !important;
	margin-bottom: 0.2rem;
}
#message_window section .message .instant {
	float: right;
	opacity: 0.8;
	margin-right: 0;
}
#message_window section .message.outgoing {
	float: right;
	color: #9b9b9b;
	background: #ffffff;
	padding: 0.8rem 1rem;
}
#message_window section .message.outgoing:before {
	left: 100%;
	right: auto;
	border-radius: 0;
	border-top-right-radius: 10px;
	border-bottom-right-radius: 10px;
	background-color: #e9e9e9;
}

/* Attachment */
#message_window .file_attachment {
	width: 100%;
	float: right;
	color: #757575;
	display: block;
	padding: 0.25em;
	border-radius: 5px;
}
#message_window .file_attachment img,
#message_window .file_attachment svg,
#message_window .file_attachment i {
	float: right;
	color: black;
	display: block;
	max-width: 100%;
}

#message_window .file_attachment svg {
	width: 100%;
	margin: 20px;
	max-width: 80px;
}

/* Buttons list */
#message_window .button_message {
	margin: 1rem 0;
	border-radius: 4px;
	border-style: solid;
	border-color: #5eb4d7;
	color: orange;
	display: block;
	border-width: 1px;
	padding: 0.25rem 1rem;
	text-align: center;
	box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
	text-decoration: none;
}

/* Quick replies */
#message_window #message_replies {
	text-align: center;
	overflow-x: auto;
	flex-shrink: 0;
	-webkit-overflow-scrolling: touch;
}
#message_window #message_replies ul {
	padding: 0;
	margin: 0px auto;
	list-style-type: none;
}
#message_window #message_replies ul li {
	margin: 0.5rem;
	margin-left: 0;
	display: inline-block;
}
#message_window #message_replies a {
	cursor: pointer;
	display: block;
	border-radius: 16px;
	text-decoration: none;
	padding: 0.25rem 1rem;
	border: 1px solid #5eb4d7;
	color: #5eb4d7;
	font-size: 14px;
}
#message_window #message_replies a:hover {
	color: #FFF;
	background: #5eb4d7;
}

/* Typing */
#message_window #message_typing {
	flex-shrink: 0;
	overflow-x: auto;
	font-size: 0.9rem;
	font-style: italic;
	text-align: center;
	line-height: 2.3em;
}
#message_window #message_typing.hide {
	display: none;
}

/*
 * Footer (Form)
 *
 */
#message_window footer {
	box-sizing: border-box;
}
#message_window footer form {
	height: 65px;
	margin: 0;
	padding: 0;
	font-size: 0;
}
#message_window form input[type="text"] {
	width: calc(100% - 105px);
	height: 100%;
	border: none;
	outline: none;
	display: inline-block;
	vertical-align: top;
	color: #363636;
	font-size: 16px;
	padding-left: 5px;
	background-color: transparent;
}
#message_window ::-webkit-input-placeholder {color: #bcbcbc;}
#message_window ::-moz-placeholder {color: #bcbcbc;}
#message_window :-ms-input-placeholder {color: #bcbcbc;}
#message_window :-moz-placeholder {color: #bcbcbc;}

/* attach and send buttons */
#message_window form .button {
	width: 35px;
	height: 100%;
	cursor: pointer;
	border: none;
	outline: none;
	padding: 0;
	overflow: hidden;
	font-size: 0.8rem;
	border-radius: 0;
	display: inline-block;
	vertical-align: middle;
	background-color: transparent;
}
#message_window form .button .icon {
	width: 74%;
	height: 100%;
	margin: 0 auto;
	display: block;
	position: relative;
	transition-duration: 0.2s;
	transition-property: opacity, transform;
}
#message_window form .button:hover .icon {
	transform: scale(0.9);
	backface-visibility: hidden;
}
#message_window form .button.attach .icon {
	background: url(../icons/attach.svg) no-repeat center;
}
#message_window form .button.submit .icon {
	background: url(../icons/send.svg) no-repeat center;
}

/*
 * Chat Status
 *
 */
/* messages */
#message_window .disconnected,
#message_window .offline,
#message_window .restarting {
	display: block;
	padding: 0.6rem 1.5rem;
	font-size: 0.8rem;
	line-height: 1.2em;
}
#message_window .disconnected {
	color: #363636;
	background: #f5e2bf;
}
#message_window .offline {
	color: #ffffff;
	background: #f09091;
}
#message_window .restarting {
	color: #363636;
	background: #f5e2bf;
}

/* disconnected */
#message_window form,
#message_window #message_replies,
#message_window #message_list_container {
	opacity: 0.3;
	pointer-events: none;
}
#message_window .disconnected {
	display: block;
}
#message_window .offline {
	display: none;
}
#message_window .restarting {
	display: none;
}

/* connected */
#message_window.connected .offline,
#message_window.connected .disconnected {
	display: none;
}
#message_window.connected form,
#message_window.connected #message_replies,
#message_window.connected #message_list_container {
	opacity: 1;
	pointer-events: all;
}

/* offline */
#message_window.offline .disconnected {
	display: none;
}
#message_window.offline .offline {
	display: block;
}

/* restarting */
#message_window[data-restarting] .restarting {
	display: block;
}
#message_window[data-restarting] .offline,
#message_window[data-restarting] .disconnected {
	display: none!important;
}

/* 
 * iframe para youtube embed
 * Precisa ser implementado de forma dinâmica pelo template hbs para ficar responsivo corretamente
 */
#message_window .simple-message .message iframe {
	width: 100%;
	height: auto;
	border-radius: 10px;
	overflow: hidden;
}

@keyframes fadeInOut {
  from {opacity: 0.5;}
  to {opacity: 1;}
}

.bot-typing-container.show {
	display: block;
}
.bot-typing-container.hide {
	display: none;
}

.botTyping {

}

.botTyping.show {
	display: block;
}

.botTyping.hide {
	display: none;
}

.botTyping span {
	background: #76549c;
	border-radius: 50%;
	width: 10px;
	height: 10px;
	opacity: 0.5;
	display: inline-block;
	animation-name: fadeInOut;
  animation-duration: 1s;
	animation-iteration-count: infinite;
}

.botTyping span.dot-1 {
	animation-delay: 0.1s;
}

.botTyping span.dot-2 {
	animation-delay: 0.2s;
}

.botTyping span.dot-3 {
	animation-delay: 0.3s;
}

/*
 * Slider
 *
 */

.slider-container {
	position: relative;
	max-width: 360px;
	max-height: 440px;
}

.slick-slider {
	overflow: hidden;
}

.slick-slider .slick-slide {
  height: auto;
}

.slick-slider a {
	display: block;
	text-decoration: none;
	max-width: 350px;
	text-align: center;
}

/* .slick-slider .item-hit:after {
	content: "Selecionar";
	display: inline-block;
	margin-left: auto;
	margin-right: auto;
	margin-top: 5px;
	margin-bottom: 5px;
	border-radius: 50px;
	background: #fff;
	box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.16);
	font-weight: bold;
	padding: 9px 15px;
} */

.slick-slider img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 350px;
	box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.16);
	border-radius: 10px;
	/* overflow: hidden; */
}

.slider-container .arrows-container {
	position: absolute;
	top: 50%;
	margin-top: -38px;
	width: 100%;
}

.slider-container .arrow-button {
	position: absolute;
	border-radius: 50%;
	background: #fff;
	display: block;
	box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.36);
	font-weight: bold;
	padding: 5px;
	width: 38px;
	height: 38px;
	box-sizing: border-box;
	line-height: 8px;
	cursor: pointer;
}

.slider-container .arrow-button svg {
	width: 100%;
	height: auto;
}

.slider-container .arrow-button.prev {
	left: 0;
}

.slider-container .arrow-button.next {
	right: 0;
}

/*
 * CSS Styles that are needed by jScrollPane for it to operate correctly.
 *
 * Include this stylesheet in your site or copy and paste the styles below into your stylesheet - jScrollPane
 * may not operate correctly without them.
 *
 */
.jspContainer {
	overflow: hidden;
	position: relative;
}
.jspPane {
	position: absolute;
	transition-duration: 0.2s;
	transition-property: top;
	transition-timing-function: ease-out;
	display: flex;
	min-height: 100%;
	flex-direction: column-reverse;
}
.jspVerticalBar {
	position: absolute;
	top: 0;
	right: 0;
	width: 2px;
	height: 100%;
	background: red;
}
.jspHorizontalBar {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background: red;
}
.jspCap {
	display: none;
}
.jspHorizontalBar .jspCap {
	float: left;
}
.jspTrack {
	position: relative;
	background: #cdcdcd;
}
.jspDrag {
	width: 130%;
	background: #9b9b9b;
	position: relative;
	top: 0;
	right: -100%;
	cursor: pointer;
	border-radius: 3px; 
	transform: translateX(-100%);
}
.jspHorizontalBar .jspTrack,
.jspHorizontalBar .jspDrag {
	float: left;
	height: 100%;
}
.jspArrow {
	background: #50506d;
	text-indent: -20000px;
	cursor: pointer;
	margin: 0;
	padding: 0;
	display: block;
}
.jspArrow.jspDisabled {
	cursor: default;
	background: #80808d;
}
.jspVerticalBar .jspArrow {
	height: 16px;
}
.jspHorizontalBar .jspArrow {
	width: 16px;
	float: left;
	height: 100%;
}
.jspVerticalBar .jspArrow:focus {
	outline: none;
}
.jspCorner {
	float: left;
	height: 100%;
	background: #eeeef4;
}

/*
 * Slider
 *
 */
.slick-slider {
	width: calc(100% - 84px);
	margin: 0 auto;
	overflow: hidden;
}
.slick-slider .slick-slide {
  height: auto;
}
.slick-slider a {
	width: 98%;
	margin: 0 auto;
	display: block;
	text-align: center;
	text-decoration: none;
}
.slick-slider img {
	width: 100%;
	height: auto;
	margin: 0 auto;
	display: block;
	box-shadow: none;
	border-radius: 10px;
}
.slider-container {
	width: 100%;
	position: relative;
}
.slider-container .arrows-container {
	top: 50%;
	width: 100%;
	position: absolute;
	margin-top: -15px;
}
.slider-container .arrow-button {
	width: 30px;
	height: 30px;
	cursor: pointer;
	padding: 5px;
	display: block;
	position: absolute;
	background: #5eb4d7;
	box-sizing: border-box;
	border-radius: 50%;
	color: #FFF;
	line-height: 8px;
	font-weight: bold;
}
.slider-container .arrow-button .icon {
	width: 80%;
	height: 80%;
	fill: #FFF;
	margin: 10%;
	display: block;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}
.slider-container .arrow-button.prev {
	left: 0;
	margin-left: 7px;
}
.slider-container .arrow-button.prev .icon {
	background-image: url('../icons/arrow-left.svg');
}
.slider-container .arrow-button.next {
	right: 0;
	margin-right: 7px;
}
.slider-container .arrow-button.next .icon {
	background-image: url('../icons/arrow-right.svg');
}

@media (max-width: 767px) {
	body,
	html {
		font-size: 15px;
	}
	#message_window footer form {
		height: 55px;
	}
}
