#rasin-chatbot-root {
	position: fixed;
	bottom: 20px;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", sans-serif;
}

#rasin-chatbot-root.rasin-chatbot-pos-right {
	right: 20px;
}

#rasin-chatbot-root.rasin-chatbot-pos-left {
	left: 20px;
}

#rasin-chatbot-bubble {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--rasin-accent, #b08d57);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 12px 18px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#rasin-chatbot-bubble:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.rasin-chatbot-bubble-icon {
	font-size: 18px;
}

#rasin-chatbot-panel {
	position: absolute;
	bottom: 64px;
	width: 340px;
	max-width: calc(100vw - 40px);
	height: 460px;
	max-height: 70vh;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

#rasin-chatbot-root.rasin-chatbot-pos-right #rasin-chatbot-panel {
	right: 0;
}

#rasin-chatbot-root.rasin-chatbot-pos-left #rasin-chatbot-panel {
	left: 0;
}

.rasin-chatbot-hidden {
	display: none !important;
}

.rasin-chatbot-header {
	background: var(--rasin-accent, #b08d57);
	color: #fff;
	padding: 12px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: 600;
	font-size: 14px;
}

#rasin-chatbot-close {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
}

.rasin-chatbot-messages {
	flex: 1;
	overflow-y: auto;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #f7f5f1;
}

.rasin-chatbot-msg {
	max-width: 85%;
	padding: 9px 12px;
	border-radius: 12px;
	font-size: 13.5px;
	line-height: 1.55;
	white-space: pre-wrap;
	word-break: break-word;
}

.rasin-chatbot-msg-bot {
	background: #fff;
	color: #333;
	align-self: flex-start;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.rasin-chatbot-msg-user {
	background: var(--rasin-accent, #b08d57);
	color: #fff;
	align-self: flex-end;
}

.rasin-chatbot-msg-error {
	background: #fdecea;
	color: #b3261e;
	align-self: flex-start;
}

.rasin-chatbot-articles {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 4px;
	align-self: flex-start;
	max-width: 85%;
}

.rasin-chatbot-article-card {
	display: block;
	background: #fff;
	border: 1px solid #e6e1d8;
	border-left: 3px solid var(--rasin-accent, #b08d57);
	border-radius: 8px;
	padding: 8px 10px;
	font-size: 13px;
	color: #333;
	text-decoration: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.rasin-chatbot-article-card:hover {
	background: #fbf9f5;
}

.rasin-chatbot-typing {
	font-size: 13px;
	color: #888;
	align-self: flex-start;
	padding: 4px 12px;
}

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

.rasin-chatbot-form input[type="text"] {
	flex: 1;
	border: 1px solid #ddd;
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 13.5px;
	outline: none;
}

.rasin-chatbot-form input[type="text"]:focus {
	border-color: var(--rasin-accent, #b08d57);
}

.rasin-chatbot-form button {
	background: var(--rasin-accent, #b08d57);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 8px 16px;
	font-size: 13px;
	cursor: pointer;
	white-space: nowrap;
}

.rasin-chatbot-form button:disabled {
	opacity: 0.6;
	cursor: default;
}

@media (max-width: 480px) {
	#rasin-chatbot-panel {
		width: calc(100vw - 24px);
		height: 65vh;
	}
}
