#bsict-chat-button {
	align-items: center;
	background: var(--bsict-chatbot-primary, #005596);
	border: 0;
	border-radius: 50%;
	bottom: 20px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
	color: var(--bsict-chatbot-primary-text, #fff);
	cursor: pointer;
	display: flex;
	height: 60px;
	justify-content: center;
	padding: 0;
	position: fixed;
	right: 20px;
	width: 60px;
	z-index: 9999;
}

#bsict-chat-button .dashicons {
	font-size: 28px;
	height: 28px;
	width: 28px;
}

#bsict-chat-button:focus-visible,
#bsict-chat-window button:focus-visible,
#bsict-chat-window a:focus-visible,
#bsict-chat-window input:focus-visible {
	outline: 3px solid #ffbf47;
	outline-offset: 2px;
}

#bsict-chat-window {
	background: var(--bsict-chatbot-surface, #fff);
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	bottom: 90px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
	color: var(--bsict-chatbot-text, #1d2327);
	max-height: min(620px, calc(100vh - 120px));
	overflow: hidden;
	position: fixed;
	right: 20px;
	width: min(360px, calc(100vw - 40px));
	z-index: 9999;
}

#bsict-chat-window[hidden],
#bsict-chat-main-menu[hidden],
#bsict-chat-submenu[hidden] {
	display: none;
}

.bsict-chatbot-screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.bsict-chatbot-header {
	align-items: center;
	background: var(--bsict-chatbot-primary, #005596);
	color: var(--bsict-chatbot-primary-text, #fff);
	display: flex;
	font-weight: 600;
	justify-content: space-between;
	min-height: 52px;
	padding: 0 8px 0 16px;
}

#bsict-chat-close {
	align-items: center;
	background: transparent;
	border: 0;
	color: var(--bsict-chatbot-primary-text, #fff);
	cursor: pointer;
	display: flex;
	height: 40px;
	justify-content: center;
	padding: 0;
	width: 40px;
}

.bsict-chatbot-content {
	max-height: calc(min(620px, 100vh - 120px) - 52px);
	overflow-y: auto;
	padding: 16px;
}

.bsict-chatbot-message {
	background: #eef5fb;
	border-radius: 6px;
	color: var(--bsict-chatbot-text, #1d2327);
	font-size: 14px;
	line-height: 1.5;
	margin-bottom: 14px;
	padding: 12px;
}

#bsict-chat-search {
	background: var(--bsict-chatbot-surface, #fff);
	border: 1px solid #8c8f94;
	border-radius: 4px;
	box-sizing: border-box;
	color: var(--bsict-chatbot-text, #1d2327);
	margin: 0 0 14px;
	min-height: 44px;
	padding: 8px 12px;
	width: 100%;
}

.bsict-chatbot-topics {
	display: grid;
	gap: 8px;
}

.bsict-chatbot-topic,
#bsict-chat-back {
	align-items: center;
	background: #f0f4f8;
	border: 1px solid transparent;
	border-radius: 6px;
	box-sizing: border-box;
	color: var(--bsict-chatbot-text, #1d2327);
	cursor: pointer;
	display: flex;
	gap: 10px;
	line-height: 1.3;
	margin-bottom: 8px;
	min-height: 44px;
	padding: 10px 12px;
	text-align: left;
	text-decoration: none;
	width: 100%;
}

.bsict-chatbot-topic:hover,
#bsict-chat-back:hover {
	background: #d7e7f5;
	color: #003f70;
}

.bsict-chatbot-topic .dashicons,
#bsict-chat-back .dashicons,
.bsict-chatbot-search-result .dashicons {
	color: var(--bsict-chatbot-primary, #005596);
	flex: 0 0 20px;
}

.bsict-chatbot-search-result {
	align-items: center;
	background: #f8fafc;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	color: var(--bsict-chatbot-text, #1d2327);
	display: flex;
	gap: 8px;
	margin-bottom: 6px;
	padding: 10px 12px;
	text-decoration: none;
}

.bsict-chatbot-search-result:hover {
	background: #eef5fb;
	color: #003f70;
}

.bsict-chatbot-search-result mark {
	background: #fff2a8;
	color: inherit;
	font-weight: 700;
}

.bsict-chatbot-suggestion {
	background: transparent;
	border: 0;
	color: var(--bsict-chatbot-primary, #005596);
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	padding: 0 4px;
	text-align: left;
	text-decoration: underline;
}

@media (max-width: 480px) {
	#bsict-chat-button {
		bottom: 14px;
		right: 14px;
	}

	#bsict-chat-window {
		bottom: 84px;
		right: 14px;
		width: calc(100vw - 28px);
	}
}
