/**
 * Floating Contact Buttons — portaled modal shell.
 */
[data-fcb-root].fcb-overlay {
	position: fixed !important;
	inset: 0 !important;
	z-index: 2147483001 !important;
	margin: 0 !important;
	padding: 0 !important;
	transform: none !important;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s ease;
}

[data-fcb-root].fcb-overlay.is-active {
	opacity: 1;
	pointer-events: auto;
}

[data-fcb-root].fcb-modal {
	position: fixed !important;
	inset: 0 !important;
	z-index: 2147483002 !important;
	margin: 0 !important;
	max-width: none !important;
	max-height: none !important;
	transform: none !important;
	overflow: hidden !important;
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	pointer-events: none;
	visibility: hidden;
}

[data-fcb-root].fcb-modal.is-active {
	pointer-events: auto;
	visibility: visible;
}

[data-fcb-root].fcb-modal .fcb-modal__box {
	position: relative;
	width: 100%;
	max-width: 440px;
	max-height: min(90dvh, 90vh);
	min-height: 0;
	height: auto;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	flex-shrink: 1;
	box-sizing: border-box;
	background: var(--fcb-m-bg, #fff);
	color: var(--fcb-m-txt, #1c1917);
}

[data-fcb-root].fcb-modal .fcb-form,
[data-fcb-root].fcb-modal .fcb-field,
[data-fcb-root].fcb-modal .fcb-input,
[data-fcb-root].fcb-modal .fcb-textarea,
[data-fcb-root].fcb-modal .fcb-submit {
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

[data-fcb-root].fcb-modal.fcb-shell-fullscreen,
[data-fcb-root].fcb-modal.fcb-shell-fullcover {
	align-items: stretch !important;
	justify-content: stretch !important;
	padding: 0 !important;
}

[data-fcb-root].fcb-modal.fcb-shell-fullscreen .fcb-modal__box,
[data-fcb-root].fcb-modal.fcb-shell-fullcover .fcb-modal__box {
	max-width: 100% !important;
	width: 100% !important;
	height: 100% !important;
	max-height: 100% !important;
	border-radius: 0 !important;
}

[data-fcb-root].fcb-modal.fcb-shell-panel-right {
	align-items: stretch !important;
	justify-content: flex-end !important;
	padding: 0 !important;
}

[data-fcb-root].fcb-modal.fcb-shell-panel-right .fcb-modal__box {
	height: 100% !important;
	max-height: 100% !important;
}

[data-fcb-root].fcb-modal.fcb-shell-panel-left {
	align-items: stretch !important;
	justify-content: flex-start !important;
	padding: 0 !important;
}

[data-fcb-root].fcb-modal.fcb-shell-panel-left .fcb-modal__box {
	height: 100% !important;
	max-height: 100% !important;
}

[data-fcb-root].fcb-modal.fcb-shell-bottom-sheet {
	align-items: flex-end !important;
	justify-content: center !important;
	padding: 0 !important;
}

[data-fcb-root].fcb-modal.fcb-shell-bottom-sheet .fcb-modal__box {
	max-width: 100% !important;
	width: 100% !important;
}

@media (max-width: 767px) {
	[data-fcb-root].fcb-modal.fcb-shell-card,
	[data-fcb-root].fcb-modal.fcb-shell-minimal {
		align-items: center !important;
		justify-content: center !important;
		padding: 16px !important;
	}

	[data-fcb-root].fcb-modal.fcb-shell-card .fcb-modal__box,
	[data-fcb-root].fcb-modal.fcb-shell-minimal .fcb-modal__box {
		width: 100% !important;
		max-width: min(440px, calc(100% - 32px)) !important;
		max-height: min(90dvh, 90vh) !important;
		height: auto !important;
		border-radius: 16px !important;
	}

	[data-fcb-root].fcb-modal.fcb-shell-bottom-sheet .fcb-modal__box,
	[data-fcb-root].fcb-modal:not(.fcb-shell-fullscreen):not(.fcb-shell-fullcover):not(.fcb-shell-card):not(.fcb-shell-minimal):not(.fcb-shell-panel-right):not(.fcb-shell-panel-left) .fcb-modal__box {
		width: 100% !important;
		max-width: 100% !important;
		max-height: min(92dvh, 92vh) !important;
		height: auto !important;
		border-radius: 16px 16px 0 0;
		padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	}

	[data-fcb-root].fcb-modal.fcb-shell-bottom-sheet,
	[data-fcb-root].fcb-modal:not(.fcb-shell-fullscreen):not(.fcb-shell-fullcover):not(.fcb-shell-card):not(.fcb-shell-minimal):not(.fcb-shell-panel-right):not(.fcb-shell-panel-left) {
		align-items: flex-end !important;
		justify-content: center !important;
		padding: 0 !important;
	}
}
