/* ---------------------------------------------------------------------------
   quiettime_modal.css
   Companion to quiettime_modal.js. No device detection -- the same markup
   just lays out differently above and below 600px.
--------------------------------------------------------------------------- */

.qt-modal-overlay {
	position: fixed;
	top: 0; right: 0; bottom: 0; left: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.qt-modal-box {
	position: relative;
	background: #fff;
	width: 95%;
	height: 90%;
	max-width: 900px;
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.qt-modal-close {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.1);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	z-index: 1;
}
.qt-modal-close:hover,
.qt-modal-close:focus {
	background: rgba(0, 0, 0, 0.2);
}

.qt-modal-iframe {
	flex: 1;
	width: 100%;
	height: 100%;
	border: 0;
}

body.qt-modal-open {
	overflow: hidden;
}

/* Full-screen sheet instead of a small centered box once there isn't
   really room for "centered" to mean anything */
@media (max-width: 600px) {
	.qt-modal-box {
		width: 100%;
		height: 100%;
		max-width: none;
		border-radius: 0;
	}
}
