/* CSS Variables */
:root {
  --f1l-su: #4f46e5;
  --t4muu-eo7c: #ffffff;
  --cao9-hk8: #f9fafb;
  --ct3-hu: #0f172a;
  --t9p-oy: #6b7280;
  --x1cqn-ak: #e5e7eb;
  --c8ht6-pd: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --dz8vh-l03y: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --u8j-zls: 16px;
  --hjm-qe: 56px;
  --jd8ir-i29: 12px;
  --wu4-c9: 999999;
}

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

/* Main Container */
.t5fq6f8bzzq2d8p-yt {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--wu4-c9);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--ct3-hu);
}
.t5fq6f8bzzq2d8p-yt.spnwghbm4pf19f { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.jq1o43fn6kafwc { display: flex; flex-direction: column-reverse; gap: var(--jd8ir-i29); align-items: center; }
.knstzxyhel-v49j0t {
  width: var(--hjm-qe); height: var(--hjm-qe); min-width: var(--hjm-qe); min-height: var(--hjm-qe);
  border-radius: 50%; border: none; background: var(--f1l-su); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--c8ht6-pd);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.knstzxyhel-v49j0t:hover { transform: scale(1.05); box-shadow: var(--dz8vh-l03y); }
.knstzxyhel-v49j0t:active { transform: scale(0.95); }
.knstzxyhel-v49j0t:focus { outline: 2px solid var(--f1l-su); outline-offset: 2px; }
.knstzxyhel-v49j0t svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .knstzxyhel-v49j0t.oed-eyt6wcgrmb{ animation:none; }
  .knstzxyhel-v49j0t,.azqumso43ivot2qls6,.z5ppr8rx6w89j5err{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.azqumso43ivot2qls6{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--t4muu-eo7c); border-radius: var(--u8j-zls); box-shadow: var(--dz8vh-l03y);
  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;
}
.t5fq6f8bzzq2d8p-yt.spnwghbm4pf19f .azqumso43ivot2qls6{ right:auto; left:24px; }
.azqumso43ivot2qls6.isjt1ojnou-n9ose{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.a1ludqh8a2gl51{
  padding:16px 20px; background:var(--t4muu-eo7c); border-bottom:1px solid var(--x1cqn-ak);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.koroievh7h5-5t{ width:10px; height:10px; border-radius:50%; background:var(--f1l-su); flex-shrink:0; }
.em9eqd098kidyvy6{ flex:1; min-width:0; }
.jxhafatwzpawi1wso{ font-size:16px; font-weight:600; color:var(--ct3-hu); margin:0 0 2px 0; }
.ectkfs67rtjm-lae{ font-size:13px; color:var(--t9p-oy); margin:0; }
.m5h32ql9ttw8sc{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--t9p-oy);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.m5h32ql9ttw8sc:hover{ background:var(--cao9-hk8); color:var(--ct3-hu); }
.m5h32ql9ttw8sc:focus{ outline:2px solid var(--f1l-su); outline-offset:2px; }
.m5h32ql9ttw8sc svg{ width:20px; height:20px; }

/* Body */
.z7as8ahziiivq1pqp{
  flex:1; overflow-y:auto; padding:16px; background:var(--cao9-hk8);
  display:flex; flex-direction:column; gap:12px;
}
.z7as8ahziiivq1pqp::-webkit-scrollbar{ width:6px; }
.z7as8ahziiivq1pqp::-webkit-scrollbar-track{ background:transparent; }
.z7as8ahziiivq1pqp::-webkit-scrollbar-thumb{ background:var(--x1cqn-ak); border-radius:3px; }
.z7as8ahziiivq1pqp::-webkit-scrollbar-thumb:hover{ background:var(--t9p-oy); }

/* Messages */
.z5ppr8rx6w89j5err{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.z5ppr8rx6w89j5err.q6z4jk7hfm7et24d5{ flex-direction:row-reverse; }
.sg2yot0kfo4yti2gkq{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.sg2yot0kfo4yti2gkq a{ color:inherit; }
.z5ppr8rx6w89j5err.hpvfr5ffa-pa47eg2 .sg2yot0kfo4yti2gkq{ background:var(--t4muu-eo7c); color:var(--ct3-hu); border-bottom-left-radius:4px; }
.z5ppr8rx6w89j5err.q6z4jk7hfm7et24d5 .sg2yot0kfo4yti2gkq{ background:var(--f1l-su); color:#fff; border-bottom-right-radius:4px; }
.pmn20lnyf9oe8bye-7{ font-size:11px; color:var(--t9p-oy); margin-top:4px; display:block; }

/* Typing Indicator */
.srb8y2qtg2i2expc2s{
  display:flex; gap:8px; padding:10px 14px; background:var(--t4muu-eo7c);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.d2-alhqthnwiyw{ width:8px; height:8px; border-radius:50%; background:var(--t9p-oy); animation:typingDot 1.4s infinite; }
.d2-alhqthnwiyw:nth-child(2){ animation-delay:.2s; }
.d2-alhqthnwiyw: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) */
.corq1r8v4024dg4hz{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.mw3l1dmsofb1rp{
  border:0; border-radius:999px; padding:8px 12px; background:var(--f1l-su); 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(--c8ht6-pd);
}
.mw3l1dmsofb1rp:is(:hover,:focus){ transform:translateY(-1px); }
a.mw3l1dmsofb1rp{ text-decoration:none; display:inline-block; }
a.mw3l1dmsofb1rp:link, a.mw3l1dmsofb1rp:visited{ color:#fff; }
a.mw3l1dmsofb1rp:hover, a.mw3l1dmsofb1rp:focus{ color:#fff; }

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

/* Footer */
.mh45g8km8hhl4i{
  padding:16px; background:var(--t4muu-eo7c); border-top:1px solid var(--x1cqn-ak);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.w8hvc2vfaw1k45{
  flex:1; padding:10px 14px; border:1px solid var(--x1cqn-ak); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--ct3-hu);
  background:var(--cao9-hk8); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.w8hvc2vfaw1k45:focus{ border-color:var(--f1l-su); }
.w8hvc2vfaw1k45::placeholder{ color:var(--t9p-oy); }
.w8hvc2vfaw1k45.r9lnftv5a8qkpxkki{ border-color:#c00; }
.h4mty-g316ptjplgz{
  width:40px; height:40px; min-width:40px; border:none; background:var(--f1l-su); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.h4mty-g316ptjplgz:disabled{ opacity:.5; cursor:not-allowed; }
.h4mty-g316ptjplgz:not(:disabled):hover{ transform:scale(1.05); }
.h4mty-g316ptjplgz:not(:disabled):active{ transform:scale(0.95); }
.h4mty-g316ptjplgz:focus{ outline:2px solid var(--f1l-su); outline-offset:2px; }
.h4mty-g316ptjplgz svg{ width:20px; height:20px; }

/* Character Counter */
.r6ho9jx2rupb0wnbq{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--t9p-oy); }
.r6ho9jx2rupb0wnbq.bukp7431jl3w-2{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.cxi7uqhdtdra5m7xm0{
  align-self:flex-start;
  max-width:75%;
  background: var(--t4muu-eo7c);
  color: var(--ct3-hu);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--c8ht6-pd);
}
.g8k1ls13r55g14bv{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.dlnyntfbzzk00f.d26xbikjsxu95lz-j1{
  background: transparent; color: var(--ct3-hu); border-color: var(--x1cqn-ak);
}
.dlnyntfbzzk00f.d26xbikjsxu95lz-j1:hover{
  background: var(--f1l-su); color:#fff; border-color: var(--f1l-su);
}

/* Mobile */
@media (max-width: 768px){
  .t5fq6f8bzzq2d8p-yt{ bottom:16px; right:16px; }
  .t5fq6f8bzzq2d8p-yt.spnwghbm4pf19f{ left:16px; }
  .knstzxyhel-v49j0t{ --hjm-qe:60px; }
  .azqumso43ivot2qls6{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--u8j-zls) var(--u8j-zls) 0 0; transform: translateY(100%);
  }
  .azqumso43ivot2qls6.isjt1ojnou-n9ose{ transform: translateY(0); }
  .a1ludqh8a2gl51{ padding:20px; }
  .mh45g8km8hhl4i{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.t5fq6f8bzzq2d8p-yt :focus-visible{ outline:2px solid var(--f1l-su); outline-offset:2px; }

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