.komimport-ai-chat {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 2147483000;
	font-family: Arial, sans-serif;
	color: #1f2933;
}

.komimport-ai-chat * {
	box-sizing: border-box;
}

.komimport-ai-chat__toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 18px;
	border: 0;
	border-radius: 8px;
	background: #0b75b7;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	box-shadow: 0 8px 24px rgba(11, 117, 183, .28);
	cursor: pointer;
}

.komimport-ai-chat__toggle-icon {
	width: 20px;
	height: 20px;
	border: 2px solid currentColor;
	border-radius: 6px;
	position: relative;
}

.komimport-ai-chat__toggle-icon:after {
	content: "";
	position: absolute;
	left: 3px;
	bottom: -6px;
	width: 8px;
	height: 8px;
	border-left: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	background: #0b75b7;
	transform: rotate(-20deg);
}

.komimport-ai-chat__panel {
	display: none;
	width: min(380px, calc(100vw - 24px));
	height: min(540px, calc(100vh - 40px));
	min-width: 320px;
	min-height: 360px;
	max-width: calc(100vw - 24px);
	max-height: calc(100vh - 40px);
	position: relative;
	background: #fff;
	border: 1px solid #d6e1ea;
	border-radius: 8px;
	box-shadow: 0 18px 60px rgba(16, 42, 67, .28);
	overflow: hidden;
}

.komimport-ai-chat.is-open .komimport-ai-chat__toggle {
	display: none;
}

.komimport-ai-chat.is-open .komimport-ai-chat__panel {
	display: flex;
	flex-direction: column;
}

.komimport-ai-chat.is-resizing,
.komimport-ai-chat.is-resizing * {
	user-select: none;
}

.komimport-ai-chat__resize {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 4;
	width: 22px;
	height: 22px;
	border: 0;
	border-radius: 8px 0 6px 0;
	background: rgba(255, 255, 255, .12);
	cursor: nwse-resize;
	touch-action: none;
}

.komimport-ai-chat__resize:before,
.komimport-ai-chat__resize:after {
	content: "";
	position: absolute;
	left: 6px;
	top: 6px;
	border-top: 2px solid rgba(255, 255, 255, .75);
	border-left: 2px solid rgba(255, 255, 255, .75);
}

.komimport-ai-chat__resize:before {
	width: 10px;
	height: 10px;
}

.komimport-ai-chat__resize:after {
	width: 5px;
	height: 5px;
}

.komimport-ai-chat__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	min-height: 96px;
	padding: 12px 14px;
	background: #123b5d;
	color: #fff;
}

.komimport-ai-chat__heading {
	min-width: 112px;
	flex: 0 1 130px;
	order: 1;
}

.komimport-ai-chat__title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
}

.komimport-ai-chat__subtitle {
	margin-top: 2px;
	font-size: 12px;
	color: rgba(255, 255, 255, .78);
	line-height: 1.25;
}

.komimport-ai-chat__mode-switch {
	order: 3;
	display: inline-flex;
	align-items: center;
	gap: 2px;
	min-width: 0;
	flex: 1 0 100%;
	padding: 3px;
	border-radius: 7px;
	background: rgba(255, 255, 255, .12);
}

.komimport-ai-chat__mode-button {
	min-width: 0;
	flex: 1 1 0;
	min-height: 30px;
	padding: 0 8px;
	border: 0;
	border-radius: 5px;
	background: transparent;
	color: rgba(255, 255, 255, .82);
	font-size: 11px;
	font-weight: 800;
	line-height: 1.15;
	text-align: center;
	cursor: pointer;
	overflow-wrap: anywhere;
}

.komimport-ai-chat__mode-button:hover,
.komimport-ai-chat__mode-button:focus {
	background: rgba(255, 255, 255, .12);
	color: #fff;
	outline: none;
}

.komimport-ai-chat__mode-button.is-active {
	background: #fff;
	color: #123b5d;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}

.komimport-ai-chat__header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	order: 2;
	margin-left: auto;
}

.komimport-ai-chat__order-open {
	min-height: 34px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 0 10px;
	border: 0;
	border-radius: 6px;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.komimport-ai-chat__order-open:hover,
.komimport-ai-chat__order-open:focus {
	background: rgba(255, 255, 255, .22);
	outline: none;
}

.komimport-ai-chat__clear-dialog {
	min-height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 10px;
	border: 0;
	border-radius: 6px;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.komimport-ai-chat__clear-dialog:hover,
.komimport-ai-chat__clear-dialog:focus {
	background: rgba(255, 255, 255, .22);
	outline: none;
}

.komimport-ai-chat__order-open-count {
	min-width: 20px;
	height: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 6px;
	border-radius: 999px;
	background: #ffc400;
	color: #17202a;
	font-size: 12px;
	font-weight: 800;
}

.komimport-ai-chat__order-open.is-empty .komimport-ai-chat__order-open-count {
	background: rgba(255, 255, 255, .22);
	color: #fff;
}

.komimport-ai-chat__close {
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 6px;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.komimport-ai-chat__messages {
	flex: 1;
	padding: 14px;
	overflow: auto;
	background: #f6f9fc;
}

.komimport-ai-chat__message {
	max-width: 88%;
	margin: 0 0 10px;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.42;
	white-space: pre-wrap;
}

.komimport-ai-chat__message-line,
.komimport-ai-chat__section-title {
	overflow-wrap: anywhere;
}

.komimport-ai-chat__message-line--serial {
	color: #c62828;
	font-weight: 800;
}

.komimport-ai-chat__message-time {
	display: block;
	margin-top: 7px;
	color: #7b8da0;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	text-align: right;
	white-space: nowrap;
}

.komimport-ai-chat__message--user .komimport-ai-chat__message-time {
	color: rgba(255, 255, 255, .78);
}

.komimport-ai-chat__message--error .komimport-ai-chat__message-time {
	color: #b8584d;
}

.komimport-ai-chat__chat-captcha {
	min-height: 78px;
	margin-top: 10px;
	overflow: hidden;
}

.komimport-ai-chat__serial-quick {
	display: flex;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 8px;
	padding: 8px 9px;
	border: 1px solid #f1b5b5;
	border-radius: 7px;
	background: #fff5f5;
}

.komimport-ai-chat__serial-quick-field {
	display: flex;
	flex: 1 1 130px;
	min-width: 120px;
	flex-direction: column;
	gap: 4px;
}

.komimport-ai-chat__serial-quick-label {
	min-width: 0;
	color: #c62828;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.25;
}

.komimport-ai-chat__serial-quick-input {
	width: 100%;
	min-width: 86px;
	height: 30px;
	padding: 0 8px;
	border: 1px solid #d98989;
	border-radius: 6px;
	background: #fff;
	color: #1f2933;
	font: inherit;
	font-size: 13px;
}

.komimport-ai-chat__serial-quick-button {
	flex: 0 0 auto;
	height: 30px;
	padding: 0 8px;
	border: 0;
	border-radius: 6px;
	background: #c62828;
	color: #fff;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.komimport-ai-chat__serial-quick-button:hover,
.komimport-ai-chat__serial-quick-button:focus {
	background: #a91f1f;
}

.komimport-ai-chat__catalog-number {
	display: inline;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #0b75b7;
	font: inherit;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.komimport-ai-chat__catalog-number:hover,
.komimport-ai-chat__catalog-number:focus {
	color: #084f7c;
	outline: none;
}

.komimport-ai-chat__model-choice {
	display: block;
	width: 100%;
	margin: 5px 0;
	padding: 8px 10px;
	border: 1px solid #b7d1e5;
	border-radius: 6px;
	background: #f4f9fd;
	color: #123b5d;
	font: inherit;
	font-weight: 700;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
	overflow-wrap: anywhere;
}

.komimport-ai-chat__model-choice:hover,
.komimport-ai-chat__model-choice:focus {
	border-color: #0b75b7;
	background: #eaf5fd;
	outline: none;
}

.komimport-ai-chat__section-title {
	margin-top: 8px;
	font-weight: 700;
}

.komimport-ai-chat__section-title:first-child {
	margin-top: 0;
}

.komimport-ai-chat__message--bot {
	background: #fff;
	border: 1px solid #dbe6ee;
	color: #1f2933;
}

.komimport-ai-chat__message--user {
	margin-left: auto;
	background: #0b75b7;
	color: #fff;
}

.komimport-ai-chat__message--error {
	background: #fff4f2;
	border-color: #f2b8ad;
	color: #9b1c10;
}

.komimport-ai-chat__link {
	display: block;
	margin-top: 8px;
	color: #0b75b7;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.komimport-ai-chat__form {
	display: flex;
	gap: 8px;
	padding: 10px;
	border-top: 1px solid #d6e1ea;
	background: #fff;
}

.komimport-ai-chat__input {
	flex: 1;
	min-width: 0;
	height: 40px;
	border: 1px solid #b7c7d4;
	border-radius: 6px;
	padding: 0 11px;
	font-size: 14px;
	outline: none;
}

.komimport-ai-chat__input:focus {
	border-color: #0b75b7;
	box-shadow: 0 0 0 2px rgba(11, 117, 183, .14);
}

.komimport-ai-chat__send {
	width: 44px;
	height: 40px;
	border: 0;
	border-radius: 6px;
	background: #ffc400;
	color: #17202a;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
}

.komimport-ai-chat__send:disabled,
.komimport-ai-chat__input:disabled {
	opacity: .55;
	cursor: wait;
}

.komimport-ai-chat__catalog-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 2147483002;
	padding: 18px;
	background: rgba(11, 31, 51, .48);
	align-items: center;
	justify-content: center;
	font-family: Arial, sans-serif;
	color: #1f2933;
}

.komimport-ai-chat__catalog-modal.is-open {
	display: flex;
}

.komimport-ai-chat__catalog-dialog {
	width: min(1180px, calc(100vw - 28px));
	height: min(760px, calc(100vh - 28px));
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 20px 70px rgba(0, 0, 0, .34);
}

.komimport-ai-chat__catalog-header {
	min-height: 50px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px 10px 16px;
	background: #123b5d;
	color: #fff;
}

.komimport-ai-chat__catalog-heading {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.komimport-ai-chat__catalog-title {
	min-width: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.komimport-ai-chat__catalog-kpart-link {
	width: max-content;
	max-width: 100%;
	color: #dbeafe;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: underline;
	text-underline-offset: 2px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.komimport-ai-chat__catalog-kpart-link:hover {
	color: #fff;
}

.komimport-ai-chat__catalog-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.komimport-ai-chat__catalog-save {
	min-height: 34px;
	padding: 0 12px;
	border: 0;
	border-radius: 6px;
	background: #ffc400;
	color: #17202a;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
}

.komimport-ai-chat__catalog-save:hover,
.komimport-ai-chat__catalog-save:focus {
	background: #ffd84d;
	outline: none;
}

.komimport-ai-chat__catalog-save-status {
	min-width: 76px;
	color: #b8f7c5;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-align: right;
}

.komimport-ai-chat__catalog-close {
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 6px;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	flex: 0 0 auto;
}

.komimport-ai-chat__catalog-body {
	flex: 1;
	min-height: 0;
	display: grid;
	grid-template-columns: minmax(210px, 250px) minmax(260px, 38%) minmax(440px, 1fr);
	background: #f4f7fa;
}

.komimport-ai-chat__catalog-nav-wrap,
.komimport-ai-chat__catalog-image-wrap,
.komimport-ai-chat__catalog-list-wrap {
	min-width: 0;
	min-height: 0;
	overflow: auto;
}

.komimport-ai-chat__catalog-nav-wrap {
	padding: 10px 8px;
	background: #f8fbfd;
	border-right: 1px solid #d6e1ea;
	overscroll-behavior: contain;
}

.komimport-ai-chat__catalog-nav-title {
	position: sticky;
	top: 0;
	z-index: 1;
	margin: -10px -8px 8px;
	padding: 10px 10px 8px;
	background: #f8fbfd;
	border-bottom: 1px solid #dce8f0;
	color: #243b53;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
}

.komimport-ai-chat__catalog-nav-empty {
	padding: 8px 4px;
	color: #60758a;
	font-size: 12px;
	line-height: 1.35;
}

.komimport-ai-chat__catalog-nav-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.komimport-ai-chat__catalog-nav-node {
	margin: 1px 0;
	padding: 0;
}

.komimport-ai-chat__catalog-nav-row {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	align-items: start;
	gap: 2px;
	padding-left: calc(var(--level, 0) * 10px);
}

.komimport-ai-chat__catalog-nav-toggle,
.komimport-ai-chat__catalog-nav-link {
	border: 0;
	background: transparent;
	font-family: Arial, sans-serif;
	cursor: pointer;
}

.komimport-ai-chat__catalog-nav-toggle {
	width: 22px;
	height: 26px;
	padding: 0;
	color: #526b80;
	font-size: 12px;
	line-height: 26px;
	text-align: center;
}

.komimport-ai-chat__catalog-nav-toggle:disabled {
	cursor: default;
	opacity: .28;
}

.komimport-ai-chat__catalog-nav-link {
	width: 100%;
	min-height: 26px;
	box-sizing: border-box;
	padding: 5px 6px;
	border-radius: 4px;
	color: #25384a;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.25;
	text-align: left;
	white-space: normal;
	overflow-wrap: anywhere;
}

.komimport-ai-chat__catalog-nav-node.has-children > .komimport-ai-chat__catalog-nav-row .komimport-ai-chat__catalog-nav-link {
	font-weight: 800;
}

.komimport-ai-chat__catalog-nav-node.is-folder > .komimport-ai-chat__catalog-nav-row .komimport-ai-chat__catalog-nav-link {
	color: #163a59;
}

.komimport-ai-chat__catalog-nav-node.is-engine-book > .komimport-ai-chat__catalog-nav-row .komimport-ai-chat__catalog-nav-link {
	color: #0f4f63;
}

.komimport-ai-chat__catalog-nav-node.has-children.is-expanded > .komimport-ai-chat__catalog-nav-row .komimport-ai-chat__catalog-nav-link {
	background: #eef6fc;
}

.komimport-ai-chat__catalog-nav-link:hover,
.komimport-ai-chat__catalog-nav-link:focus {
	background: #e8f2fb;
	outline: none;
}

.komimport-ai-chat__catalog-nav-node.is-current > .komimport-ai-chat__catalog-nav-row .komimport-ai-chat__catalog-nav-link {
	background: #d9f4e5;
	color: #0f3d2e;
	box-shadow: inset 3px 0 0 #2f9e44;
	font-weight: 800;
}

.komimport-ai-chat__catalog-image-wrap {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	padding: 12px;
	background: #fff;
	border-right: 1px solid #d6e1ea;
	cursor: grab;
	overscroll-behavior: contain;
	touch-action: none;
	user-select: none;
}

.komimport-ai-chat__catalog-image-wrap.is-panning {
	cursor: grabbing;
}

.komimport-ai-chat__catalog-image-stage {
	position: relative;
	display: inline-block;
	flex: 0 0 auto;
	min-width: 100%;
	min-height: 100%;
	line-height: 0;
}

.komimport-ai-chat__catalog-image {
	display: block;
	position: absolute;
	max-width: none;
	object-fit: fill;
}

.komimport-ai-chat__catalog-labels {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}

.komimport-ai-chat__catalog-label {
	position: absolute;
	z-index: 1;
	box-sizing: content-box;
	display: block;
	color: #0000ff;
	font-weight: 700;
	text-align: center;
	text-shadow: 0 0 2px #fff, 0 0 2px #fff;
	white-space: nowrap;
	border-radius: 999px;
	font-family: Tahoma, Arial, Verdana, sans-serif;
	cursor: pointer;
	pointer-events: auto;
}

.komimport-ai-chat__catalog-label.is-highlighted {
	border: 2px solid #2b0808;
	background: #ff0000;
	color: #fff;
	text-shadow: none;
}

.komimport-ai-chat__catalog-label.is-selected {
	border: 2px solid #2b0808;
	border-radius: 999px;
	background: #ff0000;
	color: #fff;
	text-shadow: none;
}

.komimport-ai-chat__catalog-label:focus {
	outline: 2px solid #ffc400;
	outline-offset: 2px;
}

.komimport-ai-chat__catalog-list-wrap {
	background: #fff;
}

.komimport-ai-chat__catalog-table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	font-size: 12px;
	line-height: 1.28;
}

.komimport-ai-chat__catalog-table th,
.komimport-ai-chat__catalog-table td {
	padding: 6px 7px;
	border: 1px solid #d6e1ea;
	text-align: left;
	vertical-align: top;
}

.komimport-ai-chat__catalog-table th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: #eef4f8;
	font-weight: 700;
	color: #243b53;
}

.komimport-ai-chat__catalog-table th:nth-child(7),
.komimport-ai-chat__catalog-table td:nth-child(7),
.komimport-ai-chat__catalog-table th:nth-child(8),
.komimport-ai-chat__catalog-table td:nth-child(8) {
	display: none;
}

.komimport-ai-chat__catalog-table tr.is-highlighted td {
	background: #e6f7ed;
	color: #0f3d2e;
	font-weight: 700;
}

.komimport-ai-chat__catalog-table tr.is-selected td {
	background: #d9f4e5;
	color: #0f3d2e;
	font-weight: 700;
}

.komimport-ai-chat__catalog-table tr.is-selected {
	outline: 2px solid #2f9e44;
	outline-offset: -2px;
}

.komimport-ai-chat__catalog-table tr.is-not-selectable td {
	color: #536471;
}

.komimport-ai-chat__catalog-select-cell {
	width: 62px;
	min-width: 62px;
	text-align: center;
}

.komimport-ai-chat__catalog-table th:first-child {
	width: 62px;
	min-width: 62px;
	text-align: center;
	white-space: normal;
}

.komimport-ai-chat__catalog-select {
	width: 18px;
	height: 18px;
	margin: 0;
	cursor: pointer;
}

.komimport-ai-chat__catalog-comment {
	width: 180px;
	max-width: 30vw;
	box-sizing: border-box;
	border: 1px solid #c8d6e2;
	border-radius: 4px;
	padding: 5px 6px;
	font-size: 12px;
	line-height: 1.25;
	transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.komimport-ai-chat__catalog-comment.is-saved {
	border-color: #2f9e44;
	background: #ecfdf3;
	box-shadow: 0 0 0 2px rgba(47, 158, 68, .18);
}

.komimport-ai-chat__order-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 2147483001;
	padding: 18px;
	background: rgba(11, 31, 51, .48);
	align-items: center;
	justify-content: center;
	font-family: Arial, sans-serif;
	color: #1f2933;
	overscroll-behavior: contain;
}

body.komimport-ai-chat--order-modal-open {
	overflow: hidden;
}

.komimport-ai-chat__order-modal.is-open {
	display: flex;
}

.komimport-ai-chat__order-dialog {
	width: min(960px, calc(100vw - 28px));
	max-height: min(760px, calc(100vh - 28px));
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 20px 70px rgba(0, 0, 0, .34);
	overscroll-behavior: contain;
}

.komimport-ai-chat__order-modal-header {
	min-height: 50px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px 10px 16px;
	background: #123b5d;
	color: #fff;
}

.komimport-ai-chat__order-modal-title {
	font-size: 16px;
	font-weight: 800;
	line-height: 1.25;
}

.komimport-ai-chat__order-modal-count {
	margin-top: 2px;
	color: rgba(255, 255, 255, .78);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
}

.komimport-ai-chat__order-modal-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.komimport-ai-chat__order-view-prices,
.komimport-ai-chat__order-request-prices,
.komimport-ai-chat__order-export {
	height: 34px;
	padding: 0 12px;
	border: 0;
	border-radius: 6px;
	background: #f7c948;
	color: #0f253a;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
}

.komimport-ai-chat__order-view-prices {
	background: #d9f2e3;
	color: #123b2a;
}

.komimport-ai-chat__order-request-prices {
	background: #ffd166;
}

.komimport-ai-chat__order-view-prices:hover,
.komimport-ai-chat__order-view-prices:focus,
.komimport-ai-chat__order-request-prices:hover,
.komimport-ai-chat__order-request-prices:focus,
.komimport-ai-chat__order-export:hover,
.komimport-ai-chat__order-export:focus {
	background: #ffd95c;
	outline: none;
}

.komimport-ai-chat__order-view-prices:hover,
.komimport-ai-chat__order-view-prices:focus {
	background: #c7ebd5;
}

.komimport-ai-chat__order-view-prices:disabled,
.komimport-ai-chat__order-request-prices:disabled,
.komimport-ai-chat__order-export:disabled {
	opacity: .55;
	cursor: not-allowed;
}

.komimport-ai-chat__order-modal-close {
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 6px;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.komimport-ai-chat__order-modal-close:hover,
.komimport-ai-chat__order-modal-close:focus {
	background: rgba(255, 255, 255, .22);
	outline: none;
}

.komimport-ai-chat__order-prices-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 2147483002;
	padding: 18px;
	background: rgba(11, 31, 51, .34);
	align-items: center;
	justify-content: center;
	font-family: Arial, sans-serif;
	color: #1f2933;
	overscroll-behavior: contain;
}

.komimport-ai-chat__order-prices-modal.is-open {
	display: flex;
}

.komimport-ai-chat__order-prices-dialog {
	width: min(1500px, calc(100vw - 28px));
	max-height: min(720px, calc(100vh - 28px));
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	border: 1px solid #c8d6e2;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 18px 56px rgba(0, 0, 0, .32);
	overflow: hidden;
}

.komimport-ai-chat__order-prices-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	background: #153e63;
	color: #fff;
}

.komimport-ai-chat__order-prices-title {
	font-size: 16px;
	font-weight: 800;
	line-height: 1.25;
}

.komimport-ai-chat__order-prices-status {
	margin-top: 2px;
	min-height: 15px;
	color: rgba(255, 255, 255, .78);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.25;
}

.komimport-ai-chat__order-prices-status.is-error {
	color: #ffd0cc;
}

.komimport-ai-chat__order-prices-close {
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 6px;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.komimport-ai-chat__order-prices-close:hover,
.komimport-ai-chat__order-prices-close:focus {
	background: rgba(255, 255, 255, .22);
	outline: none;
}

.komimport-ai-chat__order-prices-body {
	min-height: 160px;
	overflow: auto;
	padding: 12px;
	background: #f6f9fc;
	overscroll-behavior: contain;
}

.komimport-ai-chat__order-prices-empty {
	padding: 16px;
	border: 1px solid #d6e1ea;
	border-radius: 6px;
	background: #fff;
	color: #536471;
	font-size: 14px;
	font-weight: 700;
}

.komimport-ai-chat__order-prices-captcha {
	padding: 16px;
	border: 1px solid #d6e1ea;
	border-radius: 6px;
	background: #fff;
}

.komimport-ai-chat__order-prices-captcha-title {
	color: #1c344b;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.25;
}

.komimport-ai-chat__order-prices-captcha-note {
	margin-top: 6px;
	color: #536471;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
}

.komimport-ai-chat__order-prices-captcha-widget {
	min-height: 78px;
	margin-top: 12px;
	overflow: hidden;
}

.komimport-ai-chat__order-prices-table-wrap {
	overflow-x: auto;
	overflow-y: visible;
	border: 1px solid #d6e1ea;
	border-radius: 6px;
	background: #fff;
	overscroll-behavior: contain;
}

.komimport-ai-chat__order-prices-table {
	width: 100%;
	min-width: 0;
	table-layout: fixed;
	border-collapse: collapse;
	font-size: 13px;
	line-height: 1.3;
}

.komimport-ai-chat__order-prices-table th,
.komimport-ai-chat__order-prices-table td {
	padding: 9px 10px;
	border-bottom: 1px solid #d6e1ea;
	text-align: left;
	vertical-align: middle;
	white-space: nowrap;
	word-break: normal;
	overflow-wrap: normal;
	overflow: hidden;
	text-overflow: ellipsis;
}

.komimport-ai-chat__order-prices-table th {
	position: sticky;
	top: 0;
	z-index: 2;
	background: #edf4fa;
	color: #243b53;
	font-size: 12px;
	font-weight: 800;
}

.komimport-ai-chat__order-prices-table tr.is-group-base td {
	background: #fff;
}

.komimport-ai-chat__order-prices-table tr.is-group-alt td {
	background: #f2f5f8;
}

.komimport-ai-chat__order-prices-table tr.is-offer-selected td {
	background: #e4f6ea;
}

.komimport-ai-chat__order-prices-table tr:last-child td {
	border-bottom: 0;
}

.komimport-ai-chat__order-prices-table tr.is-missing td {
	color: #6b7785;
}

.komimport-ai-chat__order-prices-number {
	color: #0875bd;
	font-weight: 800;
}

.komimport-ai-chat__order-prices-select {
	width: 62px;
	text-align: center;
}

.komimport-ai-chat__order-prices-table th:nth-child(1),
.komimport-ai-chat__order-prices-table td:nth-child(1) {
	width: 70px;
}

.komimport-ai-chat__order-prices-table th:nth-child(2),
.komimport-ai-chat__order-prices-table td:nth-child(2) {
	width: 170px;
}

.komimport-ai-chat__order-prices-table th:nth-child(4),
.komimport-ai-chat__order-prices-table td:nth-child(4) {
	width: 132px;
}

.komimport-ai-chat__order-prices-table th:nth-child(5),
.komimport-ai-chat__order-prices-table td:nth-child(5) {
	width: 126px;
}

.komimport-ai-chat__order-prices-table th:nth-child(6),
.komimport-ai-chat__order-prices-table td:nth-child(6) {
	width: 112px;
}

.komimport-ai-chat__order-prices-checkbox {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: #2c9f54;
	cursor: pointer;
}

.komimport-ai-chat__order-quote-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 2147483002;
	padding: 18px;
	background: rgba(11, 31, 51, .34);
	align-items: center;
	justify-content: center;
	font-family: Arial, sans-serif;
	color: #1f2933;
	overscroll-behavior: contain;
}

.komimport-ai-chat__order-quote-modal.is-open {
	display: flex;
}

.komimport-ai-chat__order-quote-dialog {
	width: min(420px, calc(100vw - 28px));
	display: grid;
	gap: 10px;
	padding: 14px;
	border: 1px solid #c8d6e2;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 18px 56px rgba(0, 0, 0, .32);
}

.komimport-ai-chat__order-quote-title {
	color: #123b5d;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.25;
}

.komimport-ai-chat__order-quote-email,
.komimport-ai-chat__order-quote-comment {
	box-sizing: border-box;
	width: 100%;
	border: 1px solid #c8d6e2;
	border-radius: 5px;
	background: #fff;
	color: #1f2933;
	font: inherit;
	font-size: 14px;
	line-height: 1.3;
}

.komimport-ai-chat__order-quote-email {
	height: 38px;
	padding: 8px 10px;
}

.komimport-ai-chat__order-quote-comment {
	min-height: 76px;
	padding: 8px 10px;
	resize: vertical;
}

.komimport-ai-chat__order-quote-captcha {
	min-height: 78px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	overflow: hidden;
}

.komimport-ai-chat__order-quote-status {
	min-height: 16px;
	color: #536471;
	font-size: 12px;
	line-height: 1.3;
}

.komimport-ai-chat__order-quote-status.is-error {
	color: #b42318;
}

.komimport-ai-chat__order-quote-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

.komimport-ai-chat__order-quote-cancel,
.komimport-ai-chat__order-quote-send {
	height: 34px;
	padding: 0 12px;
	border: 0;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
}

.komimport-ai-chat__order-quote-cancel {
	background: #e8eef5;
	color: #243b53;
}

.komimport-ai-chat__order-quote-send {
	background: #f7c948;
	color: #0f253a;
}

.komimport-ai-chat__order-quote-cancel:hover,
.komimport-ai-chat__order-quote-cancel:focus {
	background: #d7e2ec;
	outline: none;
}

.komimport-ai-chat__order-quote-send:hover,
.komimport-ai-chat__order-quote-send:focus {
	background: #ffd95c;
	outline: none;
}

.komimport-ai-chat__order-quote-cancel:disabled,
.komimport-ai-chat__order-quote-send:disabled,
.komimport-ai-chat__order-quote-email:disabled,
.komimport-ai-chat__order-quote-comment:disabled {
	opacity: .65;
	cursor: wait;
}

.komimport-ai-chat__order-modal-body {
	padding: 12px;
	overflow: auto;
	background: #f6f9fc;
	overscroll-behavior: contain;
}

.komimport-ai-chat__order-empty {
	padding: 14px;
	border: 1px solid #d6e1ea;
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	line-height: 1.35;
}

.komimport-ai-chat__order-kit {
	margin: 8px 0 0;
	padding: 8px;
	border: 1px solid #c8d6e2;
	border-radius: 8px;
	background: #fff;
	color: #1f2933;
	font-size: 13px;
	line-height: 1.3;
}

.komimport-ai-chat__order-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.komimport-ai-chat__order-title {
	font-size: 14px;
	font-weight: 700;
}

.komimport-ai-chat__order-count {
	color: #536471;
	font-size: 12px;
	font-weight: 600;
}

.komimport-ai-chat__order-list {
	display: grid;
	gap: 7px;
}

.komimport-ai-chat__order-group {
	display: grid;
	gap: 7px;
	padding: 7px;
	border: 1px solid #d6e1ea;
	border-radius: 7px;
	background: #fff;
}

.komimport-ai-chat__order-group-title {
	color: #123b5d;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.komimport-ai-chat__order-item {
	position: relative;
	display: grid;
	grid-template-columns: minmax(220px, 1fr) minmax(260px, 42%);
	gap: 8px;
	align-items: center;
	padding: 6px 7px;
	border: 1px solid #e0e8ef;
	border-radius: 6px;
	background: #f8fafc;
}

.komimport-ai-chat__order-main {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
}

.komimport-ai-chat__order-selected-offer {
	flex: 1 2 180px;
	min-width: 120px;
	color: #1f6f43;
	font-size: 12px;
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.komimport-ai-chat__order-selected-offer::before {
	content: "· ";
	color: #66a27a;
}

.komimport-ai-chat__order-number,
.komimport-ai-chat__catalog-number {
	font: inherit;
}

.komimport-ai-chat__order-number {
	flex: 0 0 auto;
	display: inline-block;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #0b7abf;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
}

.komimport-ai-chat__order-name {
	flex: 0 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 600;
}

.komimport-ai-chat__order-meta {
	flex: 1 2 130px;
	min-width: 80px;
	margin-top: 0;
	color: #536471;
	font-size: 12px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.komimport-ai-chat__order-meta::before {
	content: "· ";
	color: #8fa1b0;
}

.komimport-ai-chat__order-controls {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr) 32px;
	gap: 6px;
	align-items: center;
}

.komimport-ai-chat__order-qty,
.komimport-ai-chat__order-comment {
	box-sizing: border-box;
	border: 1px solid #c8d6e2;
	border-radius: 4px;
	background: #fff;
	font-size: 13px;
	line-height: 1.25;
}

.komimport-ai-chat__order-qty {
	width: 58px;
	padding: 5px 4px;
	text-align: center;
}

.komimport-ai-chat__order-comment {
	width: 100%;
	padding: 6px 7px;
}

.komimport-ai-chat__order-remove {
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 5px;
	background: #e8eef5;
	color: #243b53;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.komimport-ai-chat__order-remove:hover {
	background: #d7e2ec;
}

.komimport-ai-chat__catalog-loading,
.komimport-ai-chat__catalog-empty {
	margin: 16px;
	padding: 14px;
	border: 1px solid #d6e1ea;
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	line-height: 1.35;
}

@media (max-width: 960px) {
	.komimport-ai-chat__catalog-body {
		grid-template-columns: 1fr;
		grid-template-rows: minmax(130px, 24%) minmax(220px, 38%) minmax(0, 38%);
	}

	.komimport-ai-chat__catalog-nav-wrap {
		border-right: 0;
		border-bottom: 1px solid #d6e1ea;
	}

	.komimport-ai-chat__catalog-image-wrap {
		border-right: 0;
		border-bottom: 1px solid #d6e1ea;
	}
}

@media (max-width: 560px) {
	.komimport-ai-chat {
		left: 12px;
		right: 12px;
		bottom: 12px;
	}

	.komimport-ai-chat__toggle {
		width: 100%;
		justify-content: center;
	}

	.komimport-ai-chat__panel {
		width: 100%;
		height: min(520px, calc(100vh - 24px));
		min-width: 0;
		max-width: 100%;
	}

	.komimport-ai-chat__resize {
		display: none;
	}

	.komimport-ai-chat__header {
		gap: 8px;
	}

	.komimport-ai-chat__order-open {
		padding: 0 8px;
	}

	.komimport-ai-chat__clear-dialog {
		padding: 0 8px;
		font-size: 12px;
	}

	.komimport-ai-chat__order-open-label {
		display: none;
	}

	.komimport-ai-chat__catalog-modal {
		padding: 8px;
	}

	.komimport-ai-chat__catalog-dialog {
		width: calc(100vw - 16px);
		height: calc(100vh - 16px);
	}

	.komimport-ai-chat__catalog-body {
		grid-template-columns: 1fr;
		grid-template-rows: minmax(120px, 22%) minmax(220px, 36%) minmax(0, 42%);
	}

	.komimport-ai-chat__catalog-image-wrap {
		border-right: 0;
		border-bottom: 1px solid #d6e1ea;
	}

	.komimport-ai-chat__order-modal {
		padding: 8px;
	}

	.komimport-ai-chat__order-dialog {
		width: calc(100vw - 16px);
		max-height: calc(100vh - 16px);
	}

	.komimport-ai-chat__order-modal-header {
		padding: 10px 8px 10px 12px;
	}

	.komimport-ai-chat__order-view-prices,
	.komimport-ai-chat__order-request-prices,
	.komimport-ai-chat__order-export {
		width: 34px;
		padding: 0;
		overflow: hidden;
		text-indent: -999px;
	}

	.komimport-ai-chat__order-view-prices::before {
		content: "₽";
		display: block;
		text-indent: 0;
		font-size: 17px;
		font-weight: 900;
	}

	.komimport-ai-chat__order-request-prices::before {
		content: "@";
		display: block;
		text-indent: 0;
		font-size: 17px;
		font-weight: 900;
	}

	.komimport-ai-chat__order-export::before {
		content: "XLS";
		display: block;
		text-indent: 0;
		font-size: 11px;
		font-weight: 900;
	}

	.komimport-ai-chat__order-prices-dialog {
		width: calc(100vw - 16px);
		max-height: calc(100vh - 16px);
	}

	.komimport-ai-chat__order-prices-table {
		min-width: 0;
	}

	.komimport-ai-chat__order-prices-table thead {
		display: none;
	}

	.komimport-ai-chat__order-prices-table,
	.komimport-ai-chat__order-prices-table tbody,
	.komimport-ai-chat__order-prices-table tr,
	.komimport-ai-chat__order-prices-table td {
		display: block;
		width: 100%;
	}

	.komimport-ai-chat__order-prices-table tr {
		box-sizing: border-box;
		padding: 8px 10px;
		border-bottom: 1px solid #d6e1ea;
	}

	.komimport-ai-chat__order-prices-table tr:last-child {
		border-bottom: 0;
	}

	.komimport-ai-chat__order-prices-table td {
		display: grid;
		box-sizing: border-box;
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 8px;
		padding: 3px 0;
		border-bottom: 0;
		white-space: normal;
		overflow: visible;
		overflow-wrap: anywhere;
		text-overflow: clip;
	}

	.komimport-ai-chat__order-prices-table td::before {
		color: #536471;
		font-size: 11px;
		font-weight: 800;
		line-height: 1.3;
	}

	.komimport-ai-chat__order-prices-table td:nth-child(1)::before {
		content: "Выбор";
	}

	.komimport-ai-chat__order-prices-table td:nth-child(2)::before {
		content: "Каталожник";
	}

	.komimport-ai-chat__order-prices-table td:nth-child(3)::before {
		content: "Название";
	}

	.komimport-ai-chat__order-prices-table td:nth-child(4)::before {
		content: "Производитель";
	}

	.komimport-ai-chat__order-prices-table td:nth-child(5)::before {
		content: "Цена";
	}

	.komimport-ai-chat__order-prices-table td:nth-child(6)::before {
		content: "Срок";
	}

	.komimport-ai-chat__order-item {
		grid-template-columns: minmax(92px, 1fr) minmax(170px, 1.35fr);
		gap: 4px;
		padding: 6px;
	}

	.komimport-ai-chat__order-controls {
		grid-template-columns: 44px minmax(0, 1fr) 30px;
		gap: 4px;
	}

	.komimport-ai-chat__order-qty {
		width: 44px;
		padding: 5px 3px;
	}

	.komimport-ai-chat__order-remove {
		width: 30px;
		height: 30px;
	}

	.komimport-ai-chat__catalog-comment {
		width: 150px;
		max-width: none;
	}
}
