.sotnas-assistente,
.sotnas-assistente * {
	box-sizing: border-box;
}

.sotnas-assistente {
	--sd-chat-accent: #dd3333;
	--sd-chat-ink: #242424;
	--sd-chat-muted: #6b6b6b;
	--sd-chat-border: #e7e7e7;
	--sd-chat-paper: #fff;
	font-family: inherit;
	position: fixed;
	bottom: var(--sa-bottom-desktop, 90px);
	z-index: 99999;
}

.sotnas-assistente--right {
	right: 24px;
	left: auto;
}

.sotnas-assistente--left {
	left: 24px;
	right: auto;
}

.sotnas-assistente button,
.sotnas-assistente input {
	font: inherit;
}

.sotnas-assistente__launcher {
	align-items: center;
	background: var(--sd-chat-accent);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 8px 26px rgba(0, 0, 0, .24);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-size: 15px;
	font-weight: 600;
	gap: 9px;
	min-height: 54px;
	padding: 0 20px;
	transition: transform .18s ease, box-shadow .18s ease;
}

.sotnas-assistente__launcher:hover,
.sotnas-assistente__launcher:focus-visible {
	box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
	transform: translateY(-2px);
}

.sotnas-assistente__launcher-icon {
	align-items: center;
	display: inline-flex;
	flex: 0 0 auto;
	justify-content: center;
	line-height: 1;
	width: 20px;
}

.sotnas-assistente__launcher-icon svg {
	fill: none;
	height: 20px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
	width: 20px;
}

.sotnas-assistente__panel {
	background: var(--sd-chat-paper);
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 16px;
	box-shadow: 0 14px 50px rgba(0, 0, 0, .22);
	color: var(--sd-chat-ink);
	display: flex;
	flex-direction: column;
	height: min(660px, calc(100vh - 44px));
	max-height: 660px;
	overflow: hidden;
	position: absolute;
	right: 0;
	bottom: 0;
	width: min(390px, calc(100vw - 32px));
}

.sotnas-assistente__panel[hidden],
.sotnas-assistente__launcher[hidden],
.sotnas-assistente__input-row[hidden] {
	display: none !important;
}

.sotnas-assistente__header {
	align-items: center;
	background: #222;
	color: #fff;
	display: flex;
	justify-content: space-between;
	min-height: 67px;
	padding: 12px 16px;
}

.sotnas-assistente__header div {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.sotnas-assistente__header strong {
	font-size: 16px;
	letter-spacing: .02em;
}

.sotnas-assistente__header span {
	color: rgba(255, 255, 255, .72);
	font-size: 12px;
}

.sotnas-assistente__close {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-size: 28px;
	height: 38px;
	justify-content: center;
	line-height: 1;
	width: 38px;
}

.sotnas-assistente__close:hover,
.sotnas-assistente__close:focus-visible {
	background: rgba(255, 255, 255, .12);
}

.sotnas-assistente__messages {
	background: #f7f7f7;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 10px;
	min-height: 0;
	overflow-y: auto;
	padding: 16px 14px 12px;
}

.sotnas-assistente__message {
	border-radius: 13px;
	font-size: 14px;
	line-height: 1.48;
	max-width: 88%;
	padding: 10px 12px;
	white-space: pre-wrap;
	word-break: break-word;
}

.sotnas-assistente__message--bot {
	align-self: flex-start;
	background: #fff;
	border: 1px solid var(--sd-chat-border);
}

.sotnas-assistente__message--user {
	align-self: flex-end;
	background: var(--sd-chat-accent);
	color: #fff;
}

.sotnas-assistente__message--summary {
	align-self: flex-start;
	background: #fff;
	border: 1px solid #e2baba;
	font-size: 13px;
	max-width: 100%;
}

.sotnas-assistente__choices {
	background: #f7f7f7;
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	gap: 7px;
	max-height: 155px;
	overflow-y: auto;
	padding: 0 14px 12px;
}

.sotnas-assistente__choice {
	background: #fff;
	border: 1px solid #d5d5d5;
	border-radius: 999px;
	color: var(--sd-chat-ink);
	cursor: pointer;
	font-size: 12px;
	line-height: 1.35;
	max-width: 100%;
	padding: 8px 11px;
	text-align: left;
	transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.sotnas-assistente__choice:hover,
.sotnas-assistente__choice:focus-visible {
	background: #fff5f5;
	border-color: var(--sd-chat-accent);
	color: #9e1515;
}

.sotnas-assistente__input-row {
	background: #fff;
	border-top: 1px solid var(--sd-chat-border);
	display: flex;
	flex: 0 0 auto;
	gap: 8px;
	padding: 11px 12px;
}

.sotnas-assistente__input-row input {
	background: #fff;
	border: 1px solid #d4d4d4;
	border-radius: 8px;
	color: #222;
	flex: 1 1 auto;
	font-size: 14px;
	min-width: 0;
	padding: 10px 11px;
}

.sotnas-assistente__input-row input:focus {
	border-color: var(--sd-chat-accent);
	box-shadow: 0 0 0 2px rgba(221, 51, 51, .12);
	outline: none;
}

.sotnas-assistente__input-row button {
	background: var(--sd-chat-accent);
	border: 0;
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	padding: 0 14px;
}

.sotnas-assistente__footer {
	background: #fff;
	border-top: 1px solid #f0f0f0;
	color: var(--sd-chat-muted);
	font-size: 10px;
	line-height: 1.4;
	padding: 8px 12px 10px;
}

.sotnas-assistente__footer a {
	color: #8f1717;
	text-decoration: underline;
}

.sotnas-assistente button:focus-visible,
.sotnas-assistente a:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}

@media (max-width: 520px) {
	.sotnas-assistente {
		bottom: var(--sa-bottom-mobile, 82px);
	}

	.sotnas-assistente--right {
		right: 12px;
		left: auto;
	}

	.sotnas-assistente--left {
		left: 12px;
		right: auto;
	}

	.sotnas-assistente__panel {
		border-radius: 14px;
		height: min(620px, calc(100dvh - 24px));
		width: calc(100vw - 24px);
	}

	.sotnas-assistente__launcher {
		align-items: center;
		border-radius: 50%;
		height: 50px;
		min-height: 50px;
		justify-content: center;
		padding: 0;
		width: 50px;
	}

	.sotnas-assistente__launcher-label {
		display: none;
	}

	.sotnas-assistente__launcher-icon,
	.sotnas-assistente__launcher-icon svg {
		height: 23px;
		width: 23px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sotnas-assistente *,
	.sotnas-assistente *::before,
	.sotnas-assistente *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}
