/* BoiChitro Suite – AI assistant widget */
.bcs-ai-fab { all: unset; box-sizing: border-box; position: fixed; right: 20px; bottom: 22px; z-index: 99990; display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 20px 0 16px; border-radius: 999px; cursor: pointer; color: #fff; font: 800 15px/1 system-ui, -apple-system, "Segoe UI", sans-serif; background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 14px 30px -10px rgba(79, 70, 229, .65); transition: transform .2s, box-shadow .2s, bottom .3s; -webkit-tap-highlight-color: transparent; }
.bcs-ai-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(79, 70, 229, .75); }
.bcs-ai-fab:focus-visible { outline: 3px solid #c7d2fe; outline-offset: 3px; }
.bcs-ai-fab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
html.bcs-ai-open .bcs-ai-fab { transform: scale(.9); opacity: 0; pointer-events: none; }

.bcs-ai { position: fixed; right: 20px; bottom: 20px; z-index: 99991; display: flex; flex-direction: column; width: 390px; height: min(640px, calc(100vh - 40px)); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px -18px rgba(15, 23, 42, .45), 0 0 0 1px rgba(15, 23, 42, .06); font: 14.5px/1.5 system-ui, -apple-system, "Segoe UI", "Noto Sans Bengali", sans-serif; color: #1f2633; animation: bcsAiIn .22s ease-out; }
.bcs-ai[hidden] { display: none !important; }
@keyframes bcsAiIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.bcs-ai * { box-sizing: border-box; }
.bcs-ai__head { display: flex; align-items: center; gap: 10px; padding: 13px 12px 13px 14px; color: #fff; background: linear-gradient(120deg, #4f46e5, #7c3aed 60%, #db2777); }
.bcs-ai__av { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; color: #4f46e5; background: #fff; box-shadow: inset 0 0 0 3px #e0e7ff; }
.bcs-ai__who { flex: 1; min-width: 0; }
.bcs-ai__who strong { display: block; font-size: 15.5px; font-weight: 800; color: #fff; }
.bcs-ai__who small { display: block; font-size: 12px; opacity: .9; }
.bcs-ai__ib { all: unset; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(255, 255, 255, .16); }
.bcs-ai__ib:hover { background: rgba(255, 255, 255, .28); }
.bcs-ai__ib svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.bcs-ai__list { flex: 1; overflow-y: auto; padding: 14px 12px 6px; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(180deg, #f7f6ff, #fbfbfe 160px); overscroll-behavior: contain; }
.bcs-ai__msg { display: flex; }
.bcs-ai__msg--me { justify-content: flex-end; }
.bcs-ai__b { max-width: 86%; padding: 9px 13px; border-radius: 16px 16px 16px 5px; background: #fff; border: 1px solid #e8e6f6; word-wrap: break-word; }
.bcs-ai__msg--me .bcs-ai__b { border-radius: 16px 16px 5px 16px; color: #fff; background: #4f46e5; border-color: #4f46e5; }
.bcs-ai__b p { margin: 0 0 4px !important; }
.bcs-ai__b p:last-child { margin-bottom: 0 !important; }
.bcs-ai__b ul { margin: 4px 0 6px 18px !important; padding: 0 !important; list-style: disc !important; }
.bcs-ai__b li { margin: 0 0 2px !important; }
.bcs-ai__b a { color: #4f46e5; font-weight: 700; text-decoration: underline; }
.bcs-ai__b strong { font-weight: 800; }
.bcs-ai__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.bcs-ai__chips button { all: unset; cursor: pointer; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #4f46e5; background: #fff; border: 1px solid #c7d2fe; }
.bcs-ai__chips button:hover { background: #eef0ff; }
.bcs-ai__chips button[data-chip=human] { color: #0f766e; border-color: #99e0d4; }
.bcs-ai__cards { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x mandatory; }
.bcs-ai__card { flex: 0 0 138px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 12px; background: #fff; border: 1px solid #e6e8f0; }
.bcs-ai__cimg { display: block; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: #f3f4f6; }
.bcs-ai__cimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bcs-ai__ct { font-size: 12.5px; font-weight: 700; color: #1f2633 !important; line-height: 1.3; text-decoration: none !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.bcs-ai__cp { font-size: 13px; font-weight: 800; color: #166534; }
.bcs-ai__cp del { font-weight: 500; color: #94a3b8; font-size: 11.5px; }
.bcs-ai__cbtn { display: block; padding: 6px 8px; border-radius: 8px; text-align: center; font-size: 12px; font-weight: 800; color: #fff !important; background: #ea580c; text-decoration: none !important; }
.bcs-ai__cbtn.is-ghost { color: #4f46e5 !important; background: #eef0ff; }
.bcs-ai__acts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.bcs-ai__act { display: inline-block; padding: 7px 12px; border-radius: 10px; font-size: 13px; font-weight: 800; text-decoration: none !important; color: #4f46e5 !important; background: #fff; border: 1px solid #c7d2fe; }
.bcs-ai__act:hover { background: #eef0ff; }
.bcs-ai__act--pay { color: #fff !important; background: #ea580c; border-color: #ea580c; }
.bcs-ai__act--track { color: #0369a1 !important; border-color: #bae6fd; }
.bcs-ai__act--cancel, .bcs-ai__act--return { color: #b45309 !important; border-color: #fde68a; }
.bcs-ai__act--wa { color: #fff !important; background: #16a34a; border-color: #16a34a; }
.bcs-ai__act--call { color: #c2410c !important; border-color: #fed7aa; }
.bcs-ai__act--case { color: #0f766e !important; border-color: #99e0d4; }
.bcs-ai__hours { flex-basis: 100%; font-size: 11.5px; color: #64748b; }
.bcs-ai__typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid #e8e6f6; }
.bcs-ai__typing i { width: 7px; height: 7px; border-radius: 50%; background: #a5b4fc; animation: bcsAiDot 1s infinite ease-in-out; }
.bcs-ai__typing i:nth-child(2) { animation-delay: .15s; } .bcs-ai__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bcsAiDot { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
.bcs-ai__form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 10px 6px; border-top: 1px solid #eef0f5; background: #fff; margin: 0; }
.bcs-ai__form textarea { flex: 1; min-height: 42px; max-height: 120px; resize: none; margin: 0 !important; padding: 10px 12px !important; border: 1px solid #d6dbe6 !important; border-radius: 14px !important; font: inherit !important; font-size: 15px !important; line-height: 1.4 !important; color: #1f2633 !important; background: #f8f9fc !important; box-shadow: none !important; outline: none; }
.bcs-ai__form textarea:focus { border-color: #818cf8 !important; background: #fff !important; box-shadow: 0 0 0 3px #e0e7ff !important; }
.bcs-ai__send { all: unset; cursor: pointer; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: #4f46e5; }
.bcs-ai__send[disabled] { opacity: .5; cursor: default; }
.bcs-ai__send svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.bcs-ai__fine { margin: 0 !important; padding: 0 12px 9px; font-size: 11px; color: #94a3b8; text-align: center; background: #fff; }
.bcs-ai__fine a { color: #64748b; }

@media (max-width: 768px) {
	.bcs-ai-fab { right: 14px; bottom: calc(16px + env(safe-area-inset-bottom)); height: 50px; padding: 0 14px; }
	.bcs-ai-fab span { display: none; }
	body.ssf-has-bnav:not(.ssf-scrolling-down) .bcs-ai-fab { bottom: calc(88px + env(safe-area-inset-bottom)); }
	body.single-product .bcs-ai-fab, body.woocommerce-cart .bcs-ai-fab { bottom: calc(88px + env(safe-area-inset-bottom)); }
	.bcs-ai { right: 0; bottom: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; }
	html.bcs-ai-open, html.bcs-ai-open body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .bcs-ai, .bcs-ai-fab, .bcs-ai__typing i { animation: none; transition: none; } }
@media print { .bcs-ai-fab, .bcs-ai { display: none !important; } }
/* theme-proofing: themes style every <button> */
.bcs-ai .bcs-ai__chips button { color: #4f46e5 !important; background: #fff !important; border: 1px solid #c7d2fe !important; box-shadow: none !important; text-transform: none !important; letter-spacing: 0 !important; min-height: 0 !important; line-height: 1.3 !important; }
.bcs-ai .bcs-ai__chips button:hover { background: #eef0ff !important; }
.bcs-ai .bcs-ai__chips button[data-chip=human] { color: #0f766e !important; border-color: #99e0d4 !important; }
.bcs-ai .bcs-ai__ib { color: #fff !important; background: rgba(255, 255, 255, .18) !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; min-height: 0 !important; }
.bcs-ai .bcs-ai__ib:hover { background: rgba(255, 255, 255, .3) !important; }
.bcs-ai .bcs-ai__send { color: #fff !important; background: #4f46e5 !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; min-height: 0 !important; }
.bcs-ai-fab, .bcs-ai-fab:hover, .bcs-ai-fab:focus { color: #fff !important; background: linear-gradient(135deg, #4f46e5, #7c3aed) !important; border: 0 !important; text-transform: none !important; letter-spacing: 0 !important; }
.bcs-ai .bcs-ai__av { color: #4f46e5 !important; }
.bcs-ai .bcs-ai__chips button[data-pick="go:human"] { color: #0f766e !important; border-color: #99e0d4 !important; }
