/* CSS Variables */
:root {
  --g6dm-k9m: #4f46e5;
  --szzxd-ef: #ffffff;
  --wkvnr6-l8u5: #f9fafb;
  --s0fk-tfp9: #0f172a;
  --c1a-t2: #6b7280;
  --eobx-ex: #e5e7eb;
  --o1nz5p-b4aj: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --x33nur-lv4m: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --hdaz-sy6: 16px;
  --u5lltu-i4b: 56px;
  --ihuk-vpv: 12px;
  --t54q0-sx0s: 999999;
}

/* Base Reset */
.c-vpse6me1ghk7,
.c-vpse6me1ghk7 * { box-sizing: border-box; margin: 0; padding: 0; }

/* Main Container */
.c-vpse6me1ghk7 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--t54q0-sx0s);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--s0fk-tfp9);
}
.c-vpse6me1ghk7.muz5yab-t8dru06b6 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.t4ipf0p0ufm891a7 { display: flex; flex-direction: column-reverse; gap: var(--ihuk-vpv); align-items: center; }
.o-3oqd1-05bck1e {
  width: var(--u5lltu-i4b); height: var(--u5lltu-i4b); min-width: var(--u5lltu-i4b); min-height: var(--u5lltu-i4b);
  border-radius: 50%; border: none; background: var(--g6dm-k9m); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--o1nz5p-b4aj);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.o-3oqd1-05bck1e:hover { transform: scale(1.05); box-shadow: var(--x33nur-lv4m); }
.o-3oqd1-05bck1e:active { transform: scale(0.95); }
.o-3oqd1-05bck1e:focus { outline: 2px solid var(--g6dm-k9m); outline-offset: 2px; }
.o-3oqd1-05bck1e svg { width: 24px; height: 24px; fill: currentColor; }

/* Messenger Buttons - Specific Colors */
.o-3oqd1-05bck1e[data-zp5fa="telegram"]{ background:#0088cc; }
.o-3oqd1-05bck1e[data-zp5fa="whatsapp"]{ background:#25d366; }
.o-3oqd1-05bck1e[data-zp5fa="viber"]{ background:#7360f2; }
.o-3oqd1-05bck1e[data-zp5fa="messenger"]{ background:#0084ff; }

/* Pulse Animation */
@keyframes pulse { 0%,100%{ transform:scale(1); opacity:1;} 50%{ transform:scale(1.05); opacity:.9;} }
.o-3oqd1-05bck1e.ikuztn6-aho6cypt-e{ animation:pulse 2s ease-in-out infinite; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .o-3oqd1-05bck1e.ikuztn6-aho6cypt-e{ animation:none; }
  .o-3oqd1-05bck1e,.kv-qgvl2u3g0xk,.f6f6z9-zto4m39vg1e{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.kv-qgvl2u3g0xk{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--szzxd-ef); border-radius: var(--hdaz-sy6); box-shadow: var(--x33nur-lv4m);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(20px) scale(0.95); transition: opacity .2s ease, transform .2s ease;
  visibility: hidden; pointer-events: none;
}
.c-vpse6me1ghk7.muz5yab-t8dru06b6 .kv-qgvl2u3g0xk{ right:auto; left:24px; }
.kv-qgvl2u3g0xk.ttuatswbshskbl5wj7{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.q58ioj22jzdic3n{
  padding:16px 20px; background:var(--szzxd-ef); border-bottom:1px solid var(--eobx-ex);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.nwmsoc590mi57wn{ width:10px; height:10px; border-radius:50%; background:var(--g6dm-k9m); flex-shrink:0; }
.y8pvm9cky9j0knuoq{ flex:1; min-width:0; }
.flkw9wr93qeouh{ font-size:16px; font-weight:600; color:var(--s0fk-tfp9); margin:0 0 2px 0; }
.fvdejwxhenrg22{ font-size:13px; color:var(--c1a-t2); margin:0; }
.rp04b2-i8m3ulhu67{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--c1a-t2);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.rp04b2-i8m3ulhu67:hover{ background:var(--wkvnr6-l8u5); color:var(--s0fk-tfp9); }
.rp04b2-i8m3ulhu67:focus{ outline:2px solid var(--g6dm-k9m); outline-offset:2px; }
.rp04b2-i8m3ulhu67 svg{ width:20px; height:20px; }

/* Body */
.vm5fiod38ipk4kt9v{
  flex:1; overflow-y:auto; padding:16px; background:var(--wkvnr6-l8u5);
  display:flex; flex-direction:column; gap:12px;
}
.vm5fiod38ipk4kt9v::-webkit-scrollbar{ width:6px; }
.vm5fiod38ipk4kt9v::-webkit-scrollbar-track{ background:transparent; }
.vm5fiod38ipk4kt9v::-webkit-scrollbar-thumb{ background:var(--eobx-ex); border-radius:3px; }
.vm5fiod38ipk4kt9v::-webkit-scrollbar-thumb:hover{ background:var(--c1a-t2); }

/* Messages */
.f6f6z9-zto4m39vg1e{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.f6f6z9-zto4m39vg1e.d3dw5zoljxmbhbq{ flex-direction:row-reverse; }
.t2fue3artapamx4ia{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.t2fue3artapamx4ia a{ color:inherit; }
.f6f6z9-zto4m39vg1e.pvi3ezolto00xzqg .t2fue3artapamx4ia{ background:var(--szzxd-ef); color:var(--s0fk-tfp9); border-bottom-left-radius:4px; }
.f6f6z9-zto4m39vg1e.d3dw5zoljxmbhbq .t2fue3artapamx4ia{ background:var(--g6dm-k9m); color:#fff; border-bottom-right-radius:4px; }
.grlu0jsrytfn0s71tc{ font-size:11px; color:var(--c1a-t2); margin-top:4px; display:block; }

/* Typing Indicator */
.grm2bk6yca7lx5vdx{
  display:flex; gap:8px; padding:10px 14px; background:var(--szzxd-ef);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.h1zcip8-usj8vtinxx{ width:8px; height:8px; border-radius:50%; background:var(--c1a-t2); animation:typingDot 1.4s infinite; }
.h1zcip8-usj8vtinxx:nth-child(2){ animation-delay:.2s; }
.h1zcip8-usj8vtinxx:nth-child(3){ animation-delay:.4s; }
@keyframes typingDot{ 0%,60%,100%{ transform:translateY(0); opacity:.5;} 30%{ transform:translateY(-8px); opacity:1;} }

/* Quick Replies (chips) */
.hlt4te1ji3g8tgj{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.xxkqepri3v29q6w{
  border:0; border-radius:999px; padding:8px 12px; background:var(--g6dm-k9m); color:#fff; cursor:pointer;
  font:inherit; line-height:1; transition:transform .08s ease, background .2s ease, color .2s ease, border-color .2s ease;
  box-shadow: var(--o1nz5p-b4aj);
}
.xxkqepri3v29q6w:is(:hover,:focus){ transform:translateY(-1px); }
a.xxkqepri3v29q6w{ text-decoration:none; display:inline-block; }
a.xxkqepri3v29q6w:link, a.xxkqepri3v29q6w:visited{ color:#fff; }
a.xxkqepri3v29q6w:hover, a.xxkqepri3v29q6w:focus{ color:#fff; }

/* Error Banner */
.givdrlf2dut587a2{
  padding:12px 16px; background:#fee; color:#c00; border-radius:8px; font-size:13px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.pdqym8-rz4gtvafxvz{
  padding:6px 12px; background:#c00; color:#fff; border:none; border-radius:6px; font-size:12px; cursor:pointer; white-space:nowrap;
}

/* Footer */
.uh3m2f507la83nppwx{
  padding:16px; background:var(--szzxd-ef); border-top:1px solid var(--eobx-ex);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.gtt51rbio62i4wy4qk{
  flex:1; padding:10px 14px; border:1px solid var(--eobx-ex); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--s0fk-tfp9);
  background:var(--wkvnr6-l8u5); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.gtt51rbio62i4wy4qk:focus{ border-color:var(--g6dm-k9m); }
.gtt51rbio62i4wy4qk::placeholder{ color:var(--c1a-t2); }
.gtt51rbio62i4wy4qk.w-3p4rhgjfkt9nynu{ border-color:#c00; }
.ku8a91sgy8bo0a6e{
  width:40px; height:40px; min-width:40px; border:none; background:var(--g6dm-k9m); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.ku8a91sgy8bo0a6e:disabled{ opacity:.5; cursor:not-allowed; }
.ku8a91sgy8bo0a6e:not(:disabled):hover{ transform:scale(1.05); }
.ku8a91sgy8bo0a6e:not(:disabled):active{ transform:scale(0.95); }
.ku8a91sgy8bo0a6e:focus{ outline:2px solid var(--g6dm-k9m); outline-offset:2px; }
.ku8a91sgy8bo0a6e svg{ width:20px; height:20px; }

/* Character Counter */
.ystewcfi9ztpao{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--c1a-t2); }
.ystewcfi9ztpao.zjp5tn4xbn7byo{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.c69g92gk6k5fdsjhu{
  align-self:flex-start;
  max-width:75%;
  background: var(--szzxd-ef);
  color: var(--s0fk-tfp9);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--o1nz5p-b4aj);
}
.zrvbrp3ygl5kulou{ display:flex; flex-wrap:wrap; gap:8px; }

/* Solid pill buttons */
.xg95p6n8vxepv46p2{
  display:inline-flex; align-items:center; gap:6px;
  padding:8px 14px; border-radius:999px;
  background: var(--g6dm-k9m); color:#fff; border:1px solid transparent;
  font-size:13px; line-height:1; text-decoration:none;
  box-shadow: var(--o1nz5p-b4aj);
  transition: transform .08s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.xg95p6n8vxepv46p2:link, .xg95p6n8vxepv46p2:visited{ color:#fff; }
.xg95p6n8vxepv46p2:hover{ transform:translateY(-1px); box-shadow: var(--x33nur-lv4m); }
.xg95p6n8vxepv46p2:active{ transform:translateY(0); }
.xg95p6n8vxepv46p2:focus-visible{ outline:2px solid var(--g6dm-k9m); outline-offset:2px; }

/* Optional outline variant */
.xg95p6n8vxepv46p2.fskwbvddedkpx0e2l6{
  background: transparent; color: var(--s0fk-tfp9); border-color: var(--eobx-ex);
}
.xg95p6n8vxepv46p2.fskwbvddedkpx0e2l6:hover{
  background: var(--g6dm-k9m); color:#fff; border-color: var(--g6dm-k9m);
}

/* Mobile */
@media (max-width: 768px){
  .c-vpse6me1ghk7{ bottom:16px; right:16px; }
  .c-vpse6me1ghk7.muz5yab-t8dru06b6{ left:16px; }
  .o-3oqd1-05bck1e{ --u5lltu-i4b:60px; }
  .kv-qgvl2u3g0xk{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--hdaz-sy6) var(--hdaz-sy6) 0 0; transform: translateY(100%);
  }
  .kv-qgvl2u3g0xk.ttuatswbshskbl5wj7{ transform: translateY(0); }
  .q58ioj22jzdic3n{ padding:20px; }
  .uh3m2f507la83nppwx{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

/* High Contrast */
@media (prefers-contrast: high){ .o-3oqd1-05bck1e, .kv-qgvl2u3g0xk{ border:2px solid currentColor; } }

/* Focus Visible */
.c-vpse6me1ghk7 :focus-visible{ outline:2px solid var(--g6dm-k9m); outline-offset:2px; }

/* SR-only */
.hyco3mm8hwu-6bzc12{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border-width:0;
}

/* Hidden */
.mnbjig3ws6sy4v1xoj{ display:none !important; }
