/* bimoink-chat — floating support chat widget (brand: handmade.ink) */
#bimoink-chat-fab {
	position: fixed;
	right: 24px;
	bottom: 24px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #000238;
	color: #fff;
	border: none;
	cursor: pointer;
	z-index: 99998;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 24px rgba(0,2,56,.35);
	transition: transform .15s ease;
}
#bimoink-chat-fab:hover { transform: scale(1.06); }
#bimoink-chat-fab svg { width: 26px; height: 26px; }
#bimoink-chat-fab .bimoink-chat-ring {
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 2px solid rgba(0,214,104,.55);
	animation: bimoink-chat-pulse 2.4s infinite;
}
@keyframes bimoink-chat-pulse {
	0%   { transform: scale(.92); opacity: .9; }
	70%  { transform: scale(1.15); opacity: 0; }
	100% { transform: scale(1.15); opacity: 0; }
}
#bimoink-chat-fab .bimoink-chat-unread {
	position: absolute;
	top: -3px; right: -3px;
	min-width: 18px; height: 18px;
	padding: 0 4px;
	border-radius: 9px;
	background: #ff434f;
	color: #fff;
	font-size: 11px; font-weight: 700;
	display: none;
	align-items: center; justify-content: center;
}
#bimoink-chat-panel {
	position: fixed;
	right: 24px;
	bottom: 96px;
	width: 360px;
	max-width: calc(100vw - 32px);
	height: 520px;
	max-height: calc(100vh - 120px);
	background: #fffdf8;
	border-radius: 16px;
	box-shadow: 0 18px 50px rgba(0,2,56,.28);
	z-index: 99999;
	display: none;
	flex-direction: column;
	overflow: hidden;
	font-family: Figtree, "Noto Serif SC", system-ui, Segoe UI, Roboto, Arial, sans-serif;
}
#bimoink-chat-panel.bimoink-chat-open { display: flex; }
#bimoink-chat-head {
	background: linear-gradient(135deg, #000238 0%, #1a1a5c 100%);
	color: #fff;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	gap: 10px;
}
#bimoink-chat-head .bimoink-chat-logo { font-size: 20px; }
#bimoink-chat-head .bimoink-chat-title { font-weight: 800; font-size: 15px; line-height: 1.1; }
#bimoink-chat-head .bimoink-chat-status {
	font-size: 11px; opacity: .8; display: flex; align-items: center; gap: 5px; margin-top: 2px;
}
#bimoink-chat-head .bimoink-chat-dot {
	width: 7px; height: 7px; border-radius: 50%; background: #00d668; display: inline-block;
}
#bimoink-chat-head .bimoink-chat-close {
	margin-left: auto;
	background: rgba(255,255,255,.12);
	border: none; color: #fff;
	width: 28px; height: 28px; border-radius: 8px;
	cursor: pointer; font-size: 16px; line-height: 1;
}
#bimoink-chat-chips {
	display: flex; flex-wrap: wrap; gap: 6px;
	padding: 10px 12px 4px;
}
#bimoink-chat-chips button {
	border: 1px solid #e3d9c4;
	background: #f6efe1;
	color: #3a3320;
	font-size: 12px;
	padding: 5px 10px;
	border-radius: 999px;
	cursor: pointer;
	font-family: inherit;
}
#bimoink-chat-chips button:hover { background: #efe4cd; }
#bimoink-chat-msgs {
	flex: 1;
	overflow-y: auto;
	padding: 12px 14px;
	background: #fffdf8;
}
#bimoink-chat-msgs .bimoink-chat-row { display: flex; margin-bottom: 10px; }
#bimoink-chat-msgs .bimoink-chat-row.user { justify-content: flex-end; }
#bimoink-chat-msgs .bimoink-chat-bubble {
	max-width: 80%;
	padding: 9px 12px;
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.5;
	white-space: pre-wrap;
	word-break: break-word;
}
#bimoink-chat-msgs .bimoink-chat-row.user .bimoink-chat-bubble {
	background: #298dff; color: #fff; border-bottom-right-radius: 3px;
}
#bimoink-chat-msgs .bimoink-chat-row.bot .bimoink-chat-bubble,
#bimoink-chat-msgs .bimoink-chat-row.agent .bimoink-chat-bubble {
	background: #f6efe1; color: #2a2415; border-bottom-left-radius: 3px;
}
#bimoink-chat-msgs .bimoink-chat-time { font-size: 10px; color: #b3a98c; margin-top: 3px; }
#bimoink-chat-msgs .bimoink-chat-typing { font-size: 13px; color: #9a8f72; font-style: italic; }
#bimoink-chat-input {
	display: flex; gap: 8px; padding: 10px 12px;
	border-top: 1px solid #efe7d5;
	background: #fff;
}
#bimoink-chat-input textarea {
	flex: 1; resize: none; height: 42px; max-height: 96px;
	padding: 10px 12px; border-radius: 10px;
	border: 1px solid #e3d9c4; background: #fffdf8;
	font-family: inherit; font-size: 14px; line-height: 1.4;
}
#bimoink-chat-input textarea:focus { outline: none; border-color: #298dff; }
#bimoink-chat-send {
	width: auto; min-width: 84px; padding: 0 18px; gap: 7px;
	border: none; border-radius: 10px;
	background: #298dff; color: #fff; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
}
#bimoink-chat-send:disabled { opacity: .55; cursor: default; }
#bimoink-chat-send svg { width: 16px; height: 16px; }
#bimoink-chat-send span { font-size: 14px; font-weight: 700; }
#bimoink-chat-send svg, #bimoink-chat-send span { pointer-events: none; }

@media (max-width: 480px) {
	#bimoink-chat-panel {
		right: 0; left: 0; bottom: 0;
		width: 100%; max-width: 100%;
		height: 78vh; max-height: 78vh;
		border-radius: 16px 16px 0 0;
	}
	#bimoink-chat-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}
