.nijora-widget {
	--nijora-primary-color: #0f62fe;
	--nijora-accent-color: #00b894;
	box-sizing: border-box;
	color: #102033;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	letter-spacing: 0;
}

.nijora-widget *,
.nijora-widget *::before,
.nijora-widget *::after {
	box-sizing: inherit;
}

.nijora-widget--floating {
	bottom: 24px;
	position: fixed;
	right: 24px;
	z-index: 99999;
}

.nijora-widget--floating.nijora-widget--bottom-left {
	left: 24px;
	right: auto;
}

.nijora-widget--inline {
	max-width: 420px;
	width: 100%;
}

.nijora-launcher {
	align-items: center;
	background: var(--nijora-primary-color);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 18px 40px rgba(15, 98, 254, 0.28);
	color: #ffffff;
	cursor: pointer;
	display: flex;
	height: 60px;
	justify-content: center;
	margin-left: auto;
	width: 60px;
}

.nijora-widget--bottom-left .nijora-launcher {
	margin-left: 0;
	margin-right: auto;
}

.nijora-launcher:hover,
.nijora-launcher:focus-visible {
	filter: brightness(0.96);
	outline: 3px solid rgba(15, 98, 254, 0.22);
	outline-offset: 3px;
}

.nijora-launcher-mark {
	align-items: center;
	background: rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	display: flex;
	font-size: 22px;
	font-weight: 800;
	height: 38px;
	justify-content: center;
	width: 38px;
}

.nijora-panel {
	background: #ffffff;
	border: 1px solid rgba(16, 32, 51, 0.1);
	border-radius: 16px;
	box-shadow: 0 24px 70px rgba(16, 32, 51, 0.22);
	display: flex;
	flex-direction: column;
	margin-bottom: 14px;
	max-height: min(640px, calc(100vh - 110px));
	overflow: hidden;
	width: min(380px, calc(100vw - 32px));
}

.nijora-panel[hidden] {
	display: none;
}

.nijora-widget--inline .nijora-panel {
	box-shadow: 0 18px 48px rgba(16, 32, 51, 0.12);
	margin-bottom: 0;
	max-height: none;
	width: 100%;
}

.nijora-panel-header {
	align-items: center;
	background: linear-gradient(135deg, var(--nijora-primary-color), #163a8a);
	color: #ffffff;
	display: flex;
	gap: 12px;
	padding: 16px;
}

.nijora-avatar {
	align-items: center;
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.26);
	border-radius: 12px;
	display: flex;
	flex: 0 0 42px;
	font-size: 18px;
	font-weight: 800;
	height: 42px;
	justify-content: center;
	width: 42px;
}

.nijora-panel-title {
	min-width: 0;
}

.nijora-panel-title h2 {
	color: inherit;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.25;
	margin: 0;
}

.nijora-panel-title p {
	color: rgba(255, 255, 255, 0.82);
	font-size: 12px;
	line-height: 1.35;
	margin: 2px 0 0;
}

.nijora-close {
	align-items: center;
	background: rgba(255, 255, 255, 0.14);
	border: 0;
	border-radius: 999px;
	color: #ffffff;
	cursor: pointer;
	display: flex;
	font-size: 24px;
	height: 34px;
	justify-content: center;
	line-height: 1;
	margin-left: auto;
	width: 34px;
}

.nijora-close:hover,
.nijora-close:focus-visible {
	background: rgba(255, 255, 255, 0.22);
	outline: 2px solid rgba(255, 255, 255, 0.34);
	outline-offset: 2px;
}

.nijora-messages {
	background: #f6f8fb;
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 12px;
	min-height: 230px;
	overflow-y: auto;
	padding: 16px;
}

.nijora-message {
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.45;
	max-width: 88%;
	padding: 11px 13px;
	white-space: pre-wrap;
	word-break: break-word;
}

.nijora-message--bot {
	align-self: flex-start;
	background: #ffffff;
	border: 1px solid rgba(16, 32, 51, 0.08);
	color: #102033;
}

.nijora-message--user {
	align-self: flex-end;
	background: var(--nijora-primary-color);
	color: #ffffff;
}

.nijora-quick-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nijora-quick-action {
	background: #ffffff;
	border: 1px solid rgba(15, 98, 254, 0.18);
	border-radius: 999px;
	color: var(--nijora-primary-color);
	cursor: pointer;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	padding: 8px 10px;
	text-align: left;
}

.nijora-quick-action:hover,
.nijora-quick-action:focus-visible {
	background: rgba(15, 98, 254, 0.08);
	outline: 2px solid rgba(15, 98, 254, 0.16);
	outline-offset: 2px;
}

.nijora-composer {
	align-items: center;
	background: #ffffff;
	border-top: 1px solid rgba(16, 32, 51, 0.1);
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 12px;
}

.nijora-input {
	background: #f6f8fb;
	border: 1px solid rgba(16, 32, 51, 0.12);
	border-radius: 999px;
	color: #102033;
	flex: 1;
	font-size: 14px;
	height: 42px;
	min-width: 0;
	padding: 0 14px;
	width: 100%;
}

.nijora-input:focus {
	border-color: var(--nijora-primary-color);
	box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.12);
	outline: 0;
}

.nijora-send {
	background: var(--nijora-accent-color);
	border: 0;
	border-radius: 999px;
	color: #ffffff;
	cursor: pointer;
	font-size: 13px;
	font-weight: 800;
	height: 42px;
	padding: 0 16px;
}

.nijora-send:hover,
.nijora-send:focus-visible {
	filter: brightness(0.96);
	outline: 3px solid rgba(0, 184, 148, 0.18);
	outline-offset: 2px;
}

@media (max-width: 480px) {
	.nijora-widget--floating {
		bottom: 16px;
		right: 16px;
	}

	.nijora-widget--floating.nijora-widget--bottom-left {
		left: 16px;
	}

	.nijora-panel {
		max-height: calc(100vh - 96px);
		width: calc(100vw - 32px);
	}
}
