/* The support page, opened over whatever the reader was looking at.
 *
 * Deliberately not built on checkout.css: the ask sits in the footer of every
 * page, so this loads everywhere, and everywhere is the wrong place to pull in
 * the whole checkout stylesheet. It is its own small thing, in the site's
 * language: black, square, a pink focus ring. */

.mt-support-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(0px, 3vw, 40px);
}

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

.mt-support-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.82);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border: 0;
	padding: 0;
	cursor: pointer;
}

.mt-support-modal__panel {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	width: min(640px, 100%);
	/* svh, not vh: on a phone the address bar otherwise hides the bottom of
	   the panel, which is where the pay button is. */
	height: min(760px, 100svh);
	border-radius: 0;
	background: #070707;
	border: 1px solid rgba(255, 255, 255, 0.14);
	overflow: hidden;
}

.mt-support-modal__close {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 3;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #f4f0e8;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.mt-support-modal__close:hover,
.mt-support-modal__close:focus-visible {
	background: #ff4fa3;
	color: #ffffff;
	outline: none;
}

.mt-support-modal__frame {
	flex: 1 1 auto;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	background: #070707;
}

/* While the panel is open the page behind it must not scroll under the
   reader's finger. */
body.mt-support-modal-open {
	overflow: hidden;
}
