/* Mobile sticky CTA bar (task 140802). Visible only at max-width: 767px. */

/* Hidden by default (desktop, print) */
.eii-mobile-cta {
	display: none;
}

@media screen and (max-width: 767px) {

	.eii-mobile-cta {
		--cta-panel-bg: #103040;
		--cta-call-bg: #2f92bc;          /* theme secondary button color */
		--cta-call-bg-hover: #4caad2;    /* theme secondary button hover */
		--cta-request-bg: #c47581;
		--cta-request-bg-hover: #b55161; /* theme primary button color; pair with #c47581 */
		--cta-color: #fff;
		--cta-padding: 10px;
		--cta-gap: 10px;
		--cta-btn-height: 48px;
		--cta-radius: 5px;

		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9990;
		display: flex;
		align-items: stretch;
		gap: var(--cta-gap);
		padding: var(--cta-padding);
		padding-bottom: calc(var(--cta-padding) + env(safe-area-inset-bottom, 0px));
		background: var(--cta-panel-bg);
		box-sizing: border-box;
	}

	/* Keep the footer content visible above the bar */
	body {
		padding-bottom: calc(48px + 20px + env(safe-area-inset-bottom, 0px));
	}

	/* Doubled class selector beats theme rules like a:visited{color:#4caad2} */
	.eii-mobile-cta .eii-mobile-cta__btn {
		flex: 1 1 0;
		min-width: 0;
		min-height: var(--cta-btn-height);
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		margin: 0;
		padding: 6px 8px;
		box-sizing: border-box;
		border-radius: var(--cta-radius);
		color: var(--cta-color);
		font-family: brandon-grotesque, "Helvetica Neue", Helvetica, Arial, sans-serif;
		font-weight: 500;
		font-size: clamp(13px, 3.9vw, 16px);
		line-height: 1.15;
		letter-spacing: .5px;
		text-transform: uppercase;
		text-align: center;
		text-decoration: none;
		transition: background-color .4s;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
	}

	.eii-mobile-cta .eii-mobile-cta__btn:link,
	.eii-mobile-cta .eii-mobile-cta__btn:visited,
	.eii-mobile-cta .eii-mobile-cta__btn:hover,
	.eii-mobile-cta .eii-mobile-cta__btn:focus,
	.eii-mobile-cta .eii-mobile-cta__btn:active {
		color: var(--cta-color);
		text-decoration: none;
	}

	.eii-mobile-cta .eii-mobile-cta__btn:focus-visible {
		outline: 2px solid var(--cta-color);
		outline-offset: 2px;
	}

	.eii-mobile-cta .eii-mobile-cta__btn--call { background: var(--cta-call-bg); }
	.eii-mobile-cta .eii-mobile-cta__btn--call:hover { background: var(--cta-call-bg-hover); }

	.eii-mobile-cta .eii-mobile-cta__btn--request { background: var(--cta-request-bg); }
	.eii-mobile-cta .eii-mobile-cta__btn--request:hover { background: var(--cta-request-bg-hover); }

	.eii-mobile-cta .eii-mobile-cta__icon {
		flex: 0 0 auto;
		width: 1em;
		height: 1em;
		margin: 0;
	}
}
