.fp4sa,
.fp4sa *,
.fp4sa *::before,
.fp4sa *::after {
	box-sizing: border-box;
}

.fp4sa {
	--fp4sa-accent: #6757ff;
	--fp4sa-accent-dark: color-mix(in srgb, var(--fp4sa-accent) 82%, #000);
	--fp4sa-text: #17171c;
	--fp4sa-muted: #73737f;
	--fp4sa-surface: #ffffff;
	--fp4sa-soft: #f4f3f8;
	--fp4sa-border: rgba(23, 23, 28, 0.1);
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 999999;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.45;
	color: var(--fp4sa-text);
	-webkit-font-smoothing: antialiased;
}

.fp4sa--left {
	right: auto;
	left: 24px;
}

.fp4sa [hidden] {
	display: none !important;
}

.fp4sa button,
.fp4sa input,
.fp4sa textarea {
	font: inherit;
}

.fp4sa button {
	letter-spacing: normal;
	text-transform: none;
	font-size: 13px;
}

.fp4sa__launcher {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	margin-left: auto;
	padding: 0;
	border: 0;
	border-radius: 21px;
	background: var(--fp4sa-accent);
	color: #fff;
	box-shadow: 0 12px 36px rgba(28, 22, 73, 0.24), 0 3px 10px rgba(28, 22, 73, 0.13);
	cursor: pointer;
	transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
	-webkit-tap-highlight-color: transparent;
}

.fp4sa--left .fp4sa__launcher {
	margin-right: auto;
	margin-left: 0;
}

.fp4sa__launcher:hover {
	transform: translateY(-2px);
	background: var(--fp4sa-accent-dark);
	box-shadow: 0 15px 42px rgba(28, 22, 73, 0.28), 0 4px 12px rgba(28, 22, 73, 0.15);
}

.fp4sa__launcher:focus-visible,
.fp4sa__close:focus-visible,
.fp4sa__choice:focus-visible,
.fp4sa__input:focus-visible,
.fp4sa__hint:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--fp4sa-accent) 34%, transparent);
	outline-offset: 3px;
}

.fp4sa__launcher-icon {
	width: 29px;
	height: 29px;
}

.fp4sa__launcher-icon--close {
	display: none;
}

.fp4sa--open .fp4sa__launcher-icon--chat {
	display: none;
}

.fp4sa--open .fp4sa__launcher-icon--close {
	display: block;
}

.fp4sa__hint {
	position: absolute;
	right: 0;
	bottom: 75px;
	width: max-content;
	max-width: min(290px, calc(100vw - 32px));
	padding: 12px 15px;
	border: 1px solid var(--fp4sa-border);
	border-radius: 15px 15px 4px 15px;
	background: var(--fp4sa-surface);
	box-shadow: 0 12px 35px rgba(25, 22, 48, 0.14);
	color: var(--fp4sa-text);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	animation: fp4sa-hint-in 300ms ease both;
}

.fp4sa--left .fp4sa__hint {
	right: auto;
	left: 0;
	border-radius: 15px 15px 15px 4px;
}

.fp4sa__hint::after {
	content: "";
	position: absolute;
	right: 17px;
	bottom: -7px;
	width: 13px;
	height: 13px;
	border-right: 1px solid var(--fp4sa-border);
	border-bottom: 1px solid var(--fp4sa-border);
	background: var(--fp4sa-surface);
	transform: rotate(45deg);
}

.fp4sa--left .fp4sa__hint::after {
	right: auto;
	left: 17px;
}

.fp4sa__panel {
	position: absolute;
	right: 0;
	bottom: 76px;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto auto;
	width: min(390px, calc(100vw - 32px));
	height: min(650px, calc(100vh - 128px));
	min-height: 450px;
	overflow: hidden;
	border: 1px solid var(--fp4sa-border);
	border-radius: 24px;
	background: var(--fp4sa-surface);
	box-shadow: 0 24px 80px rgba(24, 20, 48, 0.2), 0 7px 24px rgba(24, 20, 48, 0.1);
	transform-origin: bottom right;
	animation: fp4sa-panel-in 220ms cubic-bezier(0.2, 0.85, 0.35, 1) both;
}

.fp4sa--left .fp4sa__panel {
	right: auto;
	left: 0;
	transform-origin: bottom left;
}

.fp4sa__header {
	display: flex;
	align-items: center;
	gap: 11px;
	min-height: 76px;
	padding: 14px 15px;
	border-bottom: 1px solid var(--fp4sa-border);
	background: linear-gradient(135deg, color-mix(in srgb, var(--fp4sa-accent) 10%, #fff), #fff 62%);
}

.fp4sa__brand {
	display: grid;
	place-items: center;
	flex: 0 0 43px;
	width: 43px;
	height: 43px;
	border-radius: 14px;
	background: var(--fp4sa-accent);
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: -0.5px;
}

.fp4sa__heading {
	display: flex;
	flex: 1;
	min-width: 0;
	flex-direction: column;
	gap: 2px;
}

.fp4sa__heading strong {
	color: var(--fp4sa-text);
	font-size: 16px;
	font-weight: 750;
	line-height: 1.2;
}

.fp4sa__heading span {
	overflow: hidden;
	color: var(--fp4sa-muted);
	font-size: 11.5px;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fp4sa__heading span::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 5px;
	border-radius: 50%;
	background: #2eb872;
	vertical-align: 1px;
}

.fp4sa__close {
	display: grid;
	place-items: center;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	padding: 0 0 2px;
	border: 0;
	border-radius: 11px;
	background: transparent;
	color: var(--fp4sa-muted);
	font-size: 27px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
	transition: background-color 150ms ease, color 150ms ease;
}

.fp4sa__close:hover {
	background: rgba(20, 18, 35, 0.06);
	color: var(--fp4sa-text);
}

.fp4sa__messages {
	overflow-x: hidden;
	overflow-y: auto;
	padding: 18px 15px 10px;
	background: #fbfbfd;
	scroll-behavior: smooth;
	scrollbar-width: thin;
	scrollbar-color: rgba(20, 18, 35, 0.18) transparent;
}

.fp4sa__messages::-webkit-scrollbar {
	width: 6px;
}

.fp4sa__messages::-webkit-scrollbar-thumb {
	border-radius: 10px;
	background: rgba(20, 18, 35, 0.18);
}

.fp4sa__message-row {
	display: flex;
	width: 100%;
	margin-bottom: 10px;
	animation: fp4sa-message-in 180ms ease both;
}

.fp4sa__message-row--user {
	justify-content: flex-end;
}

.fp4sa__message {
	max-width: 86%;
	padding: 10px 12px;
	border-radius: 16px;
	font-size: 13.5px;
	line-height: 1.48;
	white-space: pre-wrap;
	word-break: break-word;
}

.fp4sa__message--bot {
	border: 1px solid rgba(23, 23, 28, 0.07);
	border-bottom-left-radius: 5px;
	background: var(--fp4sa-surface);
	color: var(--fp4sa-text);
	box-shadow: 0 2px 8px rgba(24, 20, 48, 0.04);
}

.fp4sa__message--user {
	border-bottom-right-radius: 5px;
	background: var(--fp4sa-accent);
	color: #fff;
}

.fp4sa__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 7px;
	max-height: 230px;
	overflow-y: auto;
	padding: 10px 12px 12px;
	border-top: 1px solid var(--fp4sa-border);
	background: var(--fp4sa-surface);
	scrollbar-width: thin;
}

.fp4sa__choice {
	min-width: 0;
	min-height: 42px;
	margin: 0;
	padding: 9px 10px;
	border: 1px solid color-mix(in srgb, var(--fp4sa-accent) 28%, #d9d7e2);
	border-radius: 11px;
	background: color-mix(in srgb, var(--fp4sa-accent) 5%, #fff);
	color: var(--fp4sa-text);
	font-size: 12.5px;
	font-weight: 650;
	line-height: 1.25;
	text-align: left;
	cursor: pointer;
	transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.fp4sa__choice:hover {
	border-color: var(--fp4sa-accent);
	background: color-mix(in srgb, var(--fp4sa-accent) 10%, #fff);
	transform: translateY(-1px);
}

.fp4sa__choice--primary {
	border-color: var(--fp4sa-accent);
	background: var(--fp4sa-accent);
	color: #fff;
	text-align: center;
}

.fp4sa__choice--primary:hover {
	border-color: var(--fp4sa-accent-dark);
	background: var(--fp4sa-accent-dark);
}

.fp4sa__choice--secondary {
	border-color: var(--fp4sa-border);
	background: var(--fp4sa-soft);
	color: var(--fp4sa-muted);
	text-align: center;
}

.fp4sa__choice:disabled {
	opacity: 0.65;
	cursor: wait;
	transform: none;
}

.fp4sa__form {
	display: flex;
	grid-column: 1 / -1;
	width: 100%;
	flex-direction: column;
	gap: 7px;
}

.fp4sa__input {
	width: 100%;
	min-height: 43px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #d9d8e0;
	border-radius: 11px;
	outline: none;
	background: #fff;
	color: var(--fp4sa-text);
	font-size: 14px;
	line-height: 1.4;
	box-shadow: none;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}

textarea.fp4sa__input {
	min-height: 96px;
	max-height: 160px;
	resize: vertical;
}

.fp4sa__input:focus {
	border-color: var(--fp4sa-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--fp4sa-accent) 12%, transparent);
}

.fp4sa__input[aria-invalid="true"] {
	border-color: #d94c4c;
}

.fp4sa__input::placeholder {
	color: #9a99a3;
	opacity: 1;
}

.fp4sa__field-error {
	min-height: 0;
	color: #b42f35;
	font-size: 11.5px;
	line-height: 1.35;
}

.fp4sa__field-error:empty {
	display: none;
}

.fp4sa__form-controls {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 7px;
}

.fp4sa__form-controls .fp4sa__choice:only-child {
	grid-column: 1 / -1;
}

.fp4sa__review-title {
	margin-bottom: 10px;
	font-weight: 750;
}

.fp4sa__review {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fp4sa__review-row {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	gap: 8px;
	padding-bottom: 7px;
	border-bottom: 1px solid var(--fp4sa-border);
	font-size: 12px;
	white-space: normal;
}

.fp4sa__review-row:last-child {
	border-bottom: 0;
}

.fp4sa__review-row strong {
	color: var(--fp4sa-muted);
	font-weight: 650;
}

.fp4sa__review-row span {
	min-width: 0;
	word-break: break-word;
}

.fp4sa__privacy {
	margin: 11px 0 0;
	padding-top: 10px;
	border-top: 1px solid var(--fp4sa-border);
	color: var(--fp4sa-muted);
	font-size: 10.5px;
	line-height: 1.45;
	white-space: normal;
}

.fp4sa__privacy a {
	color: var(--fp4sa-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fp4sa__footer {
	padding: 7px 12px 8px;
	border-top: 1px solid var(--fp4sa-border);
	background: var(--fp4sa-surface);
	color: #a09fa8;
	font-size: 9.5px;
	line-height: 1.2;
	text-align: center;
	letter-spacing: 0.1px;
}

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

@keyframes fp4sa-panel-in {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes fp4sa-message-in {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fp4sa-hint-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 520px) {
	.fp4sa,
	.fp4sa--left {
		right: 12px;
		bottom: 12px;
		left: auto;
	}

	.fp4sa__launcher {
		width: 56px;
		height: 56px;
		border-radius: 19px;
	}

	.fp4sa__panel,
	.fp4sa--left .fp4sa__panel {
		position: fixed;
		right: 12px;
		bottom: 80px;
		left: 12px;
		width: auto;
		height: min(680px, calc(100dvh - 94px));
		min-height: 390px;
		border-radius: 21px;
		transform-origin: bottom right;
	}

	.fp4sa__hint,
	.fp4sa--left .fp4sa__hint {
		right: 0;
		left: auto;
		bottom: 70px;
		border-radius: 15px 15px 4px 15px;
	}

	.fp4sa--left .fp4sa__hint::after {
		right: 17px;
		left: auto;
	}

	.fp4sa__actions {
		max-height: 220px;
	}
}

@media (max-width: 360px) {
	.fp4sa__actions {
		grid-template-columns: 1fr;
	}

	.fp4sa__form-controls {
		grid-template-columns: 1fr;
	}

	.fp4sa__review-row {
		grid-template-columns: 74px minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.fp4sa *,
	.fp4sa *::before,
	.fp4sa *::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

