/* CSS Variables */
:root {
  --xzhmx-xn: #4f46e5;
  --j0vh-cf: #ffffff;
  --sqzghq-gob9: #f9fafb;
  --qpsh-zw4: #0f172a;
  --jhy7-evzf: #6b7280;
  --fmmr-mp6: #e5e7eb;
  --lxm2op-n9: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --n7la-xdvx: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --iq6q-y1: 16px;
  --bxp-b35x: 56px;
  --mpc6-ost: 12px;
  --w2fgg-awc: 999999;
}

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

/* Main Container */
.b18q5h {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--w2fgg-awc);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--qpsh-zw4);
}
.b18q5h.vc_ob3e6 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.m6pwt45 { display: flex; flex-direction: column-reverse; gap: var(--mpc6-ost); align-items: center; }
.e9fpqv2 {
  width: var(--bxp-b35x); height: var(--bxp-b35x); min-width: var(--bxp-b35x); min-height: var(--bxp-b35x);
  border-radius: 50%; border: none; background: var(--xzhmx-xn); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--lxm2op-n9);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.e9fpqv2:hover { transform: scale(1.05); box-shadow: var(--n7la-xdvx); }
.e9fpqv2:active { transform: scale(0.95); }
.e9fpqv2:focus { outline: 2px solid var(--xzhmx-xn); outline-offset: 2px; }
.e9fpqv2 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .e9fpqv2.nlxd7s6jr{ animation:none; }
  .e9fpqv2,.dq4gvp,.p_zlj_y1{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.dq4gvp{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--j0vh-cf); border-radius: var(--iq6q-y1); box-shadow: var(--n7la-xdvx);
  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;
}
.b18q5h.vc_ob3e6 .dq4gvp{ right:auto; left:24px; }
.dq4gvp.uqq20mt{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.j3usuj7{
  padding:16px 20px; background:var(--j0vh-cf); border-bottom:1px solid var(--fmmr-mp6);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.xi1ts6uq{ width:10px; height:10px; border-radius:50%; background:var(--xzhmx-xn); flex-shrink:0; }
.z7rz6_6{ flex:1; min-width:0; }
.ygvdjs1__e{ font-size:16px; font-weight:600; color:var(--qpsh-zw4); margin:0 0 2px 0; }
.gtgazy0z{ font-size:13px; color:var(--jhy7-evzf); margin:0; }
.la8u1p{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--jhy7-evzf);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.la8u1p:hover{ background:var(--sqzghq-gob9); color:var(--qpsh-zw4); }
.la8u1p:focus{ outline:2px solid var(--xzhmx-xn); outline-offset:2px; }
.la8u1p svg{ width:20px; height:20px; }

/* Body */
.ybtyt_e{
  flex:1; overflow-y:auto; padding:16px; background:var(--sqzghq-gob9);
  display:flex; flex-direction:column; gap:12px;
}
.ybtyt_e::-webkit-scrollbar{ width:6px; }
.ybtyt_e::-webkit-scrollbar-track{ background:transparent; }
.ybtyt_e::-webkit-scrollbar-thumb{ background:var(--fmmr-mp6); border-radius:3px; }
.ybtyt_e::-webkit-scrollbar-thumb:hover{ background:var(--jhy7-evzf); }

/* Messages */
.p_zlj_y1{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.p_zlj_y1.pvidk3vak{ flex-direction:row-reverse; }
.ezc27g{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.ezc27g a{ color:inherit; }
.p_zlj_y1.xnr6sgoh .ezc27g{ background:var(--j0vh-cf); color:var(--qpsh-zw4); border-bottom-left-radius:4px; }
.p_zlj_y1.pvidk3vak .ezc27g{ background:var(--xzhmx-xn); color:#fff; border-bottom-right-radius:4px; }
.v_wsq70yn{ font-size:11px; color:var(--jhy7-evzf); margin-top:4px; display:block; }

/* Typing Indicator */
.bhzwkmno46{
  display:flex; gap:8px; padding:10px 14px; background:var(--j0vh-cf);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.t9qi5o95w{ width:8px; height:8px; border-radius:50%; background:var(--jhy7-evzf); animation:typingDot 1.4s infinite; }
.t9qi5o95w:nth-child(2){ animation-delay:.2s; }
.t9qi5o95w: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) */
.d15v4e4je{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.e_27xh{
  border:0; border-radius:999px; padding:8px 12px; background:var(--xzhmx-xn); 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(--lxm2op-n9);
}
.e_27xh:is(:hover,:focus){ transform:translateY(-1px); }
a.e_27xh{ text-decoration:none; display:inline-block; }
a.e_27xh:link, a.e_27xh:visited{ color:#fff; }
a.e_27xh:hover, a.e_27xh:focus{ color:#fff; }

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

/* Footer */
.t9ub2pzdh{
  padding:16px; background:var(--j0vh-cf); border-top:1px solid var(--fmmr-mp6);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.pc9gav2lj9{
  flex:1; padding:10px 14px; border:1px solid var(--fmmr-mp6); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--qpsh-zw4);
  background:var(--sqzghq-gob9); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.pc9gav2lj9:focus{ border-color:var(--xzhmx-xn); }
.pc9gav2lj9::placeholder{ color:var(--jhy7-evzf); }
.pc9gav2lj9.tovke4o{ border-color:#c00; }
.c63evj5z{
  width:40px; height:40px; min-width:40px; border:none; background:var(--xzhmx-xn); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.c63evj5z:disabled{ opacity:.5; cursor:not-allowed; }
.c63evj5z:not(:disabled):hover{ transform:scale(1.05); }
.c63evj5z:not(:disabled):active{ transform:scale(0.95); }
.c63evj5z:focus{ outline:2px solid var(--xzhmx-xn); outline-offset:2px; }
.c63evj5z svg{ width:20px; height:20px; }

/* Character Counter */
.wj780iht{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--jhy7-evzf); }
.wj780iht.l6p3u8je8r{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.chtw8j69b{
  align-self:flex-start;
  max-width:75%;
  background: var(--j0vh-cf);
  color: var(--qpsh-zw4);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--lxm2op-n9);
}
.rbjoghf31{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.pxj5rbui4.tv8spinnzv{
  background: transparent; color: var(--qpsh-zw4); border-color: var(--fmmr-mp6);
}
.pxj5rbui4.tv8spinnzv:hover{
  background: var(--xzhmx-xn); color:#fff; border-color: var(--xzhmx-xn);
}

/* Mobile */
@media (max-width: 768px){
  .b18q5h{ bottom:16px; right:16px; }
  .b18q5h.vc_ob3e6{ left:16px; }
  .e9fpqv2{ --bxp-b35x:60px; }
  .dq4gvp{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--iq6q-y1) var(--iq6q-y1) 0 0; transform: translateY(100%);
  }
  .dq4gvp.uqq20mt{ transform: translateY(0); }
  .j3usuj7{ padding:20px; }
  .t9ub2pzdh{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.b18q5h :focus-visible{ outline:2px solid var(--xzhmx-xn); outline-offset:2px; }

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