/* CSS Variables */
:root {
  --ro64mr-zpl: #4f46e5;
  --fabkl-jbs1: #ffffff;
  --x1u-ufen: #f9fafb;
  --psb7td-nwy: #0f172a;
  --ag62-a42: #6b7280;
  --fln68h-un: #e5e7eb;
  --u9mm-k9n: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --enxt-wi: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --sfkyr-gcm: 16px;
  --b46-ubh: 56px;
  --mfxzv-a3: 12px;
  --kh8-e1: 999999;
}

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

/* Main Container */
.s7r496u {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--kh8-e1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--psb7td-nwy);
}
.s7r496u.u629ty { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.l_fxsla2 { display: flex; flex-direction: column-reverse; gap: var(--mfxzv-a3); align-items: center; }
.c1v0zosvgi {
  width: var(--b46-ubh); height: var(--b46-ubh); min-width: var(--b46-ubh); min-height: var(--b46-ubh);
  border-radius: 50%; border: none; background: var(--ro64mr-zpl); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--u9mm-k9n);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.c1v0zosvgi:hover { transform: scale(1.05); box-shadow: var(--enxt-wi); }
.c1v0zosvgi:active { transform: scale(0.95); }
.c1v0zosvgi:focus { outline: 2px solid var(--ro64mr-zpl); outline-offset: 2px; }
.c1v0zosvgi svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .c1v0zosvgi.ch0dgaw2b{ animation:none; }
  .c1v0zosvgi,.d7gx2s,.c3grefoa55{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.d7gx2s{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--fabkl-jbs1); border-radius: var(--sfkyr-gcm); box-shadow: var(--enxt-wi);
  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;
}
.s7r496u.u629ty .d7gx2s{ right:auto; left:24px; }
.d7gx2s.l47b2o{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.ifx605asu{
  padding:16px 20px; background:var(--fabkl-jbs1); border-bottom:1px solid var(--fln68h-un);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.fvsif48dcs{ width:10px; height:10px; border-radius:50%; background:var(--ro64mr-zpl); flex-shrink:0; }
.qc8_18{ flex:1; min-width:0; }
.g5m4n1hcf{ font-size:16px; font-weight:600; color:var(--psb7td-nwy); margin:0 0 2px 0; }
.biiy95{ font-size:13px; color:var(--ag62-a42); margin:0; }
.ghcvrmot{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--ag62-a42);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.ghcvrmot:hover{ background:var(--x1u-ufen); color:var(--psb7td-nwy); }
.ghcvrmot:focus{ outline:2px solid var(--ro64mr-zpl); outline-offset:2px; }
.ghcvrmot svg{ width:20px; height:20px; }

/* Body */
.c4zpmnv{
  flex:1; overflow-y:auto; padding:16px; background:var(--x1u-ufen);
  display:flex; flex-direction:column; gap:12px;
}
.c4zpmnv::-webkit-scrollbar{ width:6px; }
.c4zpmnv::-webkit-scrollbar-track{ background:transparent; }
.c4zpmnv::-webkit-scrollbar-thumb{ background:var(--fln68h-un); border-radius:3px; }
.c4zpmnv::-webkit-scrollbar-thumb:hover{ background:var(--ag62-a42); }

/* Messages */
.c3grefoa55{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.c3grefoa55.qwokch69{ flex-direction:row-reverse; }
.u_x83nvh{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.u_x83nvh a{ color:inherit; }
.c3grefoa55.g5u8ooqx8c .u_x83nvh{ background:var(--fabkl-jbs1); color:var(--psb7td-nwy); border-bottom-left-radius:4px; }
.c3grefoa55.qwokch69 .u_x83nvh{ background:var(--ro64mr-zpl); color:#fff; border-bottom-right-radius:4px; }
.l1it0c{ font-size:11px; color:var(--ag62-a42); margin-top:4px; display:block; }

/* Typing Indicator */
.ujcpqxrkc{
  display:flex; gap:8px; padding:10px 14px; background:var(--fabkl-jbs1);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.l3fgil{ width:8px; height:8px; border-radius:50%; background:var(--ag62-a42); animation:typingDot 1.4s infinite; }
.l3fgil:nth-child(2){ animation-delay:.2s; }
.l3fgil: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) */
.mikav5_9{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.oiymcy38z8{
  border:0; border-radius:999px; padding:8px 12px; background:var(--ro64mr-zpl); 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(--u9mm-k9n);
}
.oiymcy38z8:is(:hover,:focus){ transform:translateY(-1px); }
a.oiymcy38z8{ text-decoration:none; display:inline-block; }
a.oiymcy38z8:link, a.oiymcy38z8:visited{ color:#fff; }
a.oiymcy38z8:hover, a.oiymcy38z8:focus{ color:#fff; }

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

/* Footer */
.dzwrfgh{
  padding:16px; background:var(--fabkl-jbs1); border-top:1px solid var(--fln68h-un);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.ksk_gletu{
  flex:1; padding:10px 14px; border:1px solid var(--fln68h-un); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--psb7td-nwy);
  background:var(--x1u-ufen); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.ksk_gletu:focus{ border-color:var(--ro64mr-zpl); }
.ksk_gletu::placeholder{ color:var(--ag62-a42); }
.ksk_gletu.fi1pvg{ border-color:#c00; }
.muk5mj{
  width:40px; height:40px; min-width:40px; border:none; background:var(--ro64mr-zpl); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.muk5mj:disabled{ opacity:.5; cursor:not-allowed; }
.muk5mj:not(:disabled):hover{ transform:scale(1.05); }
.muk5mj:not(:disabled):active{ transform:scale(0.95); }
.muk5mj:focus{ outline:2px solid var(--ro64mr-zpl); outline-offset:2px; }
.muk5mj svg{ width:20px; height:20px; }

/* Character Counter */
.ma574z6c{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--ag62-a42); }
.ma574z6c.z3zyd3451{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.sgzik7{
  align-self:flex-start;
  max-width:75%;
  background: var(--fabkl-jbs1);
  color: var(--psb7td-nwy);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--u9mm-k9n);
}
.n8btvt{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.wd02zb7a.uo97519yw{
  background: transparent; color: var(--psb7td-nwy); border-color: var(--fln68h-un);
}
.wd02zb7a.uo97519yw:hover{
  background: var(--ro64mr-zpl); color:#fff; border-color: var(--ro64mr-zpl);
}

/* Mobile */
@media (max-width: 768px){
  .s7r496u{ bottom:16px; right:16px; }
  .s7r496u.u629ty{ left:16px; }
  .c1v0zosvgi{ --b46-ubh:60px; }
  .d7gx2s{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--sfkyr-gcm) var(--sfkyr-gcm) 0 0; transform: translateY(100%);
  }
  .d7gx2s.l47b2o{ transform: translateY(0); }
  .ifx605asu{ padding:20px; }
  .dzwrfgh{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.s7r496u :focus-visible{ outline:2px solid var(--ro64mr-zpl); outline-offset:2px; }

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