/* CSS Variables */
:root {
  --lh3d0-p1oy: #4f46e5;
  --n25-ou: #ffffff;
  --fhlrmi-lf: #f9fafb;
  --uuc-d7n: #0f172a;
  --rf2-hmv3: #6b7280;
  --m4zv-mkb: #e5e7eb;
  --pjob-xe3h: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --lvu1yx-mspa: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --ds6f4-zgc6: 16px;
  --u4v7w-khre: 56px;
  --ol41c-vra: 12px;
  --ri37ey-u7g2: 999999;
}

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

/* Main Container */
.tkD72 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--ri37ey-u7g2);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--uuc-d7n);
}
.tkD72.dlqDxlr { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.r4Sns { display: flex; flex-direction: column-reverse; gap: var(--ol41c-vra); align-items: center; }
.zkbUmo {
  width: var(--u4v7w-khre); height: var(--u4v7w-khre); min-width: var(--u4v7w-khre); min-height: var(--u4v7w-khre);
  border-radius: 50%; border: none; background: var(--lh3d0-p1oy); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--pjob-xe3h);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.zkbUmo:hover { transform: scale(1.05); box-shadow: var(--lvu1yx-mspa); }
.zkbUmo:active { transform: scale(0.95); }
.zkbUmo:focus { outline: 2px solid var(--lh3d0-p1oy); outline-offset: 2px; }
.zkbUmo svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .zkbUmo.oubSy2j{ animation:none; }
  .zkbUmo,.cmmuQw9q,.psKsd{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.cmmuQw9q{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--n25-ou); border-radius: var(--ds6f4-zgc6); box-shadow: var(--lvu1yx-mspa);
  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;
}
.tkD72.dlqDxlr .cmmuQw9q{ right:auto; left:24px; }
.cmmuQw9q.erGj9{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.n50G495{
  padding:16px 20px; background:var(--n25-ou); border-bottom:1px solid var(--m4zv-mkb);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.uvx5Dfdn{ width:10px; height:10px; border-radius:50%; background:var(--lh3d0-p1oy); flex-shrink:0; }
.n90S6qk{ flex:1; min-width:0; }
.zffhB8zk{ font-size:16px; font-weight:600; color:var(--uuc-d7n); margin:0 0 2px 0; }
.sa7Z1kt{ font-size:13px; color:var(--rf2-hmv3); margin:0; }
.m2rCp7p{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--rf2-hmv3);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.m2rCp7p:hover{ background:var(--fhlrmi-lf); color:var(--uuc-d7n); }
.m2rCp7p:focus{ outline:2px solid var(--lh3d0-p1oy); outline-offset:2px; }
.m2rCp7p svg{ width:20px; height:20px; }

/* Body */
.aiy1Vsk6{
  flex:1; overflow-y:auto; padding:16px; background:var(--fhlrmi-lf);
  display:flex; flex-direction:column; gap:12px;
}
.aiy1Vsk6::-webkit-scrollbar{ width:6px; }
.aiy1Vsk6::-webkit-scrollbar-track{ background:transparent; }
.aiy1Vsk6::-webkit-scrollbar-thumb{ background:var(--m4zv-mkb); border-radius:3px; }
.aiy1Vsk6::-webkit-scrollbar-thumb:hover{ background:var(--rf2-hmv3); }

/* Messages */
.psKsd{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.psKsd.vpzpCcms{ flex-direction:row-reverse; }
.rscMhdl{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.rscMhdl a{ color:inherit; }
.psKsd.juh6Efi8 .rscMhdl{ background:var(--n25-ou); color:var(--uuc-d7n); border-bottom-left-radius:4px; }
.psKsd.vpzpCcms .rscMhdl{ background:var(--lh3d0-p1oy); color:#fff; border-bottom-right-radius:4px; }
.m4opOmk2{ font-size:11px; color:var(--rf2-hmv3); margin-top:4px; display:block; }

/* Typing Indicator */
.pt9kSbvh{
  display:flex; gap:8px; padding:10px 14px; background:var(--n25-ou);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.cg9W3ep{ width:8px; height:8px; border-radius:50%; background:var(--rf2-hmv3); animation:typingDot 1.4s infinite; }
.cg9W3ep:nth-child(2){ animation-delay:.2s; }
.cg9W3ep: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) */
.tliNf2{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.f6Cjs{
  border:0; border-radius:999px; padding:8px 12px; background:var(--lh3d0-p1oy); 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(--pjob-xe3h);
}
.f6Cjs:is(:hover,:focus){ transform:translateY(-1px); }
a.f6Cjs{ text-decoration:none; display:inline-block; }
a.f6Cjs:link, a.f6Cjs:visited{ color:#fff; }
a.f6Cjs:hover, a.f6Cjs:focus{ color:#fff; }

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

/* Footer */
.ppWe2{
  padding:16px; background:var(--n25-ou); border-top:1px solid var(--m4zv-mkb);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.vqw3Z1ul{
  flex:1; padding:10px 14px; border:1px solid var(--m4zv-mkb); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--uuc-d7n);
  background:var(--fhlrmi-lf); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.vqw3Z1ul:focus{ border-color:var(--lh3d0-p1oy); }
.vqw3Z1ul::placeholder{ color:var(--rf2-hmv3); }
.vqw3Z1ul.b8kdOunq{ border-color:#c00; }
.rf1Rrd{
  width:40px; height:40px; min-width:40px; border:none; background:var(--lh3d0-p1oy); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.rf1Rrd:disabled{ opacity:.5; cursor:not-allowed; }
.rf1Rrd:not(:disabled):hover{ transform:scale(1.05); }
.rf1Rrd:not(:disabled):active{ transform:scale(0.95); }
.rf1Rrd:focus{ outline:2px solid var(--lh3d0-p1oy); outline-offset:2px; }
.rf1Rrd svg{ width:20px; height:20px; }

/* Character Counter */
.h08Gk0{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--rf2-hmv3); }
.h08Gk0.vaucTxoy{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.myuTd5t{
  align-self:flex-start;
  max-width:75%;
  background: var(--n25-ou);
  color: var(--uuc-d7n);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--pjob-xe3h);
}
.skypEnc7{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.z0Kla.gizwY3u5{
  background: transparent; color: var(--uuc-d7n); border-color: var(--m4zv-mkb);
}
.z0Kla.gizwY3u5:hover{
  background: var(--lh3d0-p1oy); color:#fff; border-color: var(--lh3d0-p1oy);
}

/* Mobile */
@media (max-width: 768px){
  .tkD72{ bottom:16px; right:16px; }
  .tkD72.dlqDxlr{ left:16px; }
  .zkbUmo{ --u4v7w-khre:60px; }
  .cmmuQw9q{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--ds6f4-zgc6) var(--ds6f4-zgc6) 0 0; transform: translateY(100%);
  }
  .cmmuQw9q.erGj9{ transform: translateY(0); }
  .n50G495{ padding:20px; }
  .ppWe2{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.tkD72 :focus-visible{ outline:2px solid var(--lh3d0-p1oy); outline-offset:2px; }

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