/* Bee – asistentul BeeTech */
.btc-root {
	--btc-ink: var(--bt-ink, #14161C);
	--btc-accent: var(--bt-accent, #FEC832);
	--btc-accent-dark: var(--bt-accent-dark, #E0AC12);
	--btc-surface: var(--bt-surface, #FFF8E6);
	--btc-muted: var(--bt-muted, #5A6070);
	--btc-line: var(--bt-line, #E8EAEF);
	--btc-font: var(--bt-font, "Poppins", "Segoe UI", system-ui, sans-serif);
	font-family: var(--btc-font);
	font-size: 14px;
	line-height: 1.5;
	color: var(--btc-ink);
}

.btc-root *,
.btc-root *::before,
.btc-root *::after {
	box-sizing: border-box;
}

.btc-hidden {
	display: none !important;
}

/* ---------- Lansator ---------- */
.btc-launcher {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99990;
	width: 60px;
	height: 60px;
	padding: 0;
	border: 2px solid var(--btc-accent);
	border-radius: 50%;
	background: var(--btc-ink);
	box-shadow: 0 8px 24px rgba(20, 22, 28, .28);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform .2s ease;
}

.btc-launcher:hover {
	transform: scale(1.06);
}

.btc-launcher:focus-visible,
.btc-root button:focus-visible,
.btc-root a:focus-visible,
.btc-root input:focus-visible,
.btc-root textarea:focus-visible,
.btc-root select:focus-visible {
	outline: 3px solid var(--btc-accent);
	outline-offset: 2px;
}

.btc-launcher img {
	width: 36px;
	height: 36px;
	object-fit: contain;
}

.btc-launcher span {
	font-size: 28px;
}

/* Butonul „înapoi sus” din Woodmart urcă deasupra bulei. */
body.btc-on .scrollToTop,
body.btc-on .wd-scroll-top {
	bottom: 92px !important;
}

/* ---------- Teaser ---------- */
.btc-teaser {
	position: fixed;
	right: 20px;
	bottom: 92px;
	z-index: 99990;
	display: flex;
	align-items: center;
	background: #fff;
	border: 1px solid var(--btc-line);
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(20, 22, 28, .16);
	animation: btc-in .25s ease;
}

.btc-teaser-text {
	padding: 12px 6px 12px 16px;
	border: 0;
	background: none;
	font: 600 14px/1.3 var(--btc-font);
	color: var(--btc-ink);
	cursor: pointer;
}

.btc-teaser-x {
	padding: 8px 12px;
	border: 0;
	background: none;
	font-size: 18px;
	color: var(--btc-muted);
	cursor: pointer;
}

/* ---------- Panou ---------- */
.btc-panel {
	position: fixed;
	right: 20px;
	bottom: 92px;
	z-index: 99991;
	width: 380px;
	height: 600px;
	max-height: calc(100vh - 120px);
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 16px 48px rgba(20, 22, 28, .28);
	overflow: hidden;
	animation: btc-in .2s ease;
}

.btc-panel[hidden] {
	display: none;
}

@keyframes btc-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

.btc-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 12px 12px 16px;
	background: var(--btc-ink);
	color: #fff;
}

.btc-head img {
	width: 32px;
	height: 32px;
	object-fit: contain;
}

.btc-title {
	flex: 1;
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.btc-title b {
	font-size: 16px;
}

.btc-title span {
	font-size: 12px;
	color: var(--btc-accent);
}

.btc-test {
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--btc-accent);
	color: var(--btc-ink);
	font-size: 11px;
	font-weight: 700;
}

.btc-icon {
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.btc-icon:hover {
	background: rgba(255, 255, 255, .12);
}

/* ---------- Mesaje ---------- */
.btc-log {
	flex: 1;
	overflow-y: auto;
	padding: 16px 14px;
	background: #FAFAFB;
	overscroll-behavior: contain;
}

.btc-row {
	display: flex;
	flex-direction: column;
	margin-bottom: 12px;
}

.btc-row--user {
	align-items: flex-end;
}

.btc-row--bot {
	align-items: flex-start;
}

.btc-bubble {
	max-width: 88%;
	padding: 10px 14px;
	border-radius: 14px;
	word-wrap: break-word;
}

.btc-row--bot .btc-bubble {
	background: var(--btc-surface);
	border-top-left-radius: 4px;
}

.btc-row--user .btc-bubble {
	background: var(--btc-ink);
	color: #fff;
	border-top-right-radius: 4px;
}

.btc-bubble a {
	color: inherit;
	text-decoration: underline;
	word-break: break-all;
}

.btc-typing {
	display: flex;
	gap: 4px;
	padding: 14px;
}

.btc-typing i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--btc-muted);
	animation: btc-dot 1s infinite ease-in-out;
}

.btc-typing i:nth-child(2) { animation-delay: .15s; }
.btc-typing i:nth-child(3) { animation-delay: .3s; }

@keyframes btc-dot {
	0%, 80%, 100% { opacity: .3; transform: translateY(0); }
	40% { opacity: 1; transform: translateY(-3px); }
}

/* ---------- Butoane rapide ---------- */
.btc-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
	max-width: 100%;
}

.btc-btn {
	display: inline-block;
	padding: 7px 14px;
	border: 1.5px solid var(--btc-ink);
	border-radius: 999px;
	background: #fff;
	color: var(--btc-ink) !important;
	font: 500 13px/1.3 var(--btc-font);
	text-decoration: none !important;
	text-align: left;
	cursor: pointer;
	transition: background .15s ease;
}

.btc-btn:hover:not([disabled]) {
	background: var(--btc-accent);
	border-color: var(--btc-accent);
}

.btc-btn--primary {
	background: var(--btc-accent);
	border-color: var(--btc-accent);
	font-weight: 600;
}

.btc-btn--primary:hover:not([disabled]) {
	background: var(--btc-accent-dark);
	border-color: var(--btc-accent-dark);
}

.btc-btn[disabled] {
	opacity: .45;
	cursor: default;
}

/* ---------- Carduri ---------- */
.btc-card {
	width: 100%;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid var(--btc-line);
	border-radius: 14px;
}

.btc-card h4 {
	margin: 0 0 4px;
	font-size: 17px;
	color: var(--btc-ink);
}

.btc-card p {
	margin: 0 0 6px;
}

.btc-card ul {
	margin: 8px 0;
	padding: 0;
	list-style: none;
}

.btc-card li {
	position: relative;
	padding-left: 20px;
	margin-bottom: 3px;
}

.btc-card li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--btc-accent-dark);
	font-weight: 700;
}

.btc-card a {
	color: var(--btc-ink);
}

.btc-tag {
	display: inline-block;
	margin-bottom: 6px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--btc-accent);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .04em;
}

.btc-price b {
	font-size: 20px;
}

.btc-muted {
	color: var(--btc-muted);
}

.btc-small {
	font-size: 12px;
}

/* ---------- Formulare ---------- */
.btc-field {
	margin-bottom: 10px;
}

.btc-field label {
	display: block;
	margin-bottom: 3px;
	font-size: 13px;
	font-weight: 500;
}

.btc-field input[type="text"],
.btc-field input[type="email"],
.btc-field input[type="tel"],
.btc-field select,
.btc-field textarea {
	width: 100%;
	min-height: 0;
	height: auto;
	margin: 0 0 4px;
	padding: 8px 10px;
	border: 1px solid #CFD3DC;
	border-radius: 8px;
	background: #fff;
	font: 14px/1.4 var(--btc-font);
	color: var(--btc-ink);
	box-shadow: none;
}

.btc-field textarea {
	resize: vertical;
}

.btc-consent {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 8px;
	align-items: start;
}

.btc-consent input {
	margin-top: 4px;
}

.btc-consent label {
	font-weight: 400;
	font-size: 12px;
}

.btc-consent .btc-err {
	grid-column: 1 / -1;
}

.btc-err {
	display: block;
	color: #B32D2E;
	font-size: 12px;
}

.btc-err:empty {
	display: none;
}

.btc-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.btc-submit {
	width: 100%;
	padding: 10px 16px;
	border: 0;
	border-radius: 999px;
	background: var(--btc-accent);
	color: var(--btc-ink);
	font: 600 14px/1.3 var(--btc-font);
	cursor: pointer;
}

.btc-submit:hover:not([disabled]) {
	background: var(--btc-accent-dark);
}

.btc-submit[disabled] {
	opacity: .6;
	cursor: wait;
}

.btc-status {
	margin: 8px 0 0;
	font-size: 12px;
	color: var(--btc-muted);
}

.btc-status:empty {
	display: none;
}

.btc-done {
	font-weight: 600;
	color: #1E7B34;
}

/* ---------- Compunere ---------- */
.btc-composer {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	margin: 0;
	padding: 10px 12px;
	border-top: 1px solid var(--btc-line);
	background: #fff;
}

.btc-input {
	flex: 1;
	min-height: 40px;
	max-height: 120px;
	margin: 0;
	padding: 9px 12px;
	border: 1px solid #CFD3DC;
	border-radius: 20px;
	font: 14px/1.4 var(--btc-font);
	color: var(--btc-ink);
	resize: none;
	box-shadow: none;
}

.btc-send {
	flex: none;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--btc-accent);
	color: var(--btc-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.btc-send[disabled] {
	opacity: .5;
	cursor: wait;
}

.btc-foot {
	margin: 0;
	padding: 0 12px 8px;
	background: #fff;
	font-size: 10.5px;
	color: var(--btc-muted);
	text-align: center;
}

/* ---------- Mobil ---------- */
@media (max-width: 600px) {
	.btc-panel {
		right: 0;
		bottom: 0;
		width: 100%;
		height: 100%;
		max-height: none;
		border-radius: 0;
	}

	body.btc-open .btc-launcher,
	body.btc-open .btc-teaser {
		display: none;
	}

	body.btc-open {
		overflow: hidden;
	}

	.btc-input {
		font-size: 16px;
	}

	/* Bara de jos din Woodmart pe mobil */
	body.sticky-toolbar-on .btc-launcher {
		bottom: 76px;
	}

	body.sticky-toolbar-on .btc-teaser {
		bottom: 148px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.btc-root *,
	.btc-launcher {
		animation: none !important;
		transition: none !important;
	}
}
