/* Floating Chat Bubble */
.sous-chef-chat-bubble {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #111827;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
	z-index: 9998;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.sous-chef-chat-bubble:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.45);
	background: #1f2937;
}

.sous-chef-chat-icon {
	font-size: 22px;
	line-height: 1;
}

/* Chat Window Container */
.sous-chef-chat-window {
	position: fixed;
	bottom: 96px;
	right: 24px;
	width: 320px;
	max-height: 480px;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 18px 45px rgba(15, 23, 42, 0.4);
	display: none;
	flex-direction: column;
	overflow: hidden;
	z-index: 9999;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sous-chef-chat-window.is-open {
	display: flex;
}

/* Header */
.sous-chef-chat-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: linear-gradient(135deg, #111827, #1f2937);
	color: #f9fafb;
}

.sous-chef-chat-title {
	font-size: 14px;
	font-weight: 600;
}

.sous-chef-chat-close {
	border: none;
	background: transparent;
	color: #e5e7eb;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	margin: 0;
}

.sous-chef-chat-close:hover {
	color: #ffffff;
}

/* Messages Area */
.sous-chef-chat-messages {
	flex: 1;
	padding: 10px 12px;
	background-color: #f3f4f6;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #9ca3af #e5e7eb;
}

.sous-chef-chat-messages::-webkit-scrollbar {
	width: 6px;
}

.sous-chef-chat-messages::-webkit-scrollbar-track {
	background: #e5e7eb;
}

.sous-chef-chat-messages::-webkit-scrollbar-thumb {
	background-color: #9ca3af;
	border-radius: 999px;
}

/* Message Bubbles */
.sous-chef-chat-message {
	max-width: 80%;
	padding: 8px 10px;
	border-radius: 12px;
	margin-bottom: 6px;
	font-size: 13px;
	line-height: 1.4;
	clear: both;
}

.sous-chef-chat-message--bot {
	background-color: #e5e7eb;
	color: #111827;
	border-bottom-left-radius: 4px;
}

.sous-chef-chat-message--user {
	background-color: #111827;
	color: #f9fafb;
	border-bottom-right-radius: 4px;
	margin-left: auto;
}

/* Thinking Indicator */
.sous-chef-chat-thinking {
	opacity: 0.9;
	font-style: italic;
}

/* Input Area */
.sous-chef-chat-input {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px;
	background-color: #f9fafb;
	border-top: 1px solid #e5e7eb;
}

.sous-chef-chat-input-field {
	flex: 1;
	border-radius: 999px;
	border: 1px solid #d1d5db;
	padding: 6px 10px;
	font-size: 13px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sous-chef-chat-input-field:focus {
	border-color: #4b5563;
	box-shadow: 0 0 0 1px rgba(75, 85, 99, 0.3);
}

.sous-chef-chat-send {
	border-radius: 999px;
	border: none;
	padding: 7px 14px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	background: #111827;
	color: #f9fafb;
	transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

.sous-chef-chat-send:hover {
	background: #1f2937;
	transform: translateY(-0.5px);
	box-shadow: 0 3px 8px rgba(17, 24, 39, 0.4);
}

.sous-chef-chat-send:active {
	transform: translateY(0);
	box-shadow: none;
}
