/* Bagel Barron Front v2.2.0 */
#bb-site .bb-hero-video-wrap { pointer-events: none; }
body #bb-site, .entry-content #bb-site { max-width: none !important; padding: 0 !important; margin: 0 !important; }

/* ── CHAT BUBBLE ── */
#bb-chat-bubble {
	position: fixed;
	bottom: 28px;
	right: 28px;
	z-index: 9999;
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: #0d9488;
	border: none;
	cursor: pointer;
	box-shadow: 0 6px 30px rgba(13,148,136,0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s, box-shadow 0.2s;
}
#bb-chat-bubble:hover {
	transform: scale(1.08);
	box-shadow: 0 10px 40px rgba(13,148,136,0.55);
}
#bb-chat-bubble.active {
	background: #0f766e;
}
#bb-chat-bubble img {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	object-fit: cover;
}
.bb-bubble-badge {
	position: absolute;
	top: 2px;
	right: 2px;
	width: 14px;
	height: 14px;
	background: #f59e0b;
	border-radius: 50%;
	border: 2px solid #fff;
}

/* ── CHAT WINDOW ── */
#bb-chat-window {
	position: fixed;
	bottom: 104px;
	right: 28px;
	z-index: 9998;
	width: 360px;
	max-height: 520px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.18);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	opacity: 0;
	transform: translateY(16px) scale(0.97);
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
}
#bb-chat-window.open {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: all;
}

/* Chat header */
.bb-chat-header {
	background: linear-gradient(135deg, #0d9488, #0891b2);
	padding: 16px 18px;
	display: flex;
	align-items: center;
	gap: 12px;
}
.bb-chat-header img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 2px solid rgba(255,255,255,0.3);
	object-fit: cover;
}
.bb-chat-header-info { flex: 1; }
.bb-chat-name {
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	font-family: 'DM Sans', system-ui, sans-serif;
}
.bb-chat-status {
	font-size: 11px;
	color: rgba(255,255,255,0.75);
	display: flex;
	align-items: center;
	gap: 5px;
}
.bb-chat-status::before {
	content: '';
	width: 7px;
	height: 7px;
	background: #4ade80;
	border-radius: 50%;
	display: inline-block;
}
#bb-chat-close {
	background: rgba(255,255,255,0.15);
	border: none;
	color: #fff;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s;
}
#bb-chat-close:hover { background: rgba(255,255,255,0.25); }

/* Messages */
#bb-chat-messages {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #f8fafc;
}
.bb-msg {
	max-width: 82%;
	padding: 10px 14px;
	border-radius: 12px;
	font-size: 13px;
	line-height: 1.55;
	font-family: 'DM Sans', system-ui, sans-serif;
	word-break: break-word;
}
.bb-msg-bot {
	background: #fff;
	color: #1C1814;
	border: 1px solid #e2e8f0;
	border-bottom-left-radius: 3px;
	align-self: flex-start;
	box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.bb-msg-user {
	background: #0d9488;
	color: #fff;
	border-bottom-right-radius: 3px;
	align-self: flex-end;
}

/* Typing indicator */
.bb-typing {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 12px 16px;
}
.bb-typing span {
	width: 7px;
	height: 7px;
	background: #94a3b8;
	border-radius: 50%;
	display: inline-block;
	animation: bb-bounce 1.2s infinite;
}
.bb-typing span:nth-child(2) { animation-delay: 0.2s; }
.bb-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bb-bounce {
	0%, 80%, 100% { transform: translateY(0); }
	40%           { transform: translateY(-6px); }
}

/* Quick replies */
.bb-quick-replies {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-self: flex-start;
}
.bb-quick-btn {
	font-size: 12px;
	font-weight: 500;
	background: #fff;
	border: 1.5px solid #14b8a6;
	color: #0d9488;
	padding: 5px 12px;
	border-radius: 20px;
	cursor: pointer;
	font-family: 'DM Sans', system-ui, sans-serif;
	transition: all 0.15s;
}
.bb-quick-btn:hover {
	background: #0d9488;
	color: #fff;
}

/* Input area */
.bb-chat-input-wrap {
	padding: 12px 14px;
	border-top: 1px solid #e2e8f0;
	display: flex;
	gap: 8px;
	background: #fff;
	align-items: flex-end;
}
#bb-chat-input {
	flex: 1;
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	padding: 9px 12px;
	font-size: 13px;
	font-family: 'DM Sans', system-ui, sans-serif;
	outline: none;
	resize: none;
	max-height: 80px;
	color: #1C1814;
	transition: border-color 0.15s;
}
#bb-chat-input:focus { border-color: #0d9488; }
#bb-chat-input::placeholder { color: #94a3b8; }
#bb-chat-send {
	width: 38px;
	height: 38px;
	background: #0d9488;
	border: none;
	border-radius: 9px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background 0.15s;
}
#bb-chat-send:hover { background: #0f766e; }
#bb-chat-send svg { width: 16px; height: 16px; }

/* Chat footer */
.bb-chat-footer {
	padding: 7px 14px;
	text-align: center;
	font-size: 10px;
	color: #94a3b8;
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
	font-family: 'DM Sans', system-ui, sans-serif;
}

@media (max-width: 480px) {
	#bb-chat-window { width: calc(100vw - 20px); right: 10px; bottom: 90px; }
	#bb-chat-bubble { bottom: 16px; right: 16px; }
}
