/*
	Mobile CTA bar - Call / WhatsApp / Book Now, fixed to the bottom of the screen on phones
	Markup in inc/mobile-cta-bar.php. Hidden above 768px.
	On phones the floating WhatsApp widget (.chat-widget) is hidden; the bar's button replaces it.
*/

.mh-cta-bar {
	display: none;
}

@media (max-width: 768px) {
	.mh-cta-bar {
		--mh-cta-bar-height: 3.5rem;

		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 99;		/* Under the landing page booking modal (100) */
		display: flex;
		gap: 0.5rem;
		box-sizing: border-box;
		padding: 0.75rem 0.75rem calc(0.75rem + env(safe-area-inset-bottom));
		background: #fff;
		box-shadow: 0 -1px 0 rgba(1, 24, 38, 0.08), 0 -4px 16px rgba(1, 24, 38, 0.08);
	}

	/* Call and WhatsApp share the space Book Now doesn't need */
	.mh-cta-bar__btn {
		flex: 1 1 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 0.25rem;
		box-sizing: border-box;
		min-width: 4rem;
		height: var(--mh-cta-bar-height);
		padding: 0 0.25rem;
		border-radius: 1rem;
		background: #f0f2f6;
		color: var(--global-palette2, #011826);
		font-family: var(--global-body-font-family, Montserrat, sans-serif);
		font-size: 0.75rem;
		font-weight: 700;
		line-height: 1;
		text-decoration: none;
		-webkit-tap-highlight-color: transparent;
	}
	.mh-cta-bar__btn:hover,
	.mh-cta-bar__btn:focus {
		color: var(--global-palette2, #011826);
		text-decoration: none;
	}
	.mh-cta-bar__btn:active {
		background: #e2e6ec;
	}
	.mh-cta-bar__btn:focus-visible {
		outline: 2px solid var(--global-palette2, #011826);
		outline-offset: 2px;
	}

	.mh-cta-bar__icon {
		width: 1.375rem;
		height: 1.375rem;
		flex: none;
	}

	/* Book Now - As wide as its label */
	.mh-cta-bar__btn--book {
		flex: 0 0 auto;
		flex-direction: row;
		gap: 0.5rem;
		padding: 0 1.5rem;
		border-radius: 999px;
		background: var(--global-palette5, #b80765);
		color: #fff;
		font-family: var(--global-heading-font-family, Quicksand, sans-serif);
		font-size: 1.25rem;
	}
	.mh-cta-bar__btn--book:hover,
	.mh-cta-bar__btn--book:focus {
		color: #fff;
	}
	.mh-cta-bar__btn--book:active {
		background: color-mix(in srgb, var(--global-palette5, #b80765) 85%, #000);
	}
	.mh-cta-bar__btn--book .mh-cta-bar__icon {
		width: 1.5rem;
		height: 1.5rem;
	}

	/* Room under the page so the bar doesn't cover the footer - Bar height plus its padding */
	body.has-mh-cta-bar {
		padding-bottom: calc(5rem + env(safe-area-inset-bottom));
	}

	/* The bar's WhatsApp button replaces the floating widget */
	body.has-mh-cta-bar .chat-widget {
		display: none;
	}
}
