/* Axis Health — corner chat widget */

.ax-chat { position: fixed; right: 20px; bottom: 20px; z-index: 150; font-family: var(--font-body, sans-serif); }

.ax-chat-bubble {
	width: 58px; height: 58px;
	border-radius: 50%;
	border: 0;
	background: #101010;
	color: #fff;
	cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	position: relative;
	transition: transform 0.15s ease;
}
.ax-chat-bubble:hover { transform: scale(1.06); }
.ax-chat-bubble svg { width: 26px; height: 26px; fill: #fff; }
.ax-chat-bubble .ic-close { display: none; }
.ax-chat.open .ic-chat { display: none; }
.ax-chat.open .ic-close { display: block; }
.ax-chat-dot {
	position: absolute; top: 3px; right: 3px;
	width: 12px; height: 12px;
	border-radius: 50%;
	background: #b5773f;
	border: 2px solid #101010;
}
.ax-chat.open .ax-chat-dot { display: none; }

.ax-chat-panel[hidden] { display: none; }
.ax-chat-panel {
	position: absolute;
	right: 0; bottom: 74px;
	width: min(360px, calc(100vw - 40px));
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
	display: flex;
	flex-direction: column;
}
.ax-chat-head {
	background: #101010;
	color: #fff;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
}
.ax-chat-head img { width: 44px; height: auto; }
.ax-chat-head strong { display: block; font-size: 0.98rem; }
.ax-chat-head span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.65); }
.ax-chat-x {
	margin-left: auto;
	background: none; border: 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 1.5rem;
	cursor: pointer;
	line-height: 1;
}
.ax-chat-x:hover { color: #fff; }

.ax-chat-body {
	padding: 16px;
	max-height: 320px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #f7f5f0;
}
.ax-msg {
	max-width: 85%;
	padding: 10px 14px;
	border-radius: 12px;
	font-size: 0.92rem;
	line-height: 1.45;
}
.ax-msg-bot { background: #fff; border: 1px solid rgba(16, 16, 16, 0.1); align-self: flex-start; border-bottom-left-radius: 3px; }
.ax-msg-user { background: #101010; color: #fff; align-self: flex-end; border-bottom-right-radius: 3px; }
.ax-msg a { color: #9a6231; font-weight: 600; }

.ax-chat-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 12px 16px 16px;
	background: #f7f5f0;
	border-top: 1px solid rgba(16, 16, 16, 0.07);
}
.ax-chat-chips:empty { display: none; }
.ax-chip {
	border: 1px solid #101010;
	background: #fff;
	color: #101010;
	border-radius: 999px;
	padding: 8px 15px;
	font-size: 0.85rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.15s;
}
.ax-chip:hover { background: #101010; color: #fff; }
.ax-chip-input {
	flex: 1;
	display: flex;
	gap: 8px;
}
.ax-chip-input input {
	flex: 1;
	font: inherit;
	font-size: 0.9rem;
	padding: 9px 13px;
	border: 1px solid rgba(16, 16, 16, 0.25);
	border-radius: 999px;
	background: #fff;
}
.ax-chip-input input:focus { outline: 2px solid #b5773f; outline-offset: -1px; }
.ax-chip-input button {
	border: 0;
	background: #b5773f;
	color: #fff;
	border-radius: 999px;
	padding: 9px 18px;
	font-weight: 600;
	font-size: 0.88rem;
	cursor: pointer;
}
.ax-chip-input button:hover { background: #9a6231; }

@media (max-width: 480px) {
	.ax-chat { right: 14px; bottom: 14px; }
	.ax-chat-panel { bottom: 70px; }
}
