#hd-chatbot.hd-chatbot {
	position: fixed !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	width: auto !important;
	height: auto !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	z-index: 2147483000;
	font-family: inherit;
	display: block !important;
	overflow: hidden !important;
	pointer-events: none !important;
	transform: none !important;
	box-sizing: border-box !important;
	contain: paint;
}

.hd-chatbot-toggle {
	position: absolute !important;
	right: 16px;
	bottom: 16px;
	left: auto;
	top: auto;
	pointer-events: auto !important;
	min-width: 58px;
	width: auto !important;
	max-width: none !important;
	height: 58px;
	padding: 0 16px 0 8px;
	border: 0;
	border-radius: 29px;
	background: #00aff0;
	color: #fff;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0, 175, 240, 0.45);
	display: flex !important;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	z-index: 2;
}

.hd-chatbot-toggle-text {
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	padding-right: 6px;
}

.hd-chatbot-toggle-icon,
.hd-chatbot-toggle-icon:before,
.hd-chatbot-toggle-icon:after {
	display: block;
	background: #fff;
}

.hd-chatbot-toggle-icon {
	width: 22px;
	height: 16px;
	margin: 0 auto;
	border-radius: 3px;
	position: relative;
}

.hd-chatbot-toggle-icon:before {
	content: "";
	position: absolute;
	left: 5px;
	top: 4px;
	width: 12px;
	height: 2px;
	border-radius: 1px;
}

.hd-chatbot-toggle-icon:after {
	content: "";
	position: absolute;
	left: 5px;
	top: 9px;
	width: 8px;
	height: 2px;
	border-radius: 1px;
}

.hd-chatbot-toggle-close {
	display: none;
	font-size: 28px;
	line-height: 1;
}

.hd-chatbot.is-open .hd-chatbot-toggle-icon,
.hd-chatbot.is-open .hd-chatbot-toggle-text {
	display: none;
}

.hd-chatbot.is-open .hd-chatbot-toggle {
	width: 58px;
	min-width: 58px;
	padding: 0;
	justify-content: center;
	border-radius: 50%;
}

.hd-chatbot.is-open .hd-chatbot-toggle-close {
	display: block;
}

.hd-chatbot-panel {
	position: absolute;
	right: 16px;
	left: auto;
	bottom: 82px;
	width: 360px;
	max-width: calc(100% - 32px);
	height: 520px;
	max-height: calc(100% - 110px);
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 16px 48px rgba(15, 40, 70, 0.22);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-sizing: border-box;
	pointer-events: auto !important;
	z-index: 1;
}

.hd-chatbot-panel[hidden],
.hd-chatbot:not(.is-open) .hd-chatbot-panel {
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

.hd-chatbot-header {
	background: linear-gradient(135deg, #0095d0, #00aff0);
	color: #fff;
	padding: 12px 12px 12px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.hd-chatbot-header-text {
	min-width: 0;
	flex: 1;
}

.hd-chatbot-title-row {
	display: flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
}

.hd-chatbot-header-actions {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.hd-chatbot-expand,
.hd-chatbot-home {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	flex-shrink: 0;
	color: #fff;
	border-radius: 6px;
	text-decoration: none;
	opacity: 0.88;
	pointer-events: auto !important;
}

.hd-chatbot-expand:hover,
.hd-chatbot-home:hover {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	opacity: 1;
}

.hd-chatbot-title {
	display: block;
	font-size: 15px;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hd-chatbot-subtitle {
	display: block;
	font-size: 12px;
	opacity: 0.9;
	margin-top: 2px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hd-chatbot-min {
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	width: 32px;
	height: 32px;
}

html.hd-chatbot-fullpage,
body.hd-chatbot-fullpage {
	margin: 0;
	padding: 0;
	height: 100%;
	background: #edf2f7;
	overflow: hidden;
}

body.hd-chatbot-fullpage #hd-chatbot.hd-chatbot {
	pointer-events: auto !important;
	overflow: hidden !important;
	contain: none;
}

.hd-chatbot--page .hd-chatbot-toggle {
	display: none !important;
}

.hd-chatbot--page .hd-chatbot-panel,
.hd-chatbot--page.is-open .hd-chatbot-panel,
.hd-chatbot--page .hd-chatbot-panel[hidden] {
	display: flex !important;
	visibility: visible !important;
	pointer-events: auto !important;
	position: absolute;
	top: 0;
	right: auto;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100% !important;
	max-width: 880px;
	height: 100% !important;
	max-height: none !important;
	border-radius: 0;
	box-shadow: none;
	border-left: 1px solid #e5eef5;
	border-right: 1px solid #e5eef5;
}

.hd-chatbot--page .hd-chatbot-messages {
	padding: 24px 20px;
}

.hd-chatbot--page .hd-msg {
	max-width: 80%;
	font-size: 15px;
	padding: 12px 16px;
}

.hd-chatbot-messages {
	flex: 1;
	overflow-y: auto;
	padding: 14px;
	background: #f4f7fb;
}

.hd-msg {
	max-width: 88%;
	margin-bottom: 10px;
	padding: 10px 12px;
	border-radius: 12px;
	font-size: 13px;
	line-height: 1.5;
	word-break: break-word;
}

.hd-msg p {
	margin: 0 0 8px;
}

.hd-msg p:last-child {
	margin-bottom: 0;
}

.hd-msg a {
	color: #0077aa;
}

.hd-msg-bot {
	background: #fff;
	color: #243244;
	border: 1px solid #e5eef5;
	border-bottom-left-radius: 4px;
}

.hd-msg-user {
	margin-left: auto;
	background: #00aff0;
	color: #fff;
	border-bottom-right-radius: 4px;
}

.hd-card ul,
.hd-list,
.hd-timeline {
	margin: 6px 0 0;
	padding-left: 18px;
}

.hd-timeline li,
.hd-list li {
	margin-bottom: 6px;
}

.hd-timeline span {
	display: block;
	color: #66788a;
	font-size: 12px;
}

.hd-note {
	font-size: 13px;
}

.hd-more-wrap {
	margin: 10px 0 0;
}

.hd-more-link {
	display: inline-block;
	color: #0077aa;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.hd-more-link:hover {
	color: #005f88;
}

.hd-more-link.is-used {
	opacity: 0.45;
	pointer-events: none;
}

.hd-chatbot-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 8px 12px;
	background: #fff;
	border-top: 1px solid #eef2f6;
}

.hd-chip {
	border: 1px solid #cfeaf7;
	background: #f3fbff;
	color: #0678a8;
	border-radius: 999px;
	padding: 5px 10px;
	font-size: 12px;
	cursor: pointer;
}

.hd-chip:hover {
	background: #e5f6fd;
}

.hd-chatbot-form {
	display: flex;
	gap: 8px;
	padding: 10px 12px 12px;
	background: #fff;
	border-top: 1px solid #eef2f6;
}

.hd-chatbot-input {
	flex: 1;
	resize: none;
	min-height: 40px;
	max-height: 96px;
	border: 1px solid #d5e3ee;
	border-radius: 10px;
	padding: 8px 10px;
	font-size: 13px;
	line-height: 1.4;
}

.hd-chatbot-input:focus {
	outline: none;
	border-color: #00aff0;
}

.hd-chatbot-send {
	border: 0;
	background: #00aff0;
	color: #fff;
	border-radius: 10px;
	padding: 0 14px;
	font-weight: 600;
	cursor: pointer;
}

.hd-chatbot-send:disabled {
	opacity: 0.6;
	cursor: default;
}

.hd-typing {
	display: inline-flex;
	gap: 4px;
	align-items: center;
	height: 16px;
}

.hd-typing i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #90a4b3;
	animation: hd-bounce 1s infinite;
}

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

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

@keyframes hd-bounce {
	0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
	40% { transform: translateY(-4px); opacity: 1; }
}

@media (max-width: 480px) {
	.hd-chatbot-toggle {
		right: 12px;
		bottom: 12px;
	}

	.hd-chatbot.is-open .hd-chatbot-panel {
		right: 8px;
		bottom: 80px;
		width: calc(100% - 16px);
		max-width: calc(100% - 16px);
		height: calc(100% - 100px);
		max-height: none;
	}
}
