/* CSS Variables */
:root {
  --lxfh8w-hsa: #4f46e5;
  --k719de-jz: #ffffff;
  --agbcc-nxk: #f9fafb;
  --dlp6a0-gcc7: #0f172a;
  --gu4pju-hxxc: #6b7280;
  --u77pau-mlvj: #e5e7eb;
  --vsh-ec: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --enj-w0vd: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --y42d2z-xt: 16px;
  --ifv8-dal: 56px;
  --av5v-vpqo: 12px;
  --ej2btk-asuj: 999999;
}

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

/* Main Container */
.c1ng {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--ej2btk-asuj);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--dlp6a0-gcc7);
}
.c1ng.ulpug7 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.fxylv { display: flex; flex-direction: column-reverse; gap: var(--av5v-vpqo); align-items: center; }
.sycxke {
  width: var(--ifv8-dal); height: var(--ifv8-dal); min-width: var(--ifv8-dal); min-height: var(--ifv8-dal);
  border-radius: 50%; border: none; background: var(--lxfh8w-hsa); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--vsh-ec);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.sycxke:hover { transform: scale(1.05); box-shadow: var(--enj-w0vd); }
.sycxke:active { transform: scale(0.95); }
.sycxke:focus { outline: 2px solid var(--lxfh8w-hsa); outline-offset: 2px; }
.sycxke svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .sycxke.mmo7r{ animation:none; }
  .sycxke,.catjm9,.ebucne{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.catjm9{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--k719de-jz); border-radius: var(--y42d2z-xt); box-shadow: var(--enj-w0vd);
  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;
}
.c1ng.ulpug7 .catjm9{ right:auto; left:24px; }
.catjm9.c4lt{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.e4uw{
  padding:16px 20px; background:var(--k719de-jz); border-bottom:1px solid var(--u77pau-mlvj);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.tx7s{ width:10px; height:10px; border-radius:50%; background:var(--lxfh8w-hsa); flex-shrink:0; }
.z2n1{ flex:1; min-width:0; }
.y8ij2{ font-size:16px; font-weight:600; color:var(--dlp6a0-gcc7); margin:0 0 2px 0; }
.kymqf{ font-size:13px; color:var(--gu4pju-hxxc); margin:0; }
.zppo6{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--gu4pju-hxxc);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.zppo6:hover{ background:var(--agbcc-nxk); color:var(--dlp6a0-gcc7); }
.zppo6:focus{ outline:2px solid var(--lxfh8w-hsa); outline-offset:2px; }
.zppo6 svg{ width:20px; height:20px; }

/* Body */
.mx9ir{
  flex:1; overflow-y:auto; padding:16px; background:var(--agbcc-nxk);
  display:flex; flex-direction:column; gap:12px;
}
.mx9ir::-webkit-scrollbar{ width:6px; }
.mx9ir::-webkit-scrollbar-track{ background:transparent; }
.mx9ir::-webkit-scrollbar-thumb{ background:var(--u77pau-mlvj); border-radius:3px; }
.mx9ir::-webkit-scrollbar-thumb:hover{ background:var(--gu4pju-hxxc); }

/* Messages */
.ebucne{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.ebucne.i7pxor{ flex-direction:row-reverse; }
.ot1ozr{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.ot1ozr a{ color:inherit; }
.ebucne.kvma .ot1ozr{ background:var(--k719de-jz); color:var(--dlp6a0-gcc7); border-bottom-left-radius:4px; }
.ebucne.i7pxor .ot1ozr{ background:var(--lxfh8w-hsa); color:#fff; border-bottom-right-radius:4px; }
.v6m4{ font-size:11px; color:var(--gu4pju-hxxc); margin-top:4px; display:block; }

/* Typing Indicator */
.mrl782{
  display:flex; gap:8px; padding:10px 14px; background:var(--k719de-jz);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.ty094{ width:8px; height:8px; border-radius:50%; background:var(--gu4pju-hxxc); animation:typingDot 1.4s infinite; }
.ty094:nth-child(2){ animation-delay:.2s; }
.ty094: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) */
.ev64nx{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.pfy48v{
  border:0; border-radius:999px; padding:8px 12px; background:var(--lxfh8w-hsa); 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(--vsh-ec);
}
.pfy48v:is(:hover,:focus){ transform:translateY(-1px); }
a.pfy48v{ text-decoration:none; display:inline-block; }
a.pfy48v:link, a.pfy48v:visited{ color:#fff; }
a.pfy48v:hover, a.pfy48v:focus{ color:#fff; }

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

/* Footer */
.uedz{
  padding:16px; background:var(--k719de-jz); border-top:1px solid var(--u77pau-mlvj);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.gr0gqv{
  flex:1; padding:10px 14px; border:1px solid var(--u77pau-mlvj); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--dlp6a0-gcc7);
  background:var(--agbcc-nxk); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.gr0gqv:focus{ border-color:var(--lxfh8w-hsa); }
.gr0gqv::placeholder{ color:var(--gu4pju-hxxc); }
.gr0gqv.bkjb3{ border-color:#c00; }
.psrrfx{
  width:40px; height:40px; min-width:40px; border:none; background:var(--lxfh8w-hsa); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.psrrfx:disabled{ opacity:.5; cursor:not-allowed; }
.psrrfx:not(:disabled):hover{ transform:scale(1.05); }
.psrrfx:not(:disabled):active{ transform:scale(0.95); }
.psrrfx:focus{ outline:2px solid var(--lxfh8w-hsa); outline-offset:2px; }
.psrrfx svg{ width:20px; height:20px; }

/* Character Counter */
.qyce{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--gu4pju-hxxc); }
.qyce.t9qt3{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.tksm8{
  align-self:flex-start;
  max-width:75%;
  background: var(--k719de-jz);
  color: var(--dlp6a0-gcc7);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--vsh-ec);
}
.u6hi{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.wk4frz.co7m{
  background: transparent; color: var(--dlp6a0-gcc7); border-color: var(--u77pau-mlvj);
}
.wk4frz.co7m:hover{
  background: var(--lxfh8w-hsa); color:#fff; border-color: var(--lxfh8w-hsa);
}

/* Mobile */
@media (max-width: 768px){
  .c1ng{ bottom:16px; right:16px; }
  .c1ng.ulpug7{ left:16px; }
  .sycxke{ --ifv8-dal:60px; }
  .catjm9{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--y42d2z-xt) var(--y42d2z-xt) 0 0; transform: translateY(100%);
  }
  .catjm9.c4lt{ transform: translateY(0); }
  .e4uw{ padding:20px; }
  .uedz{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.c1ng :focus-visible{ outline:2px solid var(--lxfh8w-hsa); outline-offset:2px; }

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