.bo-chat{
  --chat-ink:#20282c;
  --chat-ink-deep:#151b1e;
  --chat-paper:#fffdf8;
  --chat-canvas:#f3f1ea;
  --chat-line:#e5e1d7;
  --chat-muted:#6d7475;
  --chat-yellow:#fdc300;
  position:fixed;right:20px;bottom:20px;z-index:1300;
  display:flex;flex-direction:column;align-items:flex-end;gap:12px;
  font-family:Montserrat,"Segoe UI",sans-serif;color:var(--chat-ink)
}
.bo-chat *{box-sizing:border-box}
.bo-chat button,.bo-chat input{font:inherit}
.bo-chat__teaser{
  position:relative;display:flex;align-items:center;gap:11px;
  width:min(300px,calc(100vw - 48px));padding:13px 38px 13px 14px;
  border:1px solid rgba(32,40,44,.1);border-radius:18px;background:rgba(255,253,248,.96);
  box-shadow:0 18px 50px rgba(24,31,34,.16);backdrop-filter:blur(14px);
  animation:bo-chat-rise .45s cubic-bezier(.22,.8,.3,1) both
}
.bo-chat__teaser[hidden]{display:none!important}
.bo-chat__teaser::after{content:"";position:absolute;right:31px;bottom:-6px;width:12px;height:12px;background:var(--chat-paper);transform:rotate(45deg);border-right:1px solid rgba(32,40,44,.1);border-bottom:1px solid rgba(32,40,44,.1)}
.bo-chat__teaser-mark{flex:0 0 auto;width:34px;height:34px;border-radius:12px;background:var(--chat-yellow);box-shadow:inset 0 0 0 1px rgba(0,0,0,.04);position:relative}
.bo-chat__teaser-mark::before,.bo-chat__teaser-mark::after{content:"";position:absolute;background:var(--chat-ink);border-radius:2px}
.bo-chat__teaser-mark::before{width:14px;height:2px;left:10px;top:12px}
.bo-chat__teaser-mark::after{width:9px;height:2px;left:10px;top:18px}
.bo-chat__teaser-text{display:grid;gap:2px;margin:0;line-height:1.25}
.bo-chat__teaser-text strong{font-size:13px;letter-spacing:-.01em}
.bo-chat__teaser-text span{font-size:11px;color:var(--chat-muted)}
.bo-chat__teaser-close{position:absolute;top:7px;right:7px;width:26px;height:26px;border:0;border-radius:50%;background:transparent;color:#7d8384;font-size:18px;line-height:1;cursor:pointer;transition:.18s ease}
.bo-chat__teaser-close:hover{background:#ece9e1;color:var(--chat-ink)}
.bo-chat.is-open .bo-chat__teaser{display:none!important}

.bo-chat__launcher{
  display:inline-flex;align-items:center;gap:11px;min-height:60px;padding:7px 18px 7px 8px;
  border:1px solid rgba(255,255,255,.1);border-radius:20px;background:var(--chat-ink-deep);color:#fff;
  box-shadow:0 18px 42px rgba(21,27,30,.28);cursor:pointer;
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease
}
.bo-chat__launcher:hover{background:#0d1113;transform:translateY(-2px);box-shadow:0 22px 52px rgba(21,27,30,.34)}
.bo-chat__launcher:focus-visible,.bo-chat__close:focus-visible,.bo-chat__send:focus-visible,.bo-chat__quick button:focus-visible,.bo-chat__btn:focus-visible{outline:3px solid rgba(253,195,0,.58);outline-offset:2px}
.bo-chat__launcher-icon{display:grid;place-items:center;flex:0 0 auto;width:44px;height:44px;border-radius:15px;background:var(--chat-yellow);color:var(--chat-ink);transform:rotate(-2deg)}
.bo-chat__launcher-copy{display:grid;text-align:left;gap:1px;line-height:1.15}
.bo-chat__launcher-copy strong{font-size:13px;letter-spacing:.01em}
.bo-chat__launcher-copy small{font-size:10px;font-weight:500;color:rgba(255,255,255,.62)}
.bo-chat.is-open .bo-chat__launcher{display:none}
@keyframes bo-chat-rise{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}

.bo-chat__panel{
  width:min(430px,calc(100vw - 24px));height:min(700px,calc(100dvh - 40px));
  display:flex;flex-direction:column;overflow:hidden;isolation:isolate;
  border:1px solid rgba(32,40,44,.13);border-radius:26px;background:var(--chat-paper);
  box-shadow:0 32px 90px rgba(17,23,26,.28),0 4px 18px rgba(17,23,26,.12);
  animation:bo-chat-panel-in .32s cubic-bezier(.22,.8,.3,1) both
}
.bo-chat__panel[hidden]{display:none!important}
@keyframes bo-chat-panel-in{from{opacity:0;transform:translateY(14px) scale(.975)}to{opacity:1;transform:none}}
.bo-chat__head{
  position:relative;display:flex;align-items:center;justify-content:space-between;gap:16px;
  min-height:88px;padding:15px 16px 14px 18px;color:#fff;
  background:linear-gradient(125deg,var(--chat-ink-deep) 0%,#263136 72%,#303b3f 100%)
}
.bo-chat__head::after{content:"";position:absolute;right:68px;top:-35px;width:126px;height:126px;border:1px solid rgba(253,195,0,.12);border-radius:50%;box-shadow:0 0 0 22px rgba(253,195,0,.025)}
.bo-chat__identity{position:relative;z-index:1;display:flex;align-items:center;gap:12px;min-width:0}
.bo-chat__avatar{display:grid;place-items:center;flex:0 0 auto;width:46px;height:46px;border-radius:16px;background:var(--chat-yellow);color:var(--chat-ink);box-shadow:0 8px 24px rgba(0,0,0,.18);transform:rotate(-2deg)}
.bo-chat__avatar svg{width:28px;height:28px}
.bo-chat__head-text{display:grid;gap:5px;min-width:0}
.bo-chat__head-text strong{font-size:14px;line-height:1.2;letter-spacing:-.015em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bo-chat__head-text span{display:flex;align-items:center;gap:6px;font-size:10.5px;color:rgba(255,255,255,.68)}
.bo-chat__head-text i{width:7px;height:7px;border-radius:50%;background:#7bd88f;box-shadow:0 0 0 3px rgba(123,216,143,.12)}
.bo-chat__close{position:relative;z-index:1;display:grid;place-items:center;flex:0 0 auto;width:40px;height:40px;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:rgba(255,255,255,.07);color:#fff;cursor:pointer;transition:.18s ease}
.bo-chat__close:hover{background:rgba(255,255,255,.15);transform:rotate(3deg)}

.bo-chat__messages{
  flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;
  padding:20px 16px 18px;background-color:var(--chat-canvas);
  background-image:radial-gradient(circle at 12% 8%,rgba(253,195,0,.09),transparent 27%),linear-gradient(rgba(255,255,255,.32) 1px,transparent 1px);
  background-size:auto,100% 34px;display:flex;flex-direction:column;gap:14px;
  scrollbar-width:thin;scrollbar-color:#c7c3b9 transparent
}
.bo-chat__messages::-webkit-scrollbar{width:5px}.bo-chat__messages::-webkit-scrollbar-thumb{background:#c7c3b9;border-radius:10px}
.bo-chat__msg{position:relative;max-width:92%;font-size:13px;line-height:1.55;animation:bo-chat-message-in .25s ease both}
@keyframes bo-chat-message-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
.bo-chat__msg>p{margin:0;padding:12px 14px}
.bo-chat__msg--bot{align-self:flex-start}
.bo-chat__msg--bot>p{border:1px solid rgba(32,40,44,.09);border-radius:7px 18px 18px 18px;background:#fff;box-shadow:0 7px 22px rgba(31,38,41,.07)}
.bo-chat__msg--user{align-self:flex-end;color:#fff}
.bo-chat__msg--user>p{border-radius:18px 7px 18px 18px;background:var(--chat-ink);box-shadow:0 8px 22px rgba(31,38,41,.16)}
.bo-chat__msg--typing>p{display:flex;align-items:center;gap:4px;color:var(--chat-muted)}
.bo-chat__msg--typing{max-width:190px}.bo-chat__msg--typing>p{min-width:156px;white-space:nowrap}
.bo-chat__msg--typing>p::after{content:"";width:4px;height:4px;border-radius:50%;background:currentColor;box-shadow:7px 0 currentColor,14px 0 currentColor;animation:bo-chat-dots 1s infinite ease-in-out}
@keyframes bo-chat-dots{0%,100%{opacity:.35;transform:translateY(0)}50%{opacity:1;transform:translateY(-2px)}}
.bo-chat__quick{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}
.bo-chat__quick button{min-height:34px;padding:7px 10px;border:1px solid #d8d4c9;border-radius:11px;background:rgba(255,255,255,.72);color:var(--chat-ink);font-size:10.5px;font-weight:650;cursor:pointer;transition:.18s ease}
.bo-chat__quick button:hover{border-color:#bdb7a8;background:#fff;transform:translateY(-1px)}

.bo-chat__products{display:grid;gap:9px;margin-top:10px}
.bo-chat__product{display:grid;grid-template-columns:72px minmax(0,1fr);gap:11px;padding:10px;border:1px solid rgba(32,40,44,.1);border-radius:17px;background:#fff;box-shadow:0 7px 24px rgba(28,35,38,.07);transition:transform .18s ease,box-shadow .18s ease}
.bo-chat__product:hover{transform:translateY(-1px);box-shadow:0 10px 28px rgba(28,35,38,.1)}
.bo-chat__product-img{width:72px;height:76px;border-radius:13px;object-fit:contain;background:#f6f4ee;border:1px solid #ebe7de}
.bo-chat__product-body{min-width:0;display:flex;flex-direction:column;gap:5px}
.bo-chat__product-title{font-size:11.5px;font-weight:700;line-height:1.35;color:var(--chat-ink);text-decoration:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.bo-chat__product-title:hover{text-decoration:underline;text-underline-offset:2px}
.bo-chat__product-meta{display:flex;flex-wrap:wrap;gap:3px 8px;font-size:9.5px;line-height:1.3;color:var(--chat-muted)}
.bo-chat__product-meta span:first-child{font-weight:650;color:#397749}
.bo-chat__product-price{font-size:15px;font-weight:800;letter-spacing:-.025em;color:var(--chat-ink)}
.bo-chat__product-price small{font-size:9.5px;font-weight:650;color:var(--chat-muted)}
.bo-chat__product-calc{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:2px 0;padding:7px 8px;border-radius:9px;background:#f3f7ed;color:#315b3b;font-size:9.5px;line-height:1.2}
.bo-chat__product-calc strong{font-size:10px}.bo-chat__product-calc span{white-space:nowrap;color:#617066}
.bo-chat__product-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:1px}
.bo-chat__btn{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 11px;border:0;border-radius:10px;font-size:10px;font-weight:750;cursor:pointer;text-decoration:none;transition:.18s ease}
.bo-chat__btn--cart{background:var(--chat-yellow);color:var(--chat-ink);box-shadow:0 4px 12px rgba(253,195,0,.22)}
.bo-chat__btn--cart:hover{background:#edb700;transform:translateY(-1px)}
.bo-chat__btn--cart:disabled{opacity:.58;cursor:default;transform:none}
.bo-chat__btn--link{background:#f4f2ec;border:1px solid #e0dcd2;color:var(--chat-ink)}
.bo-chat__btn--link:hover{background:#ebe8df}

.bo-chat__form{padding:12px 13px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--chat-line);background:var(--chat-paper)}
.bo-chat__composer{display:flex;align-items:center;gap:7px;padding:5px 5px 5px 14px;border:1px solid #d2cec4;border-radius:16px;background:#fff;box-shadow:0 4px 16px rgba(29,36,39,.045);transition:border-color .18s ease,box-shadow .18s ease}
.bo-chat__composer:focus-within{border-color:#aba69a;box-shadow:0 0 0 3px rgba(253,195,0,.13),0 5px 18px rgba(29,36,39,.06)}
.bo-chat__input{flex:1;min-width:0;height:40px;padding:0;border:0;outline:0;background:transparent;color:var(--chat-ink);font-size:12.5px}
.bo-chat__input::placeholder{color:#969a98}
.bo-chat__input:focus,.bo-chat__input:focus-visible{border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important}
.bo-chat__send{display:grid;place-items:center;flex:0 0 auto;width:42px;height:42px;border:0;border-radius:13px;background:var(--chat-ink);color:#fff;cursor:pointer;transition:.18s ease}
.bo-chat__send:hover{background:#0e1315;transform:translateY(-1px)}
.bo-chat__send:disabled{opacity:.5;cursor:default;transform:none}
.bo-chat__form-note{margin:7px 0 0;text-align:center;font-size:8.5px;line-height:1.25;color:#929693}

@media(max-width:720px){
  .bo-chat{right:8px;bottom:calc(8px + env(safe-area-inset-bottom));gap:9px}
  .bo-chat__panel{width:calc(100vw - 16px);height:calc(100dvh - 16px - env(safe-area-inset-bottom));max-height:none;border-radius:22px}
  .bo-chat__head{min-height:78px;padding:12px 12px 11px 14px}
  .bo-chat__avatar{width:42px;height:42px;border-radius:14px}.bo-chat__avatar svg{width:25px;height:25px}
  .bo-chat__head-text strong{font-size:13px}.bo-chat__head-text span{font-size:9.5px}
  .bo-chat__close{width:38px;height:38px;border-radius:13px}
  .bo-chat__messages{padding:16px 12px 14px;gap:12px}
  .bo-chat__msg{max-width:94%;font-size:12.5px}.bo-chat__msg>p{padding:11px 12px}
  .bo-chat__product{grid-template-columns:64px minmax(0,1fr);padding:8px;border-radius:15px}.bo-chat__product-img{width:64px;height:70px}
  .bo-chat__product-actions .bo-chat__btn--cart{flex:1 1 auto}
  .bo-chat__form{padding:11px 10px calc(9px + env(safe-area-inset-bottom))}.bo-chat__form-note{margin-top:7px}
  .bo-chat__composer{min-height:54px;padding:5px 5px 5px 14px;border-radius:17px}
  .bo-chat__input{height:42px;font-size:16px;line-height:1.25}
  .bo-chat__send{width:44px;height:44px;border-radius:14px}
  .bo-chat__teaser{width:min(286px,calc(100vw - 32px));padding:11px 34px 11px 12px}.bo-chat__teaser::after{right:19px}
  .bo-chat__launcher{width:58px;height:58px;min-height:58px;padding:7px;border-radius:19px;justify-content:center}.bo-chat__launcher-copy{display:none}.bo-chat__launcher-icon{width:44px;height:44px}
}
@media(max-width:360px){
  .bo-chat__head-text span{max-width:178px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .bo-chat__quick{gap:6px}.bo-chat__quick button{padding:6px 8px;font-size:9.5px}
  .bo-chat__product-actions{gap:5px}.bo-chat__btn{padding:0 8px}
}
@media(prefers-reduced-motion:reduce){
  .bo-chat__launcher,.bo-chat__teaser,.bo-chat__panel,.bo-chat__msg,.bo-chat__product,.bo-chat__msg--typing>p::after{animation:none;transition:none}
}
