/**
 * BOWestAfrica public mobile Web App shell — v1.10.119.40
 * Applies only to logged-out public visitors at phone/tablet widths.
 */

.bowa-webapp-mobile-tools { display: none; }
.bowa-appbar,
.bowa-app-network,
.bowa-app-progress { display: none; }

@media (max-width: 899px) {
	body.bowa-public-webapp {
		--bowa-appbar-height: 66px;
		--bowa-app-safe-bottom: env(safe-area-inset-bottom, 0px);
		--bowa-app-safe-top: env(safe-area-inset-top, 0px);
		padding-bottom: calc(var(--bowa-appbar-height) + var(--bowa-app-safe-bottom));
		background: var(--bowa-white);
		overscroll-behavior-y: contain;
		-webkit-tap-highlight-color: rgba(8,43,76,.07);
	}

	body.bowa-public-webapp .site-header {
		top: 0;
		background: rgba(255,255,255,.96);
		-webkit-backdrop-filter: saturate(180%) blur(14px);
		backdrop-filter: saturate(180%) blur(14px);
		box-shadow: 0 1px 0 rgba(8,43,76,.08), 0 8px 28px rgba(8,43,76,.055);
	}

	body.bowa-public-webapp .site-header__inner {
		min-height: 60px !important;
		padding-top: calc(.45rem + var(--bowa-app-safe-top));
		padding-bottom: .45rem;
		gap: .65rem;
	}

	body.bowa-public-webapp .site-header__brand { min-width: 0; }
	body.bowa-public-webapp .site-header__brand .site-logo--image img,
	body.bowa-public-webapp .site-header__brand .custom-logo-link img,
	html[lang^="en"] body.bowa-public-webapp .site-logo--image img,
	html[lang^="fr"] body.bowa-public-webapp .site-logo--image img {
		height: 42px;
		max-height: 42px;
		width: auto;
	}

	/* Keep EN/FR one tap away in the Web App header. Currency stays in the drawer. */
	body.bowa-public-webapp .site-header__actions > .bowa-header-currency { display: none; }
	body.bowa-public-webapp .site-header__actions > .bowa-language-switcher {
		display: inline-flex;
		flex: 0 0 auto;
		align-items: center;
		gap: 2px;
		padding: 2px;
		border: 1px solid rgba(8,43,76,.11);
		border-radius: 999px;
		background: var(--bowa-light-blue-50);
		font-size: .67rem;
		letter-spacing: .02em;
	}
	body.bowa-public-webapp .site-header__actions > .bowa-language-switcher > span { display: none; }
	body.bowa-public-webapp .site-header__actions > .bowa-language-switcher a {
		min-width: 34px;
		min-height: 34px;
		padding: .2rem .35rem;
		border: 0;
	}
	body.bowa-public-webapp .site-header__actions > .bowa-language-switcher a.is-active {
		box-shadow: 0 3px 10px rgba(8,43,76,.12);
	}
	body.bowa-public-webapp .site-header__actions { gap: .35rem; }
	body.bowa-public-webapp .mobile-menu-toggle {
		display: inline-grid;
		place-items: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 1px solid rgba(8,43,76,.11);
		border-radius: 14px;
		background: #fff;
		box-shadow: 0 5px 15px rgba(8,43,76,.07);
	}
	body.bowa-public-webapp .mobile-menu-toggle .icon { width: 22px; height: 22px; }

	body.bowa-public-webapp .mobile-menu { z-index: 2200; }
	body.bowa-public-webapp .mobile-menu__backdrop { background: rgba(8,25,43,.58); }
	body.bowa-public-webapp .mobile-menu__inner {
		width: min(400px, 92vw);
		padding: calc(1rem + env(safe-area-inset-top, 0px)) 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
		gap: 1rem;
		border-radius: 24px 0 0 24px;
		box-shadow: -18px 0 50px rgba(8,43,76,.18);
	}
	body.bowa-public-webapp .mobile-menu__header { min-height: 42px; }
	body.bowa-public-webapp .mobile-menu__close {
		display: grid;
		place-items: center;
		width: 42px;
		height: 42px;
		border-radius: 13px;
		background: var(--bowa-light-blue-50);
	}
	body.bowa-public-webapp .bowa-webapp-mobile-tools {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: .75rem;
		padding: .75rem;
		border: 1px solid var(--bowa-border);
		border-radius: 16px;
		background: var(--bowa-surface);
	}
	body.bowa-public-webapp .bowa-webapp-mobile-tools .bowa-header-currency { margin-left: 0; width: 100%; }
	body.bowa-public-webapp .bowa-webapp-mobile-tools .bowa-header-currency__select { width: 100%; }
	body.bowa-public-webapp .mobile-menu__list .menu-item__link {
		min-height: 48px;
		align-items: center;
		padding: .7rem .35rem;
	}
	body.bowa-public-webapp .mobile-menu__actions .btn { min-height: 48px; }

	/* App bottom navigation: website usage never requires installation. */
	body.bowa-public-webapp .bowa-appbar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1800;
		display: grid;
		grid-template-columns: repeat(4,minmax(0,1fr));
		min-height: calc(var(--bowa-appbar-height) + var(--bowa-app-safe-bottom));
		padding: 6px max(8px, env(safe-area-inset-right,0px)) max(6px,var(--bowa-app-safe-bottom)) max(8px, env(safe-area-inset-left,0px));
		border-top: 1px solid rgba(8,43,76,.10);
		background: rgba(255,255,255,.96);
		-webkit-backdrop-filter: saturate(180%) blur(18px);
		backdrop-filter: saturate(180%) blur(18px);
		box-shadow: 0 -12px 30px rgba(8,43,76,.08);
	}
	body.bowa-public-webapp .bowa-appbar__item {
		position: relative;
		display: flex;
		min-width: 0;
		min-height: 54px;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		padding: 3px 2px;
		border: 0;
		border-radius: 14px;
		background: transparent;
		color: #5c6872;
		font: inherit;
		text-decoration: none;
	}
	body.bowa-public-webapp .bowa-appbar__item svg {
		width: 22px;
		height: 22px;
		fill: currentColor;
	}
	body.bowa-public-webapp .bowa-appbar__item span {
		max-width: 100%;
		font-size: .68rem;
		font-weight: 750;
		line-height: 1.1;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	body.bowa-public-webapp .bowa-appbar__item.is-active,
	body.bowa-public-webapp .bowa-appbar__item[aria-current="page"] {
		color: var(--bowa-navy);
		background: var(--bowa-light-blue-50);
	}
	body.bowa-public-webapp .bowa-appbar__item.is-active::before,
	body.bowa-public-webapp .bowa-appbar__item[aria-current="page"]::before {
		content: "";
		position: absolute;
		top: 1px;
		width: 20px;
		height: 3px;
		border-radius: 999px;
		background: var(--bowa-gold);
	}

	body.bowa-public-webapp.bowa-app-keyboard-open .bowa-appbar {
		transform: translateY(110%);
		pointer-events: none;
	}
	body.bowa-public-webapp .bowa-appbar { transition: transform 180ms ease; }

	/* Existing floating tools move above the app bar instead of colliding with it. */
	body.bowa-public-webapp .floating-widgets {
		bottom: calc(var(--bowa-appbar-height) + var(--bowa-app-safe-bottom) + .65rem) !important;
	}
	body.bowa-public-webapp .floating-panel--global-tools {
		bottom: calc(var(--bowa-appbar-height) + var(--bowa-app-safe-bottom) + .8rem) !important;
		max-height: min(560px, calc(100dvh - var(--bowa-appbar-height) - 7.5rem));
	}

	body.bowa-public-webapp .bowa-app-network {
		position: fixed;
		left: 50%;
		bottom: calc(var(--bowa-appbar-height) + var(--bowa-app-safe-bottom) + 12px);
		z-index: 2400;
		display: block;
		width: max-content;
		max-width: calc(100vw - 32px);
		padding: .62rem .9rem;
		border-radius: 999px;
		background: var(--bowa-navy);
		color: #fff;
		box-shadow: 0 10px 28px rgba(8,43,76,.22);
		font-size: .76rem;
		font-weight: 750;
		text-align: center;
		transform: translate(-50%,0);
	}
	body.bowa-public-webapp .bowa-app-network[hidden] { display: none; }
	body.bowa-public-webapp .bowa-app-network.is-online { background: var(--bowa-success); }

	body.bowa-public-webapp .bowa-app-progress {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 3000;
		display: block;
		height: 3px;
		pointer-events: none;
		overflow: hidden;
	}
	body.bowa-public-webapp .bowa-app-progress span {
		display: block;
		width: 0;
		height: 100%;
		background: var(--bowa-gold);
		opacity: 0;
	}
	body.bowa-public-webapp.bowa-app-navigating .bowa-app-progress span {
		opacity: 1;
		animation: bowa-app-progress 1.8s ease-out forwards;
	}

	@keyframes bowa-app-progress {
		0% { width: 6%; }
		45% { width: 58%; }
		100% { width: 88%; }
	}
}

@media (max-width: 360px) {
	body.bowa-public-webapp .bowa-appbar__item span { font-size: .62rem; }
	body.bowa-public-webapp .site-header__brand .site-logo--image img,
	body.bowa-public-webapp .site-header__brand .custom-logo-link img { height: 38px; max-height: 38px; }
}

@media (display-mode: standalone) and (max-width: 899px) {
	html { background: var(--bowa-navy); }
	body.bowa-public-webapp .site-header__inner { padding-top: calc(.45rem + env(safe-area-inset-top,0px)); }
}


@media (max-width: 380px) {
	body.bowa-public-webapp .site-header__inner { gap: .4rem; }
	body.bowa-public-webapp .site-header__brand .site-logo--image img,
	body.bowa-public-webapp .site-header__brand .custom-logo-link img,
	html[lang^="en"] body.bowa-public-webapp .site-logo--image img,
	html[lang^="fr"] body.bowa-public-webapp .site-logo--image img {
		height: 36px;
		max-height: 36px;
	}
	body.bowa-public-webapp .site-header__actions > .bowa-language-switcher a {
		min-width: 31px;
		min-height: 31px;
		padding: .15rem .28rem;
	}
	body.bowa-public-webapp .mobile-menu-toggle {
		width: 40px;
		height: 40px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.bowa-public-webapp .bowa-appbar { transition: none; }
	body.bowa-public-webapp.bowa-app-navigating .bowa-app-progress span { animation: none; width: 75%; }
}
