/* allows the bar-footer to be elastic /*
/* optionally set a max-height */
/* maxlength on the textarea will prevent /*
/* it from getting too large also */
.bar-footer {
	overflow: visible !important;
}

.bar-footer textarea {
	resize: none;
	height: 25px;
}

/* fixes an ios bug bear */
button.ion-android-send {
	padding-top: 2px;
}

/* add this to keep your footer buttons down
at the bottom as the textarea resizes */
.footer-btn-wrap {
	position: relative;
	height: 100%;
	width: 50px;
	top: 7px;
}

.footer-btn {
	position: absolute !important;
	bottom: 0;
}

.ion-email {
	float: right;
	font-size: 32px;
	vertical-align: middle;
}

.message-content {
	border-radius: 18px;
	font-size: 14px;
	padding: 8px 12px;
	word-wrap: break-word;
	word-break: normal;
	line-height: 20px;
}

.message-content.left {
	background-color: #eeeeee;
}
.message-content.right {
	background-color: rgb(233,30,99);
}

.message-content.right {
	background-color: rgb(233,30,99);
}

.message-detail {
	white-space: nowrap;
	font-size: 12px;
	color: grey;
}

.message-detail.left {
	float: left;
	/*margin-top: 8px;*/
	font-size:11px;
	font-weight: 500;
	color: rgb(183,183,183);
}

.message-detail.right {
	float: right;
	/*margin-top: 8px;*/
	font-size:11px;
	color: rgb(183,183,183);
	font-weight: 500;
}

.message-attachment {
}

.message-attachment img {
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}

.message-attachment.left {
	float: left;

}

.message-attachment.right {
	float: right;
}

.bar.item-input-inset .item-input-wrapper input {
	width: 100% !important;
}

.message-wrapper {
	position: relative;
	min-width: 40%;
}

.message-wrapper:last-child {
	/*margin-bottom: 5px;*/
}

.tp-content .chat-bubble.right{
	border: 1px solid #F39C12;
	right:10px;
}
.tp-content .chat-bubble.left{
	border: 1px solid #cccccc;
	left:10px;
}

.tp-content .chat-bubble.left.speech:before {
	content: ' ';
	position: absolute;
	left: -15px;
	top: 10px;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 15px 20px 0;
	border-color: transparent #cccccc transparent transparent;
}
.tp-content .chat-bubble.left.speech:after {
	content: ' ';
	position: absolute;
	left: -13px;
	top: 11px;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 15px 20px 0;
	border-color: transparent #ffffff transparent transparent;
}

.tp-content .chat-bubble.right.speech:before {
	content: ' ';
	position: absolute;
	width: 0;
	height: 0;
	right: -15px;
	top: 8px;
	border-style: solid;
	border-width: 20px 15px 0 0;
	border-color: #F39C12 transparent transparent transparent;
}
.tp-content .chat-bubble.right.speech:after {
	content: ' ';
	position: absolute;
	right: -13px;
	top: 9px;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 20px 15px 0 0;
	border-color: #eaf8d9 transparent transparent transparent;

}

.chat-bubble {
	display: inline-block;
	position: relative;
	/*max-width: 70%;*/
}

.chat-bubble:before {
	/*content: "\00a0";*/
	display: block;
	height: 16px;
	width: 9px;
	/*position: absolute;*/
	bottom: -7.5px;
}

.chat-bubble.left {
	float: left;

}

.chat-bubble.right {
	float: right;
	color: white;
}

.chat-bubble.right a {
	color: #fff;
	font-weight: bold;
}

.user-messages-top-icon {
	font-size: 28px;
	display: inline-block;
	vertical-align: middle;
	position: relative;
	top: -3px;
	right: 5px;
}

.msg-header-username {
	display: inline-block;
	vertical-align: middle;
	position: relative;
	top: -3px;
}

/*input, textarea, .item-input, .item-input-wrapper {*/
/*background-color: #f4f4f4 !important;*/
/*}*/

.bold {
	font-weight: bold;
}

.cf {
	clear: both !important;
}

/*a.autolinker {*/
/*color: #3b88c3;*/
/*text-decoration: none;*/
/*}*/

/* loading */
.loader-center {
	height: 100%;
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	-webkit-box-direction: normal;
	-moz-box-direction: normal;
	-webkit-box-orient: horizontal;
	-moz-box-orient: horizontal;
	-webkit-flex-direction: row;
	-ms-flex-direction: row;
	flex-direction: row;
	-webkit-flex-wrap: nowrap;
	-ms-flex-wrap: nowrap;
	flex-wrap: nowrap;
	-webkit-box-pack: center;
	-moz-box-pack: center;
	-webkit-justify-content: center;
	-ms-flex-pack: center;
	justify-content: center;
	-webkit-align-content: stretch;
	-ms-flex-line-pack: stretch;
	align-content: stretch;
	-webkit-box-align: center;
	-moz-box-align: center;
	-webkit-align-items: center;
	-ms-flex-align: center;
	align-items: center;
}

.loader .ion-loading-c {
	font-size: 64px;
}

.messages .message-attachment video {
	width: 100% !important;
	height: 120px !important;
}

/*!*Image modal*!*/
.image-modal-background {
	background: #000000 !important;
	opacity: 1;
}

.image-modal {
	width: 100% !important;
	height: 100%;
	top: 0 !important;
	left: 0 !important;
}

.fullscreen-image {
	max-width: 100%;
	max-height: 100%;
	bottom: 0;
	left: 0;
	margin: auto;
	overflow: auto;
	position: fixed;
	right: 0;
	top: 0;

}

.active .modal-backdrop-bg {
	opacity: .5;
}

/* Fix modal backdrop for smaller devices */
@media (max-width: 679px) {
	.active .modal-backdrop-bg {
		opacity: .5;
	}

	.modal-backdrop-bg {
		-webkit-transition: opacity 300ms ease-in-out;
		transition: opacity 300ms ease-in-out;
		background-color: #000;
		opacity: 0;
	}
}

.tp-checkbox p {
	color: #999999;
}

.tp-checkbox.item-checkbox {
	padding-left: 50px;
}
.scroll {
	height: 100%;
}