:root {
	--pfsa-ink: #36071d;
	--pfsa-muted: #7b6971;
	--pfsa-pink: #d90c72;
	--pfsa-pink-dark: #b4085d;
	--pfsa-pink-soft: #fff0f6;
	--pfsa-green: #267044;
	--pfsa-green-soft: #edf7f1;
	--pfsa-border: #eadde3;
	--pfsa-shadow: 0 18px 50px rgba(54, 7, 29, 0.2);
}

#primefit-sales-assistant-root {
	position: relative;
	z-index: 99990;
	font-family: inherit;
	color: var(--pfsa-ink);
}

#primefit-sales-assistant-root *,
#primefit-sales-assistant-root *::before,
#primefit-sales-assistant-root *::after {
	box-sizing: border-box;
	letter-spacing: 0;
}

#primefit-sales-assistant-root .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.pfsa-launcher {
	position: fixed;
	left: max(18px, env(safe-area-inset-left));
	bottom: max(18px, env(safe-area-inset-bottom));
	z-index: 2;
	min-width: 190px;
	height: 58px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 7px 16px 7px 8px;
	border: 1px solid rgba(217, 12, 114, 0.22);
	border-radius: 999px;
	background: #fff;
	color: var(--pfsa-ink);
	box-shadow: 0 10px 28px rgba(54, 7, 29, 0.18);
	cursor: pointer;
	text-align: left;
	transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.pfsa-launcher:hover,
.pfsa-launcher:focus-visible {
	transform: translateY(-2px);
	border-color: rgba(217, 12, 114, 0.55);
	box-shadow: 0 14px 34px rgba(54, 7, 29, 0.22);
	outline: none;
}

.pfsa-launcher__icon {
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--pfsa-pink);
	color: #fff;
}

.pfsa-launcher__icon svg {
	width: 20px;
	height: 20px;
}

.pfsa-launcher__copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.15;
}

.pfsa-launcher__copy strong {
	font-size: 14px;
	font-weight: 850;
	color: var(--pfsa-ink);
}

.pfsa-launcher__copy small {
	margin-top: 3px;
	font-size: 11px;
	font-weight: 700;
	color: var(--pfsa-muted);
}

.pfsa-mobile-invite,
.pfsa-mobile-invite[hidden] {
	display: none;
}

.pfsa-panel {
	position: fixed;
	left: max(18px, env(safe-area-inset-left));
	bottom: max(88px, calc(env(safe-area-inset-bottom) + 82px));
	z-index: 3;
	width: min(400px, calc(100vw - 36px));
	height: min(680px, calc(100dvh - 120px));
	min-height: 480px;
	max-width: none;
	max-height: none;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto auto auto;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--pfsa-border);
	border-radius: 8px;
	background: #fff;
	box-shadow: var(--pfsa-shadow);
	opacity: 0;
	transform: translateY(12px);
	pointer-events: none;
	transition: opacity 180ms ease, transform 180ms ease;
}

.pfsa-panel::backdrop {
	background: transparent;
}

.pfsa-panel[hidden] {
	display: none !important;
}

.pfsa-panel.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.pfsa-header {
	min-height: 72px;
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) 38px;
	align-items: center;
	gap: 10px;
	padding: 12px 12px 12px 14px;
	border-bottom: 1px solid var(--pfsa-border);
	background: #fff8fb;
}

.pfsa-header__mark {
	width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: var(--pfsa-ink);
	color: #fff;
}

.pfsa-header__mark svg {
	width: 21px;
	height: 21px;
}

.pfsa-header div {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.pfsa-header strong {
	overflow: hidden;
	font-size: 15px;
	font-weight: 850;
	line-height: 1.2;
	color: var(--pfsa-ink);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pfsa-header small {
	margin-top: 4px;
	font-size: 11px;
	font-weight: 700;
	color: var(--pfsa-muted);
}

.pfsa-header small i {
	width: 7px;
	height: 7px;
	display: inline-block;
	margin-right: 4px;
	border-radius: 50%;
	background: #2aa360;
	box-shadow: 0 0 0 3px rgba(42, 163, 96, 0.12);
}

.pfsa-close {
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--pfsa-muted);
	cursor: pointer;
}

.pfsa-close:hover,
.pfsa-close:focus-visible {
	background: #f4e9ee;
	color: var(--pfsa-ink);
	outline: none;
}

.pfsa-close svg {
	width: 20px;
	height: 20px;
}

.pfsa-messages {
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 16px 14px 12px;
	background: #fff;
	scrollbar-width: thin;
	scrollbar-color: #d9cbd1 transparent;
}

.pfsa-message {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin: 0 0 11px;
}

.pfsa-message--user {
	align-items: flex-end;
}

.pfsa-message__bubble {
	max-width: 86%;
	padding: 10px 12px;
	border: 1px solid var(--pfsa-border);
	border-radius: 8px;
	background: #f8f4f6;
	color: var(--pfsa-ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.48;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.pfsa-message--user .pfsa-message__bubble {
	border-color: var(--pfsa-pink);
	background: var(--pfsa-pink);
	color: #fff;
}

.pfsa-typing .pfsa-message__bubble {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 38px;
}

.pfsa-typing .pfsa-message__bubble > span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--pfsa-muted);
	animation: pfsa-dot 1s infinite ease-in-out;
}

.pfsa-typing .pfsa-message__bubble > span:nth-child(2) {
	animation-delay: 120ms;
}

.pfsa-typing .pfsa-message__bubble > span:nth-child(3) {
	animation-delay: 240ms;
}

.pfsa-typing small {
	margin-left: 4px;
	font-size: 11px;
	color: var(--pfsa-muted);
}

@keyframes pfsa-dot {
	0%,
	60%,
	100% {
		opacity: 0.35;
		transform: translateY(0);
	}

	30% {
		opacity: 1;
		transform: translateY(-2px);
	}
}

.pfsa-offer {
	width: min(92%, 330px);
	margin-top: 7px;
	padding: 12px;
	border: 1px solid #c9e8d5;
	border-radius: 8px;
	background: var(--pfsa-green-soft);
}

.pfsa-offer__top {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pfsa-offer__top img {
	width: 58px;
	height: 58px;
	flex: 0 0 58px;
	object-fit: contain;
	border: 1px solid rgba(38, 112, 68, 0.15);
	border-radius: 8px;
	background: #fff;
}

.pfsa-offer__copy {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.pfsa-offer__copy strong {
	font-size: 14px;
	font-weight: 850;
	line-height: 1.3;
	color: var(--pfsa-ink);
}

.pfsa-offer__copy span {
	margin-top: 3px;
	font-size: 16px;
	font-weight: 900;
	line-height: 1.2;
	color: var(--pfsa-ink);
}

.pfsa-offer__copy small {
	margin-top: 3px;
	font-size: 11px;
	font-weight: 750;
	line-height: 1.35;
	color: var(--pfsa-green);
}

.pfsa-offer__button,
.pfsa-lead button[type="submit"] {
	width: 100%;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 10px;
	padding: 9px 12px;
	border: 0;
	border-radius: 6px;
	background: var(--pfsa-ink);
	color: #fff;
	font-size: 13px;
	font-weight: 850;
	cursor: pointer;
}

.pfsa-offer__button:hover,
.pfsa-offer__button:focus-visible,
.pfsa-lead button[type="submit"]:hover,
.pfsa-lead button[type="submit"]:focus-visible {
	background: #1e0410;
	outline: none;
}

.pfsa-offer__button:disabled,
.pfsa-lead button[type="submit"]:disabled {
	cursor: wait;
	opacity: 0.7;
}

.pfsa-offer__button.is-success {
	background: var(--pfsa-green);
}

.pfsa-offer__button svg,
.pfsa-lead button[type="submit"] svg {
	width: 17px;
	height: 17px;
}

.pfsa-quick-replies {
	display: flex;
	gap: 7px;
	padding: 4px 14px 10px;
	overflow-x: auto;
	background: #fff;
	scrollbar-width: none;
}

.pfsa-quick-replies:empty {
	display: none;
}

.pfsa-quick-replies::-webkit-scrollbar {
	display: none;
}

.pfsa-quick-replies button {
	flex: 0 0 auto;
	min-height: 34px;
	padding: 7px 11px;
	border: 1px solid rgba(217, 12, 114, 0.28);
	border-radius: 999px;
	background: #fff;
	color: var(--pfsa-ink);
	font-size: 12px;
	font-weight: 780;
	cursor: pointer;
}

.pfsa-quick-replies button:hover,
.pfsa-quick-replies button:focus-visible {
	border-color: var(--pfsa-pink);
	background: var(--pfsa-pink-soft);
	outline: none;
}

.pfsa-composer {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 44px;
	align-items: end;
	gap: 8px;
	padding: 10px 12px;
	border-top: 1px solid var(--pfsa-border);
	background: #fff;
}

.pfsa-composer textarea {
	width: 100%;
	height: 44px;
	max-height: 112px;
	resize: none;
	margin: 0;
	padding: 11px 12px;
	border: 1px solid #d8cbd1;
	border-radius: 8px;
	background: #fff;
	color: var(--pfsa-ink);
	font: inherit;
	font-size: 14px;
	line-height: 1.4;
	box-shadow: none;
}

.pfsa-composer textarea:focus {
	border-color: var(--pfsa-pink);
	outline: 2px solid rgba(217, 12, 114, 0.12);
	outline-offset: 0;
}

.pfsa-composer button {
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: var(--pfsa-pink);
	color: #fff;
	cursor: pointer;
}

.pfsa-composer button:hover,
.pfsa-composer button:focus-visible {
	background: var(--pfsa-pink-dark);
	outline: none;
}

.pfsa-composer button:disabled {
	cursor: wait;
	opacity: 0.55;
}

.pfsa-composer button svg {
	width: 19px;
	height: 19px;
}

.pfsa-disclaimer {
	margin: 0;
	padding: 0 12px 10px;
	background: #fff;
	color: var(--pfsa-muted);
	font-size: 10px;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
}

.pfsa-lead {
	width: min(92%, 330px);
	margin-top: 7px;
	padding: 12px;
	border: 1px solid var(--pfsa-border);
	border-radius: 8px;
	background: #fff8fb;
}

.pfsa-lead > strong {
	display: block;
	margin-bottom: 9px;
	font-size: 14px;
	font-weight: 850;
}

.pfsa-lead__form {
	display: grid;
	gap: 8px;
}

.pfsa-lead__form label {
	display: grid;
	gap: 4px;
	font-size: 11px;
	font-weight: 750;
	color: var(--pfsa-muted);
}

.pfsa-lead__form input[type="text"],
.pfsa-lead__form input[type="tel"] {
	width: 100%;
	min-height: 40px;
	margin: 0;
	padding: 8px 10px;
	border: 1px solid #d8cbd1;
	border-radius: 6px;
	background: #fff;
	color: var(--pfsa-ink);
	font: inherit;
	font-size: 13px;
	box-shadow: none;
}

.pfsa-lead__form input:focus {
	border-color: var(--pfsa-pink);
	outline: 2px solid rgba(217, 12, 114, 0.12);
}

.pfsa-lead__consent {
	grid-template-columns: 18px minmax(0, 1fr) !important;
	align-items: start;
	gap: 7px !important;
	color: var(--pfsa-ink) !important;
}

.pfsa-lead__consent input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--pfsa-pink);
}

.pfsa-lead__consent a {
	color: var(--pfsa-pink-dark);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.pfsa-lead__status {
	margin: 0;
	padding: 10px;
	border-radius: 6px;
	background: var(--pfsa-green-soft);
	color: var(--pfsa-green);
	font-size: 12px;
	font-weight: 750;
	line-height: 1.4;
}

.pfsa-lead__status[data-error="1"] {
	background: #fff0f0;
	color: #a41e1e;
}

.pfsa-inline-trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	margin: 1px 0 0;
	padding: 7px 8px;
	border: 0;
	background: transparent;
	color: var(--pfsa-ink);
	cursor: pointer;
	text-align: left;
}

.pfsa-inline-trigger:hover strong,
.pfsa-inline-trigger:focus-visible strong {
	color: var(--pfsa-pink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pfsa-inline-trigger:focus-visible {
	outline: 2px solid rgba(217, 12, 114, 0.25);
	outline-offset: 2px;
}

.pfsa-inline-trigger > svg {
	width: 19px;
	height: 19px;
	flex: 0 0 19px;
	color: var(--pfsa-pink);
}

.pfsa-inline-trigger span {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.pfsa-inline-trigger strong {
	font-size: 12px;
	font-weight: 850;
	line-height: 1.25;
}

.pfsa-inline-trigger small {
	margin-top: 2px;
	font-size: 10px;
	font-weight: 700;
	color: var(--pfsa-muted);
}

@media (max-width: 640px) {
	html.pfsa-panel-open,
	body.pfsa-panel-open {
		overflow: hidden;
		overscroll-behavior: none;
	}

	.pfsa-panel::backdrop {
		background: #fff;
	}

	.pfsa-mobile-invite {
		position: fixed;
		left: max(12px, env(safe-area-inset-left));
		bottom: max(76px, calc(env(safe-area-inset-bottom) + 72px));
		z-index: 2;
		display: flex;
		align-items: flex-start;
		width: min(316px, calc(100vw - 24px));
		overflow: hidden;
		border: 1px solid rgba(217, 12, 114, 0.28);
		border-radius: 8px;
		background: #fff;
		box-shadow: 0 16px 36px rgba(54, 7, 29, 0.2);
		opacity: 0;
		transform: translateY(8px) scale(0.98);
		transform-origin: left bottom;
		pointer-events: none;
		transition: opacity 180ms ease, transform 180ms ease;
	}

	.pfsa-mobile-invite[hidden] {
		display: none;
	}

	.pfsa-mobile-invite.is-visible {
		opacity: 1;
		transform: translateY(0) scale(1);
		pointer-events: auto;
	}

	.pfsa-mobile-invite::after {
		position: absolute;
		bottom: -7px;
		left: 20px;
		width: 14px;
		height: 14px;
		border-right: 1px solid rgba(217, 12, 114, 0.28);
		border-bottom: 1px solid rgba(217, 12, 114, 0.28);
		background: #fff;
		content: "";
		transform: rotate(45deg);
	}

	.pfsa-mobile-invite__action {
		display: flex;
		flex: 1 1 auto;
		align-items: center;
		gap: 10px;
		min-width: 0;
		padding: 12px 36px 12px 12px;
		border: 0;
		background: transparent;
		color: var(--pfsa-ink);
		cursor: pointer;
		text-align: left;
	}

	.pfsa-mobile-invite__action:focus-visible,
	.pfsa-mobile-invite__close:focus-visible {
		outline: 2px solid var(--pfsa-pink);
		outline-offset: -2px;
	}

	.pfsa-mobile-invite__mark {
		width: 36px;
		height: 36px;
		flex: 0 0 36px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		border-radius: 50%;
		background: var(--pfsa-pink-soft);
		color: var(--pfsa-pink);
	}

	.pfsa-mobile-invite__mark svg {
		width: 18px;
		height: 18px;
	}

	.pfsa-mobile-invite__copy {
		display: flex;
		flex-direction: column;
		min-width: 0;
		line-height: 1.25;
	}

	.pfsa-mobile-invite__copy strong {
		font-size: 14px;
		font-weight: 850;
		color: var(--pfsa-ink);
	}

	.pfsa-mobile-invite__copy small {
		margin-top: 3px;
		font-size: 12px;
		font-weight: 650;
		color: var(--pfsa-muted);
	}

	.pfsa-mobile-invite__close {
		position: absolute;
		top: 7px;
		right: 7px;
		z-index: 1;
		width: 28px;
		height: 28px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: transparent;
		color: var(--pfsa-muted);
		cursor: pointer;
	}

	.pfsa-mobile-invite__close svg {
		width: 16px;
		height: 16px;
	}

	.pfsa-launcher {
		left: max(12px, env(safe-area-inset-left));
		bottom: max(12px, env(safe-area-inset-bottom));
		min-width: 0;
		width: 54px;
		height: 54px;
		padding: 6px;
	}

	.pfsa-launcher__icon {
	width: 42px;
	height: 42px;
	}

	.pfsa-launcher__copy {
		display: none;
	}

	#primefit-sales-assistant-root.is-open .pfsa-launcher {
		opacity: 0;
		pointer-events: none;
	}

	.pfsa-panel {
		inset: 0;
		width: 100vw;
		height: 100dvh;
		min-height: 0;
		max-height: 100dvh;
		border-right: 0;
		border-bottom: 0;
		border-left: 0;
		border-radius: 0;
		padding-bottom: env(safe-area-inset-bottom);
		transform: translateY(22px);
	}

	.pfsa-panel.is-visible {
		transform: translateY(0);
	}

	.pfsa-header {
		min-height: 66px;
		padding: 10px 10px 10px 12px;
	}

	.pfsa-messages {
		padding: 13px 11px 10px;
	}

	.pfsa-message__bubble {
		max-width: 91%;
		font-size: 13px;
	}

	.pfsa-quick-replies {
		padding-right: 11px;
		padding-left: 11px;
	}

	.pfsa-composer {
		padding: 9px 10px;
	}

	.pfsa-composer textarea,
	.pfsa-lead__form input[type="text"],
	.pfsa-lead__form input[type="tel"] {
		font-size: 17px !important;
		-webkit-text-size-adjust: 100%;
		text-size-adjust: 100%;
	}

	.pfsa-disclaimer {
		padding-right: 10px;
		padding-bottom: 8px;
		padding-left: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pfsa-launcher,
	.pfsa-mobile-invite,
	.pfsa-panel,
	.pfsa-typing .pfsa-message__bubble > span {
		animation: none;
		transition: none;
	}
}
