/* CSS Variables */
:root {
  --z99e5n-y7r9: #4f46e5;
  --fzxfni-xhz: #ffffff;
  --rai-td: #f9fafb;
  --pqscu-n7o: #0f172a;
  --wb6-t7: #6b7280;
  --rz89c-z0oi: #e5e7eb;
  --ix9pn-jzq: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --bb31-bve: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --yvz0-lv: 16px;
  --o1z9-k3: 56px;
  --zk8m-r6ht: 12px;
  --m77-qyrx: 999999;
}

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

/* Main Container */
.pri-k29xu16rvl {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--m77-qyrx);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--pqscu-n7o);
}
.pri-k29xu16rvl.pri-ce5ytgpo1m1 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.pri-qpogr1jav03 { display: flex; flex-direction: column-reverse; gap: var(--zk8m-r6ht); align-items: center; }
.pri-z6y9p3kggi {
  width: var(--o1z9-k3); height: var(--o1z9-k3); min-width: var(--o1z9-k3); min-height: var(--o1z9-k3);
  border-radius: 50%; border: none; background: var(--z99e5n-y7r9); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--ix9pn-jzq);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.pri-z6y9p3kggi:hover { transform: scale(1.05); box-shadow: var(--bb31-bve); }
.pri-z6y9p3kggi:active { transform: scale(0.95); }
.pri-z6y9p3kggi:focus { outline: 2px solid var(--z99e5n-y7r9); outline-offset: 2px; }
.pri-z6y9p3kggi svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .pri-z6y9p3kggi.pri-u8mx0z1wi{ animation:none; }
  .pri-z6y9p3kggi,.pri-ywbbwx38sx3f,.pri-g4s9o51dgv{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.pri-ywbbwx38sx3f{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--fzxfni-xhz); border-radius: var(--yvz0-lv); box-shadow: var(--bb31-bve);
  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;
}
.pri-k29xu16rvl.pri-ce5ytgpo1m1 .pri-ywbbwx38sx3f{ right:auto; left:24px; }
.pri-ywbbwx38sx3f.pri-gp9ol9k1fz{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.pri-rvhwbjt0k{
  padding:16px 20px; background:var(--fzxfni-xhz); border-bottom:1px solid var(--rz89c-z0oi);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.pri-lbgl761f2o{ width:10px; height:10px; border-radius:50%; background:var(--z99e5n-y7r9); flex-shrink:0; }
.pri-d3t3l10jqk{ flex:1; min-width:0; }
.pri-m93owooi2{ font-size:16px; font-weight:600; color:var(--pqscu-n7o); margin:0 0 2px 0; }
.pri-j08tdkm6{ font-size:13px; color:var(--wb6-t7); margin:0; }
.pri-ktxeqp0k{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--wb6-t7);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.pri-ktxeqp0k:hover{ background:var(--rai-td); color:var(--pqscu-n7o); }
.pri-ktxeqp0k:focus{ outline:2px solid var(--z99e5n-y7r9); outline-offset:2px; }
.pri-ktxeqp0k svg{ width:20px; height:20px; }

/* Body */
.pri-j2ttq826yss{
  flex:1; overflow-y:auto; padding:16px; background:var(--rai-td);
  display:flex; flex-direction:column; gap:12px;
}
.pri-j2ttq826yss::-webkit-scrollbar{ width:6px; }
.pri-j2ttq826yss::-webkit-scrollbar-track{ background:transparent; }
.pri-j2ttq826yss::-webkit-scrollbar-thumb{ background:var(--rz89c-z0oi); border-radius:3px; }
.pri-j2ttq826yss::-webkit-scrollbar-thumb:hover{ background:var(--wb6-t7); }

/* Messages */
.pri-g4s9o51dgv{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.pri-g4s9o51dgv.pri-ryhkb7t5ooi{ flex-direction:row-reverse; }
.pri-qlg08shcr{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.pri-qlg08shcr a{ color:inherit; }
.pri-g4s9o51dgv.pri-x2tozec0ej .pri-qlg08shcr{ background:var(--fzxfni-xhz); color:var(--pqscu-n7o); border-bottom-left-radius:4px; }
.pri-g4s9o51dgv.pri-ryhkb7t5ooi .pri-qlg08shcr{ background:var(--z99e5n-y7r9); color:#fff; border-bottom-right-radius:4px; }
.pri-kjy9viqrde{ font-size:11px; color:var(--wb6-t7); margin-top:4px; display:block; }

/* Typing Indicator */
.pri-kfabl6zt{
  display:flex; gap:8px; padding:10px 14px; background:var(--fzxfni-xhz);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.pri-yn0mfxp94{ width:8px; height:8px; border-radius:50%; background:var(--wb6-t7); animation:typingDot 1.4s infinite; }
.pri-yn0mfxp94:nth-child(2){ animation-delay:.2s; }
.pri-yn0mfxp94: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) */
.pri-f5oit8kw9m{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.pri-awnekgxyj02{
  border:0; border-radius:999px; padding:8px 12px; background:var(--z99e5n-y7r9); 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(--ix9pn-jzq);
}
.pri-awnekgxyj02:is(:hover,:focus){ transform:translateY(-1px); }
a.pri-awnekgxyj02{ text-decoration:none; display:inline-block; }
a.pri-awnekgxyj02:link, a.pri-awnekgxyj02:visited{ color:#fff; }
a.pri-awnekgxyj02:hover, a.pri-awnekgxyj02:focus{ color:#fff; }

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

/* Footer */
.pri-a4myzoukp94{
  padding:16px; background:var(--fzxfni-xhz); border-top:1px solid var(--rz89c-z0oi);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.pri-ejvhjv9xe{
  flex:1; padding:10px 14px; border:1px solid var(--rz89c-z0oi); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--pqscu-n7o);
  background:var(--rai-td); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.pri-ejvhjv9xe:focus{ border-color:var(--z99e5n-y7r9); }
.pri-ejvhjv9xe::placeholder{ color:var(--wb6-t7); }
.pri-ejvhjv9xe.pri-wzad5c90sfo{ border-color:#c00; }
.pri-rird92aqiv16{
  width:40px; height:40px; min-width:40px; border:none; background:var(--z99e5n-y7r9); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.pri-rird92aqiv16:disabled{ opacity:.5; cursor:not-allowed; }
.pri-rird92aqiv16:not(:disabled):hover{ transform:scale(1.05); }
.pri-rird92aqiv16:not(:disabled):active{ transform:scale(0.95); }
.pri-rird92aqiv16:focus{ outline:2px solid var(--z99e5n-y7r9); outline-offset:2px; }
.pri-rird92aqiv16 svg{ width:20px; height:20px; }

/* Character Counter */
.pri-eilnc8s8h584{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--wb6-t7); }
.pri-eilnc8s8h584.pri-lanv6k0pr3{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.pri-s6th2xa8{
  align-self:flex-start;
  max-width:75%;
  background: var(--fzxfni-xhz);
  color: var(--pqscu-n7o);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--ix9pn-jzq);
}
.pri-izddi5q3jd{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.pri-u0a2ea17op7u.pri-cl0l05ldzk5t{
  background: transparent; color: var(--pqscu-n7o); border-color: var(--rz89c-z0oi);
}
.pri-u0a2ea17op7u.pri-cl0l05ldzk5t:hover{
  background: var(--z99e5n-y7r9); color:#fff; border-color: var(--z99e5n-y7r9);
}

/* Mobile */
@media (max-width: 768px){
  .pri-k29xu16rvl{ bottom:16px; right:16px; }
  .pri-k29xu16rvl.pri-ce5ytgpo1m1{ left:16px; }
  .pri-z6y9p3kggi{ --o1z9-k3:60px; }
  .pri-ywbbwx38sx3f{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--yvz0-lv) var(--yvz0-lv) 0 0; transform: translateY(100%);
  }
  .pri-ywbbwx38sx3f.pri-gp9ol9k1fz{ transform: translateY(0); }
  .pri-rvhwbjt0k{ padding:20px; }
  .pri-a4myzoukp94{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.pri-k29xu16rvl :focus-visible{ outline:2px solid var(--z99e5n-y7r9); outline-offset:2px; }

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