/* CSS Variables */
:root {
  --cst1f9-c0: #4f46e5;
  --cia-onxd: #ffffff;
  --xm6wr3-ht: #f9fafb;
  --xb9ps-ow0j: #0f172a;
  --eg6zd-mpb: #6b7280;
  --fmdp7-jpa2: #e5e7eb;
  --pg4c-zp7: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --ioirk4-n1ur: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --msd-sy: 16px;
  --v0t0t-bcp: 56px;
  --cc2wcj-e64: 12px;
  --txb-r9: 999999;
}

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

/* Main Container */
.vxhN3g {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--txb-r9);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--xb9ps-ow0j);
}
.vxhN3g.zdtFgw { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.k7K1u { display: flex; flex-direction: column-reverse; gap: var(--cc2wcj-e64); align-items: center; }
.i21Kohe {
  width: var(--v0t0t-bcp); height: var(--v0t0t-bcp); min-width: var(--v0t0t-bcp); min-height: var(--v0t0t-bcp);
  border-radius: 50%; border: none; background: var(--cst1f9-c0); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--pg4c-zp7);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.i21Kohe:hover { transform: scale(1.05); box-shadow: var(--ioirk4-n1ur); }
.i21Kohe:active { transform: scale(0.95); }
.i21Kohe:focus { outline: 2px solid var(--cst1f9-c0); outline-offset: 2px; }
.i21Kohe svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .i21Kohe.q0pBop{ animation:none; }
  .i21Kohe,.f57B470,.e6onNe8h{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.f57B470{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--cia-onxd); border-radius: var(--msd-sy); box-shadow: var(--ioirk4-n1ur);
  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;
}
.vxhN3g.zdtFgw .f57B470{ right:auto; left:24px; }
.f57B470.lswB5m{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.wdeU85{
  padding:16px 20px; background:var(--cia-onxd); border-bottom:1px solid var(--fmdp7-jpa2);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.foxSq7{ width:10px; height:10px; border-radius:50%; background:var(--cst1f9-c0); flex-shrink:0; }
.b5rD425{ flex:1; min-width:0; }
.vf6V7c{ font-size:16px; font-weight:600; color:var(--xb9ps-ow0j); margin:0 0 2px 0; }
.n2Bij{ font-size:13px; color:var(--eg6zd-mpb); margin:0; }
.nnUfi{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--eg6zd-mpb);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.nnUfi:hover{ background:var(--xm6wr3-ht); color:var(--xb9ps-ow0j); }
.nnUfi:focus{ outline:2px solid var(--cst1f9-c0); outline-offset:2px; }
.nnUfi svg{ width:20px; height:20px; }

/* Body */
.ugykSv8x{
  flex:1; overflow-y:auto; padding:16px; background:var(--xm6wr3-ht);
  display:flex; flex-direction:column; gap:12px;
}
.ugykSv8x::-webkit-scrollbar{ width:6px; }
.ugykSv8x::-webkit-scrollbar-track{ background:transparent; }
.ugykSv8x::-webkit-scrollbar-thumb{ background:var(--fmdp7-jpa2); border-radius:3px; }
.ugykSv8x::-webkit-scrollbar-thumb:hover{ background:var(--eg6zd-mpb); }

/* Messages */
.e6onNe8h{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.e6onNe8h.zwDjm{ flex-direction:row-reverse; }
.y1oCwm9{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.y1oCwm9 a{ color:inherit; }
.e6onNe8h.ic6cT933 .y1oCwm9{ background:var(--cia-onxd); color:var(--xb9ps-ow0j); border-bottom-left-radius:4px; }
.e6onNe8h.zwDjm .y1oCwm9{ background:var(--cst1f9-c0); color:#fff; border-bottom-right-radius:4px; }
.s1fXr62{ font-size:11px; color:var(--eg6zd-mpb); margin-top:4px; display:block; }

/* Typing Indicator */
.piyzEyt3{
  display:flex; gap:8px; padding:10px 14px; background:var(--cia-onxd);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.j8kQa1{ width:8px; height:8px; border-radius:50%; background:var(--eg6zd-mpb); animation:typingDot 1.4s infinite; }
.j8kQa1:nth-child(2){ animation-delay:.2s; }
.j8kQa1: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) */
.nbrAi3{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.n4yiQst7{
  border:0; border-radius:999px; padding:8px 12px; background:var(--cst1f9-c0); 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(--pg4c-zp7);
}
.n4yiQst7:is(:hover,:focus){ transform:translateY(-1px); }
a.n4yiQst7{ text-decoration:none; display:inline-block; }
a.n4yiQst7:link, a.n4yiQst7:visited{ color:#fff; }
a.n4yiQst7:hover, a.n4yiQst7:focus{ color:#fff; }

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

/* Footer */
.mawYef1{
  padding:16px; background:var(--cia-onxd); border-top:1px solid var(--fmdp7-jpa2);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.j5Fe4{
  flex:1; padding:10px 14px; border:1px solid var(--fmdp7-jpa2); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--xb9ps-ow0j);
  background:var(--xm6wr3-ht); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.j5Fe4:focus{ border-color:var(--cst1f9-c0); }
.j5Fe4::placeholder{ color:var(--eg6zd-mpb); }
.j5Fe4.tnKib{ border-color:#c00; }
.pld8Iqtb{
  width:40px; height:40px; min-width:40px; border:none; background:var(--cst1f9-c0); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.pld8Iqtb:disabled{ opacity:.5; cursor:not-allowed; }
.pld8Iqtb:not(:disabled):hover{ transform:scale(1.05); }
.pld8Iqtb:not(:disabled):active{ transform:scale(0.95); }
.pld8Iqtb:focus{ outline:2px solid var(--cst1f9-c0); outline-offset:2px; }
.pld8Iqtb svg{ width:20px; height:20px; }

/* Character Counter */
.j5W5f{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--eg6zd-mpb); }
.j5W5f.s0L58{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.ohtPqs5{
  align-self:flex-start;
  max-width:75%;
  background: var(--cia-onxd);
  color: var(--xb9ps-ow0j);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--pg4c-zp7);
}
.gbjU1a{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.ai4Huh3.sgvEtbk{
  background: transparent; color: var(--xb9ps-ow0j); border-color: var(--fmdp7-jpa2);
}
.ai4Huh3.sgvEtbk:hover{
  background: var(--cst1f9-c0); color:#fff; border-color: var(--cst1f9-c0);
}

/* Mobile */
@media (max-width: 768px){
  .vxhN3g{ bottom:16px; right:16px; }
  .vxhN3g.zdtFgw{ left:16px; }
  .i21Kohe{ --v0t0t-bcp:60px; }
  .f57B470{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--msd-sy) var(--msd-sy) 0 0; transform: translateY(100%);
  }
  .f57B470.lswB5m{ transform: translateY(0); }
  .wdeU85{ padding:20px; }
  .mawYef1{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.vxhN3g :focus-visible{ outline:2px solid var(--cst1f9-c0); outline-offset:2px; }

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