/* Merci Bokku — Bokku assistant */
.mbkt-chat { position: fixed; z-index: 9970; right: 14px; bottom: calc(14px + var(--mbkt-safe-b)); font-family: var(--mbkt-font); }
.mbkt-has-bottom-nav .mbkt-chat { bottom: calc(var(--mbkt-tabbar-h) + 12px + var(--mbkt-safe-b)); }
.mbkt-chat--raised { bottom: calc(92px + var(--mbkt-safe-b)); }
.mbkt-locked .mbkt-chat:not(.is-open) { display: none; }
@media (min-width: 1024px) { .mbkt-chat, .mbkt-has-bottom-nav .mbkt-chat, .mbkt-chat--raised { right: 24px; bottom: 24px; } }
.mbkt-checkout-flow .mbkt-chat { bottom: calc(16px + var(--mbkt-safe-b)); }

.mbkt-chat__launcher {
	position: relative; width: 58px; height: 58px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center;
	background: #fff; box-shadow: 0 8px 24px rgba(16, 20, 30, .18), 0 0 0 3px rgba(var(--mbkt-primary-rgb), .9);
	transition: transform .2s var(--mbkt-ease);
}
.mbkt-chat__launcher:hover { transform: scale(1.05); }
.mbkt-chat__launcher img { width: 52px; height: 52px; border-radius: 50%; }
.mbkt-chat__dot { position: absolute; right: 2px; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 2px #fff; }
.mbkt-chat.is-new .mbkt-chat__launcher { animation: mbkt-chat-hello 2.4s ease-in-out 3s 2; }
@keyframes mbkt-chat-hello { 0%, 100% { transform: none; } 10% { transform: rotate(-10deg) scale(1.08); } 20% { transform: rotate(8deg) scale(1.08); } 30% { transform: none; } }
.mbkt-chat.is-open .mbkt-chat__launcher { display: none; }
@media (min-width: 1024px) { .mbkt-chat.is-open .mbkt-chat__launcher { display: grid; } }

.mbkt-chat__nudge { position: absolute; right: 0; bottom: 70px; width: min(300px, calc(100vw - 28px)); animation: mbkt-up .4s var(--mbkt-ease); }
.mbkt-chat__nudge-body {
	display: flex; gap: 10px; align-items: center; width: 100%; padding: 12px 34px 12px 12px; border: 0; text-align: left;
	border-radius: 18px 18px 4px 18px; background: #fff; box-shadow: var(--mbkt-shadow-lg); font-size: 14px; font-weight: 600; color: var(--mbkt-dark); line-height: 1.35;
}
.mbkt-chat__nudge-body img { width: 36px; height: 36px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--mbkt-soft); }
.mbkt-chat__nudge-x { position: absolute; top: 4px; right: 6px; z-index: 1; width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: var(--mbkt-muted); font-size: 18px; line-height: 1; }

.mbkt-chat__panel {
	position: fixed; inset: auto 0 0 0; height: min(88vh, 100% - 40px); display: flex; flex-direction: column;
	background: #f7f8fa; border-radius: 22px 22px 0 0; box-shadow: var(--mbkt-shadow-lg); overflow: hidden;
	animation: mbkt-chat-in .3s var(--mbkt-ease);
}
@keyframes mbkt-chat-in { from { transform: translateY(30px); opacity: 0; } }
@media (min-width: 768px) {
	.mbkt-chat__panel { inset: auto 24px 96px auto; width: 390px; height: min(640px, 100vh - 130px); border-radius: 22px; }
}
.mbkt-chat__head { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; background: linear-gradient(120deg, var(--mbkt-primary), #f26b1d); color: #fff; flex: none; }
.mbkt-chat__avatar { width: 40px; height: 40px; border-radius: 50%; background: #fff; flex: none; }
.mbkt-chat__who { flex: 1; min-width: 0; line-height: 1.25; }
.mbkt-chat__who b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbkt-chat__who small { display: block; font-size: 11.5px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbkt-chat__lang { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .18); cursor: pointer; }
.mbkt-chat__lang select { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 16px; }
.mbkt-chat__wa, .mbkt-chat__close { width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .18); color: #fff; }
.mbkt-chat__wa:hover, .mbkt-chat__close:hover { background: rgba(255, 255, 255, .3); color: #fff; }

.mbkt-chat__list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 12px 6px; display: flex; flex-direction: column; gap: 8px; }
.mbkt-chat__msg { display: flex; flex-direction: column; max-width: 88%; }
.mbkt-chat__msg--user { align-self: flex-end; align-items: flex-end; }
.mbkt-chat__msg--bot { align-self: flex-start; }
.mbkt-chat__bubble { padding: 10px 13px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; word-wrap: break-word; overflow-wrap: anywhere; }
.mbkt-chat__msg--bot .mbkt-chat__bubble { background: #fff; border-bottom-left-radius: 6px; box-shadow: var(--mbkt-shadow-sm); }
.mbkt-chat__msg--user .mbkt-chat__bubble { background: var(--mbkt-primary); color: #fff; border-bottom-right-radius: 6px; }
.mbkt-chat__bubble a { color: var(--mbkt-primary); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.mbkt-chat__msg--user .mbkt-chat__bubble a { color: #fff; }
.mbkt-chat__products { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 8px; padding: 2px 2px 6px; max-width: calc(100vw - 40px); }
.mbkt-chat__products::-webkit-scrollbar { display: none; }
.mbkt-chat__products .mbkt-pcard { flex: none; width: 150px; }
.mbkt-chat__msg--bot:has(.mbkt-chat__products) { max-width: 100%; }
.mbkt-chat__handoff { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.mbkt-chat__handoff .mbkt-btn { min-height: 42px; }
.mbkt-chat__count { font-size: 12.5px; color: var(--mbkt-muted); }
.mbkt-chat__count button { border: 0; background: none; padding: 0; color: var(--mbkt-primary); font-weight: 650; text-decoration: underline; }
.mbkt-chat__typing .mbkt-chat__bubble { display: flex; gap: 4px; padding: 14px; }
.mbkt-chat__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--mbkt-muted); animation: mbkt-dots 1s infinite; }
.mbkt-chat__typing i:nth-child(2) { animation-delay: .15s; }
.mbkt-chat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes mbkt-dots { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }

.mbkt-chat__chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px 12px 8px; flex: none; }
.mbkt-chat__chips::-webkit-scrollbar { display: none; }
.mbkt-chat__chips:empty { display: none; }
.mbkt-chat__chips button { flex: none; padding: 8px 12px; border-radius: 999px; border: 1.5px solid rgba(var(--mbkt-primary-rgb), .35); background: #fff; color: var(--mbkt-primary); font-size: 13px; font-weight: 600; white-space: nowrap; }
.mbkt-chat__chips button:hover { background: var(--mbkt-soft); }

.mbkt-chat__form { display: flex; align-items: flex-end; gap: 6px; padding: 8px 10px calc(10px + var(--mbkt-safe-b)); background: #fff; border-top: 1px solid var(--mbkt-line); flex: none; }
.mbkt-chat__input { flex: 1; min-height: 44px; max-height: 120px; resize: none; padding: 11px 14px; border-radius: 22px; border: 1.5px solid var(--mbkt-line); background: var(--mbkt-bg); font-size: 16px; line-height: 1.35; outline: none; }
.mbkt-chat__input:focus { border-color: var(--mbkt-primary); background: #fff; }
.mbkt-chat__send, .mbkt-chat__mic { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; }
.mbkt-chat__send { background: var(--mbkt-primary); color: #fff; }
.mbkt-chat__mic { background: var(--mbkt-bg); color: var(--mbkt-muted); }
.mbkt-chat__mic.is-on { background: var(--mbkt-danger); color: #fff; animation: mbkt-pulse 1.2s infinite; }
.mbkt-chat__panel[dir="rtl"] .mbkt-chat__msg--bot { align-self: flex-end; }
.mbkt-chat__panel[dir="rtl"] .mbkt-chat__msg--user { align-self: flex-start; }
body.mbkt-chat-open { overflow: hidden; }
@media (min-width: 768px) { body.mbkt-chat-open { overflow: auto; } }
@media print { .mbkt-chat { display: none !important; } }
