.app-banner-overlay {
	position: fixed;
	height: 100vh;
	width: 100%;
	top: 0;
	left: 0;
	background: color-mix(in srgb, var(--studio-black) 60%, transparent);
	touch-action: none;

	/* Needed for banner to appear in front of notifications panel. */
	z-index: z-index("root", ".app-banner");
}

/* Prevent the body from scrolling when the app banner is visible */
body.app-banner-is-visible {
	position: fixed;
	height: 100%;
	width: 100%;
	overflow: hidden;
}

.card.app-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--color-surface);
	color: var(--color-neutral-100);
	padding: 30px 24px;
	margin-bottom: 0;
	box-shadow: 3px -2px 24px 4px rgba(0, 0, 0, 0.29);
	overflow: hidden;
	text-align: center;
	font-family: "SF Pro Text", $sans;
}

.app-banner__circle {
	position: absolute;
	border: 2px solid;
	border-radius: 50%;
	z-index: z-index("root", ".app-banner__circle");

	&.is-blue {
		border-color: var(--studio-blue-10);
		height: 102px;
		width: 102px;
		right: -60px;
		top: -40px;
	}

	&.is-red {
		border-color: var(--studio-red-10);
		height: 91px;
		width: 91px;
		right: 25px;
		bottom: -30px;
	}

	&.is-yellow {
		border-color: var(--studio-yellow-10);
		height: 48px;
		width: 48px;
		left: -24px;
		top: -24px;
	}
}

.app-banner__icon {
	height: 50px;
	width: 93px;
	margin: auto;
}

.app-banner__text-content {
	letter-spacing: -0.4px;
	margin: 36px auto 0;
}

.app-banner__title {
	font-size: rem(28px); //typography-exception
	line-height: 30px;
	font-weight: 500;
	max-width: 18em;
	margin-left: auto;
	margin-right: auto;
	-webkit-font-smoothing: auto;
	-moz-osx-font-smoothing: initial;
	text-rendering: auto;
	@extend .wp-brand-font;
}

.app-banner__copy {
	font-size: rem(16px); //typography-exception
	line-height: 21px;
	max-width: 18em;
	margin-left: auto;
	margin-right: auto;
	margin-top: 18px;
}

.app-banner__buttons {
	margin-top: 36px;

	.button {
		width: 100%;
		min-width: 110px;
		max-width: 366px;
		margin: auto;
		display: block;
		padding: 15px 18px;
		font-size: rem(18px); //typography-exception;
	}
}

.button.app-banner__open-button {
	background-color: var(--studio-jetpack-green-40);
	border: 0;
	border-radius: 4px;
	margin-bottom: 12px;

	&:hover,
	&:focus {
		background-color: var(--studio-jetpack-green-60);
		border-color: var(--studio-jetpack-green-60);
	}
}

.button.app-banner__no-thanks-button {
	background: none;
	border: 0;
	color: var(--color-text);
}
