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

.tingle-modal {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1000;
	display: flex;
	visibility: hidden;
	flex-direction: column;
	align-items: center;
	overflow: hidden;
	-webkit-overflow-scrolling: touch;
	background: rgba(0, 0, 0, .5);
	opacity: 0;
	cursor: pointer;
	transition: transform .2s ease;
}

.tingle-modal--noOverlayClose {
	cursor: default;
}

.tingle-modal--noClose .tingle-modal__close {
	display: none;
}

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

.tingle-enabled {
	position: fixed;
	overflow: hidden;
	left: 0;
	right: 0;
}

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

.tingle-modal--visible {
	visibility: visible;
	opacity: 1;
}

.tingle-modal--overflow {
	overflow-y: scroll;
	padding-top: 8vh;
}

@media (max-width: 540px) {
	.tingle-modal {
		top: 0px;
		display: block;
		padding-top: 60px;
		width: 100%;
	}

	.tingle-modal-box__content {
		overflow-y: scroll;
	}
}

/**
 * Consent Modal
 */
.egcf-modal {
	color: #4a4a4a;
	font-size: 15px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;

	@media (max-width: 560px) {
		display: flex !important;
		padding-top: 0 !important;
	}

	a {
		text-decoration: underline;
	}

	.checkbox {
		padding: 0;
		border: 1px solid #ddd;
		width: 17px;
		height: 17px;
		color: #4f7aa2;
		text-align: center;
		appearance: none;
		vertical-align: text-top;
		box-shadow: inset 0px 0px 2px rgba(0, 0, 0, 0.1);

		&:checked:before {
			content: "\2713";
			display: inline-block;
			color: currentColor;
			line-height: 17px;
			font-family: Arial, sans-serif;
			font-size: 14px;
		}
	}

	&-box-content {
		padding: 35px 30px;
	}

	&-box {
		position: relative;
		flex-shrink: 0;
		margin-top: auto;
		margin-bottom: auto;
		width: 80%;
		max-width: 800px;
		background: #fff;
		opacity: 0.8;
		transition: transform .5s cubic-bezier(0.24, 0.43, 0, 0.97), opacity .3s ease-in;
		transform: scale(0.9);

		@media (max-width: 560px) {
			width: 95%;
		}
	}

	&-close {
		margin-left: auto;
		margin-right: -12px;
		width: 35px;
		font-size: 27px;
		font-family: Georgia, Arial, sans-serif;
		color: #999;
		cursor: pointer;
		text-align: center;
		text-decoration: none !important;

		&:hover {
			color: #efefef;
		}
	}

	&-head {
		display: flex;
		align-items: center;
		margin: -30px;
		margin-top: -35px;
		margin-bottom: 35px;
	
		padding: 2px 30px;
		height: 60px;
		background: #000;
		color: #fff;
		font-size: 18px;
		font-weight: 500;
	}

	&-message {
		margin-bottom: 21px;
	}

	&-lower {
		margin-bottom: 30px; 
		padding: 16px 20px;
		border-top: 1px solid #efefef;
		background: #fafafa;
		font-size: 14px;
	}

	.submit-btn {
		border-radius: 2px;
	}

	.cancel {
		color: #999;
		margin-left: 20px;
		text-decoration: none;

		&:hover {
			color: #444;
		}
	}
}

.tingle-modal--visible .egcf-modal-box {
	transform: scale(1);
	opacity: 1;
}

.egcf-modal-consents {
	margin-bottom: 27px; 
	color: #6d6d6d;

	label {
		display: flex;
		margin-bottom: 10px;

		&:last-child {
			margin-bottom: 0;
		}
	}

	input {
		flex-shrink: 0;
		margin-top: 4px;
		margin-right: 16px;
	}
}

.egcf-working {
	cursor: progress;
}