/* ----------------------------------------------------------- */
/* == tingle v0.7.0 */
/* ----------------------------------------------------------- */

.tingle-modal * {
	box-sizing: border-box;
}

.tingle-modal {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1000;
	visibility: hidden;
	overflow-y: auto;
	background: rgba(0, 0, 0, .8);
	opacity: 0;
	cursor: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAANpJREFUOBGNkz0KAjEQhYPYWXgCKws7LcXWyt7WG4i9jegBvIJ4AvEyXsRCsBDiN0sGkiE/O/A2O9n3viS7rPPeb9ETrVzPwrtHDzR1XF5I6oPWLQaeq5hDXQRw0I6xCuF5HH7Tz7oFuTkhrSyEhza8THaLoQhphpWUg/QOFyA/AFpy5nTbGrIjxvg4AiiGBzYc+rGZH9KPzFy+ZbX4bX9l+VDZr5NQMMbhbtvMxccpQ3JhpTchtXATQviItIpvW0CY7HHm8c9UDRd2chbABt3RQk2tEe8O3dDkD4JQ4iOR7BMpAAAAAElFTkSuQmCC"), pointer;
	-webkit-transition: opacity .2s ease;
	transition: opacity .2s ease;;
}

.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;
}

.tingle-modal-box {
	position: absolute;
	top: 20px;
	right: 0;
	left: 0;
	margin-right: auto;
	margin-left: auto;
	width: 60%;
	border-radius: 4px;
	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);
	-ms-transform: scale(.6);
	transform: scale(.6);
}

.tingle-modal-box__content {
	padding: 4rem;
}

.tingle-modal-box__footer {
	padding: 2rem 4rem;
	width: auto;
	border-bottom-right-radius: 4px;
	border-bottom-left-radius: 4px;
	background-color: #f1f1f1;
	cursor: auto;
}

.tingle-modal-box__footer::after {
	display: table;
	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;
}

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

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

.tingle-btn {
	display: inline-block;
	margin: 0 .5rem;
	padding: 1rem 2rem;
	border: none;
	background-color: grey;
	box-shadow: none;
	color: #fff;
	vertical-align: middle;
	text-decoration: none;
	font-size: inherit;
	font-family: inherit;
	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;
}
