/* modal defaults */

:root {
	--white: #fff;
	--black: rgba(0, 0, 0, 0.8);
	--bounceEasing: cubic-bezier(0.51, 0.92, 0.24, 1.15);
}
.modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: var(--black);
	cursor: pointer;
	visibility: hidden;
	opacity: 0;
	transition: all 0.35s ease-in;
	z-index: 10000;
}
.modal.is-visible {
	visibility: visible;
	opacity: 1;
}
.modal-dialog {
	position: relative;
	max-width: 800px;
	max-height: 80vh;
	border-radius: 5px;
	background: var(--white);
	overflow: auto;
	cursor: default;
}
.modal-header {
	display: flex;
	padding: 0;
}
.modal-content {
	padding-top: 0;
}
.closebutton {
	display: flex;
	margin-left: auto;
}
.modal-header .close-modal {
	font-size: 1.5rem;
	color: #333;
}
.modal p + p {
	margin-top: 1rem;
}
.close-modal {
	background: #fff;
}
.close-modal:hover {
	background: #fff;
}
/* animations. */
[data-animation] .modal-dialog {
	opacity: 0;
	transition: all 0.5s var(--bounceEasing);
}
[data-animation].is-visible .modal-dialog {
	opacity: 1;
	transition-delay: 0.2s;
}
[data-animation="slideInOutDown"] .modal-dialog {
	transform: translateY(100%);
}
[data-animation="slideInOutTop"] .modal-dialog {
	transform: translateY(-100%);
}
[data-animation="slideInOutLeft"] .modal-dialog {
	transform: translateX(-100%);
}
[data-animation="slideInOutRight"] .modal-dialog {
	transform: translateX(100%);
}
[data-animation="zoomInOut"] .modal-dialog {
	transform: scale(0.2);
}
[data-animation="rotateInOutDown"] .modal-dialog {
	transform-origin: top left;
	transform: rotate(-1turn);
}
[data-animation="mixInAnimations"].is-visible .modal-dialog {
	animation: mixInAnimations 2s 0.2s linear forwards;
}
[data-animation="slideInOutDown"].is-visible .modal-dialog,
[data-animation="slideInOutTop"].is-visible .modal-dialog,
[data-animation="slideInOutLeft"].is-visible .modal-dialog,
[data-animation="slideInOutRight"].is-visible .modal-dialog,
[data-animation="zoomInOut"].is-visible .modal-dialog,
[data-animation="rotateInOutDown"].is-visible .modal-dialog {
	transform: none;
}
@keyframes mixInAnimations {
	0% {
		transform: translateX(-100%);
	}

	10% {
		transform: translateX(0);
	}

	20% {
		transform: rotate(20deg);
	}

	30% {
		transform: rotate(-20deg);
	}

	40% {
		transform: rotate(15deg);
	}

	50% {
		transform: rotate(-15deg);
	}

	60% {
		transform: rotate(10deg);
	}

	70% {
		transform: rotate(-10deg);
	}

	80% {
		transform: rotate(5deg);
	}

	90% {
		transform: rotate(-5deg);
	}

	100% {
		transform: rotate(0deg);
	}
}

/* geofence modal. */

.xs-geofencemodal {
	padding: 20px;
	padding-top: 0;
}
.xs-geofence {
	text-align: center;
}
.xs-geofence__title {
	margin-top: 0;
}
.xs-geofence__locales {
	max-width: 400px;
	display: flex;
	justify-content: space-between;
	margin: 40px auto 40px;
}
.xs-geofence__flag {
	width: 140px;
	display: block;
	text-decoration: none;
	text-align: center;
}
.xs-geofence__locale-title {
	color: #333;
	text-transform: uppercase;
	font-weight: 700;
}
