/* CSS Variables */
:root {
  --cyo-rl: #4f46e5;
  --tg9-s65d: #ffffff;
  --rnnj-py: #f9fafb;
  --v5cudy-nh0s: #0f172a;
  --t3o-vjx: #6b7280;
  --wqk-buj: #e5e7eb;
  --hwd-ocx: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --wobs-ger: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --kixv4-b73: 16px;
  --pxde-cgq: 56px;
  --wyxi-lr: 12px;
  --i8xt0-zksb: 999999;
}

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

/* Main Container */
.koe9a6j3f8-xa2ipt {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--i8xt0-zksb);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--v5cudy-nh0s);
}
.koe9a6j3f8-xa2ipt.sa7ey1m-x4cagkn4s { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.di9b50rxroxpzacn { display: flex; flex-direction: column-reverse; gap: var(--wyxi-lr); align-items: center; }
.u75226ue1092rgpeg2 {
  width: var(--pxde-cgq); height: var(--pxde-cgq); min-width: var(--pxde-cgq); min-height: var(--pxde-cgq);
  border-radius: 50%; border: none; background: var(--cyo-rl); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--hwd-ocx);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.u75226ue1092rgpeg2:hover { transform: scale(1.05); box-shadow: var(--wobs-ger); }
.u75226ue1092rgpeg2:active { transform: scale(0.95); }
.u75226ue1092rgpeg2:focus { outline: 2px solid var(--cyo-rl); outline-offset: 2px; }
.u75226ue1092rgpeg2 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .u75226ue1092rgpeg2.c0ltmowcovm4l5{ animation:none; }
  .u75226ue1092rgpeg2,.msc7ekts58irab6,.mpt73suahx8sag{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.msc7ekts58irab6{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--tg9-s65d); border-radius: var(--kixv4-b73); box-shadow: var(--wobs-ger);
  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;
}
.koe9a6j3f8-xa2ipt.sa7ey1m-x4cagkn4s .msc7ekts58irab6{ right:auto; left:24px; }
.msc7ekts58irab6.vl3o4-wp8ab6iu{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.l2hkx1ms8k1uc4{
  padding:16px 20px; background:var(--tg9-s65d); border-bottom:1px solid var(--wqk-buj);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.eb2ghnubq1g6qg{ width:10px; height:10px; border-radius:50%; background:var(--cyo-rl); flex-shrink:0; }
.ya53ruw1ewky5bv{ flex:1; min-width:0; }
.j9gg-ev4ollqiubj{ font-size:16px; font-weight:600; color:var(--v5cudy-nh0s); margin:0 0 2px 0; }
.si-1v7scznr4gjxdao{ font-size:13px; color:var(--t3o-vjx); margin:0; }
.y660ko8ms7mktyq5{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--t3o-vjx);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.y660ko8ms7mktyq5:hover{ background:var(--rnnj-py); color:var(--v5cudy-nh0s); }
.y660ko8ms7mktyq5:focus{ outline:2px solid var(--cyo-rl); outline-offset:2px; }
.y660ko8ms7mktyq5 svg{ width:20px; height:20px; }

/* Body */
.ujvm1k7u5y0gi4{
  flex:1; overflow-y:auto; padding:16px; background:var(--rnnj-py);
  display:flex; flex-direction:column; gap:12px;
}
.ujvm1k7u5y0gi4::-webkit-scrollbar{ width:6px; }
.ujvm1k7u5y0gi4::-webkit-scrollbar-track{ background:transparent; }
.ujvm1k7u5y0gi4::-webkit-scrollbar-thumb{ background:var(--wqk-buj); border-radius:3px; }
.ujvm1k7u5y0gi4::-webkit-scrollbar-thumb:hover{ background:var(--t3o-vjx); }

/* Messages */
.mpt73suahx8sag{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.mpt73suahx8sag.if-lbckekcr63lsym{ flex-direction:row-reverse; }
.osr2ufqcxzwnqp2enr{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.osr2ufqcxzwnqp2enr a{ color:inherit; }
.mpt73suahx8sag.q0xrufeivbdmi2smj .osr2ufqcxzwnqp2enr{ background:var(--tg9-s65d); color:var(--v5cudy-nh0s); border-bottom-left-radius:4px; }
.mpt73suahx8sag.if-lbckekcr63lsym .osr2ufqcxzwnqp2enr{ background:var(--cyo-rl); color:#fff; border-bottom-right-radius:4px; }
.tw7fgwsjac6q8e9h{ font-size:11px; color:var(--t3o-vjx); margin-top:4px; display:block; }

/* Typing Indicator */
.dn0noaay9-unwdmjm{
  display:flex; gap:8px; padding:10px 14px; background:var(--tg9-s65d);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.f6pxsomm0oq7iu-f1b{ width:8px; height:8px; border-radius:50%; background:var(--t3o-vjx); animation:typingDot 1.4s infinite; }
.f6pxsomm0oq7iu-f1b:nth-child(2){ animation-delay:.2s; }
.f6pxsomm0oq7iu-f1b: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) */
.nelsihx-clyd25f{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.q24e353ez4dlk5ai{
  border:0; border-radius:999px; padding:8px 12px; background:var(--cyo-rl); 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(--hwd-ocx);
}
.q24e353ez4dlk5ai:is(:hover,:focus){ transform:translateY(-1px); }
a.q24e353ez4dlk5ai{ text-decoration:none; display:inline-block; }
a.q24e353ez4dlk5ai:link, a.q24e353ez4dlk5ai:visited{ color:#fff; }
a.q24e353ez4dlk5ai:hover, a.q24e353ez4dlk5ai:focus{ color:#fff; }

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

/* Footer */
.dbthdn7enl2lfysv{
  padding:16px; background:var(--tg9-s65d); border-top:1px solid var(--wqk-buj);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.nnexhxvxx7mbpcglm{
  flex:1; padding:10px 14px; border:1px solid var(--wqk-buj); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--v5cudy-nh0s);
  background:var(--rnnj-py); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.nnexhxvxx7mbpcglm:focus{ border-color:var(--cyo-rl); }
.nnexhxvxx7mbpcglm::placeholder{ color:var(--t3o-vjx); }
.nnexhxvxx7mbpcglm.bs6uhrga7guq13e{ border-color:#c00; }
.t1oqzy8a-o44krr{
  width:40px; height:40px; min-width:40px; border:none; background:var(--cyo-rl); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.t1oqzy8a-o44krr:disabled{ opacity:.5; cursor:not-allowed; }
.t1oqzy8a-o44krr:not(:disabled):hover{ transform:scale(1.05); }
.t1oqzy8a-o44krr:not(:disabled):active{ transform:scale(0.95); }
.t1oqzy8a-o44krr:focus{ outline:2px solid var(--cyo-rl); outline-offset:2px; }
.t1oqzy8a-o44krr svg{ width:20px; height:20px; }

/* Character Counter */
.t2qm7cz98-o91i4{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--t3o-vjx); }
.t2qm7cz98-o91i4.eu40facph3j1116{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.v8u5xyne7i-kszf0qh{
  align-self:flex-start;
  max-width:75%;
  background: var(--tg9-s65d);
  color: var(--v5cudy-nh0s);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--hwd-ocx);
}
.biyt2v46cnl3ict{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.ltb7u2n22u9jln.ogiyym6qe43e1j{
  background: transparent; color: var(--v5cudy-nh0s); border-color: var(--wqk-buj);
}
.ltb7u2n22u9jln.ogiyym6qe43e1j:hover{
  background: var(--cyo-rl); color:#fff; border-color: var(--cyo-rl);
}

/* Mobile */
@media (max-width: 768px){
  .koe9a6j3f8-xa2ipt{ bottom:16px; right:16px; }
  .koe9a6j3f8-xa2ipt.sa7ey1m-x4cagkn4s{ left:16px; }
  .u75226ue1092rgpeg2{ --pxde-cgq:60px; }
  .msc7ekts58irab6{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--kixv4-b73) var(--kixv4-b73) 0 0; transform: translateY(100%);
  }
  .msc7ekts58irab6.vl3o4-wp8ab6iu{ transform: translateY(0); }
  .l2hkx1ms8k1uc4{ padding:20px; }
  .dbthdn7enl2lfysv{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.koe9a6j3f8-xa2ipt :focus-visible{ outline:2px solid var(--cyo-rl); outline-offset:2px; }

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