/* CSS Variables */
:root {
  --einwyk-y54: #4f46e5;
  --vq0-cl1: #ffffff;
  --mzfgx8-itm: #f9fafb;
  --z1n9x-tvzt: #0f172a;
  --doyq11-ivj: #6b7280;
  --fym-qn: #e5e7eb;
  --zo2fj-u8hr: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --ioi09-p4: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --c9li-ne: 16px;
  --mc0gox-qi09: 56px;
  --grzdq-hre: 12px;
  --lrmz-n3: 999999;
}

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

/* Main Container */
.ludoq9 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--lrmz-n3);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--z1n9x-tvzt);
}
.ludoq9.v0np2q { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.tmh4 { display: flex; flex-direction: column-reverse; gap: var(--grzdq-hre); align-items: center; }
.dtvf98 {
  width: var(--mc0gox-qi09); height: var(--mc0gox-qi09); min-width: var(--mc0gox-qi09); min-height: var(--mc0gox-qi09);
  border-radius: 50%; border: none; background: var(--einwyk-y54); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--zo2fj-u8hr);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.dtvf98:hover { transform: scale(1.05); box-shadow: var(--ioi09-p4); }
.dtvf98:active { transform: scale(0.95); }
.dtvf98:focus { outline: 2px solid var(--einwyk-y54); outline-offset: 2px; }
.dtvf98 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .dtvf98.a1trz{ animation:none; }
  .dtvf98,.yb4q,.jlva6{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.yb4q{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--vq0-cl1); border-radius: var(--c9li-ne); box-shadow: var(--ioi09-p4);
  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;
}
.ludoq9.v0np2q .yb4q{ right:auto; left:24px; }
.yb4q.as4ed{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.sez7g{
  padding:16px 20px; background:var(--vq0-cl1); border-bottom:1px solid var(--fym-qn);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.rtdrym{ width:10px; height:10px; border-radius:50%; background:var(--einwyk-y54); flex-shrink:0; }
.mev1{ flex:1; min-width:0; }
.klan{ font-size:16px; font-weight:600; color:var(--z1n9x-tvzt); margin:0 0 2px 0; }
.ppva8{ font-size:13px; color:var(--doyq11-ivj); margin:0; }
.vk4ng{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--doyq11-ivj);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.vk4ng:hover{ background:var(--mzfgx8-itm); color:var(--z1n9x-tvzt); }
.vk4ng:focus{ outline:2px solid var(--einwyk-y54); outline-offset:2px; }
.vk4ng svg{ width:20px; height:20px; }

/* Body */
.kgmkuf{
  flex:1; overflow-y:auto; padding:16px; background:var(--mzfgx8-itm);
  display:flex; flex-direction:column; gap:12px;
}
.kgmkuf::-webkit-scrollbar{ width:6px; }
.kgmkuf::-webkit-scrollbar-track{ background:transparent; }
.kgmkuf::-webkit-scrollbar-thumb{ background:var(--fym-qn); border-radius:3px; }
.kgmkuf::-webkit-scrollbar-thumb:hover{ background:var(--doyq11-ivj); }

/* Messages */
.jlva6{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.jlva6.guoow{ flex-direction:row-reverse; }
.uc8t{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.uc8t a{ color:inherit; }
.jlva6.y2yl .uc8t{ background:var(--vq0-cl1); color:var(--z1n9x-tvzt); border-bottom-left-radius:4px; }
.jlva6.guoow .uc8t{ background:var(--einwyk-y54); color:#fff; border-bottom-right-radius:4px; }
.aq3o{ font-size:11px; color:var(--doyq11-ivj); margin-top:4px; display:block; }

/* Typing Indicator */
.ccw3yq{
  display:flex; gap:8px; padding:10px 14px; background:var(--vq0-cl1);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.dfh1{ width:8px; height:8px; border-radius:50%; background:var(--doyq11-ivj); animation:typingDot 1.4s infinite; }
.dfh1:nth-child(2){ animation-delay:.2s; }
.dfh1: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) */
.uo2mf9{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.esjq{
  border:0; border-radius:999px; padding:8px 12px; background:var(--einwyk-y54); 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(--zo2fj-u8hr);
}
.esjq:is(:hover,:focus){ transform:translateY(-1px); }
a.esjq{ text-decoration:none; display:inline-block; }
a.esjq:link, a.esjq:visited{ color:#fff; }
a.esjq:hover, a.esjq:focus{ color:#fff; }

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

/* Footer */
.i1vuh{
  padding:16px; background:var(--vq0-cl1); border-top:1px solid var(--fym-qn);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.m2bd95{
  flex:1; padding:10px 14px; border:1px solid var(--fym-qn); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--z1n9x-tvzt);
  background:var(--mzfgx8-itm); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.m2bd95:focus{ border-color:var(--einwyk-y54); }
.m2bd95::placeholder{ color:var(--doyq11-ivj); }
.m2bd95.iiti14{ border-color:#c00; }
.vc4m{
  width:40px; height:40px; min-width:40px; border:none; background:var(--einwyk-y54); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.vc4m:disabled{ opacity:.5; cursor:not-allowed; }
.vc4m:not(:disabled):hover{ transform:scale(1.05); }
.vc4m:not(:disabled):active{ transform:scale(0.95); }
.vc4m:focus{ outline:2px solid var(--einwyk-y54); outline-offset:2px; }
.vc4m svg{ width:20px; height:20px; }

/* Character Counter */
.p5c4v2{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--doyq11-ivj); }
.p5c4v2.s2qqa{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.xgagh2{
  align-self:flex-start;
  max-width:75%;
  background: var(--vq0-cl1);
  color: var(--z1n9x-tvzt);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--zo2fj-u8hr);
}
.k5aoyj{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.wk58.g9njq{
  background: transparent; color: var(--z1n9x-tvzt); border-color: var(--fym-qn);
}
.wk58.g9njq:hover{
  background: var(--einwyk-y54); color:#fff; border-color: var(--einwyk-y54);
}

/* Mobile */
@media (max-width: 768px){
  .ludoq9{ bottom:16px; right:16px; }
  .ludoq9.v0np2q{ left:16px; }
  .dtvf98{ --mc0gox-qi09:60px; }
  .yb4q{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--c9li-ne) var(--c9li-ne) 0 0; transform: translateY(100%);
  }
  .yb4q.as4ed{ transform: translateY(0); }
  .sez7g{ padding:20px; }
  .i1vuh{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.ludoq9 :focus-visible{ outline:2px solid var(--einwyk-y54); outline-offset:2px; }

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