.sts-sa {
	--sts-sa-primary: #2d8cff;
	--sts-sa-navy: #0b1d34;
	--sts-sa-ink: #07111f;
	--sts-sa-text: #344d68;
	--sts-sa-muted: #6f8298;
	--sts-sa-soft: #edf6ff;
	--sts-sa-line: rgba(23, 48, 79, 0.14);
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 2147482000;
	box-sizing: border-box;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

.sts-sa--left {
	right: auto;
	left: 22px;
}

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

.sts-sa [hidden] {
	display: none !important;
}

.sts-sa__launcher {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 54px;
	padding: 13px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--sts-sa-primary);
	box-shadow: 0 16px 38px rgba(7, 17, 31, 0.26);
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 800;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.sts-sa__launcher:hover {
	box-shadow: 0 20px 44px rgba(7, 17, 31, 0.32);
	transform: translateY(-2px);
}

.sts-sa__launcher svg {
	width: 24px;
	height: 24px;
	flex: 0 0 auto;
}

.sts-sa__panel {
	position: absolute;
	right: 0;
	bottom: 68px;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	width: min(390px, calc(100vw - 32px));
	height: min(640px, calc(100dvh - 120px));
	min-height: 430px;
	overflow: hidden;
	border: 1px solid var(--sts-sa-line);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 28px 80px rgba(7, 17, 31, 0.3);
	color: var(--sts-sa-text);
	transform-origin: bottom right;
	animation: sts-sa-open 180ms ease-out;
}

.sts-sa--left .sts-sa__panel {
	right: auto;
	left: 0;
	transform-origin: bottom left;
}

.sts-sa__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 18px 20px;
	background: linear-gradient(135deg, var(--sts-sa-ink), var(--sts-sa-navy));
	color: #fff;
}

.sts-sa__header strong,
.sts-sa__header span {
	display: block;
}

.sts-sa__header strong {
	font-size: 16px;
	line-height: 1.25;
}

.sts-sa__header span {
	margin-top: 3px;
	color: #b8c6d8;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.sts-sa__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 25px;
	line-height: 1;
}

.sts-sa__body {
	min-height: 0;
	overflow-y: auto;
	padding: 18px;
	overscroll-behavior: contain;
}

.sts-sa__messages {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sts-sa__message {
	max-width: 92%;
	padding: 12px 14px;
	border-radius: 15px 15px 15px 4px;
	background: var(--sts-sa-soft);
	color: var(--sts-sa-text);
	font-size: 14px;
	line-height: 1.55;
}

.sts-sa__message--user {
	align-self: flex-end;
	border-radius: 15px 15px 4px 15px;
	background: var(--sts-sa-primary);
	color: #fff;
}

.sts-sa__choices {
	display: grid;
	gap: 9px;
	margin-top: 14px;
}

.sts-sa__choice,
.sts-sa__submit,
.sts-sa__cancel {
	min-height: 46px;
	padding: 11px 14px;
	border: 1px solid var(--sts-sa-line);
	border-radius: 12px;
	background: #fff;
	color: var(--sts-sa-ink);
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 750;
	line-height: 1.35;
	text-align: left;
	text-decoration: none;
	transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.sts-sa__choice:hover,
.sts-sa__choice:focus-visible,
.sts-sa__cancel:hover,
.sts-sa__cancel:focus-visible {
	border-color: var(--sts-sa-primary);
	background: var(--sts-sa-soft);
	color: var(--sts-sa-primary);
}

.sts-sa__choice--primary,
.sts-sa__submit {
	border-color: var(--sts-sa-primary);
	background: var(--sts-sa-primary);
	color: #fff;
}

.sts-sa__choice--primary:hover,
.sts-sa__choice--primary:focus-visible,
.sts-sa__submit:hover,
.sts-sa__submit:focus-visible {
	filter: brightness(0.92);
	color: #fff;
}

.sts-sa__form-wrap {
	margin-top: 4px;
}

.sts-sa__form-title {
	margin: 0 0 16px;
	color: var(--sts-sa-ink);
	font-size: 19px;
	line-height: 1.3;
}

.sts-sa__field {
	margin-bottom: 13px;
}

.sts-sa__field label {
	display: block;
	margin-bottom: 5px;
	color: var(--sts-sa-ink);
	font-size: 13px;
	font-weight: 750;
}

.sts-sa__field input,
.sts-sa__field select,
.sts-sa__field textarea {
	display: block;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 10px 11px;
	border: 1px solid #bdcad7;
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
	color: var(--sts-sa-ink);
	font: inherit;
	font-size: 16px;
}

.sts-sa__field textarea {
	min-height: 100px;
	resize: vertical;
}

.sts-sa__field input:focus,
.sts-sa__field select:focus,
.sts-sa__field textarea:focus {
	border-color: var(--sts-sa-primary);
	outline: 3px solid color-mix(in srgb, var(--sts-sa-primary) 24%, transparent);
	outline-offset: 1px;
}

.sts-sa__form-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 9px;
	margin-top: 4px;
}

.sts-sa__submit,
.sts-sa__cancel {
	text-align: center;
}

.sts-sa__submit:disabled {
	cursor: wait;
	opacity: 0.66;
}

.sts-sa__form-status {
	margin: 10px 0 0;
	color: #9c2c2c;
	font-size: 13px;
}

.sts-sa__honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
}

.sts-sa__privacy {
	padding: 10px 18px;
	border-top: 1px solid var(--sts-sa-line);
	background: #f8fbff;
	color: var(--sts-sa-muted);
	font-size: 10px;
	line-height: 1.45;
}

.sts-sa__noscript {
	display: inline-flex;
	padding: 12px 16px;
	border-radius: 999px;
	background: var(--sts-sa-primary);
	color: #fff;
	font-weight: 800;
	text-decoration: none;
}

.sts-sa button:focus-visible,
.sts-sa a:focus-visible {
	outline: 3px solid #55d8ff;
	outline-offset: 3px;
}

@keyframes sts-sa-open {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media (max-width: 600px) {
	.sts-sa {
		right: 12px;
		bottom: 12px;
		left: auto;
	}

	.sts-sa--left {
		right: auto;
		left: 12px;
	}

	.sts-sa__launcher {
		min-height: 52px;
		padding: 12px 15px;
	}

	.sts-sa__launcher span {
		display: none;
	}

	.sts-sa__panel,
	.sts-sa--left .sts-sa__panel {
		right: 0;
		bottom: 64px;
		left: auto;
		width: calc(100vw - 24px);
		height: min(650px, calc(100dvh - 88px));
		min-height: 360px;
		border-radius: 18px;
		transform-origin: bottom right;
	}

	.sts-sa--left .sts-sa__panel {
		right: auto;
		left: 0;
		transform-origin: bottom left;
	}

	.sts-sa__body {
		padding: 15px;
	}

	.sts-sa__header {
		padding: 15px 16px;
	}

	.sts-sa__choice,
	.sts-sa__submit,
	.sts-sa__cancel {
		min-height: 48px;
	}
}

@media (max-width: 370px) {
	.sts-sa__form-actions {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sts-sa__panel {
		animation: none;
	}

	.sts-sa__launcher,
	.sts-sa__choice,
	.sts-sa__submit,
	.sts-sa__cancel {
		transition: none;
	}
}

