/* ==========================================================================
   Modal for Reservations — Frontend Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Preview
   -------------------------------------------------------------------------- */

.mfr-container {
	display: block;
	max-width: 100%;
}

.mfr-preview-wrapper {
	position: relative;
	overflow: hidden;
	display: block;
	max-width: 100%;
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
}

.mfr-preview-wrapper:focus {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
}

.mfr-preview-iframe {
	display: block;
	width: 100%;
	border: 0;
	pointer-events: none;
	overflow: hidden;
}

/* Transparent click-capture overlay on top of the preview iframe */
.mfr-preview-trigger {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	cursor: pointer;
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */

.mfr-modal {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2147483647;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
}

.mfr-modal[hidden] {
	display: none;
}

/* Semi-transparent backdrop */
.mfr-overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 1;
	cursor: pointer;
}

/* Modal content box */
.mfr-modal-inner {
	position: relative;
	z-index: 2;
	background: #fff;
	overflow: hidden;
	max-width: 100%;
	max-height: 100%;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	-webkit-box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
	border-radius: 4px;
}

/* Scroll wrapper — enables touch scroll on iOS for the modal iframe */
.mfr-iframe-scroll-wrap {
	-webkit-box-flex: 1;
	-ms-flex: 1 1 auto;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

/* Modal iframe — scrolling occurs inside here only */
.mfr-modal-iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Close button */
.mfr-close {
	position: absolute;
	top: 8px;
	right: 10px;
	z-index: 3;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 34px;
	height: 34px;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	padding: 0;
	-webkit-transition: background 0.15s;
	transition: background 0.15s;
}

.mfr-close:hover,
.mfr-close:focus {
	background: rgba(0, 0, 0, 0.85);
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Mobile — Fullscreen
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
	.mfr-modal.mfr-fullscreen-mobile {
		padding: 0;
	}

	.mfr-modal.mfr-fullscreen-mobile .mfr-modal-inner {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100% !important;
		height: 100% !important;
		max-width: 100%;
		max-height: 100%;
		border-radius: 0;
		-webkit-box-shadow: none;
		box-shadow: none;
	}
}
