/* live chat widget for the online store (copied from the website styles, so the store does not need the whole website stylesheet) */
#ueChat{position:fixed;left:0;top:0;width:0;height:0;z-index:1045;font-family:inherit}
.bs-fab-badge{position:absolute;top:-4px;right:-4px;min-width:22px;height:22px;border-radius:99px;background:#dc3545;color:#fff;font-size:.72rem;font-weight:700;display:grid;place-items:center;padding:0 5px}
.bs-panel{position:fixed;left:0;top:0;width:350px;max-width:calc(100vw - 24px);height:480px;max-height:calc(100vh - 120px);background:#fff;border-radius:18px;box-shadow:0 18px 50px rgba(0,0,0,.28);display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line)}
.bs-panel.d-none{display:none!important}
.bs-head{background:linear-gradient(100deg,#0f7a3d,#1faa59);padding:14px 16px;display:flex;justify-content:space-between;align-items:flex-start;color:#fff}
.bs-head b{display:block;font-size:.95rem}.bs-head small{font-size:.74rem;opacity:.8}.bs-status.bs-online{font-weight:600;opacity:1}
.bs-close{background:none;border:0;font-size:1.6rem;line-height:1;color:#fff;cursor:pointer;padding:0 4px}
.bs-msgs{flex:1;overflow-y:auto;padding:14px;background:#f5f8fd;display:flex;flex-direction:column;gap:8px}
.bs-msg{display:flex;flex-direction:column;max-width:82%}
.bs-msg small{font-size:.65rem;color:#8a8f98;margin-top:2px}
.bs-bubble{padding:8px 12px;border-radius:14px;font-size:.88rem;line-height:1.4;white-space:pre-wrap;word-break:break-word}
.bs-me{align-self:flex-end;align-items:flex-end}.bs-me .bs-bubble{background:#1faa59;color:#fff;border-bottom-right-radius:4px}
.bs-them{align-self:flex-start}.bs-them .bs-bubble{background:#fff;border:1px solid #e3e9f5;border-bottom-left-radius:4px}
.bs-error{margin:0;padding:6px 14px;font-size:.78rem;color:#b02a37;background:#fdecee}
.bs-form{border-top:1px solid var(--line);padding:10px;background:#fff}
.bs-who{display:flex;gap:6px;margin-bottom:8px}.bs-who input{flex:1;min-width:0;border:1px solid #ddd;border-radius:8px;padding:6px 9px;font-size:.8rem}
.bs-row{display:flex;gap:8px;align-items:flex-end}
.bs-row textarea{flex:1;border:1px solid #ddd;border-radius:12px;padding:8px 11px;font-size:.88rem;resize:none;max-height:110px;font-family:inherit}
.bs-row textarea:focus,.bs-who input:focus{outline:2px solid rgba(31,170,89,.5);border-color:#1faa59}
.bs-send{width:38px;height:38px;border:0;border-radius:50%;background:#128a4a;color:#fff;font-size:.95rem;cursor:pointer}
@media(max-width:575px){.bs-panel{height:min(480px,calc(100vh - 100px))}}
@media(prefers-reduced-motion:reduce){.bs-fab{transition:none}}

/* ---- chat button: spinning 3D cube (draggable) ---- */
.bs-fab{position:fixed;left:0;top:0;width:64px;height:64px;border:0;background:transparent;padding:0;display:grid;place-items:center;perspective:420px;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;filter:drop-shadow(0 12px 12px rgba(0,0,0,.28))}
.bs-fab.bs-dragging{cursor:grabbing}
.bs-fab:focus-visible{outline:3px solid #128a4a;outline-offset:3px;border-radius:14px}
.bs-cube{position:relative;width:46px;height:46px;transform-style:preserve-3d;animation:bsSpin 7s linear infinite}
.bs-fab:hover .bs-cube,.bs-fab.bs-dragging .bs-cube{animation-duration:2.6s}
.bs-cube i{position:absolute;inset:0;border-radius:9px;background:linear-gradient(145deg,#3ddc84,#128a4a);border:2px solid rgba(255,255,255,.6);display:grid;place-items:center;color:#fff;box-shadow:inset 0 0 12px rgba(255,255,255,.35)}
.bs-cube i svg{width:24px;height:24px}
.bs-cube i:nth-child(1){transform:translateZ(23px)}.bs-cube i:nth-child(2){transform:rotateY(90deg) translateZ(23px)}
.bs-cube i:nth-child(3){transform:rotateY(180deg) translateZ(23px)}.bs-cube i:nth-child(4){transform:rotateY(-90deg) translateZ(23px)}
@keyframes bsSpin{from{transform:rotateX(-18deg) rotateY(0)}to{transform:rotateX(-18deg) rotateY(360deg)}}
.bs-fab-badge{position:absolute;top:2px;right:2px;z-index:2}
@media(prefers-reduced-motion:reduce){.bs-cube{animation:none;transform:rotateX(-18deg) rotateY(-25deg)}}
.bs-wa{display:block;text-align:center;padding:8px;font-size:.76rem;background:#f1fbf5;color:#17613a;border-top:1px solid var(--line)}
#ueChat{z-index:100}   /* above the tab bar (90) and the install bar (95) */
.bs-fab.pill{left:auto;top:auto;right:22px;bottom:22px;width:auto;height:auto;display:inline-flex;gap:8px;align-items:center;perspective:none;cursor:pointer;touch-action:auto;background:#25d366;color:#fff;border-radius:999px;padding:12px 18px;font:600 13px/1.2 Poppins,sans-serif;box-shadow:0 8px 20px #0004;filter:none}
.bs-fab.pill:hover{background:#1ebe5b}
.bs-fab.pill .bs-fab-badge{top:-6px;right:-4px}
@media(max-width:620px){.bs-fab.pill span:not(.bs-fab-badge){display:none}.bs-fab.pill{padding:14px}}

.bs-ai{font-size:.62rem;font-weight:700;color:#0f7a3d;margin-bottom:2px;letter-spacing:.03em}
.bs-typing .bs-bubble{font-style:italic;color:#5b6785}
.d-none{display:none!important}

/* 2026-11-27: with the chat open on a phone the voice buttons, install bar and keyboard-covered tab bar get out of the way */
@media(max-width:700px){
  body:has(.bs-panel:not(.d-none)) .vn .vn-row,body:has(.bs-panel:not(.d-none)) .vn .vn-tip,body:has(.bs-panel:not(.d-none)) #installBar{visibility:hidden}
  body:has(.bs-row textarea:focus) .tabbar,body:has(.bs-who input:focus) .tabbar{display:none}
}
/* landscape phone: a compact panel that fits the short screen */
@media(max-height:480px){
  .bs-panel{height:calc(100vh - 16px)}
  .bs-head{padding:6px 12px}.bs-head small{display:none}.bs-head b{font-size:.88rem}
  .bs-form{padding:6px 8px}.bs-who{margin-bottom:5px}
  .bs-msgs{min-height:60px;padding:8px 10px}
}
