/* CSS Variables */
:root {
  --y50-je: #4f46e5;
  --rtuhys-zt: #ffffff;
  --rn1yg-f7: #f9fafb;
  --a53u3-cyva: #0f172a;
  --yld-sz: #6b7280;
  --y7u8hy-rmx: #e5e7eb;
  --qra243-vsd3: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --ln643-fy: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --g1o-pnm9: 16px;
  --x28e27-dkw: 56px;
  --lg90-j7: 12px;
  --z906jw-n4: 999999;
}

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

/* Main Container */
.oh1ndb5svuc-hs {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--z906jw-n4);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--a53u3-cyva);
}
.oh1ndb5svuc-hs.anvwbxo405c3yf1 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.t1tad5qwz1qhauv5 { display: flex; flex-direction: column-reverse; gap: var(--lg90-j7); align-items: center; }
.kx3km1z6dq27z7z {
  width: var(--x28e27-dkw); height: var(--x28e27-dkw); min-width: var(--x28e27-dkw); min-height: var(--x28e27-dkw);
  border-radius: 50%; border: none; background: var(--y50-je); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--qra243-vsd3);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.kx3km1z6dq27z7z:hover { transform: scale(1.05); box-shadow: var(--ln643-fy); }
.kx3km1z6dq27z7z:active { transform: scale(0.95); }
.kx3km1z6dq27z7z:focus { outline: 2px solid var(--y50-je); outline-offset: 2px; }
.kx3km1z6dq27z7z svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .kx3km1z6dq27z7z.zjqwclnsbjfsbmi-mr{ animation:none; }
  .kx3km1z6dq27z7z,.eyzgj-9r2-27d5lend,.up593kda-hb7750ah{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.eyzgj-9r2-27d5lend{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--rtuhys-zt); border-radius: var(--g1o-pnm9); box-shadow: var(--ln643-fy);
  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;
}
.oh1ndb5svuc-hs.anvwbxo405c3yf1 .eyzgj-9r2-27d5lend{ right:auto; left:24px; }
.eyzgj-9r2-27d5lend.g1si9j2x6ebvodaah{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.udigc1stx538sz8{
  padding:16px 20px; background:var(--rtuhys-zt); border-bottom:1px solid var(--y7u8hy-rmx);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.dyw0o7xr7lf7jqs4j{ width:10px; height:10px; border-radius:50%; background:var(--y50-je); flex-shrink:0; }
.w1lc26lvocbbyx{ flex:1; min-width:0; }
.pqjdxbh9dg30po{ font-size:16px; font-weight:600; color:var(--a53u3-cyva); margin:0 0 2px 0; }
.uiu1plu0qvlhlqp{ font-size:13px; color:var(--yld-sz); margin:0; }
.jz4du4orhild7115e{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--yld-sz);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.jz4du4orhild7115e:hover{ background:var(--rn1yg-f7); color:var(--a53u3-cyva); }
.jz4du4orhild7115e:focus{ outline:2px solid var(--y50-je); outline-offset:2px; }
.jz4du4orhild7115e svg{ width:20px; height:20px; }

/* Body */
.h9ftp3cv3neawh{
  flex:1; overflow-y:auto; padding:16px; background:var(--rn1yg-f7);
  display:flex; flex-direction:column; gap:12px;
}
.h9ftp3cv3neawh::-webkit-scrollbar{ width:6px; }
.h9ftp3cv3neawh::-webkit-scrollbar-track{ background:transparent; }
.h9ftp3cv3neawh::-webkit-scrollbar-thumb{ background:var(--y7u8hy-rmx); border-radius:3px; }
.h9ftp3cv3neawh::-webkit-scrollbar-thumb:hover{ background:var(--yld-sz); }

/* Messages */
.up593kda-hb7750ah{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.up593kda-hb7750ah.xr9xrkfnd66-ax{ flex-direction:row-reverse; }
.kf63ip9knz2ilce{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.kf63ip9knz2ilce a{ color:inherit; }
.up593kda-hb7750ah.nxvjr4ngappwfmpfj .kf63ip9knz2ilce{ background:var(--rtuhys-zt); color:var(--a53u3-cyva); border-bottom-left-radius:4px; }
.up593kda-hb7750ah.xr9xrkfnd66-ax .kf63ip9knz2ilce{ background:var(--y50-je); color:#fff; border-bottom-right-radius:4px; }
.dsmq3ukhwfz2bg2{ font-size:11px; color:var(--yld-sz); margin-top:4px; display:block; }

/* Typing Indicator */
.sz85kbmybn8yio3h{
  display:flex; gap:8px; padding:10px 14px; background:var(--rtuhys-zt);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.smoyo08lowcijg4lm{ width:8px; height:8px; border-radius:50%; background:var(--yld-sz); animation:typingDot 1.4s infinite; }
.smoyo08lowcijg4lm:nth-child(2){ animation-delay:.2s; }
.smoyo08lowcijg4lm: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) */
.nptuq-a097hfhqt1{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.mf5xtxl49s40-kqqj6{
  border:0; border-radius:999px; padding:8px 12px; background:var(--y50-je); 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(--qra243-vsd3);
}
.mf5xtxl49s40-kqqj6:is(:hover,:focus){ transform:translateY(-1px); }
a.mf5xtxl49s40-kqqj6{ text-decoration:none; display:inline-block; }
a.mf5xtxl49s40-kqqj6:link, a.mf5xtxl49s40-kqqj6:visited{ color:#fff; }
a.mf5xtxl49s40-kqqj6:hover, a.mf5xtxl49s40-kqqj6:focus{ color:#fff; }

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

/* Footer */
.micn3p9dq-o7mk{
  padding:16px; background:var(--rtuhys-zt); border-top:1px solid var(--y7u8hy-rmx);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.yo0-fuism4v3jfiwz{
  flex:1; padding:10px 14px; border:1px solid var(--y7u8hy-rmx); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--a53u3-cyva);
  background:var(--rn1yg-f7); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.yo0-fuism4v3jfiwz:focus{ border-color:var(--y50-je); }
.yo0-fuism4v3jfiwz::placeholder{ color:var(--yld-sz); }
.yo0-fuism4v3jfiwz.v21xe61t6weqrl9{ border-color:#c00; }
.xubz20dg9f0m3h-f{
  width:40px; height:40px; min-width:40px; border:none; background:var(--y50-je); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.xubz20dg9f0m3h-f:disabled{ opacity:.5; cursor:not-allowed; }
.xubz20dg9f0m3h-f:not(:disabled):hover{ transform:scale(1.05); }
.xubz20dg9f0m3h-f:not(:disabled):active{ transform:scale(0.95); }
.xubz20dg9f0m3h-f:focus{ outline:2px solid var(--y50-je); outline-offset:2px; }
.xubz20dg9f0m3h-f svg{ width:20px; height:20px; }

/* Character Counter */
.sgk4jnhn02m626j{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--yld-sz); }
.sgk4jnhn02m626j.dhl5yk0q1p47yh{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.t2gv9k-vvj0w43{
  align-self:flex-start;
  max-width:75%;
  background: var(--rtuhys-zt);
  color: var(--a53u3-cyva);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--qra243-vsd3);
}
.v0of7m0vk20saspr{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.cd-ytde3yw2yapm.icdvk5wn595a4v5{
  background: transparent; color: var(--a53u3-cyva); border-color: var(--y7u8hy-rmx);
}
.cd-ytde3yw2yapm.icdvk5wn595a4v5:hover{
  background: var(--y50-je); color:#fff; border-color: var(--y50-je);
}

/* Mobile */
@media (max-width: 768px){
  .oh1ndb5svuc-hs{ bottom:16px; right:16px; }
  .oh1ndb5svuc-hs.anvwbxo405c3yf1{ left:16px; }
  .kx3km1z6dq27z7z{ --x28e27-dkw:60px; }
  .eyzgj-9r2-27d5lend{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--g1o-pnm9) var(--g1o-pnm9) 0 0; transform: translateY(100%);
  }
  .eyzgj-9r2-27d5lend.g1si9j2x6ebvodaah{ transform: translateY(0); }
  .udigc1stx538sz8{ padding:20px; }
  .micn3p9dq-o7mk{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

/* High Contrast */
@media (prefers-contrast: high){ .kx3km1z6dq27z7z, .eyzgj-9r2-27d5lend{ border:2px solid currentColor; } }

/* Focus Visible */
.oh1ndb5svuc-hs :focus-visible{ outline:2px solid var(--y50-je); outline-offset:2px; }

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