/*
 * Install banner. Loaded on the public site as well as the portal, so it
 * inherits nothing and sets everything it needs. Every rule is namespaced to
 * .bwm-pwa to keep it out of the theme's way.
 */

.bwm-pwa {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
	transform: translateY(120%);
	transition: transform 0.25s ease-out;
	pointer-events: none;
}

.bwm-pwa.is-visible { transform: translateY(0); pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
	.bwm-pwa { transition: none; }
}

.bwm-pwa__card {
	max-width: 460px;
	margin: 0 auto;
	background: #FFFFFF;
	border: 1px solid #E1E5EA;
	border-radius: 12px;
	box-shadow: 0 8px 28px rgba(9, 14, 20, 0.16);
	padding: 14px;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 12px;
	align-items: center;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #12161C;
	box-sizing: border-box;
}

.bwm-pwa__icon {
	width: 46px;
	height: 46px;
	border-radius: 10px;
	object-fit: cover;
	display: block;
	border: 1px solid #E1E5EA;
	background: #FFFFFF;
}

.bwm-pwa__text { min-width: 0; }

.bwm-pwa__title {
	margin: 0 0 2px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: #12161C;
}

.bwm-pwa__body {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.45;
	color: #5A6472;
}

.bwm-pwa__steps {
	margin: 6px 0 0;
	padding-left: 18px;
	font-size: 13px;
	line-height: 1.6;
	color: #5A6472;
}

.bwm-pwa__actions {
	grid-column: 1 / -1;
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	align-items: center;
}

.bwm-pwa__btn {
	min-height: 44px;
	padding: 10px 18px;
	border: 0;
	border-radius: 8px;
	font: inherit;
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
	background: none;
	color: #12161C;
}

.bwm-pwa__btn--go { color: #FFFFFF; }
.bwm-pwa__btn--go:hover { filter: brightness(1.08); }

.bwm-pwa__btn--quiet { color: #5A6472; font-weight: 500; }
.bwm-pwa__btn--quiet:hover { color: #12161C; }

.bwm-pwa__btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

@media (min-width: 620px) {
	.bwm-pwa__card { grid-template-columns: auto 1fr auto; }
	.bwm-pwa__actions { grid-column: auto; justify-content: flex-end; }
}
