/* CSS Variables */
:root {
  --cojwl-krdd: #4f46e5;
  --uem-to4: #ffffff;
  --w3b1pl-ucg6: #f9fafb;
  --hiu2-ytjh: #0f172a;
  --nwhc2e-g9: #6b7280;
  --otjtws-w7so: #e5e7eb;
  --icuk9y-gs: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --p4ftq-dv: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --tg77f-t48m: 16px;
  --kf70nf-r4: 56px;
  --ucw3rs-m1z9: 12px;
  --s5mto-sxu4: 999999;
}

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

/* Main Container */
.k30cHesp {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--s5mto-sxu4);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--hiu2-ytjh);
}
.k30cHesp.bweH6d { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.vs4Jopr { display: flex; flex-direction: column-reverse; gap: var(--ucw3rs-m1z9); align-items: center; }
.xhK6s {
  width: var(--kf70nf-r4); height: var(--kf70nf-r4); min-width: var(--kf70nf-r4); min-height: var(--kf70nf-r4);
  border-radius: 50%; border: none; background: var(--cojwl-krdd); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--icuk9y-gs);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.xhK6s:hover { transform: scale(1.05); box-shadow: var(--p4ftq-dv); }
.xhK6s:active { transform: scale(0.95); }
.xhK6s:focus { outline: 2px solid var(--cojwl-krdd); outline-offset: 2px; }
.xhK6s svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .xhK6s.bsvqZ8yc{ animation:none; }
  .xhK6s,.i0iePq17,.gxV9z{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.i0iePq17{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--uem-to4); border-radius: var(--tg77f-t48m); box-shadow: var(--p4ftq-dv);
  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;
}
.k30cHesp.bweH6d .i0iePq17{ right:auto; left:24px; }
.i0iePq17.pkYbg{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.cgoPw9r{
  padding:16px 20px; background:var(--uem-to4); border-bottom:1px solid var(--otjtws-w7so);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.gbtIjh4{ width:10px; height:10px; border-radius:50%; background:var(--cojwl-krdd); flex-shrink:0; }
.ueU8r{ flex:1; min-width:0; }
.hwcPaz{ font-size:16px; font-weight:600; color:var(--hiu2-ytjh); margin:0 0 2px 0; }
.s32Xpn0{ font-size:13px; color:var(--nwhc2e-g9); margin:0; }
.ppOg9{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--nwhc2e-g9);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.ppOg9:hover{ background:var(--w3b1pl-ucg6); color:var(--hiu2-ytjh); }
.ppOg9:focus{ outline:2px solid var(--cojwl-krdd); outline-offset:2px; }
.ppOg9 svg{ width:20px; height:20px; }

/* Body */
.o1ghR6xk{
  flex:1; overflow-y:auto; padding:16px; background:var(--w3b1pl-ucg6);
  display:flex; flex-direction:column; gap:12px;
}
.o1ghR6xk::-webkit-scrollbar{ width:6px; }
.o1ghR6xk::-webkit-scrollbar-track{ background:transparent; }
.o1ghR6xk::-webkit-scrollbar-thumb{ background:var(--otjtws-w7so); border-radius:3px; }
.o1ghR6xk::-webkit-scrollbar-thumb:hover{ background:var(--nwhc2e-g9); }

/* Messages */
.gxV9z{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.gxV9z.brndCv14{ flex-direction:row-reverse; }
.deR3n{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.deR3n a{ color:inherit; }
.gxV9z.ivoX233 .deR3n{ background:var(--uem-to4); color:var(--hiu2-ytjh); border-bottom-left-radius:4px; }
.gxV9z.brndCv14 .deR3n{ background:var(--cojwl-krdd); color:#fff; border-bottom-right-radius:4px; }
.pe49Q3rl{ font-size:11px; color:var(--nwhc2e-g9); margin-top:4px; display:block; }

/* Typing Indicator */
.ok0dTuvh{
  display:flex; gap:8px; padding:10px 14px; background:var(--uem-to4);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.it2Awjv{ width:8px; height:8px; border-radius:50%; background:var(--nwhc2e-g9); animation:typingDot 1.4s infinite; }
.it2Awjv:nth-child(2){ animation-delay:.2s; }
.it2Awjv: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) */
.hyeLdvl{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.cvqCdc{
  border:0; border-radius:999px; padding:8px 12px; background:var(--cojwl-krdd); 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(--icuk9y-gs);
}
.cvqCdc:is(:hover,:focus){ transform:translateY(-1px); }
a.cvqCdc{ text-decoration:none; display:inline-block; }
a.cvqCdc:link, a.cvqCdc:visited{ color:#fff; }
a.cvqCdc:hover, a.cvqCdc:focus{ color:#fff; }

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

/* Footer */
.qhbAa0{
  padding:16px; background:var(--uem-to4); border-top:1px solid var(--otjtws-w7so);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.lmyeOpr9{
  flex:1; padding:10px 14px; border:1px solid var(--otjtws-w7so); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--hiu2-ytjh);
  background:var(--w3b1pl-ucg6); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.lmyeOpr9:focus{ border-color:var(--cojwl-krdd); }
.lmyeOpr9::placeholder{ color:var(--nwhc2e-g9); }
.lmyeOpr9.zjpXta{ border-color:#c00; }
.ctWic{
  width:40px; height:40px; min-width:40px; border:none; background:var(--cojwl-krdd); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.ctWic:disabled{ opacity:.5; cursor:not-allowed; }
.ctWic:not(:disabled):hover{ transform:scale(1.05); }
.ctWic:not(:disabled):active{ transform:scale(0.95); }
.ctWic:focus{ outline:2px solid var(--cojwl-krdd); outline-offset:2px; }
.ctWic svg{ width:20px; height:20px; }

/* Character Counter */
.iyI51{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--nwhc2e-g9); }
.iyI51.jb0To3i{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.a5jYyqv{
  align-self:flex-start;
  max-width:75%;
  background: var(--uem-to4);
  color: var(--hiu2-ytjh);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--icuk9y-gs);
}
.nfyU405{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.wc6pKdha.y1Att{
  background: transparent; color: var(--hiu2-ytjh); border-color: var(--otjtws-w7so);
}
.wc6pKdha.y1Att:hover{
  background: var(--cojwl-krdd); color:#fff; border-color: var(--cojwl-krdd);
}

/* Mobile */
@media (max-width: 768px){
  .k30cHesp{ bottom:16px; right:16px; }
  .k30cHesp.bweH6d{ left:16px; }
  .xhK6s{ --kf70nf-r4:60px; }
  .i0iePq17{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--tg77f-t48m) var(--tg77f-t48m) 0 0; transform: translateY(100%);
  }
  .i0iePq17.pkYbg{ transform: translateY(0); }
  .cgoPw9r{ padding:20px; }
  .qhbAa0{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.k30cHesp :focus-visible{ outline:2px solid var(--cojwl-krdd); outline-offset:2px; }

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