/* ----------------------------------------------------------- */
/* == tingle v0.5.0 */
/* ----------------------------------------------------------- */
body {
	position: relative;
	width: 100%;
	height: 100%;
}
.tingle-modal * {
	box-sizing: border-box;
}

.tingle-modal {
	position: fixed;
	z-index: 3000;
	right: 0;
	left: 0;
	top: 0;
	bottom: 0;
/* 	overflow-y: auto; */
/* 	background: rgba(0, 0, 0, .5);
	opacity: 0; */
	/* cursor: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeAgMAAABGXkYxAAAACVBMVEVMaXH////////OZTV/AAAAAnRSTlMAgJsrThgAAABkSURBVHjaPZDRDcAgCAXpRzuE0ziP0zhE+1GmLEeTM/EBcgoYZ9RCxyyLrl0WXXfZI3eMt5wrZ2+iPiWPdMDxn0ZBGgIBekCAEqQhkIZAdEwJe90HLWFR27AxW7V5x3FAR/YTPqGfMoOqeP+mAAAAAElFTkSuQmCC"), pointer; */
	-webkit-transition: opacity .2s ease;
	transition: opacity .2s ease;;
}
.iOS .tingle-modal{
	position: relative;
	z-index: 3000;
/* 	overflow-y: scroll; */

}
.tingle-modal__close {
	position: fixed;
	top: 3%;
	right: 3%;
	z-index: 1000;
	padding: 0;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	font-size: 40px;
	line-height: normal;
	cursor: pointer;
}
.modal-backdrop.tingle-modal--visible  {
	opacity: .5;
	display: block;
}
.modal-backdrop  {
	display: none;
}
.iOS .tingle-modal-box {
	top: 1300px !important;
	position: absolute;
	margin: 30px auto;
	right: 0;
	left: 0;
}
.tingle-modal-box {

	position: fixed;
	margin: 12px auto;
	right: 0;
	left: 0;
	width: 390px;
	background: #fff;
	opacity: 1;
	cursor: auto;
	-webkit-transition: -webkit-transform .3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	transition: transform .3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	-webkit-transform: scale(.6) translateY(-50%);
	-ms-transform: scale(.6) translateY(-50%);
	transform: scale(.6) translateY(-50%);
	border-radius: 5px;
	padding: 3px;
	box-sizing: content-box;
	top: 50% !important;
}
.tingle-modal-box iframe{
	-webkit-overflow-scrolling: touch;
}
.tingle-modal-box__content {
	/*padding: 4rem; */
}

.tingle-modal-box__footer {
	display:none;
	width: auto;
	padding: 2rem 4rem;
	background-color: #f1f1f1;
	cursor: auto;
}

.tingle-modal-box__footer::after {
	/*display: table; */
	display:none;
	clear: both;
	content: "";
}

.tingle-modal-box__footer--sticky {
	position: fixed;
	bottom: -100px; /* TODO : find a better way */
	z-index: 10001;
	opacity: 1;
	-webkit-transition: bottom .3s ease-in-out .3s;
	transition: bottom .3s ease-in-out .3s;;
}

/* state
-------------------------------------------------------------- */

.tingle-enabled {
	overflow: hidden;
	height: 100%;
}

.tingle-modal--visible .tingle-modal-box__footer {
	bottom: 0;
}

.tingle-enabled .tingle-content-wrapper {
	-webkit-filter: blur(15px);
	filter: blur(15px);
}

.tingle-modal--visible {
	visibility: visible;
	opacity: 1;
	padding: 6px;
	box-sizing: content-box;
}

.tingle-modal--visible .tingle-modal-box {
	-webkit-transform: scale(1) translateY(-50%);
	-ms-transform: scale(1) translateY(-50%);
	transform: scale(1) translateY(-50%);
}

/* btn
-------------------------------------------------------------- */

.tingle-btn {
	vertical-align: middle;
	font-size: inherit;
	font-family: inherit;
	margin: 0 .5rem;
	display: inline-block;
	padding: 1rem 2rem;
	border: none;
	background-color: grey;
	box-shadow: none;
	color: #fff;
	text-decoration: none;
	line-height: normal;
	cursor: pointer;
	-webkit-transition: background-color .4s;
	transition: background-color .4s;
}

.tingle-btn--primary {
	background-color: #3498db;
}

.tingle-btn--danger {
	background-color: #e74c3c;
}

.tingle-btn--default {
	background-color: #34495e;
}

.tingle-btn--pull-left {
	float: left;
}

.tingle-btn--pull-right {
	float: right;
}

.modal-backdrop {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: #000;
}
