#physio-chatbot-root {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#physio-chatbot-hint {
	position: absolute;
	top: 50%;
	right: calc(100% + 8px);
	transform: translateY(-50%);
	background: #ffffff;
	color: #333333;
	padding: 8px 14px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
	font-size: 14px;
	white-space: nowrap;
	z-index: 999998;
	display: flex;
	align-items: center;
}

#physio-chatbot-hint-close {
	position: absolute;
	top: -7px;
	right: -7px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #ffffff;
	color: #666666;
	border: 1px solid rgba(0, 0, 0, 0.12);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
	font-size: 12px;
	line-height: 1;
	padding: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

#physio-chatbot-hint-close:hover {
	background: #f2f2f2;
	color: #333333;
}

#physio-chatbot-bubble {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--pc-color, #88b4ce);
	color: #fff;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	transition: transform 0.15s ease;
}

#physio-chatbot-bubble:hover {
	transform: scale(1.06);
}

#physio-chatbot-panel {
	position: fixed;
	bottom: 92px;
	right: 20px;
	width: 340px;
	max-width: calc(100vw - 32px);
	height: 480px;
	max-height: calc(100vh - 140px);
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

#physio-chatbot-panel.pc-hidden,
#physio-chatbot-bubble.pc-hidden {
	display: none;
}

#physio-chatbot-header {
	background: var(--pc-color, #88b4ce);
	color: #fff;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: 600;
}

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

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

.pc-msg {
	max-width: 85%;
	padding: 9px 12px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.4;
	white-space: pre-wrap;
	word-wrap: break-word;
}

.pc-msg-user {
	align-self: flex-end;
	background: var(--pc-color, #88b4ce);
	color: #fff;
	border-bottom-right-radius: 3px;
}

.pc-msg-bot {
	align-self: flex-start;
	background: #eceff1;
	color: #263238;
	border-bottom-left-radius: 3px;
}

.pc-msg-typing {
	align-self: flex-start;
	background: #eceff1;
	color: #78909c;
	font-style: italic;
}

#physio-chatbot-form {
	display: flex;
	border-top: 1px solid #e0e0e0;
	padding: 8px;
	gap: 8px;
	background: #fff;
}

#physio-chatbot-input {
	flex: 1;
	border: 1px solid #d0d7db;
	border-radius: 20px;
	padding: 9px 14px;
	font-size: 14px;
	resize: none;
	outline: none;
	font-family: inherit;
}

#physio-chatbot-input:focus {
	border-color: var(--pc-color, #88b4ce);
}

#physio-chatbot-send {
	background: var(--pc-color, #88b4ce);
	color: #fff;
	border: none;
	border-radius: 20px;
	padding: 0 18px;
	font-size: 14px;
	cursor: pointer;
	font-weight: 600;
}

#physio-chatbot-send:disabled {
	opacity: 0.6;
	cursor: default;
}

@media (max-width: 420px) {
	#physio-chatbot-panel {
		right: 16px;
		width: calc(100vw - 32px);
	}
	#physio-chatbot-bubble {
		right: 16px;
	}
}
