/* BOBRAND Assistant: панель чату. Темна тема; на десктопі зсуває сайт, на мобільному — шторка з розмиттям. */
:root {
	--bba-w: 420px;
}

.bba-root {
	--bba-bg: #111113;
	--bba-fg: #f2f2f3;
	--bba-muted: #9a9aa0;
	--bba-line: rgba(255, 255, 255, .09);
	--bba-soft: #1d1d20;
	--bba-field: #1a1a1d;
	--bba-accent: #f2f2f3;
	--bba-on-accent: #111113;
	/* Системний шрифт пристрою: SF Pro (Apple), Segoe UI Variable (Windows), Roboto (Android). */
	--bba-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-family: var(--bba-font);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: -.005em;
	color: var(--bba-fg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
.bba-root *,
.bba-root textarea.bba-text,
.bba-root button { font-family: var(--bba-font); }

/* Кнопка запуску */
.bba-root .bba-launcher {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 99990;
	width: 56px;
	height: 56px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 50%;
	background: #111113;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 8px 28px rgba(0, 0, 0, .28);
	transition: transform .2s ease;
}
.bba-launcher:hover { transform: translateY(-2px); }

/* Кружечок непрочитаних */
.bba-unread {
	position: absolute;
	top: -3px;
	right: -3px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border: 2px solid #fff;
	border-radius: 10px;
	background: #e5484d;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 16px;
	text-align: center;
	box-sizing: border-box;
	animation: bba-pop .35s cubic-bezier(.3, 1.6, .5, 1) .6s both;
}
.bba-unread[hidden] { display: none; }
@keyframes bba-pop {
	from { transform: scale(0); }
	to { transform: scale(1); }
}
.bba-launcher:focus-visible { outline: 2px solid #111113; outline-offset: 3px; }
.bba-open .bba-launcher { display: none; }

/* Панель */
.bba-panel {
	position: fixed;
	z-index: 99991;
	background: var(--bba-bg);
	color: var(--bba-fg);
	display: flex;
	flex-direction: column;
	visibility: hidden;
}
.bba-open .bba-panel { visibility: visible; }

.bba-grabber { display: none; }

.bba-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	border-bottom: 1px solid var(--bba-line);
}
.bba-title {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .02em;
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--bba-fg);
}
.bba-badge {
	font-size: 10px;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 2px 6px;
	border: 1px solid var(--bba-line);
	border-radius: 4px;
	color: var(--bba-muted);
}
/* Кнопки всередині чату захищені від стилів теми (Woodmart задає кнопкам відступи й мінімальні розміри). */
.bba-root button {
	min-width: 0;
	min-height: 0;
	margin: 0;
	line-height: 1;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	font-family: inherit;
}

.bba-root .bba-close {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	aspect-ratio: 1;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	color: var(--bba-fg);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.bba-root .bba-close:hover { background: rgba(255, 255, 255, .14); }

.bba-head-tools { display: flex; align-items: center; gap: 6px; }
.bba-root .bba-head-btn {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--bba-muted);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.bba-root .bba-head-btn:hover { color: var(--bba-fg); background: rgba(255, 255, 255, .08); }

/* Відповіді AI: абзаци, списки, посилання */
.bba-msg p { margin: 0; }
.bba-msg p + p,
.bba-msg p + ul,
.bba-msg ul + p { margin-top: 8px; }
.bba-msg ul { margin: 0; padding-left: 18px; list-style: disc; }
.bba-msg li { margin: 2px 0; }
.bba-msg strong { font-weight: 600; }
.bba-msg a { color: inherit; text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.bba-msg-user { white-space: pre-wrap; }
.bba-msg-error { background: rgba(229, 72, 77, .14) !important; color: #ffb4b6; }

/* Картки товарів: горизонтальна стрічка */
.bba-cards-wrap { position: relative; flex-shrink: 0; margin: 2px 0; }
.bba-cards {
	display: flex;
	gap: 10px;
	padding: 2px 0 6px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 0;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.bba-cards::-webkit-scrollbar { display: none; }
/* Відступ після останньої картки (padding справа у стрічці з прокруткою браузери ігнорують). */
.bba-cards::after { content: ""; flex: 0 0 1px; }
.bba-root .bba-cards-nav {
	position: absolute;
	top: calc(50% - 34px);
	z-index: 1;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 50%;
	background: rgba(17, 17, 19, .88);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}
.bba-root .bba-cards-nav[hidden] { display: none; }
.bba-root .bba-prev { left: -6px; }
.bba-root .bba-next { right: -6px; }
.bba-root .bba-cards-nav:hover { background: #2a2a2e; }
/* На сенсорних екранах стрічку гортають пальцем — стрілки не потрібні. */
@media (hover: none) {
	.bba-root .bba-cards-nav { display: none; }
}

/* Тонка темна смуга прокрутки */
.bba-messages { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
.bba-messages::-webkit-scrollbar { width: 6px; }
.bba-messages::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); border-radius: 3px; }
.bba-messages::-webkit-scrollbar-track { background: transparent; }

/* Перше повідомлення: бліда примітка «AI-асистент» і маленькі кнопки під ним */
.bba-intro { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; animation: bba-fade .4s ease both; }
.bba-intro-note { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--bba-muted); opacity: .7; padding-left: 2px; }
.bba-intro-note::before { content: ""; flex-shrink: 0; width: 12px; height: 12px; opacity: .8; background-color: currentColor; -webkit-mask: var(--bba-i-sparkle) center / contain no-repeat; mask: var(--bba-i-sparkle) center / contain no-repeat; }
.bba-intro-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bba-root .bba-intro-chip {
	height: 28px;
	padding: 0 11px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 14px;
	background: transparent;
	color: rgba(242, 242, 243, .78);
	font-size: 12px;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.bba-root .bba-intro-chip:hover { background: rgba(255, 255, 255, .08); color: var(--bba-fg); }
.bba-msg-greet { animation: bba-fade .4s ease both; }
@keyframes bba-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Фото клієнта: у полі вводу і в повідомленнях */
.bba-photos { display: flex; gap: 8px; flex-wrap: wrap; }
.bba-photo { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid var(--bba-line); }
.bba-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bba-root .bba-photo-x {
	position: absolute;
	top: 3px;
	right: 3px;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .65);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.bba-root .bba-photo-x svg { width: 11px; height: 11px; }
.bba-photo-note { font-size: 11px; color: var(--bba-muted); }
.bba-msg-photos { align-self: flex-end; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 85%; flex-shrink: 0; }
.bba-msg-photos img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; display: block; }

/* Вебкамера */
.bba-cam { position: fixed; inset: 0; z-index: 100000; background: rgba(0, 0, 0, .7); display: flex; align-items: center; justify-content: center; }
.bba-cam-box { width: min(640px, 94vw); padding: 14px; border-radius: 16px; background: #111113; display: flex; flex-direction: column; gap: 12px; }
.bba-cam-box video { width: 100%; border-radius: 10px; background: #000; transform: scaleX(-1); }
.bba-cam-actions { display: flex; justify-content: flex-end; gap: 10px; }
/* Кнопки-іконки: сторонні скрипти сайту інколи дописують у кнопки текст (бачили «undefined»
   на сторінці товару) — у цих кнопках текст не показуємо взагалі. */
.bba-root .bba-ctx-x,
.bba-root .bba-icon-btn,
.bba-root .bba-send,
.bba-root .bba-close,
.bba-root .bba-head-btn,
.bba-root .bba-cards-nav,
.bba-root .bba-photo-x { font-size: 0 !important; line-height: 0 !important; overflow: hidden; }
.bba-root .bba-cam-shot, .bba-root .bba-cam-cancel { height: 42px; padding: 0 18px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.bba-root .bba-cam-shot { border: 0; background: #f2f2f3; color: #111113; }
.bba-root .bba-cam-cancel { border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #f2f2f3; }


/* Форма «Як з вами зв'язатися?» */
.bba-contact {
	flex-shrink: 0;
	margin: 0;
	padding: 14px;
	border: 1px solid var(--bba-line);
	border-radius: 16px;
	background: var(--bba-soft);
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.bba-contact-title { font-size: 15px; font-weight: 600; }
.bba-contact-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.bba-root .bba-contact-tab {
	height: 40px;
	padding: 0 10px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 10px;
	background: transparent;
	color: var(--bba-fg);
	font-size: 14px;
	cursor: pointer;
}
.bba-root .bba-contact-tab:hover { background: rgba(255, 255, 255, .08); }
.bba-root .bba-contact-tab.is-active { background: var(--bba-accent); color: var(--bba-on-accent); border-color: var(--bba-accent); }
.bba-root input.bba-contact-input {
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 10px;
	background: var(--bba-field);
	color: var(--bba-fg);
	font-size: 16px;
	box-shadow: none;
}
.bba-root input.bba-contact-input[hidden] { display: none; }
.bba-contact-note { font-size: 13px; color: #ffb4b6; }
.bba-contact-note:empty { display: none; }
.bba-root .bba-contact-send {
	height: 42px;
	border: 0;
	border-radius: 10px;
	background: var(--bba-accent);
	color: var(--bba-on-accent);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.bba-root a.bba-card {
	flex: 0 0 150px;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 8px;
	border: 1px solid var(--bba-line);
	border-radius: 14px;
	background: var(--bba-soft);
	color: var(--bba-fg);
	text-decoration: none;
	transition: border-color .15s ease;
}
.bba-root a.bba-card:hover { border-color: rgba(255, 255, 255, .25); color: var(--bba-fg); }
.bba-card-img {
	aspect-ratio: 3 / 4;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}
.bba-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bba-card-price { font-size: 15px; font-weight: 600; }
.bba-card-title {
	font-size: 12px;
	line-height: 1.35;
	color: var(--bba-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 32px;
}
.bba-card-btn {
	margin-top: auto;
	height: 32px;
	border-radius: 8px;
	background: var(--bba-accent);
	color: var(--bba-on-accent);
	font-size: 12px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bba-root a.bba-card[hidden] { display: none; }
.bba-root button.bba-card-more {
	flex: 0 0 110px;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 8px;
	border: 1px dashed rgba(255, 255, 255, .22);
	border-radius: 14px;
	background: transparent;
	color: var(--bba-fg);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
}
.bba-root button.bba-card-more:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .35); }
.bba-root button.bba-card-more::before { content: ""; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f2f2f3' d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6z'/%3E%3C/svg%3E") center / 22px no-repeat; }
.bba-root button.bba-card-more.is-loading { opacity: .5; cursor: progress; }
.bba-root button.bba-card-more.is-loading::before { animation: bba-spin 1s linear infinite; }
@keyframes bba-spin { to { transform: rotate(360deg); } }

/* Фільтри під стрічкою карток: колір, тканина */
.bba-filters { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; margin-top: -2px; }
.bba-filter-group {
	display: flex;
	align-items: center;
	gap: 6px;
	overflow-x: auto;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.bba-filter-group::-webkit-scrollbar { display: none; }
.bba-filter-label { flex-shrink: 0; font-size: 11px; color: var(--bba-muted); min-width: 58px; }
.bba-root .bba-filter {
	flex-shrink: 0;
	height: 28px;
	padding: 0 11px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 14px;
	background: transparent;
	color: rgba(242, 242, 243, .85);
	font-size: 12px;
	white-space: nowrap;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.bba-root .bba-filter:hover { background: rgba(255, 255, 255, .08); }
.bba-root .bba-filter.is-active { background: var(--bba-accent); border-color: var(--bba-accent); color: var(--bba-on-accent); }
.bba-root .bba-filter:disabled { opacity: .35; cursor: default; background: transparent; }

/* Кнопки-варіанти відповіді */
.bba-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
	flex-shrink: 0;
}
.bba-root .bba-option {
	height: 34px;
	padding: 0 14px;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 17px;
	background: transparent;
	color: var(--bba-fg);
	font-size: 14px;
	cursor: pointer;
	transition: background .15s ease;
}
.bba-root .bba-option:hover { background: rgba(255, 255, 255, .1); }
.bba-root a.bba-option { display: inline-flex; align-items: center; color: var(--bba-fg); text-decoration: none; }

/* «Друкує…» */
.bba-typing { display: flex; gap: 4px; align-items: center; min-height: 20px; }
.bba-typing span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--bba-muted);
	animation: bba-blink 1.2s infinite ease-in-out both;
}
.bba-typing span:nth-child(2) { animation-delay: .15s; }
.bba-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bba-blink {
	0%, 80%, 100% { opacity: .25; transform: translateY(0); }
	40% { opacity: 1; transform: translateY(-2px); }
}

.bba-messages {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.bba-msg {
	max-width: 85%;
	padding: 10px 14px;
	border-radius: 16px;
	font-size: 15px;
	line-height: 1.5;
}
.bba-msg-ai {
	align-self: flex-start;
	background: var(--bba-soft);
	color: var(--bba-fg);
	border-bottom-left-radius: 6px;
}

.bba-msg-user {
	align-self: flex-end;
	background: var(--bba-accent);
	color: var(--bba-on-accent);
	border-bottom-right-radius: 6px;
}

/* Поле вводу: контекст / текст / дії */
.bba-composer {
	margin: 0 12px calc(12px + env(safe-area-inset-bottom));
	padding: 10px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 16px;
	background: var(--bba-field);
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.bba-composer:focus-within { border-color: rgba(255, 255, 255, .24); }

.bba-ctx-row { display: flex; flex-direction: column; gap: 6px; }
.bba-ctx-row[hidden] { display: none; }
.bba-ctx {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	border: 1px solid var(--bba-line);
	border-radius: 12px;
	background: rgba(255, 255, 255, .03);
}
.bba-ctx-thumb {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	overflow: hidden;
	background: #2a2a2e;
	color: var(--bba-muted);
	font-size: 9px;
	font-weight: 600;
	letter-spacing: .1em;
	line-height: 1.1;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
}
.bba-ctx-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bba-ctx-meta { flex: 1; min-width: 0; }
.bba-ctx-title,
.bba-ctx-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bba-ctx-title { font-size: 13px; font-weight: 500; color: var(--bba-fg); }
.bba-ctx-sub { font-size: 12px; color: var(--bba-muted); margin-top: 2px; }
.bba-root .bba-ctx-x {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--bba-muted);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.bba-root .bba-ctx-x:hover { color: var(--bba-fg); background: rgba(255, 255, 255, .08); }

.bba-root textarea.bba-text {
	display: block;
	width: 100%;
	min-height: 52px;
	height: auto;
	max-height: 180px;
	margin: 0;
	padding: 10px 6px 14px;
	border: 0;
	border-radius: 0;
	outline: none;
	background: transparent;
	color: var(--bba-fg);
	font-size: 16px;
	line-height: 1.45;
	letter-spacing: -.01em;
	resize: none;
	box-shadow: none;
}
.bba-root textarea.bba-text::placeholder { color: var(--bba-muted); }

.bba-bar { display: flex; align-items: center; gap: 8px; }
.bba-actions {
	position: relative;
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 6px;
}
.bba-root .bba-icon-btn {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: none;
	color: var(--bba-fg);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.bba-root .bba-icon-btn:hover,
.bba-root .bba-icon-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .1); }

/* Меню «+» над кнопкою */
.bba-menu {
	position: absolute;
	left: 0;
	bottom: calc(100% + 8px);
	z-index: 2;
	min-width: 220px;
	padding: 6px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 12px;
	background: #1c1c1f;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
}
.bba-menu[hidden] { display: none; }
.bba-root .bba-menu-item {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border: 0;
	border-radius: 8px;
	background: none;
	color: var(--bba-fg);
	font-size: 14px;
	text-align: left;
	cursor: pointer;
}
.bba-root .bba-menu-item:not(:disabled):hover { background: rgba(255, 255, 255, .08); }
.bba-root .bba-menu-item:disabled { opacity: .55; }
.bba-soon { margin-left: auto; font-size: 11px; color: var(--bba-muted); }
.bba-root .bba-send {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: var(--bba-accent);
	color: var(--bba-on-accent);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity .15s ease;
}
.bba-root button:disabled { opacity: .35; cursor: not-allowed; }

/* Десктоп: бічна панель праворуч, сайт зсувається ліворуч. */
@media (min-width: 1024px) {
	.bba-panel {
		top: 0;
		right: 0;
		bottom: 0;
		width: var(--bba-w);
		border-left: 1px solid #000;
		transform: translateX(100%);
		transition: transform .28s ease, visibility 0s linear .28s;
	}
	.bba-open .bba-panel {
		transform: none;
		transition: transform .28s ease;
	}

	/* Ширина сайту змінюється одним кроком, без анімації: анімація ширини змушує
	   браузер перебудовувати всю сторінку на кожному кадрі. Плавно рухається лише панель. */
	html.bba-pushed { margin-right: var(--bba-w) !important; }
	.bba-panel { will-change: transform; }
	.bba-instant .bba-panel { transition: none !important; }

	/* Фіксовані елементи сайту не реагують на відступ сторінки — зсуваємо їх окремо. */
	html.bba-pushed #wpadminbar,
	html.bba-pushed .whb-sticked,
	html.bba-pushed .whb-sticked .whb-main-header,
	html.bba-pushed .whb-sticky-header,
	html.bba-pushed .elementor-sticky--active,
	html.bba-pushed .wd-sticky-nav,
	html.bba-pushed .wd-toolbar,
	html.bba-pushed .wd-sticky-btn,
	html.bba-pushed .woocommerce-store-notice {
		right: var(--bba-w) !important;
		width: auto !important;
		left: 0;
	}
	/* Woodmart розтягує секції й мегаменю на 100vw — це ширина всього вікна разом з панеллю чату.
	   У формулі розтягування є ширина бічної навігації теми: підставляємо туди ширину панелі. */
	html.bba-pushed [class*="wd-section-stretch"] { --wd-sticky-nav-w: var(--bba-w); }
	html.bba-pushed .wd-dropdown-menu.wd-design-full-width { --wd-dropdown-width: calc(100vw - var(--bba-w)); }

	/* Бічні панелі Woodmart (вкладки товару, кошик, вхід), затемнення під ними і галерея фото. */
	html.bba-pushed .wd-side-hidden.wd-right {
		right: var(--bba-w) !important;
		width: min(var(--wd-side-hidden-w), calc(100vw - var(--bba-w))) !important;
	}
	html.bba-pushed .wd-close-side,
	html.bba-pushed .wd-search-full-screen,
	html.bba-pushed .pswp {
		right: var(--bba-w) !important;
		width: auto !important;
		left: 0 !important;
	}
	html.bba-pushed .scrollToTop,
	html.bba-pushed .wd-scroll-top {
		right: calc(var(--bba-w) + 20px) !important;
	}
}

/* Мобільний і планшет: шторка знизу з розмиттям фону. */
@media (max-width: 1023px) {
	/* Над нижньою панеллю теми: її висоту (--bba-lift) рахує скрипт. */
	.bba-root .bba-launcher {
		right: 16px;
		bottom: calc(var(--bba-lift, 0px) + 16px + env(safe-area-inset-bottom));
		width: 52px;
		height: 52px;
	}

	.bba-panel {
		left: 0;
		right: 0;
		bottom: var(--bba-kb, 0px);
		height: min(88dvh, calc(var(--bba-vvh, 100dvh) - 12px));
		max-height: calc(var(--bba-vvh, 100dvh) - env(safe-area-inset-top) - 12px);
		border-radius: 22px 22px 0 0;
		background: rgba(22, 22, 24, .62);
		-webkit-backdrop-filter: blur(28px) saturate(180%);
		backdrop-filter: blur(28px) saturate(180%);
		border-top: 1px solid rgba(255, 255, 255, .12);
		box-shadow: 0 -10px 40px rgba(0, 0, 0, .35);
		transform: translateY(100%);
		transition: transform .32s cubic-bezier(.32, .72, 0, 1), visibility 0s linear .32s;
	}
	.bba-open .bba-panel {
		transform: none;
		transition: transform .32s cubic-bezier(.32, .72, 0, 1);
	}

	/* Затемнення сайту за шторкою. */
	.bba-backdrop {
		position: fixed;
		inset: 0;
		z-index: 99990;
		background: rgba(0, 0, 0, .25);
		opacity: 0;
		pointer-events: none;
		transition: opacity .32s ease;
	}
	.bba-open .bba-backdrop { opacity: 1; pointer-events: auto; }

	.bba-grabber {
		display: block;
		width: 36px;
		height: 5px;
		margin: 8px auto 0;
		border-radius: 3px;
		background: rgba(255, 255, 255, .3);
	}
	.bba-head { border-bottom-color: rgba(255, 255, 255, .08); padding-top: 10px; }
	.bba-msg-ai { background: rgba(255, 255, 255, .1); }
	.bba-composer { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .12); }
	.bba-ctx { background: rgba(255, 255, 255, .05); }

	html.bba-lock, html.bba-lock body { overflow: hidden !important; }
}

/* Браузери без розмиття: суцільний темний фон. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	@media (max-width: 1023px) {
		.bba-panel { background: #161618; }
	}
}

@media (prefers-reduced-motion: reduce) {
	.bba-panel { transition: none !important; }
	.bba-unread { animation: none; }
}

/*
 * Іконки кнопок малює CSS, а не SVG усередині кнопки: сторонні скрипти сайту інколи
 * перезаписують вміст кнопок (бачили «undefined» і зниклі іконки на сторінці товару).
 * Іконка в ::before не залежить від вмісту, а чужий текст приховано (font-size: 0).
 */
.bba-root .bba-i { font-size: 0 !important; line-height: 0 !important; }
.bba-root .bba-i::before {
	content: "";
	display: block;
	flex-shrink: 0;
	width: var(--bba-i-size, 18px);
	height: var(--bba-i-size, 18px);
	background-color: currentColor;
	-webkit-mask: var(--bba-i-img) center / contain no-repeat;
	mask: var(--bba-i-img) center / contain no-repeat;
}
.bba-root .bba-i > * { display: none !important; }
.bba-root .bba-launcher.bba-i > .bba-unread { display: block !important; }
.bba-root .bba-launcher.bba-i > .bba-unread[hidden] { display: none !important; }
.bba-i-send { --bba-i-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4l7 7-1.4 1.4L13 7.8V20h-2V7.8l-4.6 4.6L5 11z'/%3E%3C/svg%3E"); }
.bba-i-plus { --bba-i-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6z'/%3E%3C/svg%3E"); }
.bba-i-x { --bba-i-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.4 5 12 10.6 17.6 5 19 6.4 13.4 12l5.6 5.6-1.4 1.4-5.6-5.6L6.4 19 5 17.6 10.6 12 5 6.4z'/%3E%3C/svg%3E"); --bba-i-size: 14px; }
.bba-i-prev { --bba-i-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.4 6.4 14 5l-7 7 7 7 1.4-1.4L9.8 12z'/%3E%3C/svg%3E"); }
.bba-i-next { --bba-i-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.6 17.6 10 19l7-7-7-7-1.4 1.4 5.6 5.6z'/%3E%3C/svg%3E"); }
.bba-i-chat { --bba-i-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H8l-4 4V6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); --bba-i-size: 24px; }
.bba-root .bba-close.bba-i-x { --bba-i-size: 16px; }
.bba-root .bba-photo-x.bba-i-x { --bba-i-size: 11px; }
.bba-root .bba-menu-item::before {
	content: "";
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	background-color: currentColor;
	-webkit-mask: var(--bba-i-img) center / contain no-repeat;
	mask: var(--bba-i-img) center / contain no-repeat;
}
.bba-i-upload { --bba-i-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4h14a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zm0 2v9.6l3.3-3.3a1 1 0 0 1 1.4 0L13 15.6l1.8-1.8a1 1 0 0 1 1.4 0l2.8 2.8V6zm10 1.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3z'/%3E%3C/svg%3E"); }
.bba-i-camera { --bba-i-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 4h6l1.5 2H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3.5zm3 4.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9zm0 2a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5z'/%3E%3C/svg%3E"); }
.bba-root, .bba-ask { --bba-i-sparkle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.2 6.6L21 11l-6.8 2.4L12 20l-2.2-6.6L3 11l6.8-2.4z'/%3E%3C/svg%3E"); }
/* Чужий текст, який скрипти сайту дописують у пункти меню, — не показуємо: видно лише наш підпис. */
.bba-root .bba-menu-item { font-size: 0 !important; }
.bba-root .bba-menu-item > span { font-size: 14px; }

/* Голосове введення */
.bba-i-mic { --bba-i-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 14a3 3 0 0 0 3-3V5a3 3 0 0 0-6 0v6a3 3 0 0 0 3 3zm5-3a5 5 0 0 1-10 0H5a7 7 0 0 0 6 6.92V21h2v-3.08A7 7 0 0 0 19 11z'/%3E%3C/svg%3E"); }
.bba-root .bba-icon-btn.is-recording { background: #e5484d; color: #fff; animation: bba-rec 1.4s ease-in-out infinite; }
.bba-root .bba-icon-btn.is-recording:hover { background: #e5484d; }
@keyframes bba-rec {
	0%, 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .5); }
	50% { box-shadow: 0 0 0 6px rgba(229, 72, 77, 0); }
}
@media (prefers-reduced-motion: reduce) {
	.bba-root .bba-icon-btn.is-recording { animation: none; }
}
.bba-mic-note { font-size: 12px; line-height: 1.4; color: #ffb4b6; padding: 2px 2px 0; }
/* «Очистити» — нова розмова (стара лишається в адмінці) */
.bba-root .bba-head-btn.bba-head-clear {
	flex: 0 0 auto;
	width: auto;
	height: 30px;
	padding: 0 12px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 15px;
	font-size: 12px !important;
	line-height: 1 !important;
	font-weight: 500;
	white-space: nowrap;
}

/* Стрічка повідомлень гортається лише вертикально: жоден блок не ширший за панель.
   Довгі посилання й слова без пробілів переносяться, стрічки карток і фільтрів гортаються всередині себе. */
.bba-root .bba-messages { overflow-x: hidden; }
.bba-root .bba-messages > * { max-width: 100%; min-width: 0; box-sizing: border-box; }
.bba-root .bba-msg { max-width: 85%; overflow-wrap: anywhere; word-break: break-word; }
.bba-root .bba-filters,
.bba-root .bba-filter-group,
.bba-root .bba-cards-wrap,
.bba-root .bba-options,
.bba-root .bba-intro { min-width: 0; max-width: 100%; }
.bba-root .bba-option { max-width: 100%; height: auto; min-height: 34px; padding-top: 6px; padding-bottom: 6px; white-space: normal; text-align: left; }
.bba-root .bba-intro-chip { max-width: 100%; height: auto; min-height: 28px; padding-top: 4px; padding-bottom: 4px; white-space: normal; text-align: left; }
.bba-root button.bba-card-more[hidden] { display: none; }
.bba-filter-count { margin-left: 5px; font-size: 11px; opacity: .55; }
.bba-root .bba-filter.is-active .bba-filter-count { opacity: .7; }

/* Картки «Додати в кошик» з розміром і побажаннями */
.bba-offers { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; max-width: 92%; }
.bba-offer {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px;
	border: 1px solid var(--bba-line);
	border-radius: 14px;
	background: var(--bba-soft);
}
.bba-root a.bba-offer-top { display: flex; gap: 10px; align-items: center; color: var(--bba-fg); text-decoration: none; }
.bba-offer-top img { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; background: #fff; flex-shrink: 0; }
.bba-offer-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bba-offer-title { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bba-offer-size { font-size: 12px; color: var(--bba-muted); }
.bba-offer-price { font-size: 15px; font-weight: 600; }
.bba-offer-label { font-size: 11px; color: var(--bba-muted); margin-bottom: -4px; }
.bba-root textarea.bba-offer-note {
	width: 100%;
	box-sizing: border-box;
	min-height: 52px;
	margin: 0;
	padding: 8px 10px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 10px;
	background: var(--bba-field);
	color: var(--bba-fg);
	font-size: 14px;
	line-height: 1.4;
	resize: vertical;
	box-shadow: none;
}
.bba-root textarea.bba-offer-note[readonly] { opacity: .7; }
.bba-offer-msg { font-size: 12px; color: #ffb4b6; }
.bba-offer-msg:empty { display: none; }
.bba-root .bba-offer-btn,
.bba-root .bba-offer-all {
	height: 40px;
	border: 0;
	border-radius: 10px;
	background: var(--bba-accent);
	color: var(--bba-on-accent);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.bba-root .bba-offer-btn.is-done { background: rgba(70, 167, 88, .2); color: #8fdc9f; cursor: default; opacity: 1; }
.bba-root .bba-offer-all { background: transparent; color: var(--bba-fg); border: 1px solid rgba(255, 255, 255, .25); }
.bba-root a.bba-offer-checkout { align-self: flex-end; font-size: 13px; color: var(--bba-fg); text-decoration: underline; text-underline-offset: 2px; }
.bba-root a.bba-offer-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; }

/* Варіанти на вибір (відділення Нової Пошти) */
.bba-choices { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; max-width: 92%; }
.bba-root .bba-choice {
	text-align: left;
	padding: 9px 12px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 10px;
	background: transparent;
	color: var(--bba-fg);
	font-size: 13px;
	line-height: 1.35;
	cursor: pointer;
}
.bba-root .bba-choice:hover { background: rgba(255, 255, 255, .08); }

/* Підсумок замовлення */
.bba-order-items { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.45; }
.bba-order-items li { margin: 3px 0; }
.bba-order-note { font-size: 12px; color: var(--bba-muted); }
.bba-order-row { display: flex; gap: 10px; font-size: 13px; line-height: 1.4; }
.bba-order-k { flex: 0 0 78px; color: var(--bba-muted); }
.bba-order-v { min-width: 0; overflow-wrap: anywhere; }
.bba-order-warn { font-size: 12px; line-height: 1.4; padding: 8px 10px; border-radius: 8px; background: rgba(255, 193, 7, .12); color: #ffd666; }
.bba-order-done { font-size: 15px; font-weight: 600; color: #8fdc9f; }

/* Знімок панелі під час переходу між сторінками: лише вигляд, без взаємодії; живий чат його замінює. */
.bba-snap { pointer-events: none; }
.bba-snap .bba-panel { visibility: visible; }

/* Блок «Запитайте в AI» на сторінці товару (шорткод [bobrand_ai_questions]) — у стилі сайту, світлий. */
.bba-ask { margin: 16px 0; padding: 14px 16px; border: 1px solid rgba(0, 0, 0, .08); border-radius: 12px; background: #fff; font-family: inherit; }
.bba-ask[hidden] { display: none !important; }
.bba-ask-title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14px; font-weight: 600; line-height: 1.3; color: #111; }
.bba-ask-icon { flex-shrink: 0; width: 20px; height: 20px; border-radius: 6px; background: #111113; position: relative; }
.bba-ask-icon::before { content: ""; position: absolute; inset: 4px; background-color: #fff; -webkit-mask: var(--bba-i-sparkle) center / contain no-repeat; mask: var(--bba-i-sparkle) center / contain no-repeat; }
.bba-ask-rows { display: flex; flex-wrap: wrap; gap: 8px; }
.bba-ask-row { display: contents; }
/* Телефон: два ряди в одній горизонтальній прокрутці до країв блоку, компактніше. */
@media (max-width: 767px) {
	.bba-ask { margin: 12px 0; padding: 12px 0; border-radius: 10px; }
	.bba-ask-title { margin: 0 12px 10px; font-size: 14px; }
	.bba-ask-list { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.bba-ask-list::-webkit-scrollbar { display: none; }
	.bba-ask-rows { display: inline-flex; flex-direction: column; flex-wrap: nowrap; gap: 6px; padding: 0 12px; }
	.bba-ask-row { display: flex; gap: 6px; }
	.bba-ask .bba-ask-q { flex-shrink: 0; padding: 6px 11px; font-size: 13px; white-space: nowrap; }
}
.bba-ask .bba-ask-q { margin: 0; padding: 7px 12px; min-height: 0; height: auto; border: 0; border-radius: 999px; background: #f2f2f3; color: #111; font: inherit; font-size: 13px; font-weight: 400; line-height: 1.3; text-transform: none; letter-spacing: normal; text-align: left; white-space: normal; cursor: pointer; box-shadow: none; transition: background-color .15s; }
.bba-ask .bba-ask-q:hover, .bba-ask .bba-ask-q:focus-visible { background: #e4e4e7; color: #111; }
.bba-ask .bba-ask-more { background: #111113; color: #fff; }
.bba-ask .bba-ask-more:hover, .bba-ask .bba-ask-more:focus-visible { background: #2a2a2e; color: #fff; }

/* Статус у «друкує…»: що зараз робить AI (роздуми, пошук у каталозі…) — з м'яким переливом. */
.bba-root .bba-typing .bba-status {
	margin-left: 6px;
	font-style: normal;
	font-size: 13px;
	line-height: 1.3;
	color: var(--bba-muted);
	background: linear-gradient(90deg, var(--bba-muted) 0%, var(--bba-muted) 40%, var(--bba-fg) 50%, var(--bba-muted) 60%, var(--bba-muted) 100%) 0 0 / 250% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: bba-shine 2.2s linear infinite;
}
.bba-root .bba-typing .bba-status.bba-status-in { animation: bba-fade .3s ease both, bba-shine 2.2s linear infinite; }
@keyframes bba-shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .bba-root .bba-typing .bba-status { animation: none !important; -webkit-text-fill-color: currentColor; background: none; } }

/* «Запитайте в AI»: сірі заготовки, поки AI складає питання, і плавна поява готових. */
.bba-ask .bba-ask-ph { display: inline-block; flex-shrink: 0; height: 32px; padding: 0; background: linear-gradient(90deg, #f2f2f3 0%, #e9e9ec 50%, #f2f2f3 100%) 0 0 / 200% 100%; animation: bba-ph 1.4s ease-in-out infinite; cursor: default; }
@media (max-width: 767px) { .bba-ask .bba-ask-ph { height: 29px; } }
@keyframes bba-ph { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.bba-ask-fill .bba-ask-q { animation: bba-ask-in .35s ease both; }
@keyframes bba-ask-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bba-ask .bba-ask-ph, .bba-ask-fill .bba-ask-q { animation: none; } }

/* Підвантаження старіших повідомлень угорі стрічки. */
.bba-root .bba-older { align-self: center; flex-shrink: 0; width: 18px; height: 18px; margin: 4px 0; border: 2px solid var(--bba-line); border-top-color: var(--bba-muted); border-radius: 50%; animation: bba-spin .8s linear infinite; }

/* «Як заміряти»: картки в каруселі — фото, інструкція, поле для мірки; під ними коментар і «Показати розмір». */
.bba-guide { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; margin: 2px 0; }
.bba-guide-row .bba-guide-step {
	flex: 0 0 min(220px, 72%);
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	margin: 0;
	border-radius: 14px;
	overflow: hidden;
	background: var(--bba-soft);
	border: 1px solid var(--bba-line);
}
.bba-guide-step img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; }
.bba-guide-noimg { justify-content: center; }
.bba-guide-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; flex: 1; }
.bba-guide-field { font-size: 14px; font-weight: 600; }
.bba-guide-text { font-size: 13px; line-height: 1.4; color: var(--bba-muted); flex: 1; }
.bba-root .bba-guide-input { display: flex; align-items: center; gap: 6px; margin-top: 2px; padding: 0 12px; height: 40px; border-radius: 10px; background: var(--bba-field); border: 1px solid var(--bba-line); }
.bba-root .bba-guide-input:focus-within { border-color: rgba(255, 255, 255, .4); }
.bba-root .bba-guide-input input { flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; color: var(--bba-fg); font: inherit; font-size: 16px; outline: none; box-shadow: none; }
.bba-root .bba-guide-input span { font-size: 13px; color: var(--bba-muted); }
.bba-root .bba-guide-note { width: 100%; box-sizing: border-box; margin: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--bba-line); background: var(--bba-field); color: var(--bba-fg); font: inherit; font-size: 14px; line-height: 1.4; resize: none; outline: none; box-shadow: none; }
.bba-root .bba-guide-note:focus { border-color: rgba(255, 255, 255, .4); }
.bba-root .bba-guide-submit,
.bba-root .bba-size-pick { align-self: flex-start; height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--bba-accent); color: var(--bba-on-accent); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.bba-shake { animation: bba-shake .35s ease; }
@keyframes bba-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* Таблиця розмірів з перемикачем таблиць. */
.bba-size { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; padding: 12px; border-radius: 14px; background: var(--bba-soft); border: 1px solid var(--bba-line); }
.bba-size-title { font-size: 14px; font-weight: 600; }
.bba-size-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.bba-size-tabs::-webkit-scrollbar { display: none; }
.bba-root .bba-size-tab { flex-shrink: 0; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--bba-line); background: transparent; color: var(--bba-fg); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.bba-root .bba-size-tab.is-active { background: var(--bba-accent); color: var(--bba-on-accent); border-color: var(--bba-accent); }
.bba-size-table { overflow-x: auto; border-radius: 10px; border: 1px solid var(--bba-line); }
.bba-size-table table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.3; }
.bba-size-table th, .bba-size-table td { padding: 8px 10px; text-align: center; white-space: nowrap; border-bottom: 1px solid var(--bba-line); }
.bba-size-table thead th { background: rgba(255, 255, 255, .06); font-weight: 600; font-size: 12px; color: var(--bba-muted); }
.bba-size-table tbody th { text-align: left; font-weight: 700; position: sticky; left: 0; background: var(--bba-soft); }
.bba-size-table tbody tr:last-child th, .bba-size-table tbody tr:last-child td { border-bottom: 0; }
.bba-size-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .025); }
.bba-size-note { font-size: 12px; line-height: 1.4; color: var(--bba-muted); }

/* 👍/👎 під відповіддю: великі зручні кнопки. */
.bba-rate { display: flex; gap: 4px; flex-shrink: 0; margin: -4px 0 0 2px; }
.bba-root .bba-rate-btn {
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--bba-muted);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color .15s, color .15s;
}
.bba-root .bba-rate-btn::before { content: ""; width: 18px; height: 18px; background-color: currentColor; -webkit-mask: var(--bba-i-thumb) center / contain no-repeat; mask: var(--bba-i-thumb) center / contain no-repeat; }
.bba-root .bba-rate-down::before { transform: rotate(180deg); }
.bba-root .bba-rate-btn:hover { background: rgba(255, 255, 255, .08); color: var(--bba-fg); }
.bba-root .bba-rate-up.is-on { color: #4ade80; }
.bba-root .bba-rate-down.is-on { color: #f87171; }
.bba-root { --bba-i-thumb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 21h4V9H2v12zm20-11a2 2 0 0 0-2-2h-6.3l1-4.6v-.3c0-.4-.2-.8-.4-1.1L13.2 1 6.6 7.6C6.2 8 6 8.5 6 9v10a2 2 0 0 0 2 2h9c.8 0 1.5-.5 1.8-1.2l3-7.1c.1-.2.2-.5.2-.7v-2z'/%3E%3C/svg%3E"); }
.bba-rate-ask { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; animation: bba-fade .3s ease both; }
/* Стилі теми для таблиць і полів сайту не мають впливати на чат. */
.bba-root .bba-size-table th, .bba-root .bba-size-table td { color: var(--bba-fg); text-transform: none; letter-spacing: normal; padding: 7px 8px; font-family: inherit; }
.bba-root .bba-size-table thead th { color: var(--bba-muted); white-space: normal; min-width: 52px; vertical-align: bottom; }
.bba-root .bba-size-table tbody th { color: var(--bba-fg); font-weight: 700; font-size: 13px; }
.bba-root .bba-guide-note { height: 64px; min-height: 0; max-height: 140px; }
.bba-root .bba-size-table table { margin: 0; }
.bba-root .bba-size-table tbody tr:nth-child(even) th { background: #202023; }
.bba-guide-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bba-root .bba-guide-table { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--bba-line); background: transparent; color: var(--bba-fg); font: inherit; font-size: 14px; cursor: pointer; }
.bba-root .bba-guide-table:hover { background: rgba(255, 255, 255, .08); }
.bba-root .bba-checkout-note { margin: 2px 0 4px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid var(--bba-line); font-size: 13px; line-height: 1.4; color: var(--bba-fg); }

/* Підпис розробника під полем вводу — маленький і сірий. */
.bba-root .bba-panel .bba-composer { margin-bottom: 4px; }
.bba-root .bba-credit { flex-shrink: 0; padding: 0 12px calc(8px + env(safe-area-inset-bottom)); text-align: center; font-size: 11px; line-height: 1.3; color: var(--bba-muted); opacity: .75; letter-spacing: normal; }
.bba-root .bba-credit a { color: inherit; text-decoration: none; }
.bba-root .bba-credit a:hover { color: var(--bba-fg); text-decoration: underline; }
