#chatbot-toggle {
	position: fixed;
	bottom: 20px;
	left: 20px;
	z-index: 99999;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: linear-gradient(135deg, #00ab71 0%, #2dd4bf 100%);
	box-shadow: 0 12px 30px rgba(0, 171, 113, 0.35);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#chatbot-toggle:hover {
	transform: translateY(-2px) scale(1.02);
	box-shadow: 0 16px 36px rgba(0, 171, 113, 0.45);
}

#chatbot-open-btn {
	background-color: transparent !important;
	border: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
	padding: 0;
}

.ai-chat-icon {
	display: inline-block;
	height: 34px !important;
	width: 34px !important;
	position: absolute;
	right: 13px;
	top: 13px !important;
	font-size: 28px;
	line-height: 1;
}

#chatbot-widget {
	position: fixed;
	bottom: 20px;
	left: 20px;
	width: 360px;
	max-width: calc(100vw - 30px);
	font-family: Arial, sans-serif;
	z-index: 99999;
	opacity: 0;
	transform: translateY(18px) scale(0.96);
	transform-origin: bottom left;
	pointer-events: none;
	transition: opacity 0.28s ease, transform 0.28s ease;
}

#chatbot-widget.is-open {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.chatbot-shell {
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
	background: var(--axis-chat-body-bg, #1c2d46);
}

.chatbot-header {
	color: var(--axis-chat-header-color, #fff);
	padding: 12px;
	font-weight: bold;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	background: var(--axis-chat-header-bg, #152238);
	backdrop-filter: blur(4px);
}

#chatbot-close-btn {
	background: none;
	border: none;
	color: var(--axis-chat-header-color, #fff);
	font-size: 18px;
	cursor: pointer;
}

#chatlog {
	height: 290px;
	overflow-y: auto;
	padding: 12px;
	font-family: Arial, sans-serif;
}

.chat-user,
.chat-bot {
	max-width: 88%;
	width: fit-content;
	padding: 10px 14px;
	margin: 8px 0;
	border-radius: 16px;
	display: block;
	word-wrap: break-word;
	line-height: 1.5;
	font-size: 14px;
	background: #fff;
	color: #0f172a;
	box-shadow: 0 8px 20px rgba(2, 6, 23, 0.22);
}

.chat-line {
	display: inline;
}

.chat-speaker {
	font-weight: 700;
}

.chat-bot a {
	color: #0b6bcb;
	text-decoration: underline;
	word-break: break-all;
}

.chat-bot a:visited {
	color: #c81e1e;
}

.chat-product-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	margin-top: 10px;
}

.chat-product-card {
	display: flex;
	gap: 10px;
	padding: 8px;
	border-radius: 10px;
	background: #f8fafc;
	color: #0f172a;
	text-decoration: none;
	border: 1px solid #dbeafe;
}

.chat-product-card-image {
	width: 52px;
	height: 52px;
	object-fit: cover;
	border-radius: 8px;
	background: #fff;
	flex: 0 0 52px;
}

.chat-product-card-details {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.chat-product-card-name {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

.chat-product-card-price {
	font-size: 12px;
	font-weight: 700;
	color: #0b6bcb;
}

.chat-product-card-price-regular {
	text-decoration: line-through;
	color: #64748b;
	font-weight: 500;
}

.chat-product-card-price-sale {
	color: #0b6bcb;
}

.chat-bot.is-typing {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.typing-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #475569;
	animation: ns-chat-typing 1s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
	animation-delay: 0.15s;
}

.typing-dot:nth-child(3) {
	animation-delay: 0.3s;
}

@keyframes ns-chat-typing {
	0%,
	80%,
	100% {
		opacity: 0.35;
		transform: translateY(0);
	}

	40% {
		opacity: 1;
		transform: translateY(-3px);
	}
}

.chat-user {
	margin-left: auto;
	margin-right: 0;
	border-bottom-right-radius: 5px;
}

.chat-bot {
	margin-right: auto;
	margin-left: 0;
	border-bottom-left-radius: 5px;
}

.chat-input-wrap {
	display: flex;
	border-top: 1px solid rgba(87, 80, 80, 0.33);
	background: var(--axis-chat-body-bg, #1c2d46);
}
.chat-input-wrap #chat-input::placeholder {
    color: #555;
    opacity: 1;
	font-size: 15px;
}

#chat-input {
	flex: 1;
	padding: 10px;
	border: none !important;
	outline: none;
	background: rgba(255, 255, 255, 0.96);
	color: black !important;
}

#send-btn {
	background: linear-gradient(135deg, #00ab71 0%, #2dd4bf 100%);
	color: #fff;
	padding: 0 15px;
	border: none;
	font-size: 18px;
	cursor: pointer;
}

@media (max-width: 992px) {
	#chatbot-widget,
	#chatbot-toggle {
		left: 12px;
		bottom: 12px;
	}

	#chatbot-widget {
		width: min(360px, calc(100vw - 24px));
	}
}
