/* CSS Variables */
:root {
  --gqq-ixp5: #4f46e5;
  --hj5-yn: #ffffff;
  --whfv-u9h: #f9fafb;
  --b7aaw-ez: #0f172a;
  --ogkzg-xido: #6b7280;
  --ir501-c11v: #e5e7eb;
  --jhl9ar-in5: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --yyu2pp-ek36: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --grk6-b8: 16px;
  --wjo1-sn: 56px;
  --tj3jp-ji: 12px;
  --aec-o7: 999999;
}

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

/* Main Container */
.r9bqNfr6 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--aec-o7);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--b7aaw-ez);
}
.r9bqNfr6.qllkM0h5 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.to0Uogw { display: flex; flex-direction: column-reverse; gap: var(--tj3jp-ji); align-items: center; }
.cbeFqh {
  width: var(--wjo1-sn); height: var(--wjo1-sn); min-width: var(--wjo1-sn); min-height: var(--wjo1-sn);
  border-radius: 50%; border: none; background: var(--gqq-ixp5); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--jhl9ar-in5);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.cbeFqh:hover { transform: scale(1.05); box-shadow: var(--yyu2pp-ek36); }
.cbeFqh:active { transform: scale(0.95); }
.cbeFqh:focus { outline: 2px solid var(--gqq-ixp5); outline-offset: 2px; }
.cbeFqh svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .cbeFqh.mtSfh{ animation:none; }
  .cbeFqh,.znmH930,.z3yuOlq5{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.znmH930{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--hj5-yn); border-radius: var(--grk6-b8); box-shadow: var(--yyu2pp-ek36);
  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;
}
.r9bqNfr6.qllkM0h5 .znmH930{ right:auto; left:24px; }
.znmH930.h9zJ5l7{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.c7cuI6xh{
  padding:16px 20px; background:var(--hj5-yn); border-bottom:1px solid var(--ir501-c11v);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.dc0Tkzr{ width:10px; height:10px; border-radius:50%; background:var(--gqq-ixp5); flex-shrink:0; }
.jxhEql{ flex:1; min-width:0; }
.yw0V0jm{ font-size:16px; font-weight:600; color:var(--b7aaw-ez); margin:0 0 2px 0; }
.p9xNzc7{ font-size:13px; color:var(--ogkzg-xido); margin:0; }
.b9Fkz{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--ogkzg-xido);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.b9Fkz:hover{ background:var(--whfv-u9h); color:var(--b7aaw-ez); }
.b9Fkz:focus{ outline:2px solid var(--gqq-ixp5); outline-offset:2px; }
.b9Fkz svg{ width:20px; height:20px; }

/* Body */
.uc6mQdtl{
  flex:1; overflow-y:auto; padding:16px; background:var(--whfv-u9h);
  display:flex; flex-direction:column; gap:12px;
}
.uc6mQdtl::-webkit-scrollbar{ width:6px; }
.uc6mQdtl::-webkit-scrollbar-track{ background:transparent; }
.uc6mQdtl::-webkit-scrollbar-thumb{ background:var(--ir501-c11v); border-radius:3px; }
.uc6mQdtl::-webkit-scrollbar-thumb:hover{ background:var(--ogkzg-xido); }

/* Messages */
.z3yuOlq5{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.z3yuOlq5.zauG3o{ flex-direction:row-reverse; }
.jg1Jad0{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.jg1Jad0 a{ color:inherit; }
.z3yuOlq5.gl7O58o .jg1Jad0{ background:var(--hj5-yn); color:var(--b7aaw-ez); border-bottom-left-radius:4px; }
.z3yuOlq5.zauG3o .jg1Jad0{ background:var(--gqq-ixp5); color:#fff; border-bottom-right-radius:4px; }
.chxErgq{ font-size:11px; color:var(--ogkzg-xido); margin-top:4px; display:block; }

/* Typing Indicator */
.kfcYj0{
  display:flex; gap:8px; padding:10px 14px; background:var(--hj5-yn);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.d02Iuud{ width:8px; height:8px; border-radius:50%; background:var(--ogkzg-xido); animation:typingDot 1.4s infinite; }
.d02Iuud:nth-child(2){ animation-delay:.2s; }
.d02Iuud: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) */
.clYso{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.igVj4{
  border:0; border-radius:999px; padding:8px 12px; background:var(--gqq-ixp5); 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(--jhl9ar-in5);
}
.igVj4:is(:hover,:focus){ transform:translateY(-1px); }
a.igVj4{ text-decoration:none; display:inline-block; }
a.igVj4:link, a.igVj4:visited{ color:#fff; }
a.igVj4:hover, a.igVj4:focus{ color:#fff; }

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

/* Footer */
.guwVgjl{
  padding:16px; background:var(--hj5-yn); border-top:1px solid var(--ir501-c11v);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.a6Dkq{
  flex:1; padding:10px 14px; border:1px solid var(--ir501-c11v); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--b7aaw-ez);
  background:var(--whfv-u9h); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.a6Dkq:focus{ border-color:var(--gqq-ixp5); }
.a6Dkq::placeholder{ color:var(--ogkzg-xido); }
.a6Dkq.j1jtLqpl{ border-color:#c00; }
.ge8Qcv{
  width:40px; height:40px; min-width:40px; border:none; background:var(--gqq-ixp5); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.ge8Qcv:disabled{ opacity:.5; cursor:not-allowed; }
.ge8Qcv:not(:disabled):hover{ transform:scale(1.05); }
.ge8Qcv:not(:disabled):active{ transform:scale(0.95); }
.ge8Qcv:focus{ outline:2px solid var(--gqq-ixp5); outline-offset:2px; }
.ge8Qcv svg{ width:20px; height:20px; }

/* Character Counter */
.k90C0g{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--ogkzg-xido); }
.k90C0g.pkq0Zcyi{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.ut4oUk8b{
  align-self:flex-start;
  max-width:75%;
  background: var(--hj5-yn);
  color: var(--b7aaw-ez);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--jhl9ar-in5);
}
.pzpwYy8a{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.e4sMsd.ezkmEx7x{
  background: transparent; color: var(--b7aaw-ez); border-color: var(--ir501-c11v);
}
.e4sMsd.ezkmEx7x:hover{
  background: var(--gqq-ixp5); color:#fff; border-color: var(--gqq-ixp5);
}

/* Mobile */
@media (max-width: 768px){
  .r9bqNfr6{ bottom:16px; right:16px; }
  .r9bqNfr6.qllkM0h5{ left:16px; }
  .cbeFqh{ --wjo1-sn:60px; }
  .znmH930{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--grk6-b8) var(--grk6-b8) 0 0; transform: translateY(100%);
  }
  .znmH930.h9zJ5l7{ transform: translateY(0); }
  .c7cuI6xh{ padding:20px; }
  .guwVgjl{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.r9bqNfr6 :focus-visible{ outline:2px solid var(--gqq-ixp5); outline-offset:2px; }

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