.mooton-floating-contact {
	position: fixed;
	right: 0;
	top: 50%;
	z-index: 9999;
	transform: translateY(-50%);
	font-family: inherit;
}

.mooton-floating-contact *,
.mooton-floating-contact *::before,
.mooton-floating-contact *::after {
	box-sizing: border-box;
}

.mooton-floating-contact__minimize {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 34px;
	margin: 0;
	border: 0;
	border-radius: 12px 0 0 0;
	background: #111111;
	color: #ffffff;
	cursor: pointer;
	box-shadow: 0 12px 24px rgba(17, 17, 17, 0.18);
}

.mooton-floating-contact__stack {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.mooton-floating-contact.is-collapsed .mooton-floating-contact__stack {
	opacity: 0;
	pointer-events: none;
	transform: translateX(20px);
}

.mooton-floating-contact.is-collapsed .mooton-floating-contact__minimize span {
	display: inline-block;
	transform: rotate(180deg);
}

.mooton-floating-contact.is-collapsed .mooton-floating-contact__minimize {
	border-radius: 12px 0 0 12px;
}

.mooton-floating-contact__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 0;
	color: #ffffff;
	text-decoration: none;
	box-shadow: 0 16px 34px rgba(17, 17, 17, 0.16);
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.2s ease, filter 0.2s ease;
}

.mooton-floating-contact__item:hover,
.mooton-floating-contact__item:focus-visible {
	transform: translateX(-6px);
	filter: brightness(1.03);
}

.mooton-floating-contact__item:focus-visible,
.mooton-floating-contact__minimize:focus-visible,
.mooton-floating-contact__panel-close:focus-visible {
	outline: 2px solid #111111;
	outline-offset: 2px;
}

.mooton-floating-contact__item--quote {
	background: var(--mooton-floating-quote-color);
}

.mooton-floating-contact__item--email {
	background: var(--mooton-floating-email-color);
}

.mooton-floating-contact__item--whatsapp {
	background: var(--mooton-floating-whatsapp-color);
}

.mooton-floating-contact__item.is-disabled {
	opacity: 0.7;
	cursor: default;
}

.mooton-floating-contact__item.is-disabled:hover {
	transform: none;
	filter: none;
}

.mooton-floating-contact__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 12px;
}

.mooton-floating-contact__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.mooton-floating-contact__text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.mooton-floating-contact__flyout[hidden] {
	display: none;
}

.mooton-floating-contact__flyout {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.22s ease;
}

.mooton-floating-contact.is-flyout-visible .mooton-floating-contact__flyout {
	opacity: 1;
	pointer-events: auto;
}

.mooton-floating-contact__backdrop {
	display: none;
}

.mooton-floating-contact__panel {
	position: absolute;
	right: calc(100% + 18px);
	top: 50%;
	transform: translate3d(18px, -50%, 0);
	width: min(680px, calc(100vw - 120px));
	max-height: min(90vh, 920px);
	padding: 0;
	border-radius: 26px;
	background: #ffffff;
	box-shadow: 0 30px 70px rgba(17, 17, 17, 0.22);
	overflow: hidden;
	transition: transform 0.22s ease, opacity 0.22s ease;
	opacity: 0;
	display: flex;
	flex-direction: column;
}

.mooton-floating-contact.is-flyout-visible .mooton-floating-contact__panel {
	transform: translate3d(0, -50%, 0);
	opacity: 1;
}

.mooton-floating-contact__panel-head {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 24px;
	border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.mooton-floating-contact__panel-title {
	margin: 0;
	font-size: 24px;
	line-height: 1.15;
	color: #111111;
}

.mooton-floating-contact__panel-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 999px;
	background: #f3f4f6;
	color: #111111;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
}

.mooton-floating-contact__panel-body {
	flex: 1 1 auto;
	padding: 22px 24px 24px;
	overflow: auto;
}

.mooton-floating-contact__panel-body .mooton-inquiry__title {
	display: none;
}

.mooton-floating-contact__panel-body .mooton-inquiry__grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mooton-floating-contact__panel-body .mooton-inquiry__field {
	min-width: 0;
}

.mooton-floating-contact__panel-body .mooton-inquiry__field--email,
.mooton-floating-contact__panel-body .mooton-inquiry__field--phone,
.mooton-floating-contact__panel-body .mooton-inquiry__field--business_type,
.mooton-floating-contact__panel-body .mooton-inquiry__field--detailed_requirements {
	grid-column: 1 / -1;
}

.mooton-floating-contact__panel-body .mooton-inquiry__submit {
	background: var(--mooton-floating-quote-color);
}

.mooton-floating-contact__fallback {
	margin: 0;
}

.mooton-floating-contact__fallback a {
	color: var(--mooton-floating-quote-color);
	font-weight: 700;
}

body.admin-bar .mooton-floating-contact {
	top: calc(50% + 16px);
}

.mooton-floating-contact__stack > .mooton-floating-contact__item:first-child {
	border-top-left-radius: 0;
}

.mooton-floating-contact__stack > .mooton-floating-contact__item:last-child {
	border-bottom-left-radius: 14px;
}

@media (max-width: 921px) {
	.mooton-floating-contact {
		top: auto;
		bottom: 22px;
		transform: none;
	}

	body.admin-bar .mooton-floating-contact {
		top: auto;
	}

	.mooton-floating-contact__item {
		width: 44px;
		height: 44px;
	}

	.mooton-floating-contact__stack > .mooton-floating-contact__item:first-child {
		border-top-left-radius: 0;
	}

	.mooton-floating-contact__stack > .mooton-floating-contact__item:last-child {
		border-bottom-left-radius: 12px;
	}

	.mooton-floating-contact__icon {
		padding: 12px;
	}

	.mooton-floating-contact__flyout {
		position: fixed;
		inset: 0;
	}

	.mooton-floating-contact__backdrop {
		display: block;
		position: absolute;
		inset: 0;
		border: 0;
		background: rgba(17, 17, 17, 0.48);
	}

	.mooton-floating-contact__panel {
		position: absolute;
		right: 16px;
		left: 16px;
		top: auto;
		bottom: 16px;
		transform: translate3d(0, 24px, 0);
		width: auto;
		max-height: min(82vh, 820px);
		border-radius: 24px;
	}

	.mooton-floating-contact.is-flyout-visible .mooton-floating-contact__panel {
		transform: translate3d(0, 0, 0);
	}

	.mooton-floating-contact__panel-head {
		padding: 18px 20px;
	}

	.mooton-floating-contact__panel-title {
		font-size: 21px;
	}

	.mooton-floating-contact__panel-body {
		padding: 18px 20px 20px;
	}

	.mooton-floating-contact__panel-body .mooton-inquiry__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.mooton-floating-contact {
		bottom: 16px;
	}

	.mooton-floating-contact__minimize {
		width: 40px;
		height: 30px;
		margin: 0;
		border-top-left-radius: 10px;
	}

	.mooton-floating-contact.is-collapsed .mooton-floating-contact__minimize {
		border-radius: 10px 0 0 10px;
	}

	.mooton-floating-contact__stack {
		gap: 0;
	}

	.mooton-floating-contact__item {
		width: 40px;
		height: 40px;
	}

	.mooton-floating-contact__stack > .mooton-floating-contact__item:first-child {
		border-top-left-radius: 0;
	}

	.mooton-floating-contact__stack > .mooton-floating-contact__item:last-child {
		border-bottom-left-radius: 10px;
	}

	.mooton-floating-contact__icon {
		padding: 11px;
	}
}
