.live-search-ai-button {
	display: block;
	width: calc(100% - 28px);
	min-height: 44px;
	margin: 10px auto 0;
	border: 0;
	border-radius: var(--ls-ai-button-radius, 12px);
	background: var(--ls-ai-button-bg, #253044);
	color: var(--ls-ai-button-text, #fff);
	font-weight: 800;
	font-size: 15px;
	box-shadow: 0 10px 22px rgba(37, 48, 68, 0.18);
}

.live-search-ai-button:hover,
.live-search-ai-button:focus {
	filter: brightness(0.92);
	color: var(--ls-ai-button-text, #fff);
}

.live-search-ai-modal {
	display: none;
	position: fixed;
	z-index: 2147483000;
	inset: 0;
}

body.live-search-ai-open .live-search,
body.live-search-ai-open .autocomplete-suggestions,
body.live-search-ai-open .tt-menu {
	display: none !important;
}

.live-search-ai-modal.is-open {
	display: block;
}

.live-search-ai-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, var(--ls-ai-backdrop-opacity, 0.42));
}

.live-search-ai-modal__panel {
	position: absolute;
	left: 50%;
	top: 50%;
	width: min(var(--ls-ai-modal-width, 680px), calc(100vw - 28px));
	max-height: min(var(--ls-ai-modal-max-height, 720px), calc(100vh - 38px));
	transform: translate(-50%, -50%);
	overflow: auto;
	border-radius: var(--ls-ai-modal-radius, 16px);
	background: var(--ls-ai-modal-bg, #fff);
	color: var(--ls-ai-modal-text, #253044);
	box-shadow: 0 28px 80px rgba(17, 24, 39, 0.28);
}

.live-search-ai-modal__close {
	position: absolute;
	right: 14px;
	top: 12px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: #eef2f7;
	color: #253044;
	font-size: 24px;
	line-height: 32px;
}

.live-search-ai-modal__title {
	padding: 18px 58px 14px 20px;
	border-bottom: 1px solid #e5ebf3;
	color: var(--ls-ai-modal-text, #253044);
	font-size: 19px;
	font-weight: 800;
}

.live-search-ai-modal__body {
	padding: 18px 20px 8px;
}

.live-search-ai-loading,
.live-search-ai-message {
	color: var(--ls-ai-modal-text, #425066);
	font-size: 15px;
	line-height: 1.5;
}

.live-search-ai-loading {
	display: flex;
	gap: 12px;
	align-items: center;
}

.live-search-ai-loading strong,
.live-search-ai-loading small {
	display: block;
}

.live-search-ai-loading small {
	margin-top: 2px;
	opacity: 0.72;
}

.live-search-ai-spinner {
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	border: 3px solid #e6eef7;
	border-top-color: var(--ls-ai-submit-bg, #4fbd00);
	border-radius: 50%;
	animation: live-search-ai-spin 0.75s linear infinite;
}

.live-search-ai-progress {
	height: 8px;
	margin-top: 14px;
	overflow: hidden;
	border-radius: 99px;
	background: #edf3fa;
}

.live-search-ai-progress span {
	display: block;
	width: 8%;
	height: 100%;
	border-radius: inherit;
	background: var(--ls-ai-submit-bg, #4fbd00);
	transition: width 0.16s ease;
}

@keyframes live-search-ai-spin {
	to {
		transform: rotate(360deg);
	}
}

.live-search-ai-products {
	margin-top: 14px;
}

.live-search-ai-product {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 10px;
	border-top: 1px solid #e8edf4;
	color: var(--ls-ai-modal-text, #253044);
	text-decoration: none;
}

.live-search-ai-product:hover,
.live-search-ai-product:focus {
	background: #f5f9f3;
	color: var(--ls-ai-modal-text, #253044);
	text-decoration: none;
}

.live-search-ai-product__image {
	width: 56px;
	height: 56px;
	flex: 0 0 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #e6ebf2;
	border-radius: 10px;
	background: #fff;
}

.live-search-ai-product__image img {
	max-width: 100%;
	max-height: 100%;
}

.live-search-ai-product__content {
	display: grid;
	gap: 4px;
}

.live-search-ai-product__content strong {
	font-size: 15px;
	font-weight: 800;
}

.live-search-ai-product__content small {
	color: #3f9700;
	font-size: 14px;
	font-weight: 800;
}

.live-search-ai-modal__form {
	display: flex;
	gap: 8px;
	padding: 14px 20px 20px;
}

.live-search-ai-modal__form input {
	flex: 1 1 auto;
	height: 44px;
	border: 1px solid #d6deea;
	border-radius: 10px;
	padding: 0 12px;
}

.live-search-ai-modal__form button {
	flex: 0 0 auto;
	height: 44px;
	border: 0;
	border-radius: var(--ls-ai-submit-radius, 10px);
	background: var(--ls-ai-submit-bg, #4fbd00);
	color: var(--ls-ai-submit-text, #fff);
	padding: 0 18px;
	font-weight: 800;
}

@media (max-width: 767px) {
	.live-search-ai-modal__panel {
		top: auto;
		bottom: 0;
		width: 100%;
		max-height: 86vh;
		transform: translateX(-50%);
		border-radius: 16px 16px 0 0;
	}

	.live-search-ai-modal__form {
		display: grid;
	}
}
