/* CSS Variables */
:root {
  --i4jpv-fi: #4f46e5;
  --wbii-yu: #ffffff;
  --va44j-ibk4: #f9fafb;
  --yinebg-fqdr: #0f172a;
  --qqyvq-f4: #6b7280;
  --kyu-jrg: #e5e7eb;
  --ps0e5h-emek: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --y48a-n3l9: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --iqcq-ax: 16px;
  --ct25ch-o7: 56px;
  --n6d83-k03: 12px;
  --ae780-moo8: 999999;
}

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

/* Main Container */
.mrssFuib {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--ae780-moo8);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--yinebg-fqdr);
}
.mrssFuib.ytiY1n3 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.hsaDbj { display: flex; flex-direction: column-reverse; gap: var(--n6d83-k03); align-items: center; }
.yjhCfs1 {
  width: var(--ct25ch-o7); height: var(--ct25ch-o7); min-width: var(--ct25ch-o7); min-height: var(--ct25ch-o7);
  border-radius: 50%; border: none; background: var(--i4jpv-fi); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--ps0e5h-emek);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.yjhCfs1:hover { transform: scale(1.05); box-shadow: var(--y48a-n3l9); }
.yjhCfs1:active { transform: scale(0.95); }
.yjhCfs1:focus { outline: 2px solid var(--i4jpv-fi); outline-offset: 2px; }
.yjhCfs1 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .yjhCfs1.ufpkL7i5{ animation:none; }
  .yjhCfs1,.rt6T22n,.ygrFhj0{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.rt6T22n{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--wbii-yu); border-radius: var(--iqcq-ax); box-shadow: var(--y48a-n3l9);
  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;
}
.mrssFuib.ytiY1n3 .rt6T22n{ right:auto; left:24px; }
.rt6T22n.kiYma{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.q3bFh5w{
  padding:16px 20px; background:var(--wbii-yu); border-bottom:1px solid var(--kyu-jrg);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.hxyXm5{ width:10px; height:10px; border-radius:50%; background:var(--i4jpv-fi); flex-shrink:0; }
.bb0Dp4{ flex:1; min-width:0; }
.o4Bml{ font-size:16px; font-weight:600; color:var(--yinebg-fqdr); margin:0 0 2px 0; }
.imvXyj5{ font-size:13px; color:var(--qqyvq-f4); margin:0; }
.jlM1p{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--qqyvq-f4);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.jlM1p:hover{ background:var(--va44j-ibk4); color:var(--yinebg-fqdr); }
.jlM1p:focus{ outline:2px solid var(--i4jpv-fi); outline-offset:2px; }
.jlM1p svg{ width:20px; height:20px; }

/* Body */
.dmajQvq4{
  flex:1; overflow-y:auto; padding:16px; background:var(--va44j-ibk4);
  display:flex; flex-direction:column; gap:12px;
}
.dmajQvq4::-webkit-scrollbar{ width:6px; }
.dmajQvq4::-webkit-scrollbar-track{ background:transparent; }
.dmajQvq4::-webkit-scrollbar-thumb{ background:var(--kyu-jrg); border-radius:3px; }
.dmajQvq4::-webkit-scrollbar-thumb:hover{ background:var(--qqyvq-f4); }

/* Messages */
.ygrFhj0{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.ygrFhj0.c1Tnb{ flex-direction:row-reverse; }
.k2pZjzh{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.k2pZjzh a{ color:inherit; }
.ygrFhj0.co9Ixm .k2pZjzh{ background:var(--wbii-yu); color:var(--yinebg-fqdr); border-bottom-left-radius:4px; }
.ygrFhj0.c1Tnb .k2pZjzh{ background:var(--i4jpv-fi); color:#fff; border-bottom-right-radius:4px; }
.gxnEdc{ font-size:11px; color:var(--qqyvq-f4); margin-top:4px; display:block; }

/* Typing Indicator */
.z4mK9qg{
  display:flex; gap:8px; padding:10px 14px; background:var(--wbii-yu);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.tdKjp{ width:8px; height:8px; border-radius:50%; background:var(--qqyvq-f4); animation:typingDot 1.4s infinite; }
.tdKjp:nth-child(2){ animation-delay:.2s; }
.tdKjp: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) */
.c68Idg{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.qw9vT74n{
  border:0; border-radius:999px; padding:8px 12px; background:var(--i4jpv-fi); 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(--ps0e5h-emek);
}
.qw9vT74n:is(:hover,:focus){ transform:translateY(-1px); }
a.qw9vT74n{ text-decoration:none; display:inline-block; }
a.qw9vT74n:link, a.qw9vT74n:visited{ color:#fff; }
a.qw9vT74n:hover, a.qw9vT74n:focus{ color:#fff; }

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

/* Footer */
.x4uC0w{
  padding:16px; background:var(--wbii-yu); border-top:1px solid var(--kyu-jrg);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.rfgWw8e{
  flex:1; padding:10px 14px; border:1px solid var(--kyu-jrg); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--yinebg-fqdr);
  background:var(--va44j-ibk4); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.rfgWw8e:focus{ border-color:var(--i4jpv-fi); }
.rfgWw8e::placeholder{ color:var(--qqyvq-f4); }
.rfgWw8e.ufCjp{ border-color:#c00; }
.w66lEyyw{
  width:40px; height:40px; min-width:40px; border:none; background:var(--i4jpv-fi); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.w66lEyyw:disabled{ opacity:.5; cursor:not-allowed; }
.w66lEyyw:not(:disabled):hover{ transform:scale(1.05); }
.w66lEyyw:not(:disabled):active{ transform:scale(0.95); }
.w66lEyyw:focus{ outline:2px solid var(--i4jpv-fi); outline-offset:2px; }
.w66lEyyw svg{ width:20px; height:20px; }

/* Character Counter */
.j8Tje{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--qqyvq-f4); }
.j8Tje.gobAnr1{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.z1tqIzt2{
  align-self:flex-start;
  max-width:75%;
  background: var(--wbii-yu);
  color: var(--yinebg-fqdr);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--ps0e5h-emek);
}
.qgAru{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.hf6zR1gt.tqe8Kfda{
  background: transparent; color: var(--yinebg-fqdr); border-color: var(--kyu-jrg);
}
.hf6zR1gt.tqe8Kfda:hover{
  background: var(--i4jpv-fi); color:#fff; border-color: var(--i4jpv-fi);
}

/* Mobile */
@media (max-width: 768px){
  .mrssFuib{ bottom:16px; right:16px; }
  .mrssFuib.ytiY1n3{ left:16px; }
  .yjhCfs1{ --ct25ch-o7:60px; }
  .rt6T22n{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--iqcq-ax) var(--iqcq-ax) 0 0; transform: translateY(100%);
  }
  .rt6T22n.kiYma{ transform: translateY(0); }
  .q3bFh5w{ padding:20px; }
  .x4uC0w{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.mrssFuib :focus-visible{ outline:2px solid var(--i4jpv-fi); outline-offset:2px; }

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