/* BaeCue concierge widget — brand: midnight #152033, gold #C8A56A, ivory #FFF9F4 */

#baecue-root {
	--bc-navy: #152033;
	--bc-gold: #C8A56A;
	--bc-ivory: #FFF9F4;
	--bc-blush: #F4D7DB;
	--bc-rose: #C96F7B;
	--bc-ink: #242424;
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99990;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* --------------------------------------------------- floating button */
#baecue-fab {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid rgba(200, 165, 106, 0.55);
	border-radius: 999px;
	background: var(--bc-navy);
	color: var(--bc-ivory);
	padding: 12px 18px 12px 14px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 6px 24px rgba(21, 32, 51, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#baecue-fab:hover,
#baecue-fab:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(21, 32, 51, 0.45);
}
#baecue-fab:focus-visible {
	outline: 2px solid var(--bc-gold);
	outline-offset: 2px;
}
.baecue-fab-icon { font-size: 19px; line-height: 1; }
.baecue-open #baecue-fab { display: none; }

/* --------------------------------------------------------------- panel */
#baecue-panel[hidden] { display: none !important; }

#baecue-panel {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 370px;
	max-width: calc(100vw - 32px);
	height: 540px;
	max-height: calc(100vh - 100px);
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid rgba(21, 32, 51, 0.12);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 18px 48px rgba(21, 32, 51, 0.30);
}

.baecue-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--bc-navy);
	color: var(--bc-ivory);
	padding: 14px 16px;
	border-bottom: 2px solid var(--bc-gold);
}
#baecue-panel .baecue-logo {
	height: 34px !important;
	width: auto !important;
	max-width: 90px !important;
	max-height: 34px !important;
	flex: 0 0 auto;
	margin: 0 10px 0 0;
	background: var(--bc-ivory);
	border-radius: 8px;
	padding: 3px 6px;
	object-fit: contain;
	box-sizing: border-box;
}
.baecue-head-txt { display: flex; flex-direction: column; line-height: 1.25; flex: 1; }
.baecue-head-txt strong { font-size: 16px; letter-spacing: 0.02em; }
.baecue-head-txt span { font-size: 12px; color: var(--bc-gold); }
#baecue-close {
	background: none;
	border: 0;
	color: var(--bc-ivory);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
}
#baecue-close:focus-visible { outline: 2px solid var(--bc-gold); }

/* ------------------------------------------------------------ messages */
#baecue-msgs {
	flex: 1;
	overflow-y: auto;
	padding: 16px 14px 8px;
	background: var(--bc-ivory);
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.baecue-msg {
	max-width: 85%;
	padding: 10px 13px;
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.45;
	color: var(--bc-ink);
	word-wrap: break-word;
}
.baecue-user {
	align-self: flex-end;
	background: var(--bc-navy);
	color: #fff;
	border-bottom-right-radius: 4px;
}
.baecue-assistant {
	align-self: flex-start;
	background: #fff;
	border: 1px solid rgba(21, 32, 51, 0.10);
	border-bottom-left-radius: 4px;
}
.baecue-cta {
	display: inline-block;
	margin: 6px 4px 2px 0;
	padding: 7px 12px;
	background: var(--bc-gold);
	color: var(--bc-navy) !important;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
}
.baecue-cta:hover { filter: brightness(1.06); }

/* typing dots */
.baecue-typing { display: inline-flex; gap: 5px; padding: 13px 15px; }
.baecue-typing span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--bc-rose);
	animation: baecue-blink 1.2s infinite ease-in-out;
}
.baecue-typing span:nth-child(2) { animation-delay: 0.18s; }
.baecue-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes baecue-blink {
	0%, 70%, 100% { opacity: 0.25; transform: translateY(0); }
	35% { opacity: 1; transform: translateY(-3px); }
}

/* --------------------------------------------------------------- chips */
#baecue-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0 14px 8px;
	background: var(--bc-ivory);
}
.baecue-chip {
	border: 1px solid var(--bc-rose);
	background: #fff;
	color: var(--bc-rose);
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 13px;
	cursor: pointer;
	transition: background 0.12s ease, color 0.12s ease;
}
.baecue-chip:hover,
.baecue-chip:focus-visible { background: var(--bc-rose); color: #fff; }

/* ---------------------------------------------------------------- form */
#baecue-form {
	display: flex;
	gap: 8px;
	padding: 10px 12px;
	background: #fff;
	border-top: 1px solid rgba(21, 32, 51, 0.10);
}
#baecue-input {
	flex: 1;
	border: 1px solid rgba(21, 32, 51, 0.22);
	border-radius: 999px;
	padding: 10px 15px;
	font-size: 14px;
	color: var(--bc-ink);
	background: #fff;
}
#baecue-input:focus {
	outline: none;
	border-color: var(--bc-gold);
	box-shadow: 0 0 0 3px rgba(200, 165, 106, 0.25);
}
#baecue-send {
	border: 0;
	border-radius: 50%;
	width: 42px;
	height: 42px;
	background: var(--bc-navy);
	color: var(--bc-gold);
	font-size: 16px;
	cursor: pointer;
	flex: 0 0 42px;
}
#baecue-send:hover { background: #1e2d47; }
#baecue-send:focus-visible { outline: 2px solid var(--bc-gold); outline-offset: 2px; }

.baecue-foot {
	padding: 6px 14px 10px;
	font-size: 11px;
	color: rgba(36, 36, 36, 0.55);
	background: #fff;
	text-align: center;
}
.baecue-foot a { color: var(--bc-rose); }

/* --------------------------------------------------------------- teaser */
#baecue-teaser {
	position: absolute;
	right: 0;
	bottom: 64px;
	display: flex;
	align-items: center;
	gap: 6px;
	max-width: 260px;
	background: #fff;
	border: 1px solid rgba(200, 165, 106, 0.6);
	border-radius: 14px 14px 4px 14px;
	box-shadow: 0 8px 24px rgba(21, 32, 51, 0.22);
	padding: 10px 8px 10px 14px;
	animation: baecue-pop 0.25s ease-out;
}
#baecue-teaser span {
	font-size: 13.5px;
	color: var(--bc-ink);
	cursor: pointer;
	line-height: 1.35;
}
#baecue-teaser button {
	background: none;
	border: 0;
	color: rgba(36, 36, 36, 0.45);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	padding: 2px 6px;
}
@keyframes baecue-pop {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------- mobile */
@media (max-width: 480px) {
	#baecue-root { right: 12px; bottom: 12px; }
	#baecue-panel {
		position: fixed;
		left: 8px;
		right: 8px;
		bottom: 8px;
		width: auto;
		height: 78vh;
		max-height: none;
	}
	.baecue-fab-label { display: none; }
	#baecue-fab { padding: 14px; }
	.baecue-fab-icon { font-size: 22px; }
}
