/* CSS Variables */
:root {
  --h3j-xo33: #4f46e5;
  --qch-xgi7: #ffffff;
  --hee-iec: #f9fafb;
  --f8d-zz: #0f172a;
  --c8k-r6: #6b7280;
  --f6017-a8y2: #e5e7eb;
  --nan-yxr: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --edq-dg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --t8x-hp1: 16px;
  --p0xq-swc: 56px;
  --nkt4z-on41: 12px;
  --ye4-hhy3: 999999;
}

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

/* Main Container */
.o9j3seqb5 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--ye4-hhy3);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--f8d-zz);
}
.o9j3seqb5.bv0z_o5 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.mlx4r3y { display: flex; flex-direction: column-reverse; gap: var(--nkt4z-on41); align-items: center; }
.k2dj5dyr {
  width: var(--p0xq-swc); height: var(--p0xq-swc); min-width: var(--p0xq-swc); min-height: var(--p0xq-swc);
  border-radius: 50%; border: none; background: var(--h3j-xo33); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--nan-yxr);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.k2dj5dyr:hover { transform: scale(1.05); box-shadow: var(--edq-dg); }
.k2dj5dyr:active { transform: scale(0.95); }
.k2dj5dyr:focus { outline: 2px solid var(--h3j-xo33); outline-offset: 2px; }
.k2dj5dyr svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .k2dj5dyr.mgbrfgn{ animation:none; }
  .k2dj5dyr,.kvbmq4e13,.p4ddxehb8{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.kvbmq4e13{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--qch-xgi7); border-radius: var(--t8x-hp1); box-shadow: var(--edq-dg);
  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;
}
.o9j3seqb5.bv0z_o5 .kvbmq4e13{ right:auto; left:24px; }
.kvbmq4e13.wd7kwnb9g{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.vzfl1l6hax{
  padding:16px 20px; background:var(--qch-xgi7); border-bottom:1px solid var(--f6017-a8y2);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.w6j3h7{ width:10px; height:10px; border-radius:50%; background:var(--h3j-xo33); flex-shrink:0; }
.ngyal9{ flex:1; min-width:0; }
.v3rd_5{ font-size:16px; font-weight:600; color:var(--f8d-zz); margin:0 0 2px 0; }
.bvx24knj6p{ font-size:13px; color:var(--c8k-r6); margin:0; }
.h5hd8mqn{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--c8k-r6);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.h5hd8mqn:hover{ background:var(--hee-iec); color:var(--f8d-zz); }
.h5hd8mqn:focus{ outline:2px solid var(--h3j-xo33); outline-offset:2px; }
.h5hd8mqn svg{ width:20px; height:20px; }

/* Body */
.zsvf25o{
  flex:1; overflow-y:auto; padding:16px; background:var(--hee-iec);
  display:flex; flex-direction:column; gap:12px;
}
.zsvf25o::-webkit-scrollbar{ width:6px; }
.zsvf25o::-webkit-scrollbar-track{ background:transparent; }
.zsvf25o::-webkit-scrollbar-thumb{ background:var(--f6017-a8y2); border-radius:3px; }
.zsvf25o::-webkit-scrollbar-thumb:hover{ background:var(--c8k-r6); }

/* Messages */
.p4ddxehb8{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.p4ddxehb8.pa7f410qo{ flex-direction:row-reverse; }
.kd4swjk7{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.kd4swjk7 a{ color:inherit; }
.p4ddxehb8.l_euj35e .kd4swjk7{ background:var(--qch-xgi7); color:var(--f8d-zz); border-bottom-left-radius:4px; }
.p4ddxehb8.pa7f410qo .kd4swjk7{ background:var(--h3j-xo33); color:#fff; border-bottom-right-radius:4px; }
.v224u17oo9{ font-size:11px; color:var(--c8k-r6); margin-top:4px; display:block; }

/* Typing Indicator */
.nj4y45d{
  display:flex; gap:8px; padding:10px 14px; background:var(--qch-xgi7);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.c77rg3c7tk{ width:8px; height:8px; border-radius:50%; background:var(--c8k-r6); animation:typingDot 1.4s infinite; }
.c77rg3c7tk:nth-child(2){ animation-delay:.2s; }
.c77rg3c7tk: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) */
.gy8mett{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.j0anfzgj6{
  border:0; border-radius:999px; padding:8px 12px; background:var(--h3j-xo33); 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(--nan-yxr);
}
.j0anfzgj6:is(:hover,:focus){ transform:translateY(-1px); }
a.j0anfzgj6{ text-decoration:none; display:inline-block; }
a.j0anfzgj6:link, a.j0anfzgj6:visited{ color:#fff; }
a.j0anfzgj6:hover, a.j0anfzgj6:focus{ color:#fff; }

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

/* Footer */
.uma8669t{
  padding:16px; background:var(--qch-xgi7); border-top:1px solid var(--f6017-a8y2);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.lz_fopw3w{
  flex:1; padding:10px 14px; border:1px solid var(--f6017-a8y2); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--f8d-zz);
  background:var(--hee-iec); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.lz_fopw3w:focus{ border-color:var(--h3j-xo33); }
.lz_fopw3w::placeholder{ color:var(--c8k-r6); }
.lz_fopw3w.zsl1ph{ border-color:#c00; }
.rdc5xljo{
  width:40px; height:40px; min-width:40px; border:none; background:var(--h3j-xo33); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.rdc5xljo:disabled{ opacity:.5; cursor:not-allowed; }
.rdc5xljo:not(:disabled):hover{ transform:scale(1.05); }
.rdc5xljo:not(:disabled):active{ transform:scale(0.95); }
.rdc5xljo:focus{ outline:2px solid var(--h3j-xo33); outline-offset:2px; }
.rdc5xljo svg{ width:20px; height:20px; }

/* Character Counter */
.kv2ekgtu82{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--c8k-r6); }
.kv2ekgtu82.n5ruxc{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.a3ucwrsf9d{
  align-self:flex-start;
  max-width:75%;
  background: var(--qch-xgi7);
  color: var(--f8d-zz);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--nan-yxr);
}
.nz6pr8{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.go9gv4.y69ymjsq{
  background: transparent; color: var(--f8d-zz); border-color: var(--f6017-a8y2);
}
.go9gv4.y69ymjsq:hover{
  background: var(--h3j-xo33); color:#fff; border-color: var(--h3j-xo33);
}

/* Mobile */
@media (max-width: 768px){
  .o9j3seqb5{ bottom:16px; right:16px; }
  .o9j3seqb5.bv0z_o5{ left:16px; }
  .k2dj5dyr{ --p0xq-swc:60px; }
  .kvbmq4e13{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--t8x-hp1) var(--t8x-hp1) 0 0; transform: translateY(100%);
  }
  .kvbmq4e13.wd7kwnb9g{ transform: translateY(0); }
  .vzfl1l6hax{ padding:20px; }
  .uma8669t{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.o9j3seqb5 :focus-visible{ outline:2px solid var(--h3j-xo33); outline-offset:2px; }

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