body { margin-top: 90px; }

.well {
	background-image: none;
}

/* Install-the-app banner and iPhone steps (common/v_nav.php, _/js/pwa.v2.js) */
.install-banner {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	z-index: 1040;
	display: flex;
	align-items: center;
	max-width: 540px;
	margin: 0 auto;
	padding: 12px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, .1);
	border-radius: 12px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}

.install-banner-icon {
	flex: none;
	border-radius: 10px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .1);
	margin-right: 12px;
}

.install-banner-text {
	flex: 1;
	min-width: 0;
	line-height: 1.3;
}

.install-banner-text small {
	display: block;
	color: #6c757d;
}

.install-banner-actions {
	flex: none;
	display: flex;
	align-items: center;
	margin-left: 8px;
}

.install-banner-actions .btn {
	white-space: nowrap;
}

@media (max-width: 400px) {
	.install-banner {
		flex-wrap: wrap;
	}

	.install-banner-actions {
		width: 100%;
		justify-content: flex-end;
		margin: 8px 0 0;
	}
}

#install-ios .modal-title {
	display: flex;
	align-items: center;
	font-size: 1.1rem;
}

#install-ios .modal-title .install-banner-icon {
	border-radius: 8px;
	margin-right: 10px;
}

.install-steps {
	list-style: none;
	counter-reset: install-step;
	margin: 0 0 16px;
	padding: 0;
}

.install-steps li {
	counter-increment: install-step;
	display: flex;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
	line-height: 1.4;
}

.install-steps li:last-child {
	border-bottom: 0;
}

.install-steps li::before {
	content: counter(install-step);
	flex: none;
	width: 24px;
	height: 24px;
	margin-right: 10px;
	border-radius: 50%;
	background: #007bff;
	color: #fff;
	font-size: .8rem;
	font-weight: bold;
	line-height: 24px;
	text-align: center;
}

.install-step-icon {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-right: 12px;
	border-radius: 8px;
	background: #f1f3f5;
	color: #007aff;
}

.install-step-icon img {
	border-radius: 6px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .1);
}

/* Leave room to scroll past the banner while it's showing */
body.has-install-banner {
	padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
}

/* On narrow phones the buttons wrap under the text, so the banner is taller */
@media (max-width: 400px) {
	body.has-install-banner {
		padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px));
	}
}
