.nijora-chatbot,
.nijora-chatbot * {
	box-sizing: border-box;
}

.nijora-chatbot {
	--nijora-primary-color: #ff7a18;
	--nijora-primary-soft: rgba(255, 122, 24, 0.14);
	--nijora-navy-950: #071225;
	--nijora-navy-900: #0b1830;
	--nijora-navy-850: #0e203d;
	--nijora-navy-800: #132b4c;
	--nijora-line: rgba(148, 163, 184, 0.22);
	--nijora-text: #f8fafc;
	--nijora-muted: #aab8cf;
	--nijora-panel-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
	position: fixed;
	z-index: 99999;
	bottom: 24px;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--nijora-text);
	letter-spacing: 0;
}

.nijora-position-bottom-right {
	right: 24px;
}

.nijora-position-bottom-left {
	left: 24px;
}

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

.nijora-chat-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--nijora-primary-color), #ffb13d);
	color: #071225;
	box-shadow: 0 18px 38px rgba(255, 122, 24, 0.34), 0 10px 28px rgba(0, 0, 0, 0.28);
	cursor: pointer;
	transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.nijora-chat-toggle:hover,
.nijora-chat-toggle:focus-visible {
	transform: translateY(-2px);
	filter: saturate(1.08);
	box-shadow: 0 22px 48px rgba(255, 122, 24, 0.42), 0 12px 32px rgba(0, 0, 0, 0.32);
	outline: none;
}

.nijora-chat-toggle:focus-visible {
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18), 0 0 0 8px rgba(255, 122, 24, 0.28);
}

.nijora-toggle-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
}

.nijora-toggle-svg {
	display: block;
}

.nijora-chat-window {
	position: absolute;
	right: 0;
	bottom: 84px;
	display: flex;
	flex-direction: column;
	width: min(390px, calc(100vw - 32px));
	height: min(640px, calc(100vh - 120px));
	overflow: hidden;
	border: 1px solid var(--nijora-line);
	border-radius: 20px;
	background:
		linear-gradient(180deg, rgba(255, 122, 24, 0.08), rgba(255, 122, 24, 0) 30%),
		var(--nijora-navy-950);
	box-shadow: var(--nijora-panel-shadow);
}

.nijora-position-bottom-left .nijora-chat-window {
	right: auto;
	left: 0;
}

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

.nijora-chat-header {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 78px;
	padding: 16px;
	border-bottom: 1px solid var(--nijora-line);
	background: linear-gradient(135deg, #08172e, #0f2748);
}

.nijora-bot-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 12px;
	background: linear-gradient(135deg, var(--nijora-primary-color), #ffb13d);
	color: #071225;
	font-size: 18px;
	font-weight: 800;
	line-height: 1;
}

.nijora-header-copy {
	min-width: 0;
	flex: 1 1 auto;
}

.nijora-header-actions {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.nijora-bot-name {
	margin: 0;
	color: var(--nijora-text);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.25;
}

.nijora-bot-subtitle {
	margin: 2px 0 0;
	color: var(--nijora-muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
}

.nijora-clear-button,
.nijora-close-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	height: 34px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--nijora-text);
	cursor: pointer;
	transition: background 160ms ease, border-color 160ms ease;
}

.nijora-clear-button {
	min-width: 54px;
	padding: 0 10px;
	color: #ffe6cf;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
}

.nijora-close-button {
	width: 34px;
	font-size: 24px;
	line-height: 1;
}

.nijora-clear-button:hover,
.nijora-clear-button:focus-visible,
.nijora-close-button:hover,
.nijora-close-button:focus-visible {
	border-color: rgba(255, 122, 24, 0.5);
	background: rgba(255, 122, 24, 0.14);
	outline: none;
}

.nijora-chat-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 14px;
	min-height: 0;
	padding: 16px;
	overflow-y: auto;
	background:
		radial-gradient(circle at top right, rgba(255, 122, 24, 0.1), transparent 30%),
		linear-gradient(180deg, var(--nijora-navy-900), var(--nijora-navy-950));
	scrollbar-color: rgba(255, 122, 24, 0.48) rgba(255, 255, 255, 0.08);
	scrollbar-width: thin;
}

.nijora-chat-body::-webkit-scrollbar {
	width: 10px;
}

.nijora-chat-body::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.06);
}

.nijora-chat-body::-webkit-scrollbar-thumb {
	border: 2px solid transparent;
	border-radius: 999px;
	background: rgba(255, 122, 24, 0.55);
	background-clip: content-box;
}

.nijora-welcome {
	padding: 16px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.045);
}

.nijora-welcome.is-hidden {
	display: none;
}

.nijora-welcome-message {
	margin: 0 0 14px;
	color: var(--nijora-text);
	font-size: 14px;
	line-height: 1.55;
}

.nijora-support-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 0 0 12px;
}

.nijora-support-actions:empty {
	display: none;
}

.nijora-support-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 8px 10px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.07);
	color: var(--nijora-text);
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	overflow-wrap: anywhere;
	transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nijora-support-chip:hover,
.nijora-support-chip:focus-visible {
	border-color: rgba(255, 122, 24, 0.68);
	background: rgba(255, 122, 24, 0.16);
	color: #ffffff;
	outline: none;
}

.nijora-quick-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.nijora-quick-actions:empty {
	display: none;
}

.nijora-quick-button {
	min-height: 38px;
	padding: 9px 10px;
	border: 1px solid rgba(255, 122, 24, 0.36);
	border-radius: 10px;
	background: var(--nijora-primary-soft);
	color: #ffe6cf;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	text-align: left;
	cursor: pointer;
	transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nijora-quick-button:hover,
.nijora-quick-button:focus-visible {
	border-color: rgba(255, 177, 61, 0.8);
	background: rgba(255, 122, 24, 0.22);
	color: #ffffff;
	outline: none;
}

.nijora-messages {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.nijora-message {
	display: flex;
	flex-direction: column;
	gap: 5px;
	max-width: 88%;
}

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

.nijora-message-assistant {
	align-self: flex-start;
	align-items: flex-start;
}

.nijora-message-author {
	color: var(--nijora-muted);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
}

.nijora-message-bubble {
	max-width: 100%;
	min-width: 0;
	padding: 11px 13px;
	border-radius: 15px;
	font-size: 14px;
	line-height: 1.62;
	overflow-wrap: anywhere;
}

.nijora-message-user .nijora-message-bubble {
	border-bottom-right-radius: 5px;
	background: linear-gradient(135deg, var(--nijora-primary-color), #ffb13d);
	color: #071225;
	font-weight: 650;
	white-space: pre-wrap;
}

.nijora-message-assistant .nijora-message-bubble {
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-bottom-left-radius: 5px;
	background: var(--nijora-navy-800);
	color: var(--nijora-text);
	white-space: normal;
}

.nijora-message-assistant .nijora-message-bubble > :first-child {
	margin-top: 0;
}

.nijora-message-assistant .nijora-message-bubble > :last-child {
	margin-bottom: 0;
}

.nijora-message-assistant .nijora-message-bubble p {
	margin: 0 0 10px;
}

.nijora-message-assistant .nijora-message-bubble ul,
.nijora-message-assistant .nijora-message-bubble ol {
	margin: 8px 0 12px 20px;
	padding: 0;
}

.nijora-message-assistant .nijora-message-bubble li {
	margin: 5px 0;
	padding-left: 2px;
}

.nijora-message-assistant .nijora-message-bubble a {
	color: #ffb13d;
	font-weight: 750;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	overflow-wrap: anywhere;
}

.nijora-message-assistant .nijora-message-bubble a:hover,
.nijora-message-assistant .nijora-message-bubble a:focus-visible {
	color: #ffd19a;
	outline: none;
}

.nijora-message-assistant .nijora-message-bubble code {
	display: inline;
	padding: 2px 5px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 6px;
	background: rgba(4, 10, 22, 0.72);
	color: #ffd19a;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
	font-size: 0.92em;
	line-height: 1.4;
	white-space: break-spaces;
}

.nijora-message-assistant .nijora-message-bubble pre {
	max-width: 100%;
	margin: 10px 0 12px;
	padding: 12px;
	overflow-x: auto;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	background: #071225;
	color: var(--nijora-text);
	white-space: pre;
}

.nijora-message-assistant .nijora-message-bubble pre code {
	display: block;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #dbeafe;
	font-size: 12px;
	line-height: 1.55;
	white-space: pre;
}

.nijora-message-typing .nijora-message-bubble {
	color: var(--nijora-muted);
	font-style: italic;
}

.nijora-lead-cta {
	align-self: flex-start;
	width: min(100%, 330px);
	padding: 12px;
	border: 1px solid rgba(255, 122, 24, 0.34);
	border-radius: 14px;
	background: rgba(255, 122, 24, 0.1);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.nijora-lead-cta-text {
	margin: 0 0 10px;
	color: var(--nijora-text);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.35;
}

.nijora-lead-cta-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.nijora-lead-cta-button {
	min-height: 36px;
	padding: 8px 10px;
	border: 1px solid rgba(255, 122, 24, 0.48);
	border-radius: 10px;
	background: rgba(255, 122, 24, 0.18);
	color: #ffe6cf;
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
	cursor: pointer;
	transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nijora-lead-cta-button:hover,
.nijora-lead-cta-button:focus-visible {
	border-color: rgba(255, 177, 61, 0.82);
	background: rgba(255, 122, 24, 0.28);
	color: #ffffff;
	outline: none;
}

.nijora-lead-panel {
	width: 100%;
	padding: 14px;
	border: 1px solid rgba(255, 122, 24, 0.28);
	border-radius: 16px;
	background:
		linear-gradient(180deg, rgba(255, 122, 24, 0.12), rgba(255, 122, 24, 0.04)),
		#0b1830;
}

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

.nijora-lead-panel-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 12px;
}

.nijora-lead-panel-header h3 {
	margin: 0;
	color: var(--nijora-text);
	font-size: 15px;
	font-weight: 850;
	line-height: 1.25;
}

.nijora-lead-panel-header p {
	margin: 3px 0 0;
	color: var(--nijora-muted);
	font-size: 12px;
	line-height: 1.4;
}

.nijora-lead-panel-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--nijora-text);
	font: inherit;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.nijora-lead-panel-close:hover,
.nijora-lead-panel-close:focus-visible {
	border-color: rgba(255, 122, 24, 0.58);
	background: rgba(255, 122, 24, 0.16);
	outline: none;
}

.nijora-lead-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.nijora-lead-field {
	min-width: 0;
}

.nijora-lead-field-full {
	grid-column: 1 / -1;
}

.nijora-lead-field label {
	display: block;
	margin: 0 0 5px;
	color: #dbeafe;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.25;
}

.nijora-lead-field input,
.nijora-lead-field select,
.nijora-lead-field textarea {
	display: block;
	width: 100%;
	margin: 0;
	padding: 10px 11px;
	border: 1px solid rgba(148, 163, 184, 0.28);
	border-radius: 10px;
	background: #0d1b33;
	color: var(--nijora-text);
	font: inherit;
	font-size: 13px;
	line-height: 1.3;
	outline: none;
	transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nijora-lead-field select {
	appearance: auto;
}

.nijora-lead-field textarea {
	min-height: 82px;
	resize: vertical;
}

.nijora-lead-field input:focus,
.nijora-lead-field select:focus,
.nijora-lead-field textarea:focus {
	border-color: rgba(255, 122, 24, 0.78);
	background: #10213e;
	box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.14);
}

.nijora-lead-field input.is-invalid,
.nijora-lead-field select.is-invalid,
.nijora-lead-field textarea.is-invalid {
	border-color: rgba(248, 113, 113, 0.9);
	box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.14);
}

.nijora-lead-error {
	display: block;
	min-height: 15px;
	margin-top: 4px;
	color: #fecaca;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.25;
}

.nijora-lead-requirement-note {
	margin: 4px 0 0;
	color: var(--nijora-muted);
	font-size: 11px;
	line-height: 1.35;
}

.nijora-lead-form-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 12px;
}

.nijora-lead-cancel,
.nijora-lead-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 9px 12px;
	border-radius: 10px;
	font: inherit;
	font-size: 12px;
	font-weight: 850;
	line-height: 1.1;
	cursor: pointer;
	transition: background 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.nijora-lead-cancel {
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.06);
	color: var(--nijora-text);
}

.nijora-lead-submit {
	border: 0;
	background: linear-gradient(135deg, var(--nijora-primary-color), #ffb13d);
	color: #071225;
}

.nijora-lead-cancel:hover,
.nijora-lead-cancel:focus-visible {
	border-color: rgba(255, 122, 24, 0.58);
	background: rgba(255, 122, 24, 0.16);
	outline: none;
}

.nijora-lead-submit:hover,
.nijora-lead-submit:focus-visible {
	filter: saturate(1.08);
	outline: none;
}

.nijora-lead-submit:disabled,
.nijora-lead-cancel:disabled {
	cursor: not-allowed;
	opacity: 0.62;
}

.nijora-lead-success {
	margin: 12px 0 0;
	padding: 10px 11px;
	border: 1px solid rgba(74, 222, 128, 0.38);
	border-radius: 10px;
	background: rgba(34, 197, 94, 0.13);
	color: #dcfce7;
	font-size: 12px;
	font-weight: 750;
	line-height: 1.45;
}

.nijora-lead-success.is-error {
	border-color: rgba(248, 113, 113, 0.42);
	background: rgba(248, 113, 113, 0.13);
	color: #fecaca;
}

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

.nijora-lead-form.is-complete .nijora-lead-grid,
.nijora-lead-form.is-complete .nijora-lead-requirement-note,
.nijora-lead-form.is-complete .nijora-lead-form-actions {
	display: none;
}

.nijora-chat-form {
	display: flex;
	align-items: flex-end;
	gap: 10px;
	padding: 13px;
	border-top: 1px solid var(--nijora-line);
	background: #071225;
}

.nijora-chat-input {
	display: block;
	flex: 1 1 auto;
	width: 100%;
	min-height: 44px;
	max-height: 116px;
	margin: 0;
	padding: 12px 13px;
	resize: none;
	border: 1px solid rgba(148, 163, 184, 0.3);
	border-radius: 12px;
	background: #0d1b33;
	color: var(--nijora-text);
	font: inherit;
	font-size: 14px;
	line-height: 1.35;
	outline: none;
	transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nijora-chat-input::placeholder {
	color: rgba(170, 184, 207, 0.74);
}

.nijora-chat-input:focus {
	border-color: rgba(255, 122, 24, 0.78);
	background: #10213e;
	box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.16);
}

.nijora-send-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 72px;
	height: 44px;
	padding: 0 15px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--nijora-primary-color), #ffb13d);
	color: #071225;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.nijora-send-button:hover,
.nijora-send-button:focus-visible {
	transform: translateY(-1px);
	filter: saturate(1.08);
	outline: none;
}

.nijora-send-button:disabled {
	cursor: not-allowed;
	opacity: 0.6;
	transform: none;
}

.nijora-status {
	min-height: 18px;
	margin: 0;
	padding: 0 14px 12px;
	background: #071225;
	color: var(--nijora-muted);
	font-size: 12px;
	line-height: 1.4;
}

@media (max-width: 600px) {
	.nijora-chatbot {
		right: 12px;
		left: 12px;
		bottom: 12px;
	}

	.nijora-position-bottom-right,
	.nijora-position-bottom-left {
		right: 12px;
		left: 12px;
	}

	.nijora-chat-toggle {
		width: 58px;
		height: 58px;
		margin-left: auto;
	}

	.nijora-position-bottom-left .nijora-chat-toggle {
		margin-right: auto;
		margin-left: 0;
	}

	.nijora-chat-window,
	.nijora-position-bottom-left .nijora-chat-window {
		right: 0;
		left: 0;
		width: 100%;
		height: min(620px, calc(100vh - 88px));
		bottom: 74px;
		border-radius: 18px;
	}

	.nijora-chat-header {
		min-height: 72px;
		padding: 14px;
		gap: 10px;
	}

	.nijora-clear-button {
		min-width: 48px;
		padding: 0 8px;
	}

	.nijora-chat-body {
		padding: 13px;
	}

	.nijora-welcome {
		padding: 14px;
	}

	.nijora-support-actions,
	.nijora-quick-actions,
	.nijora-lead-cta-actions,
	.nijora-lead-grid {
		grid-template-columns: 1fr;
	}

	.nijora-lead-panel {
		padding: 12px;
	}

	.nijora-lead-form-actions {
		align-items: stretch;
		flex-direction: column-reverse;
	}

	.nijora-message {
		max-width: 92%;
	}

	.nijora-chat-form {
		padding: 11px;
	}

	.nijora-send-button {
		min-width: 64px;
		padding: 0 12px;
	}
}
