/* KANDOO Business Directory — the bee assistant */
.kb{position:fixed;z-index:18;bottom:calc(18px + env(safe-area-inset-bottom,0px));inset-inline-start:max(18px,env(safe-area-inset-left,0px));font-family:var(--f-body,inherit)}
.kb.kb-under:not(.kb-open){display:none}
.kb-fab{display:inline-flex;align-items:center;gap:8px;min-height:52px;padding:0 20px 0 16px;border:0;border-radius:999px;background:var(--red,#b3141f);color:#fff;font:inherit;font-weight:800;font-size:.98rem;box-shadow:0 6px 20px rgba(179,20,31,.35);cursor:pointer}
.kb[dir="rtl"] .kb-fab{padding:0 16px 0 20px}
.kb-fab-ic{width:26px;height:26px;border-radius:50%;background:rgba(255,255,255,.2);display:grid;place-items:center;font-weight:800}
.kb-fab:focus-visible{outline:2px solid var(--honey,#c49a3c);outline-offset:3px}
.kb.kb-open .kb-fab{display:none}
/* the bee sits on the button and on the open chat, facing the button */
.kb-fab-bee{position:absolute;z-index:2;bottom:calc(100% - 20px);inset-inline-start:-14px;width:84px;height:80px;pointer-events:none;filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 6px rgba(255,255,255,.8)) drop-shadow(0 3px 4px rgba(0,0,0,.25));animation:kbHover 2.4s ease-in-out infinite;transition:opacity .3s}
.kb[dir="rtl"] .kb-fab-bee{transform:scaleX(-1)}
.kb.kb-teasing .kb-fab-bee,.kb.kb-open .kb-fab-bee{opacity:0}
@keyframes kbHover{0%,100%{translate:0 0}50%{translate:0 -6px}}
@media (min-width:1024px){.kb-fab-bee{width:126px;height:120px;bottom:calc(100% - 30px);inset-inline-start:-8px}}
/* hello bubble */
.kb-teaser{position:absolute;bottom:calc(100% + 14px);inset-inline-start:0;width:min(300px,calc(100vw - 36px));opacity:0;transform:translateY(8px) scale(.96);transition:opacity .3s,transform .35s cubic-bezier(.2,.9,.3,1.3)}
.kb-teaser.in{opacity:1;transform:none}
.kb-teaser-body{background:#fff;color:var(--ink,#1f1919);border:2px solid var(--honey,#c49a3c);border-radius:16px;padding:14px 16px;box-shadow:0 10px 30px rgba(20,10,10,.22)}
.kb-teaser-body p{margin:0 0 10px;font-weight:700;line-height:1.6}
.kb-teaser-ask{border:0;border-radius:999px;background:var(--red,#b3141f);color:#fff;font:inherit;font-weight:800;padding:7px 16px;cursor:pointer}
.kb-teaser-x{position:absolute;top:-10px;inset-inline-end:-8px;width:28px;height:28px;border-radius:50%;border:0;background:var(--slate,#161c2e);color:#fff;font-size:18px;line-height:1;cursor:pointer}
.kb-teaser-bee{position:absolute;bottom:calc(100% - 26px);inset-inline-end:-18px;width:96px;height:91px;transform:scaleX(-1);filter:drop-shadow(0 0 2px #fff) drop-shadow(0 3px 4px rgba(0,0,0,.25));animation:kbHover 2.4s ease-in-out infinite}
.kb[dir="rtl"] .kb-teaser-bee{transform:none}
/* chat window */
.kb-panel{position:relative;width:min(390px,calc(100vw - 36px));height:min(620px,calc(100vh - 110px));display:flex;flex-direction:column;background:#fff;border-radius:18px;box-shadow:0 14px 44px rgba(20,10,10,.3)}
.kb-panel[hidden]{display:none}
.kb-head-bee{position:absolute;z-index:3;top:-58px;inset-inline-end:14px;width:76px;height:72px;transform:scaleX(-1);filter:drop-shadow(0 0 2px #fff) drop-shadow(0 3px 4px rgba(0,0,0,.25));animation:kbHover 2.4s ease-in-out infinite;pointer-events:none}
.kb[dir="rtl"] .kb-head-bee{transform:none}
.kb-head{display:flex;align-items:center;gap:10px;padding:12px 12px 12px 14px;background:var(--slate,#161c2e);color:#fff;border-radius:18px 18px 0 0;border-bottom:3px solid var(--honey,#c49a3c)}
.kb-head>div{flex:1;min-width:0;display:grid}
.kb-head strong{font-size:1.05rem}
.kb-sub{font-size:.78rem;color:#c9cdd6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kb-av{width:38px;height:42px;flex:none;background:var(--honey,#c49a3c);color:#1e2833;font-weight:800;display:grid;place-items:center;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%)}
.kb-reset{width:36px;height:36px;flex:none;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:18px;line-height:1;cursor:pointer}
.kb-x{width:36px;height:36px;flex:none;border-radius:50%;border:0;background:rgba(255,255,255,.12);color:#fff;font-size:22px;line-height:1;cursor:pointer}
.kb-list{flex:1;overflow-y:auto;padding:14px;background:var(--surface,#fbf7f6);display:flex;flex-direction:column;gap:10px}
.kb-msg{max-width:88%;padding:10px 13px;border-radius:14px;line-height:1.7;font-size:.95rem;overflow-wrap:anywhere}
.kb-assistant{align-self:flex-start;background:#fff;border:1px solid var(--line,#eadfdc);border-start-start-radius:4px}
.kb-user{align-self:flex-end;background:var(--red,#b3141f);color:#fff;border-start-end-radius:4px}
.kb-msg a{color:var(--red,#b3141f);font-weight:700}
.kb-user a{color:#fff}
.kb-notice{margin:0;font-size:.76rem;color:#6b6260;line-height:1.6}
.kb-chips{display:flex;flex-wrap:wrap;gap:8px}
.kb-chip{border:1.5px solid var(--red,#b3141f);background:#fff;color:var(--red,#b3141f);border-radius:999px;padding:6px 12px;font:inherit;font-size:.88rem;font-weight:700;cursor:pointer}
.kb-chip:hover{background:var(--red-soft,#fbe9ea)}
.kb-act{margin-top:8px}
.kb-act-btn{border:0;border-radius:999px;background:var(--honey,#c49a3c);color:#1e2833;font:inherit;font-weight:800;padding:8px 14px;cursor:pointer}
.kb-typing{display:flex;gap:4px;align-items:center;min-height:38px}
.kb-typing i{width:7px;height:7px;border-radius:50%;background:var(--honey,#c49a3c);animation:kbDot 1s infinite}
.kb-typing i:nth-child(2){animation-delay:.15s}.kb-typing i:nth-child(3){animation-delay:.3s}
@keyframes kbDot{0%,80%,100%{opacity:.3;transform:none}40%{opacity:1;transform:translateY(-3px)}}
.kb-form{display:flex;gap:8px;align-items:flex-end;padding:10px;border-top:1px solid var(--line,#eadfdc)}
.kb-form textarea{flex:1;resize:none;border:1px solid var(--line,#eadfdc);border-radius:12px;padding:10px 12px;font:inherit;font-size:16px;line-height:1.4;max-height:120px;min-height:44px}
.kb-form textarea:focus{outline:2px solid var(--honey,#c49a3c);outline-offset:0}
.kb-send{width:44px;height:44px;flex:none;border:0;border-radius:50%;background:var(--red,#b3141f);color:#fff;font-size:18px;cursor:pointer}
.kb[dir="rtl"] .kb-send span{display:inline-block;transform:scaleX(-1)}
.kb-send:disabled{opacity:.5}
.kb-foot{margin:0;padding:0 12px 10px;font-size:.8rem;color:#6b6260;text-align:center}
.kb-foot a{color:var(--red,#b3141f);font-weight:700}
@media (prefers-reduced-motion:reduce){.kb-fab-bee,.kb-teaser-bee,.kb-head-bee,.kb-typing i{animation:none}}
/* phones: round button on the side opposite the site's "add business" button; the chat opens as a sheet from the bottom */
@media (max-width:640px){
  .kb{bottom:calc(16px + env(safe-area-inset-bottom,0px));inset-inline-start:14px}
  .kb-fab{width:54px;height:54px;min-height:0;padding:0!important;justify-content:center}
  .kb-fab-t{display:none}
  .kb-fab-ic{background:none;font-size:1.4rem}
  .kb-fab-bee{width:62px;height:59px;bottom:calc(100% - 14px);inset-inline-start:-6px}
  .kb.kb-open{inset:auto 0 0 0}
  .kb-panel{width:100vw;height:calc(100dvh - 96px);border-radius:18px 18px 0 0;box-shadow:0 0 0 100vmax rgba(10,5,5,.45),0 -8px 30px rgba(0,0,0,.25)}
}
/* the flight from the hive to the chat button */
.kb-fly{position:fixed;left:0;top:0;z-index:30;pointer-events:none;transform-origin:center;filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 6px rgba(255,255,255,.8)) drop-shadow(0 3px 4px rgba(0,0,0,.25))}
.kb.kb-flying .kb-fab-bee{opacity:0;transition:none}
/* voice: microphone and read-aloud */
.kb-mic{width:44px;height:44px;flex:none;border:1.5px solid var(--line,#eadfdc);border-radius:50%;background:#fff;font-size:18px;cursor:pointer;display:grid;place-items:center}
.kb-mic:hover{border-color:var(--red,#b3141f)}
.kb.kb-listening .kb-mic{background:var(--red,#b3141f);border-color:var(--red,#b3141f);animation:kbPulse 1.2s ease-out infinite}
.kb.kb-listening .kb-form textarea{border-color:var(--red,#b3141f)}
@keyframes kbPulse{0%{box-shadow:0 0 0 0 rgba(179,20,31,.5)}100%{box-shadow:0 0 0 14px rgba(179,20,31,0)}}
.kb-voice{width:36px;height:36px;flex:none;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:16px;line-height:1;cursor:pointer}
.kb-voice[aria-pressed="true"]{background:var(--honey,#c49a3c)}
@media (prefers-reduced-motion:reduce){.kb.kb-listening .kb-mic{animation:none}}
.kb.kb-speaking .kb-voice{animation:kbPulse 1.2s ease-out infinite}
