/* Keep the closed Elementor mobile dropdown from expanding the document width.
   Horizontal clipping preserves the menu's vertically expanded state. */
@media (max-width: 1024px) {
	body #servixa-site-header .hfe-nav-menu__layout-horizontal {
		overflow-x: clip !important;
		overflow-y: visible !important;
	}
}

/* Keep the contact actions fixed on tablet and mobile. Reserve their height at
   the end of the document so the final page content can scroll above the bar. */
@media (max-width: 1359px) {
	body {
		padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px));
	}

	.servixa-floating-contact {
		position: fixed;
		top: auto;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 1000;
		box-sizing: border-box;
		width: 100%;
		max-width: none;
		margin: 0;
		padding: 8px 18px calc(8px + env(safe-area-inset-bottom, 0px));
		align-items: center;
		justify-content: center;
		flex-direction: row;
		gap: 12px;
		background: #111820;
		border-top: 1px solid rgba(255, 255, 255, .12);
		box-shadow: 0 -8px 24px rgba(17, 24, 32, .16);
	}

	.servixa-floating-contact .servixa-float-button {
		flex: 0 1 auto;
		min-width: 0;
		box-sizing: border-box;
		height: 48px;
		min-height: 48px;
		padding: 0 16px;
		border-radius: 14px;
	}

	/* Keep the contact form's final action clear when keyboard focus or
	   in-page scrolling brings it into view above the fixed action bar. */
	.sx2-contact-form .sx2-form-submit {
		scroll-margin-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
	}
}

/* At wide desktop sizes, use compact icon controls in the outer page gutter.
   Their labels remain available to assistive technology and as native tooltips. */
@media (min-width: 1360px) {
	.servixa-floating-contact .servixa-float-button {
		position: relative;
		width: 54px;
		min-width: 54px;
		min-height: 54px;
		padding: 0;
		gap: 0;
		border-radius: 50%;
	}

	.servixa-floating-contact .servixa-float-button span {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.servixa-floating-contact svg {
		width: 22px;
		height: 22px;
		flex-basis: 22px;
	}
}

@media (max-width: 767px) {
	.servixa-floating-contact {
		width: 100%;
		gap: 10px;
		padding-right: max(14px, env(safe-area-inset-right, 0px));
		padding-left: max(14px, env(safe-area-inset-left, 0px));
	}

	.servixa-floating-contact .servixa-float-button {
		flex: 1 1 0;
		gap: 8px;
		padding: 0 9px;
		font-size: 12px;
		white-space: nowrap;
	}

	.servixa-floating-contact .servixa-float-button span {
		position: static;
		width: auto;
		height: auto;
		margin: 0;
		overflow: visible;
		clip: auto;
		white-space: nowrap;
	}

	.servixa-floating-contact svg {
		width: 18px;
		height: 18px;
		flex-basis: 18px;
	}
}
