.huizhi-mobile-contact-bar {
	display: none;
}

@media (max-width: 767px) {
	body.huizhi-mobile-contact-enabled:not(.page-id-34) {
		--huizhi-mobile-contact-reserved: var(
			--huizhi-mobile-contact-offset,
			calc(80px + env(safe-area-inset-bottom, 0px))
		);
		padding-bottom: var(--huizhi-mobile-contact-reserved);
	}

	body.page-id-34 .huizhi-mobile-contact-bar {
		display: none;
	}

	.huizhi-mobile-contact-bar {
		position: fixed;
		z-index: 9998;
		right: 0;
		bottom: 0;
		left: 0;
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
		gap: 8px;
		box-sizing: border-box;
		width: 100%;
		min-height: 64px;
		margin: 0;
		padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid #c7d2da;
		background: #ffffff;
		box-shadow: 0 -4px 18px rgba(8, 35, 52, 0.18);
	}

	body.admin-bar .huizhi-mobile-contact-bar {
		/* Keep the contact bar below WordPress's top admin bar stacking layer. */
		z-index: 9998;
	}

	body.huizhi-mobile-contact-enabled:not(.page-id-34) #ast-scroll-top {
		/* Keep Astra's control fully above the measured fixed contact bar. */
		bottom: calc(var(--huizhi-mobile-contact-reserved) + 12px);
	}

	.huizhi-mobile-contact-bar__action {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
		min-width: 0;
		min-height: 48px;
		padding: 10px 12px;
		border: 2px solid #123f59;
		border-radius: 6px;
		font-family: inherit;
		font-size: 16px;
		font-weight: 700;
		line-height: 1.2;
		text-align: center;
		text-decoration: none;
		-webkit-tap-highlight-color: transparent;
	}

	.huizhi-mobile-contact-bar__action--email {
		color: #123f59;
		background: #ffffff;
	}

	.huizhi-mobile-contact-bar__action--quote {
		color: #ffffff;
		background: #123f59;
	}

	.huizhi-mobile-contact-bar__action:hover,
	.huizhi-mobile-contact-bar__action:active {
		text-decoration: underline;
	}

	.huizhi-mobile-contact-bar__action:focus-visible {
		outline: 3px solid #ffbf47;
		outline-offset: 2px;
	}
}

@media print {
	.huizhi-mobile-contact-bar {
		display: none;
	}
}
