/* CSS Variables */
:root {
  --l6mv-n5mg: #4f46e5;
  --ktweb-hp: #ffffff;
  --puajcs-p3: #f9fafb;
  --m3nv2-il: #0f172a;
  --javg-duj8: #6b7280;
  --tudb9-phgp: #e5e7eb;
  --iutup-s1l: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --ow8k1-rc0: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --jhpy-bgg7: 16px;
  --hleidt-hz8u: 56px;
  --rfyj4u-lu: 12px;
  --m1npp0-d3: 999999;
}

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

/* Main Container */
.db36w5csghd9od2g {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--m1npp0-d3);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--m3nv2-il);
}
.db36w5csghd9od2g.g8ayjo9yjkruxcbccd { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.d83xjhr5bjp4dqg { display: flex; flex-direction: column-reverse; gap: var(--rfyj4u-lu); align-items: center; }
.hbrcz0yd0dzf4dhfe {
  width: var(--hleidt-hz8u); height: var(--hleidt-hz8u); min-width: var(--hleidt-hz8u); min-height: var(--hleidt-hz8u);
  border-radius: 50%; border: none; background: var(--l6mv-n5mg); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--iutup-s1l);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.hbrcz0yd0dzf4dhfe:hover { transform: scale(1.05); box-shadow: var(--ow8k1-rc0); }
.hbrcz0yd0dzf4dhfe:active { transform: scale(0.95); }
.hbrcz0yd0dzf4dhfe:focus { outline: 2px solid var(--l6mv-n5mg); outline-offset: 2px; }
.hbrcz0yd0dzf4dhfe svg { width: 24px; height: 24px; fill: currentColor; }

/* Messenger Buttons - Specific Colors */
.hbrcz0yd0dzf4dhfe[data-witv="telegram"]{ background:#0088cc; }
.hbrcz0yd0dzf4dhfe[data-witv="whatsapp"]{ background:#25d366; }
.hbrcz0yd0dzf4dhfe[data-witv="viber"]{ background:#7360f2; }
.hbrcz0yd0dzf4dhfe[data-witv="messenger"]{ background:#0084ff; }

/* Pulse Animation */
@keyframes pulse { 0%,100%{ transform:scale(1); opacity:1;} 50%{ transform:scale(1.05); opacity:.9;} }
.hbrcz0yd0dzf4dhfe.cn9ssp5p12l0-1j{ animation:pulse 2s ease-in-out infinite; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .hbrcz0yd0dzf4dhfe.cn9ssp5p12l0-1j{ animation:none; }
  .hbrcz0yd0dzf4dhfe,.on0p0g0eeqya8wnkq,.iaeap0od4xrwgop95n{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.on0p0g0eeqya8wnkq{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--ktweb-hp); border-radius: var(--jhpy-bgg7); box-shadow: var(--ow8k1-rc0);
  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;
}
.db36w5csghd9od2g.g8ayjo9yjkruxcbccd .on0p0g0eeqya8wnkq{ right:auto; left:24px; }
.on0p0g0eeqya8wnkq.hz5pi67d-ee18vrzg9{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.rrlt1vdp013cvlbcc9{
  padding:16px 20px; background:var(--ktweb-hp); border-bottom:1px solid var(--tudb9-phgp);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.j2skpxsglnme3h-ag{ width:10px; height:10px; border-radius:50%; background:var(--l6mv-n5mg); flex-shrink:0; }
.f1pqom34sntmqap{ flex:1; min-width:0; }
.cg22hbdsycgm6mvwo4{ font-size:16px; font-weight:600; color:var(--m3nv2-il); margin:0 0 2px 0; }
.yvqee91tabqoigv{ font-size:13px; color:var(--javg-duj8); margin:0; }
.cysygetnq4czvoqj{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--javg-duj8);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.cysygetnq4czvoqj:hover{ background:var(--puajcs-p3); color:var(--m3nv2-il); }
.cysygetnq4czvoqj:focus{ outline:2px solid var(--l6mv-n5mg); outline-offset:2px; }
.cysygetnq4czvoqj svg{ width:20px; height:20px; }

/* Body */
.v724swuryk3netd-l6{
  flex:1; overflow-y:auto; padding:16px; background:var(--puajcs-p3);
  display:flex; flex-direction:column; gap:12px;
}
.v724swuryk3netd-l6::-webkit-scrollbar{ width:6px; }
.v724swuryk3netd-l6::-webkit-scrollbar-track{ background:transparent; }
.v724swuryk3netd-l6::-webkit-scrollbar-thumb{ background:var(--tudb9-phgp); border-radius:3px; }
.v724swuryk3netd-l6::-webkit-scrollbar-thumb:hover{ background:var(--javg-duj8); }

/* Messages */
.iaeap0od4xrwgop95n{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.iaeap0od4xrwgop95n.o92pp50aao10xn{ flex-direction:row-reverse; }
.a1nnz4t5lp7zn2{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.a1nnz4t5lp7zn2 a{ color:inherit; }
.iaeap0od4xrwgop95n.l7m2ro2toqtaj6yi-b .a1nnz4t5lp7zn2{ background:var(--ktweb-hp); color:var(--m3nv2-il); border-bottom-left-radius:4px; }
.iaeap0od4xrwgop95n.o92pp50aao10xn .a1nnz4t5lp7zn2{ background:var(--l6mv-n5mg); color:#fff; border-bottom-right-radius:4px; }
.fmzngt6u3sf-yabtl9{ font-size:11px; color:var(--javg-duj8); margin-top:4px; display:block; }

/* Typing Indicator */
.ilv1wjicsen598pb{
  display:flex; gap:8px; padding:10px 14px; background:var(--ktweb-hp);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.rz-4zhvpph07kg48{ width:8px; height:8px; border-radius:50%; background:var(--javg-duj8); animation:typingDot 1.4s infinite; }
.rz-4zhvpph07kg48:nth-child(2){ animation-delay:.2s; }
.rz-4zhvpph07kg48: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) */
.svus7izn9rrii9b{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.pzcyv0s0u4kuo9o{
  border:0; border-radius:999px; padding:8px 12px; background:var(--l6mv-n5mg); 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(--iutup-s1l);
}
.pzcyv0s0u4kuo9o:is(:hover,:focus){ transform:translateY(-1px); }
a.pzcyv0s0u4kuo9o{ text-decoration:none; display:inline-block; }
a.pzcyv0s0u4kuo9o:link, a.pzcyv0s0u4kuo9o:visited{ color:#fff; }
a.pzcyv0s0u4kuo9o:hover, a.pzcyv0s0u4kuo9o:focus{ color:#fff; }

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

/* Footer */
.dim2x17htn25w2he{
  padding:16px; background:var(--ktweb-hp); border-top:1px solid var(--tudb9-phgp);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.xkj5eweer9q598w6fh{
  flex:1; padding:10px 14px; border:1px solid var(--tudb9-phgp); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--m3nv2-il);
  background:var(--puajcs-p3); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.xkj5eweer9q598w6fh:focus{ border-color:var(--l6mv-n5mg); }
.xkj5eweer9q598w6fh::placeholder{ color:var(--javg-duj8); }
.xkj5eweer9q598w6fh.krg15jdeqtrlzj{ border-color:#c00; }
.vd80v8ga8cjd-x-j{
  width:40px; height:40px; min-width:40px; border:none; background:var(--l6mv-n5mg); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.vd80v8ga8cjd-x-j:disabled{ opacity:.5; cursor:not-allowed; }
.vd80v8ga8cjd-x-j:not(:disabled):hover{ transform:scale(1.05); }
.vd80v8ga8cjd-x-j:not(:disabled):active{ transform:scale(0.95); }
.vd80v8ga8cjd-x-j:focus{ outline:2px solid var(--l6mv-n5mg); outline-offset:2px; }
.vd80v8ga8cjd-x-j svg{ width:20px; height:20px; }

/* Character Counter */
.s6hbyej2frnpbmq{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--javg-duj8); }
.s6hbyej2frnpbmq.azyvqs1c8g8lorr{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.n6bre6w9oiwo6hp{
  align-self:flex-start;
  max-width:75%;
  background: var(--ktweb-hp);
  color: var(--m3nv2-il);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--iutup-s1l);
}
.lch9v54qgowe5hymh{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.xoy8njpfxirpsbgezv.uh09ht4nroxh8728{
  background: transparent; color: var(--m3nv2-il); border-color: var(--tudb9-phgp);
}
.xoy8njpfxirpsbgezv.uh09ht4nroxh8728:hover{
  background: var(--l6mv-n5mg); color:#fff; border-color: var(--l6mv-n5mg);
}

/* Mobile */
@media (max-width: 768px){
  .db36w5csghd9od2g{ bottom:16px; right:16px; }
  .db36w5csghd9od2g.g8ayjo9yjkruxcbccd{ left:16px; }
  .hbrcz0yd0dzf4dhfe{ --hleidt-hz8u:60px; }
  .on0p0g0eeqya8wnkq{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--jhpy-bgg7) var(--jhpy-bgg7) 0 0; transform: translateY(100%);
  }
  .on0p0g0eeqya8wnkq.hz5pi67d-ee18vrzg9{ transform: translateY(0); }
  .rrlt1vdp013cvlbcc9{ padding:20px; }
  .dim2x17htn25w2he{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

/* High Contrast */
@media (prefers-contrast: high){ .hbrcz0yd0dzf4dhfe, .on0p0g0eeqya8wnkq{ border:2px solid currentColor; } }

/* Focus Visible */
.db36w5csghd9od2g :focus-visible{ outline:2px solid var(--l6mv-n5mg); outline-offset:2px; }

/* SR-only */
.xlfsf8d5w0v2z8{
  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 */
.htgxufzubyan1lc{ display:none !important; }
