/* CSS Variables */
:root {
  --aqtn2-nc: #4f46e5;
  --dfyfr-xj: #ffffff;
  --d3c5-x6: #f9fafb;
  --u4uj-gp3: #0f172a;
  --s3d72q-ws: #6b7280;
  --vuf-wyee: #e5e7eb;
  --ns612-b5: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --ynt-l9y: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --t930m3-zbp5: 16px;
  --cxh6-uk: 56px;
  --krye01-zvd: 12px;
  --tcv4-od: 999999;
}

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

/* Main Container */
.b8bpUrad {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--tcv4-od);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--u4uj-gp3);
}
.b8bpUrad.nueNktl { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.kz4Gid { display: flex; flex-direction: column-reverse; gap: var(--krye01-zvd); align-items: center; }
.ubizQ00w {
  width: var(--cxh6-uk); height: var(--cxh6-uk); min-width: var(--cxh6-uk); min-height: var(--cxh6-uk);
  border-radius: 50%; border: none; background: var(--aqtn2-nc); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--ns612-b5);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.ubizQ00w:hover { transform: scale(1.05); box-shadow: var(--ynt-l9y); }
.ubizQ00w:active { transform: scale(0.95); }
.ubizQ00w:focus { outline: 2px solid var(--aqtn2-nc); outline-offset: 2px; }
.ubizQ00w svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .ubizQ00w.e11Ibn{ animation:none; }
  .ubizQ00w,.pocY3hm,.g0Ehv{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.pocY3hm{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--dfyfr-xj); border-radius: var(--t930m3-zbp5); box-shadow: var(--ynt-l9y);
  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;
}
.b8bpUrad.nueNktl .pocY3hm{ right:auto; left:24px; }
.pocY3hm.xm4uWfy3{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.v33Z0u{
  padding:16px 20px; background:var(--dfyfr-xj); border-bottom:1px solid var(--vuf-wyee);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.garKopw{ width:10px; height:10px; border-radius:50%; background:var(--aqtn2-nc); flex-shrink:0; }
.e60M4cu{ flex:1; min-width:0; }
.xtPlx{ font-size:16px; font-weight:600; color:var(--u4uj-gp3); margin:0 0 2px 0; }
.ip0Nwn{ font-size:13px; color:var(--s3d72q-ws); margin:0; }
.isd6Tj82{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--s3d72q-ws);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.isd6Tj82:hover{ background:var(--d3c5-x6); color:var(--u4uj-gp3); }
.isd6Tj82:focus{ outline:2px solid var(--aqtn2-nc); outline-offset:2px; }
.isd6Tj82 svg{ width:20px; height:20px; }

/* Body */
.aegO75d{
  flex:1; overflow-y:auto; padding:16px; background:var(--d3c5-x6);
  display:flex; flex-direction:column; gap:12px;
}
.aegO75d::-webkit-scrollbar{ width:6px; }
.aegO75d::-webkit-scrollbar-track{ background:transparent; }
.aegO75d::-webkit-scrollbar-thumb{ background:var(--vuf-wyee); border-radius:3px; }
.aegO75d::-webkit-scrollbar-thumb:hover{ background:var(--s3d72q-ws); }

/* Messages */
.g0Ehv{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.g0Ehv.whopYcs1{ flex-direction:row-reverse; }
.s3aZev{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.s3aZev a{ color:inherit; }
.g0Ehv.frtRp0r .s3aZev{ background:var(--dfyfr-xj); color:var(--u4uj-gp3); border-bottom-left-radius:4px; }
.g0Ehv.whopYcs1 .s3aZev{ background:var(--aqtn2-nc); color:#fff; border-bottom-right-radius:4px; }
.l1Sa4{ font-size:11px; color:var(--s3d72q-ws); margin-top:4px; display:block; }

/* Typing Indicator */
.i3ysUbla{
  display:flex; gap:8px; padding:10px 14px; background:var(--dfyfr-xj);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.l5d8Y0cd{ width:8px; height:8px; border-radius:50%; background:var(--s3d72q-ws); animation:typingDot 1.4s infinite; }
.l5d8Y0cd:nth-child(2){ animation-delay:.2s; }
.l5d8Y0cd: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) */
.pv3Cw88{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.vv2gL2h1{
  border:0; border-radius:999px; padding:8px 12px; background:var(--aqtn2-nc); 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(--ns612-b5);
}
.vv2gL2h1:is(:hover,:focus){ transform:translateY(-1px); }
a.vv2gL2h1{ text-decoration:none; display:inline-block; }
a.vv2gL2h1:link, a.vv2gL2h1:visited{ color:#fff; }
a.vv2gL2h1:hover, a.vv2gL2h1:focus{ color:#fff; }

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

/* Footer */
.mmzGfvg{
  padding:16px; background:var(--dfyfr-xj); border-top:1px solid var(--vuf-wyee);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.zbLs1{
  flex:1; padding:10px 14px; border:1px solid var(--vuf-wyee); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--u4uj-gp3);
  background:var(--d3c5-x6); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.zbLs1:focus{ border-color:var(--aqtn2-nc); }
.zbLs1::placeholder{ color:var(--s3d72q-ws); }
.zbLs1.c4Fa1{ border-color:#c00; }
.zklWli7{
  width:40px; height:40px; min-width:40px; border:none; background:var(--aqtn2-nc); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.zklWli7:disabled{ opacity:.5; cursor:not-allowed; }
.zklWli7:not(:disabled):hover{ transform:scale(1.05); }
.zklWli7:not(:disabled):active{ transform:scale(0.95); }
.zklWli7:focus{ outline:2px solid var(--aqtn2-nc); outline-offset:2px; }
.zklWli7 svg{ width:20px; height:20px; }

/* Character Counter */
.jqhU3x{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--s3d72q-ws); }
.jqhU3x.qabIal{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.h4gGdx{
  align-self:flex-start;
  max-width:75%;
  background: var(--dfyfr-xj);
  color: var(--u4uj-gp3);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--ns612-b5);
}
.ukzT7p{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.hiH5p.sxXmk{
  background: transparent; color: var(--u4uj-gp3); border-color: var(--vuf-wyee);
}
.hiH5p.sxXmk:hover{
  background: var(--aqtn2-nc); color:#fff; border-color: var(--aqtn2-nc);
}

/* Mobile */
@media (max-width: 768px){
  .b8bpUrad{ bottom:16px; right:16px; }
  .b8bpUrad.nueNktl{ left:16px; }
  .ubizQ00w{ --cxh6-uk:60px; }
  .pocY3hm{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--t930m3-zbp5) var(--t930m3-zbp5) 0 0; transform: translateY(100%);
  }
  .pocY3hm.xm4uWfy3{ transform: translateY(0); }
  .v33Z0u{ padding:20px; }
  .mmzGfvg{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.b8bpUrad :focus-visible{ outline:2px solid var(--aqtn2-nc); outline-offset:2px; }

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