/* CSS Variables */
:root {
  --yygto8-wd1n: #4f46e5;
  --y9ghr-i4v: #ffffff;
  --wjgm-i81: #f9fafb;
  --x4wri-tsj9: #0f172a;
  --fo01y-kt: #6b7280;
  --hrh3ou-u3: #e5e7eb;
  --rqs1-xup: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --eby-nn0: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --gpu-u3: 16px;
  --nu1-ek: 56px;
  --z9skfs-lu: 12px;
  --fw01a-m8: 999999;
}

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

/* Main Container */
.cdicbqghs350eerj36 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--fw01a-m8);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--x4wri-tsj9);
}
.cdicbqghs350eerj36.syd-0f3toah6zr6f { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.ctdobwi6abzeon4g2h { display: flex; flex-direction: column-reverse; gap: var(--z9skfs-lu); align-items: center; }
.d7cp1t4724asyxxz1 {
  width: var(--nu1-ek); height: var(--nu1-ek); min-width: var(--nu1-ek); min-height: var(--nu1-ek);
  border-radius: 50%; border: none; background: var(--yygto8-wd1n); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--rqs1-xup);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.d7cp1t4724asyxxz1:hover { transform: scale(1.05); box-shadow: var(--eby-nn0); }
.d7cp1t4724asyxxz1:active { transform: scale(0.95); }
.d7cp1t4724asyxxz1:focus { outline: 2px solid var(--yygto8-wd1n); outline-offset: 2px; }
.d7cp1t4724asyxxz1 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .d7cp1t4724asyxxz1.a9h960-ar3j7v8{ animation:none; }
  .d7cp1t4724asyxxz1,.m5gpbls4ogt2xk,.nf8hh7y4g8vwixhyv{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.m5gpbls4ogt2xk{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--y9ghr-i4v); border-radius: var(--gpu-u3); box-shadow: var(--eby-nn0);
  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;
}
.cdicbqghs350eerj36.syd-0f3toah6zr6f .m5gpbls4ogt2xk{ right:auto; left:24px; }
.m5gpbls4ogt2xk.rjjqdgrti2sh63d{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.w26cvzxrgf811t6p2{
  padding:16px 20px; background:var(--y9ghr-i4v); border-bottom:1px solid var(--hrh3ou-u3);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.ytfe06ppyudy6d{ width:10px; height:10px; border-radius:50%; background:var(--yygto8-wd1n); flex-shrink:0; }
.e3wvvryy7ylrvlk2y{ flex:1; min-width:0; }
.q8zga59gxbadtwneq{ font-size:16px; font-weight:600; color:var(--x4wri-tsj9); margin:0 0 2px 0; }
.j7--npaqljerfzfny{ font-size:13px; color:var(--fo01y-kt); margin:0; }
.fqk5nuj32m9ky4gq36{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--fo01y-kt);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.fqk5nuj32m9ky4gq36:hover{ background:var(--wjgm-i81); color:var(--x4wri-tsj9); }
.fqk5nuj32m9ky4gq36:focus{ outline:2px solid var(--yygto8-wd1n); outline-offset:2px; }
.fqk5nuj32m9ky4gq36 svg{ width:20px; height:20px; }

/* Body */
.hebcu021x-f3zee{
  flex:1; overflow-y:auto; padding:16px; background:var(--wjgm-i81);
  display:flex; flex-direction:column; gap:12px;
}
.hebcu021x-f3zee::-webkit-scrollbar{ width:6px; }
.hebcu021x-f3zee::-webkit-scrollbar-track{ background:transparent; }
.hebcu021x-f3zee::-webkit-scrollbar-thumb{ background:var(--hrh3ou-u3); border-radius:3px; }
.hebcu021x-f3zee::-webkit-scrollbar-thumb:hover{ background:var(--fo01y-kt); }

/* Messages */
.nf8hh7y4g8vwixhyv{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.nf8hh7y4g8vwixhyv.uue9qqn11isza3kup{ flex-direction:row-reverse; }
.idpj9zxl6uyznjn3t{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.idpj9zxl6uyznjn3t a{ color:inherit; }
.nf8hh7y4g8vwixhyv.pbbk0-u9t5cw-0q .idpj9zxl6uyznjn3t{ background:var(--y9ghr-i4v); color:var(--x4wri-tsj9); border-bottom-left-radius:4px; }
.nf8hh7y4g8vwixhyv.uue9qqn11isza3kup .idpj9zxl6uyznjn3t{ background:var(--yygto8-wd1n); color:#fff; border-bottom-right-radius:4px; }
.luv5-g0x0fsjvlc{ font-size:11px; color:var(--fo01y-kt); margin-top:4px; display:block; }

/* Typing Indicator */
.f2eaqqp7w0wkdp3z{
  display:flex; gap:8px; padding:10px 14px; background:var(--y9ghr-i4v);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.c4chtd4funa3od4w{ width:8px; height:8px; border-radius:50%; background:var(--fo01y-kt); animation:typingDot 1.4s infinite; }
.c4chtd4funa3od4w:nth-child(2){ animation-delay:.2s; }
.c4chtd4funa3od4w: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) */
.i7nabalqwfyq-e{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.t6ozo0-yq-hze-yg3{
  border:0; border-radius:999px; padding:8px 12px; background:var(--yygto8-wd1n); 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(--rqs1-xup);
}
.t6ozo0-yq-hze-yg3:is(:hover,:focus){ transform:translateY(-1px); }
a.t6ozo0-yq-hze-yg3{ text-decoration:none; display:inline-block; }
a.t6ozo0-yq-hze-yg3:link, a.t6ozo0-yq-hze-yg3:visited{ color:#fff; }
a.t6ozo0-yq-hze-yg3:hover, a.t6ozo0-yq-hze-yg3:focus{ color:#fff; }

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

/* Footer */
.fzyjeymnhqp5-u5u{
  padding:16px; background:var(--y9ghr-i4v); border-top:1px solid var(--hrh3ou-u3);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.gnx0txr9e0fbsjwo6{
  flex:1; padding:10px 14px; border:1px solid var(--hrh3ou-u3); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--x4wri-tsj9);
  background:var(--wjgm-i81); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.gnx0txr9e0fbsjwo6:focus{ border-color:var(--yygto8-wd1n); }
.gnx0txr9e0fbsjwo6::placeholder{ color:var(--fo01y-kt); }
.gnx0txr9e0fbsjwo6.kcbt-062rwdqkyikl4{ border-color:#c00; }
.rg5510b5yrs6ayytw{
  width:40px; height:40px; min-width:40px; border:none; background:var(--yygto8-wd1n); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.rg5510b5yrs6ayytw:disabled{ opacity:.5; cursor:not-allowed; }
.rg5510b5yrs6ayytw:not(:disabled):hover{ transform:scale(1.05); }
.rg5510b5yrs6ayytw:not(:disabled):active{ transform:scale(0.95); }
.rg5510b5yrs6ayytw:focus{ outline:2px solid var(--yygto8-wd1n); outline-offset:2px; }
.rg5510b5yrs6ayytw svg{ width:20px; height:20px; }

/* Character Counter */
.qlv6afaa85n8ln{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--fo01y-kt); }
.qlv6afaa85n8ln.kzef6a220iubca3oi{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.n3cd6qnbsliitauh{
  align-self:flex-start;
  max-width:75%;
  background: var(--y9ghr-i4v);
  color: var(--x4wri-tsj9);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--rqs1-xup);
}
.i8mw5ngy0rh9m3ow{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.kcr80x49tfa74zs94.buuylny98kvm343z7{
  background: transparent; color: var(--x4wri-tsj9); border-color: var(--hrh3ou-u3);
}
.kcr80x49tfa74zs94.buuylny98kvm343z7:hover{
  background: var(--yygto8-wd1n); color:#fff; border-color: var(--yygto8-wd1n);
}

/* Mobile */
@media (max-width: 768px){
  .cdicbqghs350eerj36{ bottom:16px; right:16px; }
  .cdicbqghs350eerj36.syd-0f3toah6zr6f{ left:16px; }
  .d7cp1t4724asyxxz1{ --nu1-ek:60px; }
  .m5gpbls4ogt2xk{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--gpu-u3) var(--gpu-u3) 0 0; transform: translateY(100%);
  }
  .m5gpbls4ogt2xk.rjjqdgrti2sh63d{ transform: translateY(0); }
  .w26cvzxrgf811t6p2{ padding:20px; }
  .fzyjeymnhqp5-u5u{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.cdicbqghs350eerj36 :focus-visible{ outline:2px solid var(--yygto8-wd1n); outline-offset:2px; }

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