#wbd-ai, #wbd-ai * { box-sizing: border-box; }
#wbd-ai {
	--wbd-brown: #5b3c20;
	--wbd-gold: #85704a;
	--wbd-sand: #d8cbb8;
	--wbd-cream: #f8f6ef;
	--wbd-ink: #342f29;
	position: fixed; right: 20px; bottom: 24px; z-index: 99990;
	font-family: inherit; font-size: 15px; line-height: 1.45; color: var(--wbd-ink);
}
#wbd-ai .wbd-launch {
	display: flex; align-items: center; gap: 8px;
	background: var(--wbd-brown); color: #fff; border: 0; border-radius: 999px;
	padding: 12px 18px; cursor: pointer; box-shadow: 0 6px 20px rgba(52, 47, 41, .25);
	font: inherit; font-weight: 600; letter-spacing: .2px;
}
#wbd-ai .wbd-launch:hover { background: #4a3119; }
#wbd-ai .wbd-launch svg { width: 18px; height: 18px; flex: none; }
#wbd-ai .wbd-panel {
	position: absolute; right: 0; bottom: 64px; width: 360px; max-width: calc(100vw - 32px);
	height: 520px; max-height: calc(100vh - 120px);
	background: #fff; border-radius: 16px; overflow: hidden;
	box-shadow: 0 18px 50px rgba(52, 47, 41, .28); border: 1px solid var(--wbd-sand);
	display: none; flex-direction: column;
}
#wbd-ai.open .wbd-panel { display: flex; }
#wbd-ai.open .wbd-launch { display: none; }
#wbd-ai .wbd-head {
	background: var(--wbd-brown); color: #fff; padding: 14px 16px;
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
#wbd-ai .wbd-title { font-family: Gelasio, Georgia, serif; font-size: 17px; margin: 0; color: #fff; }
#wbd-ai .wbd-sub { font-size: 12px; opacity: .85; margin-top: 2px; }
#wbd-ai .wbd-close {
	background: transparent; border: 0; color: #fff; font-size: 22px; line-height: 1;
	cursor: pointer; padding: 4px 6px; border-radius: 6px;
}
#wbd-ai .wbd-close:hover { background: rgba(255,255,255,.15); }
#wbd-ai .wbd-preview {
	background: #fff4d6; color: #6b5200; font-size: 12px; padding: 6px 12px; text-align: center;
	border-bottom: 1px solid #f0dfa8;
}
#wbd-ai .wbd-log { flex: 1; overflow-y: auto; padding: 14px; background: var(--wbd-cream); }
#wbd-ai .wbd-msg { max-width: 86%; margin: 0 0 10px; padding: 9px 12px; border-radius: 14px; white-space: pre-wrap; word-wrap: break-word; }
#wbd-ai .wbd-bot { background: #fff; border: 1px solid #ebe3d6; border-bottom-left-radius: 4px; }
#wbd-ai .wbd-user { background: var(--wbd-gold); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
#wbd-ai .wbd-msg a { color: var(--wbd-brown); text-decoration: underline; word-break: normal; overflow-wrap: anywhere; white-space: nowrap; }
#wbd-ai .wbd-user a { color: #fff; }
#wbd-ai .wbd-typing span {
	display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%;
	background: var(--wbd-gold); animation: wbd-blink 1.2s infinite ease-in-out;
}
#wbd-ai .wbd-typing span:nth-child(2) { animation-delay: .2s; }
#wbd-ai .wbd-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes wbd-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
#wbd-ai .wbd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
#wbd-ai .wbd-chip {
	background: #fff; border: 1px solid var(--wbd-sand); color: var(--wbd-brown);
	border-radius: 999px; padding: 6px 11px; font: inherit; font-size: 13px; cursor: pointer;
}
#wbd-ai .wbd-chip:hover { border-color: var(--wbd-gold); background: #fbf8f2; }
#wbd-ai .wbd-actions { display: flex; gap: 8px; padding: 8px 12px 0; background: #fff; border-top: 1px solid #efe8dc; }
#wbd-ai .wbd-actions a {
	flex: 1; text-align: center; font-size: 13px; padding: 7px 8px; border-radius: 8px; text-decoration: none;
	border: 1px solid var(--wbd-sand); color: var(--wbd-brown); background: #fff;
}
#wbd-ai .wbd-actions a.wbd-book { background: var(--wbd-brown); color: #fff; border-color: var(--wbd-brown); }
#wbd-ai form { display: flex; gap: 8px; padding: 10px 12px 8px; background: #fff; }
#wbd-ai textarea {
	flex: 1; resize: none; height: 42px; max-height: 110px; padding: 10px 12px; border-radius: 10px;
	border: 1px solid var(--wbd-sand); font: inherit; font-size: 15px; color: var(--wbd-ink); background: #fff;
}
#wbd-ai textarea:focus { outline: 2px solid var(--wbd-gold); outline-offset: 0; border-color: var(--wbd-gold); }
#wbd-ai form .wbd-send {
	flex: 0 0 44px !important; width: 44px !important; min-width: 0 !important; height: 42px !important;
	padding: 0 !important; margin: 0 !important; line-height: 1 !important;
	background: var(--wbd-brown) !important; color: #fff !important; border: 0 !important; border-radius: 10px !important;
	cursor: pointer; display: flex !important; align-items: center; justify-content: center;
	box-shadow: none !important; text-transform: none !important;
}
#wbd-ai form .wbd-send:disabled { opacity: .5; cursor: default; }
#wbd-ai form .wbd-send svg { display: block !important; width: 18px !important; height: 18px !important; stroke: #fff !important; fill: none !important; }
#wbd-ai form { align-items: flex-end; }
#wbd-ai form textarea { min-height: 42px !important; margin: 0 !important; box-shadow: none !important; }
#wbd-ai .wbd-launch svg, #wbd-ai .wbd-close { box-shadow: none !important; }
#wbd-ai .wbd-note { font-size: 11px; color: #8a8173; text-align: center; padding: 0 12px 10px; background: #fff; }
@media (max-width: 767px) {
	#wbd-ai { right: 12px; bottom: 84px; }
	#wbd-ai .wbd-launch .wbd-launch-text { display: none; }
	#wbd-ai .wbd-launch { padding: 14px; }
	#wbd-ai.open { left: 8px; right: 8px; bottom: 76px; }
	#wbd-ai .wbd-panel { position: static; width: 100%; max-width: none; height: calc(100vh - 160px); max-height: 600px; }
}
