/* CSS Variables */
:root {
  --v2pwn-sw: #4f46e5;
  --oohui-cb1p: #ffffff;
  --u0k-yp: #f9fafb;
  --olpnhx-ml: #0f172a;
  --ctkgdi-dmdr: #6b7280;
  --adg-eb: #e5e7eb;
  --amr-jv4e: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --tkmss-sbt4: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --xodmve-d8j: 16px;
  --v4amu-odoe: 56px;
  --zcbq-eq: 12px;
  --mlmpl-jjvz: 999999;
}

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

/* Main Container */
.ns5rxuvdb2dxke7gb {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--mlmpl-jjvz);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--olpnhx-ml);
}
.ns5rxuvdb2dxke7gb.hqrx1cm-swhylocsf { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.abbghwttjgz8hxx9l { display: flex; flex-direction: column-reverse; gap: var(--zcbq-eq); align-items: center; }
.dbsxzwpojfqyb2zajf {
  width: var(--v4amu-odoe); height: var(--v4amu-odoe); min-width: var(--v4amu-odoe); min-height: var(--v4amu-odoe);
  border-radius: 50%; border: none; background: var(--v2pwn-sw); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--amr-jv4e);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.dbsxzwpojfqyb2zajf:hover { transform: scale(1.05); box-shadow: var(--tkmss-sbt4); }
.dbsxzwpojfqyb2zajf:active { transform: scale(0.95); }
.dbsxzwpojfqyb2zajf:focus { outline: 2px solid var(--v2pwn-sw); outline-offset: 2px; }
.dbsxzwpojfqyb2zajf svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .dbsxzwpojfqyb2zajf.exhe1pkyiflywx{ animation:none; }
  .dbsxzwpojfqyb2zajf,.s6wv6cjlwnq1muu,.mcksx2n3h3dxcmuj7{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.s6wv6cjlwnq1muu{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--oohui-cb1p); border-radius: var(--xodmve-d8j); box-shadow: var(--tkmss-sbt4);
  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;
}
.ns5rxuvdb2dxke7gb.hqrx1cm-swhylocsf .s6wv6cjlwnq1muu{ right:auto; left:24px; }
.s6wv6cjlwnq1muu.t1ts-s-q7jj8ro9{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.zirm-kro02x2l6kz1{
  padding:16px 20px; background:var(--oohui-cb1p); border-bottom:1px solid var(--adg-eb);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.vcqrzmvjwhn-55{ width:10px; height:10px; border-radius:50%; background:var(--v2pwn-sw); flex-shrink:0; }
.cvsxkdr3rku99gjtf5{ flex:1; min-width:0; }
.ok5xnpbsz6-h3nnvl{ font-size:16px; font-weight:600; color:var(--olpnhx-ml); margin:0 0 2px 0; }
.kq60m5ll9dx6xil5{ font-size:13px; color:var(--ctkgdi-dmdr); margin:0; }
.vqeee3rnemma63vro{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--ctkgdi-dmdr);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.vqeee3rnemma63vro:hover{ background:var(--u0k-yp); color:var(--olpnhx-ml); }
.vqeee3rnemma63vro:focus{ outline:2px solid var(--v2pwn-sw); outline-offset:2px; }
.vqeee3rnemma63vro svg{ width:20px; height:20px; }

/* Body */
.qev2nna1hlkymkavv{
  flex:1; overflow-y:auto; padding:16px; background:var(--u0k-yp);
  display:flex; flex-direction:column; gap:12px;
}
.qev2nna1hlkymkavv::-webkit-scrollbar{ width:6px; }
.qev2nna1hlkymkavv::-webkit-scrollbar-track{ background:transparent; }
.qev2nna1hlkymkavv::-webkit-scrollbar-thumb{ background:var(--adg-eb); border-radius:3px; }
.qev2nna1hlkymkavv::-webkit-scrollbar-thumb:hover{ background:var(--ctkgdi-dmdr); }

/* Messages */
.mcksx2n3h3dxcmuj7{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.mcksx2n3h3dxcmuj7.up0wqudwlma8jvee{ flex-direction:row-reverse; }
.j54x6gu444-35d4t{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.j54x6gu444-35d4t a{ color:inherit; }
.mcksx2n3h3dxcmuj7.w4w4m2w1bn9pqf612 .j54x6gu444-35d4t{ background:var(--oohui-cb1p); color:var(--olpnhx-ml); border-bottom-left-radius:4px; }
.mcksx2n3h3dxcmuj7.up0wqudwlma8jvee .j54x6gu444-35d4t{ background:var(--v2pwn-sw); color:#fff; border-bottom-right-radius:4px; }
.cvthpkhrxoms46074f{ font-size:11px; color:var(--ctkgdi-dmdr); margin-top:4px; display:block; }

/* Typing Indicator */
.kcfxdgtiml199b8l5{
  display:flex; gap:8px; padding:10px 14px; background:var(--oohui-cb1p);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.hpkfwzo4azxzqw51m{ width:8px; height:8px; border-radius:50%; background:var(--ctkgdi-dmdr); animation:typingDot 1.4s infinite; }
.hpkfwzo4azxzqw51m:nth-child(2){ animation-delay:.2s; }
.hpkfwzo4azxzqw51m: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) */
.gq7jasqw16uw5px8qv{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.layq7w4hctc8vhld{
  border:0; border-radius:999px; padding:8px 12px; background:var(--v2pwn-sw); 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(--amr-jv4e);
}
.layq7w4hctc8vhld:is(:hover,:focus){ transform:translateY(-1px); }
a.layq7w4hctc8vhld{ text-decoration:none; display:inline-block; }
a.layq7w4hctc8vhld:link, a.layq7w4hctc8vhld:visited{ color:#fff; }
a.layq7w4hctc8vhld:hover, a.layq7w4hctc8vhld:focus{ color:#fff; }

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

/* Footer */
.pbxl83v30olm9o8b3g{
  padding:16px; background:var(--oohui-cb1p); border-top:1px solid var(--adg-eb);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.wj4sr738mch2vn8c{
  flex:1; padding:10px 14px; border:1px solid var(--adg-eb); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--olpnhx-ml);
  background:var(--u0k-yp); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.wj4sr738mch2vn8c:focus{ border-color:var(--v2pwn-sw); }
.wj4sr738mch2vn8c::placeholder{ color:var(--ctkgdi-dmdr); }
.wj4sr738mch2vn8c.qwx94nlvhp5b3xe{ border-color:#c00; }
.xvqmo907vsu55c{
  width:40px; height:40px; min-width:40px; border:none; background:var(--v2pwn-sw); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.xvqmo907vsu55c:disabled{ opacity:.5; cursor:not-allowed; }
.xvqmo907vsu55c:not(:disabled):hover{ transform:scale(1.05); }
.xvqmo907vsu55c:not(:disabled):active{ transform:scale(0.95); }
.xvqmo907vsu55c:focus{ outline:2px solid var(--v2pwn-sw); outline-offset:2px; }
.xvqmo907vsu55c svg{ width:20px; height:20px; }

/* Character Counter */
.x5kbjeaq-9m78n{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--ctkgdi-dmdr); }
.x5kbjeaq-9m78n.co3o9y-ensabf89{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.ya4lxza-mz9v8i{
  align-self:flex-start;
  max-width:75%;
  background: var(--oohui-cb1p);
  color: var(--olpnhx-ml);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--amr-jv4e);
}
.hh8c3qmfo6v22kq{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.qvrzqvtw7dta2u1.abq6ik0c32ydi29{
  background: transparent; color: var(--olpnhx-ml); border-color: var(--adg-eb);
}
.qvrzqvtw7dta2u1.abq6ik0c32ydi29:hover{
  background: var(--v2pwn-sw); color:#fff; border-color: var(--v2pwn-sw);
}

/* Mobile */
@media (max-width: 768px){
  .ns5rxuvdb2dxke7gb{ bottom:16px; right:16px; }
  .ns5rxuvdb2dxke7gb.hqrx1cm-swhylocsf{ left:16px; }
  .dbsxzwpojfqyb2zajf{ --v4amu-odoe:60px; }
  .s6wv6cjlwnq1muu{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--xodmve-d8j) var(--xodmve-d8j) 0 0; transform: translateY(100%);
  }
  .s6wv6cjlwnq1muu.t1ts-s-q7jj8ro9{ transform: translateY(0); }
  .zirm-kro02x2l6kz1{ padding:20px; }
  .pbxl83v30olm9o8b3g{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.ns5rxuvdb2dxke7gb :focus-visible{ outline:2px solid var(--v2pwn-sw); outline-offset:2px; }

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