/* CXE Chatbot. Compact front-end chat with restored sessions and staff replies. */
.cxe-bot{
	--cxe-bot-surface:#f5f7fb;
	--cxe-bot-inner:#ffffff;
	--cxe-bot-hair:#e2e8f0;
	--cxe-bot-press:#5b2668;
	--cxe-bot-open:#3aaa5a;
	position:fixed;right:24px;bottom:24px;z-index:99999;
	font-family:var(--font,Inter,system-ui,-apple-system,sans-serif);
	color:var(--ink,#0f172a)
}
.cxe-bot__launch{display:inline-flex;align-items:center;justify-content:center;width:60px;height:60px;
	background:var(--brand,#7a2e8f);color:#fff;border:0;
	border-radius:50%;padding:0;cursor:pointer;box-shadow:0 8px 26px rgba(15,23,42,.24);
	transition:transform .16s ease,background .16s ease}
.cxe-bot__launch:hover,.cxe-bot__launch:focus-visible{background:var(--accent-2,var(--cxe-bot-press));transform:translateY(-1px)}
.cxe-bot__launch-icon{display:flex;align-items:center;justify-content:center}
.cxe-bot__launch-icon .cxe-bot__ico{width:25px;height:25px}
.cxe-bot__launch-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.cxe-bot__dot{width:7px;height:7px;border-radius:50%;background:var(--accent,var(--cxe-bot-open));flex:0 0 auto}

.cxe-bot__panel{display:none}
.cxe-bot.is-open .cxe-bot__panel{position:absolute;right:0;bottom:76px;width:360px;height:520px;
	display:flex;flex-direction:column;overflow:hidden;background:var(--cxe-bot-surface);color:var(--ink,#0f172a);
	border-radius:16px;box-shadow:0 14px 44px rgba(15,23,42,.28);border:1px solid rgba(15,23,42,.08)}
.cxe-bot__head{display:flex;align-items:center;justify-content:space-between;gap:10px;
	height:64px;padding:0 14px 0 16px;background:var(--brand,#7a2e8f);color:#fff;
	border-radius:16px 16px 0 0;flex:0 0 64px}
.cxe-bot__who{display:flex;align-items:center;gap:10px;min-width:0}
.cxe-bot__avatar{width:36px;height:36px;border-radius:50%;background:#fff;color:var(--brand,#7a2e8f);
	display:flex;align-items:center;justify-content:center;flex:0 0 36px}
.cxe-bot__titles{display:flex;flex-direction:column;min-width:0}
.cxe-bot__titles strong{display:block;font-size:16px;line-height:22px;font-weight:600;color:#fff}
.cxe-bot__titles span{display:block;font-size:12px;line-height:16px;font-weight:400;color:#fff;opacity:.8;
	white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cxe-bot__reset,.cxe-bot__close{width:32px;height:32px;padding:0;background:none;border:0;color:#fff;cursor:pointer;
	display:flex;align-items:center;justify-content:center;flex:0 0 32px}
.cxe-bot__reset{margin-left:auto;opacity:.88}
.cxe-bot__reset:hover,.cxe-bot__close:hover{opacity:1}
.cxe-bot__ico{display:block}

.cxe-bot__log{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px;
	background:var(--cxe-bot-surface)}
.cxe-bot__avail{display:flex;align-items:center;justify-content:center;gap:8px;
	font-size:13px;line-height:18px;color:var(--muted,#475569);text-align:center}
.cxe-bot__avail .cxe-bot__dot{background:var(--accent,var(--cxe-bot-open))}
.cxe-bot__day{align-self:center;font-size:12px;line-height:16px;color:var(--muted,#475569)}
.cxe-bot__msg{max-width:85%;padding:10px 12px;border-radius:12px;font-size:14px;line-height:20px;font-weight:400;
	white-space:pre-wrap;overflow-wrap:anywhere}
.cxe-bot__msg a{color:#1267d6;text-decoration:underline}
.cxe-bot__msg--user{align-self:flex-end;background:var(--brand,#7a2e8f);color:#fff;
	border-bottom-right-radius:4px}
.cxe-bot__msg--user a{color:#fff}
.cxe-bot__msg--bot{align-self:flex-start;background:#fff;color:var(--ink,#0f172a);
	border:1px solid var(--cxe-bot-hair);border-bottom-left-radius:4px}
.cxe-bot__type{align-self:flex-start;display:flex;align-items:center;gap:5px;padding:12px 14px;
	background:var(--cxe-bot-inner);border-radius:14px;border-bottom-left-radius:4px}
.cxe-bot__type i{width:6px;height:6px;border-radius:50%;background:var(--muted,#475569);
	display:block;animation:cxe-bot-dot 1.2s ease-in-out infinite}
.cxe-bot__type i:nth-child(2){animation-delay:.15s}
.cxe-bot__type i:nth-child(3){animation-delay:.3s}
@keyframes cxe-bot-dot{0%,80%,100%{opacity:.28}40%{opacity:1}}

.cxe-bot__chips-label{font-size:12px;line-height:16px;color:var(--muted,#475569)}
.cxe-bot__chips{display:flex;flex-wrap:wrap;gap:8px}
.cxe-bot__chip{height:36px;padding:0 12px;border:0;border-radius:10px;background:var(--cxe-bot-inner);
	color:var(--ink,#0f172a);font-family:inherit;font-size:13px;line-height:18px;font-weight:500;
	cursor:pointer;box-shadow:none;border:1px solid var(--cxe-bot-hair)}
.cxe-bot__chip.is-on{background:var(--brand,#7a2e8f);color:#fff}

.cxe-bot__actions{display:flex;gap:8px;align-self:stretch;margin-top:2px}
.cxe-bot__btn{flex:1;height:44px;padding:0 12px;border:0;border-radius:10px;cursor:pointer;
	font-family:inherit;font-size:14px;line-height:20px;font-weight:600;
	display:inline-flex;align-items:center;justify-content:center;gap:8px;
	text-decoration:none;box-shadow:none}
.cxe-bot__btn--fill{background:var(--brand,#7a2e8f);color:#fff}
.cxe-bot__btn--quiet{background:var(--cxe-bot-inner);color:var(--ink,#0f172a);font-weight:600;border:1px solid var(--cxe-bot-hair)}

.cxe-bot__card{align-self:stretch;background:var(--cxe-bot-inner);border-radius:16px;padding:16px;
	display:flex;flex-direction:column;gap:12px}
.cxe-bot__card h2{margin:0;font-size:15px;line-height:22px;font-weight:600;color:var(--ink,#0f172a)}
.cxe-bot__field{display:flex;flex-direction:column;gap:6px}
.cxe-bot__field span{font-size:12px;line-height:16px;color:var(--muted,#475569)}
.cxe-bot__field input{height:44px;padding:0 12px;border:0;border-radius:10px;background:var(--cxe-bot-surface);
	color:var(--ink,#0f172a);font:inherit;box-shadow:none}
.cxe-bot__card .cxe-bot__btn--fill{width:100%;height:48px;font-size:15px;line-height:22px}
.cxe-bot__hint{margin:0;font-size:12px;line-height:16px;color:var(--muted,#475569)}

.cxe-bot__sent{align-self:center;max-width:280px;display:flex;flex-direction:column;align-items:center;
	text-align:center;gap:6px;color:var(--ink,#0f172a)}
.cxe-bot__sent .cxe-bot__ico{color:var(--brand,#7a2e8f);width:40px;height:40px}
.cxe-bot__sent strong{display:block;font-size:17px;line-height:24px;font-weight:600}
.cxe-bot__sent p{margin:0;font-size:14px;line-height:20px;color:var(--muted,#475569);font-weight:400}
.cxe-bot__sent-row{display:flex;flex-direction:column;gap:8px;align-self:stretch;margin-top:10px}

.cxe-bot__form{display:flex;align-items:center;gap:8px;height:72px;padding:0 12px;flex:0 0 72px;
	background:var(--cxe-bot-surface);border-top:1px solid var(--cxe-bot-hair)}
.cxe-bot__form input{flex:1;height:44px;padding:0 12px;border:0;border-radius:10px;
	background:var(--cxe-bot-inner);color:var(--ink,#0f172a);font:inherit;box-shadow:none}
.cxe-bot__form input::placeholder{color:var(--muted,#475569)}
.cxe-bot__form button{width:44px;height:44px;padding:0;flex:0 0 44px;background:var(--brand,#7a2e8f);
	color:#fff;border:0;border-radius:10px;cursor:pointer;display:flex;align-items:center;justify-content:center;
	box-shadow:none}
.cxe-bot__form button:hover,.cxe-bot__form button:focus-visible{background:var(--accent-2,var(--cxe-bot-press))}

@media (max-width:480px){
	.cxe-bot{right:16px;bottom:16px}
	.cxe-bot.is-open{inset:0;right:0;bottom:0;left:0}
	.cxe-bot.is-open .cxe-bot__launch{display:none}
	.cxe-bot.is-open .cxe-bot__panel{position:fixed;inset:0;right:0;bottom:0;width:100%;height:100%;
		border-radius:16px 16px 0 0}
	.cxe-bot__head{border-radius:16px 16px 0 0}
	.cxe-bot__form{padding-bottom:34px;height:auto;min-height:72px;padding-top:14px}
	.cxe-bot__msg{max-width:280px}
	.cxe-bot__msg--user{max-width:280px}
	.cxe-bot__chips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px}
	.cxe-bot__chip{flex:0 0 auto}
}
