/* CSS Variables */
:root {
  --peesr-wmvr: #4f46e5;
  --sxzb-h6v7: #ffffff;
  --c5g-eb: #f9fafb;
  --c8r0b0-pbbk: #0f172a;
  --pjjgx3-vyfr: #6b7280;
  --q5lw-v4n: #e5e7eb;
  --sb7k-l2: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --j31-ww: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --zelo-pxc: 16px;
  --ttt-jwo: 56px;
  --qhky-faf: 12px;
  --ef5csf-ibfj: 999999;
}

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

/* Main Container */
.kdsUry2 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--ef5csf-ibfj);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--c8r0b0-pbbk);
}
.kdsUry2.j80L84 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.uoGqx { display: flex; flex-direction: column-reverse; gap: var(--qhky-faf); align-items: center; }
.j0Hz1 {
  width: var(--ttt-jwo); height: var(--ttt-jwo); min-width: var(--ttt-jwo); min-height: var(--ttt-jwo);
  border-radius: 50%; border: none; background: var(--peesr-wmvr); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--sb7k-l2);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.j0Hz1:hover { transform: scale(1.05); box-shadow: var(--j31-ww); }
.j0Hz1:active { transform: scale(0.95); }
.j0Hz1:focus { outline: 2px solid var(--peesr-wmvr); outline-offset: 2px; }
.j0Hz1 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .j0Hz1.ewL0d{ animation:none; }
  .j0Hz1,.p36Jsz,.axwG33{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.p36Jsz{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--sxzb-h6v7); border-radius: var(--zelo-pxc); box-shadow: var(--j31-ww);
  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;
}
.kdsUry2.j80L84 .p36Jsz{ right:auto; left:24px; }
.p36Jsz.qg6Jeg{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.h9fFrl9{
  padding:16px 20px; background:var(--sxzb-h6v7); border-bottom:1px solid var(--q5lw-v4n);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.c3evPfbn{ width:10px; height:10px; border-radius:50%; background:var(--peesr-wmvr); flex-shrink:0; }
.kzjcZ55u{ flex:1; min-width:0; }
.fuJi6{ font-size:16px; font-weight:600; color:var(--c8r0b0-pbbk); margin:0 0 2px 0; }
.gyr2Ilt0{ font-size:13px; color:var(--pjjgx3-vyfr); margin:0; }
.uiqZws7{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--pjjgx3-vyfr);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.uiqZws7:hover{ background:var(--c5g-eb); color:var(--c8r0b0-pbbk); }
.uiqZws7:focus{ outline:2px solid var(--peesr-wmvr); outline-offset:2px; }
.uiqZws7 svg{ width:20px; height:20px; }

/* Body */
.bvPy3{
  flex:1; overflow-y:auto; padding:16px; background:var(--c5g-eb);
  display:flex; flex-direction:column; gap:12px;
}
.bvPy3::-webkit-scrollbar{ width:6px; }
.bvPy3::-webkit-scrollbar-track{ background:transparent; }
.bvPy3::-webkit-scrollbar-thumb{ background:var(--q5lw-v4n); border-radius:3px; }
.bvPy3::-webkit-scrollbar-thumb:hover{ background:var(--pjjgx3-vyfr); }

/* Messages */
.axwG33{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.axwG33.n8rJu2t{ flex-direction:row-reverse; }
.yppXx9{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.yppXx9 a{ color:inherit; }
.axwG33.jxx4Wana .yppXx9{ background:var(--sxzb-h6v7); color:var(--c8r0b0-pbbk); border-bottom-left-radius:4px; }
.axwG33.n8rJu2t .yppXx9{ background:var(--peesr-wmvr); color:#fff; border-bottom-right-radius:4px; }
.l3Ykp{ font-size:11px; color:var(--pjjgx3-vyfr); margin-top:4px; display:block; }

/* Typing Indicator */
.y4Gzs{
  display:flex; gap:8px; padding:10px 14px; background:var(--sxzb-h6v7);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.bjn2Gep8{ width:8px; height:8px; border-radius:50%; background:var(--pjjgx3-vyfr); animation:typingDot 1.4s infinite; }
.bjn2Gep8:nth-child(2){ animation-delay:.2s; }
.bjn2Gep8: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) */
.tpdWjbr{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.qmo8Bo2d{
  border:0; border-radius:999px; padding:8px 12px; background:var(--peesr-wmvr); 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(--sb7k-l2);
}
.qmo8Bo2d:is(:hover,:focus){ transform:translateY(-1px); }
a.qmo8Bo2d{ text-decoration:none; display:inline-block; }
a.qmo8Bo2d:link, a.qmo8Bo2d:visited{ color:#fff; }
a.qmo8Bo2d:hover, a.qmo8Bo2d:focus{ color:#fff; }

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

/* Footer */
.ttUr2{
  padding:16px; background:var(--sxzb-h6v7); border-top:1px solid var(--q5lw-v4n);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.p9jcV32h{
  flex:1; padding:10px 14px; border:1px solid var(--q5lw-v4n); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--c8r0b0-pbbk);
  background:var(--c5g-eb); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.p9jcV32h:focus{ border-color:var(--peesr-wmvr); }
.p9jcV32h::placeholder{ color:var(--pjjgx3-vyfr); }
.p9jcV32h.zhaSxr{ border-color:#c00; }
.taiArf{
  width:40px; height:40px; min-width:40px; border:none; background:var(--peesr-wmvr); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.taiArf:disabled{ opacity:.5; cursor:not-allowed; }
.taiArf:not(:disabled):hover{ transform:scale(1.05); }
.taiArf:not(:disabled):active{ transform:scale(0.95); }
.taiArf:focus{ outline:2px solid var(--peesr-wmvr); outline-offset:2px; }
.taiArf svg{ width:20px; height:20px; }

/* Character Counter */
.w1kfSn8z{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--pjjgx3-vyfr); }
.w1kfSn8z.seoRv6{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.b71Dhdk{
  align-self:flex-start;
  max-width:75%;
  background: var(--sxzb-h6v7);
  color: var(--c8r0b0-pbbk);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--sb7k-l2);
}
.i6p3V8c9{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.srFon.g9kOr0{
  background: transparent; color: var(--c8r0b0-pbbk); border-color: var(--q5lw-v4n);
}
.srFon.g9kOr0:hover{
  background: var(--peesr-wmvr); color:#fff; border-color: var(--peesr-wmvr);
}

/* Mobile */
@media (max-width: 768px){
  .kdsUry2{ bottom:16px; right:16px; }
  .kdsUry2.j80L84{ left:16px; }
  .j0Hz1{ --ttt-jwo:60px; }
  .p36Jsz{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--zelo-pxc) var(--zelo-pxc) 0 0; transform: translateY(100%);
  }
  .p36Jsz.qg6Jeg{ transform: translateY(0); }
  .h9fFrl9{ padding:20px; }
  .ttUr2{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.kdsUry2 :focus-visible{ outline:2px solid var(--peesr-wmvr); outline-offset:2px; }

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