/* CSS Variables */
:root {
  --oih-yp6c: #4f46e5;
  --mezoow-lq1d: #ffffff;
  --mgdejz-tkhi: #f9fafb;
  --t8xaep-t1v2: #0f172a;
  --swww7-mwkp: #6b7280;
  --r94yg-iwl2: #e5e7eb;
  --utg-gs0f: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --gavb-veq: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --l800-lks: 16px;
  --k78-zj: 56px;
  --d2mri-w8: 12px;
  --s3y-g8: 999999;
}

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

/* Main Container */
.yr7g {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--s3y-g8);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--t8xaep-t1v2);
}
.yr7g.z7t1 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.rhs3b { display: flex; flex-direction: column-reverse; gap: var(--d2mri-w8); align-items: center; }
.eir0fb {
  width: var(--k78-zj); height: var(--k78-zj); min-width: var(--k78-zj); min-height: var(--k78-zj);
  border-radius: 50%; border: none; background: var(--oih-yp6c); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--utg-gs0f);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.eir0fb:hover { transform: scale(1.05); box-shadow: var(--gavb-veq); }
.eir0fb:active { transform: scale(0.95); }
.eir0fb:focus { outline: 2px solid var(--oih-yp6c); outline-offset: 2px; }
.eir0fb svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .eir0fb.e1toz{ animation:none; }
  .eir0fb,.lee7,.mx98qt{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.lee7{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--mezoow-lq1d); border-radius: var(--l800-lks); box-shadow: var(--gavb-veq);
  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;
}
.yr7g.z7t1 .lee7{ right:auto; left:24px; }
.lee7.kspw7{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.x8r7z{
  padding:16px 20px; background:var(--mezoow-lq1d); border-bottom:1px solid var(--r94yg-iwl2);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.w3ah{ width:10px; height:10px; border-radius:50%; background:var(--oih-yp6c); flex-shrink:0; }
.lbaxh{ flex:1; min-width:0; }
.ohwjbn{ font-size:16px; font-weight:600; color:var(--t8xaep-t1v2); margin:0 0 2px 0; }
.qps2r6{ font-size:13px; color:var(--swww7-mwkp); margin:0; }
.dk9s{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--swww7-mwkp);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.dk9s:hover{ background:var(--mgdejz-tkhi); color:var(--t8xaep-t1v2); }
.dk9s:focus{ outline:2px solid var(--oih-yp6c); outline-offset:2px; }
.dk9s svg{ width:20px; height:20px; }

/* Body */
.nnbd{
  flex:1; overflow-y:auto; padding:16px; background:var(--mgdejz-tkhi);
  display:flex; flex-direction:column; gap:12px;
}
.nnbd::-webkit-scrollbar{ width:6px; }
.nnbd::-webkit-scrollbar-track{ background:transparent; }
.nnbd::-webkit-scrollbar-thumb{ background:var(--r94yg-iwl2); border-radius:3px; }
.nnbd::-webkit-scrollbar-thumb:hover{ background:var(--swww7-mwkp); }

/* Messages */
.mx98qt{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.mx98qt.nldct{ flex-direction:row-reverse; }
.jvojxl{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.jvojxl a{ color:inherit; }
.mx98qt.wy0x .jvojxl{ background:var(--mezoow-lq1d); color:var(--t8xaep-t1v2); border-bottom-left-radius:4px; }
.mx98qt.nldct .jvojxl{ background:var(--oih-yp6c); color:#fff; border-bottom-right-radius:4px; }
.lf6c{ font-size:11px; color:var(--swww7-mwkp); margin-top:4px; display:block; }

/* Typing Indicator */
.nkwz{
  display:flex; gap:8px; padding:10px 14px; background:var(--mezoow-lq1d);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.itdi{ width:8px; height:8px; border-radius:50%; background:var(--swww7-mwkp); animation:typingDot 1.4s infinite; }
.itdi:nth-child(2){ animation-delay:.2s; }
.itdi: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) */
.tf1o{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.t87m{
  border:0; border-radius:999px; padding:8px 12px; background:var(--oih-yp6c); 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(--utg-gs0f);
}
.t87m:is(:hover,:focus){ transform:translateY(-1px); }
a.t87m{ text-decoration:none; display:inline-block; }
a.t87m:link, a.t87m:visited{ color:#fff; }
a.t87m:hover, a.t87m:focus{ color:#fff; }

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

/* Footer */
.k00j{
  padding:16px; background:var(--mezoow-lq1d); border-top:1px solid var(--r94yg-iwl2);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.l2ax9{
  flex:1; padding:10px 14px; border:1px solid var(--r94yg-iwl2); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--t8xaep-t1v2);
  background:var(--mgdejz-tkhi); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.l2ax9:focus{ border-color:var(--oih-yp6c); }
.l2ax9::placeholder{ color:var(--swww7-mwkp); }
.l2ax9.wkchdq{ border-color:#c00; }
.txzji{
  width:40px; height:40px; min-width:40px; border:none; background:var(--oih-yp6c); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.txzji:disabled{ opacity:.5; cursor:not-allowed; }
.txzji:not(:disabled):hover{ transform:scale(1.05); }
.txzji:not(:disabled):active{ transform:scale(0.95); }
.txzji:focus{ outline:2px solid var(--oih-yp6c); outline-offset:2px; }
.txzji svg{ width:20px; height:20px; }

/* Character Counter */
.jhhx{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--swww7-mwkp); }
.jhhx.b9owua{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.c0qw5{
  align-self:flex-start;
  max-width:75%;
  background: var(--mezoow-lq1d);
  color: var(--t8xaep-t1v2);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--utg-gs0f);
}
.ogfpb3{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.gl2y.e88en{
  background: transparent; color: var(--t8xaep-t1v2); border-color: var(--r94yg-iwl2);
}
.gl2y.e88en:hover{
  background: var(--oih-yp6c); color:#fff; border-color: var(--oih-yp6c);
}

/* Mobile */
@media (max-width: 768px){
  .yr7g{ bottom:16px; right:16px; }
  .yr7g.z7t1{ left:16px; }
  .eir0fb{ --k78-zj:60px; }
  .lee7{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--l800-lks) var(--l800-lks) 0 0; transform: translateY(100%);
  }
  .lee7.kspw7{ transform: translateY(0); }
  .x8r7z{ padding:20px; }
  .k00j{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.yr7g :focus-visible{ outline:2px solid var(--oih-yp6c); outline-offset:2px; }

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