/* Mobile contact bar: see inc/mobile-bar.php */

.mobile-bar {
	display: none;
}

/* Header phone number is a tel: link; keep it looking as before */
.quick-contact .phone a,
.quick-contact .phone a:hover,
.quick-contact .phone a:focus {
	color: inherit;
	text-decoration: none;
}

@media (max-width: 767px) {

	.mobile-bar {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9999;
		background: #1587C7;
		box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
		padding-bottom: env(safe-area-inset-bottom);
	}

	.mobile-bar__btn {
		flex: 1 1 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 2px;
		min-height: 58px;
		padding: 8px 4px;
		color: #fff;
		font-size: 13px;
		font-weight: 600;
		line-height: 1.2;
		text-align: center;
		text-transform: uppercase;
		letter-spacing: 0.03em;
		-webkit-tap-highlight-color: transparent;
	}

	.mobile-bar__btn + .mobile-bar__btn {
		border-left: 1px solid rgba(255, 255, 255, 0.25);
	}

	.mobile-bar__btn .fa {
		font-size: 22px;
	}

	.mobile-bar__btn:hover,
	.mobile-bar__btn:focus,
	.mobile-bar__btn:active {
		color: #fff;
		background: #0f6fa6;
		text-decoration: none;
	}

	.mobile-bar__btn--whatsapp {
		background: #25D366;
	}

	.mobile-bar__btn--whatsapp:hover,
	.mobile-bar__btn--whatsapp:focus,
	.mobile-bar__btn--whatsapp:active {
		background: #1DA851;
	}

	/* Keep the end of the page clear of the bar */
	body {
		padding-bottom: calc(58px + env(safe-area-inset-bottom));
	}

	/* Lift the back-to-top button above the bar */
	.backtotop {
		bottom: calc(70px + env(safe-area-inset-bottom));
	}
}
