/* CSS Variables */
:root {
  --miefj-fxn: #4f46e5;
  --hsfu0o-x82: #ffffff;
  --ltze-z4m: #f9fafb;
  --cc8tpu-kd: #0f172a;
  --ebbq5r-cy: #6b7280;
  --pc4c25-ux: #e5e7eb;
  --zpyu-cxtg: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --bx5m-k7t: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --dcbqw-w9: 16px;
  --sj2lm-soz1: 56px;
  --kkuy2-hic: 12px;
  --p7sy-y1: 999999;
}

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

/* Main Container */
.ondnn {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--p7sy-y1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--cc8tpu-kd);
}
.ondnn.xuju9h { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.mon71 { display: flex; flex-direction: column-reverse; gap: var(--kkuy2-hic); align-items: center; }
.vgjo0 {
  width: var(--sj2lm-soz1); height: var(--sj2lm-soz1); min-width: var(--sj2lm-soz1); min-height: var(--sj2lm-soz1);
  border-radius: 50%; border: none; background: var(--miefj-fxn); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--zpyu-cxtg);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.vgjo0:hover { transform: scale(1.05); box-shadow: var(--bx5m-k7t); }
.vgjo0:active { transform: scale(0.95); }
.vgjo0:focus { outline: 2px solid var(--miefj-fxn); outline-offset: 2px; }
.vgjo0 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .vgjo0.d5i1{ animation:none; }
  .vgjo0,.utjzwm,.ig0jhz{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.utjzwm{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--hsfu0o-x82); border-radius: var(--dcbqw-w9); box-shadow: var(--bx5m-k7t);
  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;
}
.ondnn.xuju9h .utjzwm{ right:auto; left:24px; }
.utjzwm.tpbnlf{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.srrt{
  padding:16px 20px; background:var(--hsfu0o-x82); border-bottom:1px solid var(--pc4c25-ux);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.rfwb{ width:10px; height:10px; border-radius:50%; background:var(--miefj-fxn); flex-shrink:0; }
.rszvh2{ flex:1; min-width:0; }
.xqnp4h{ font-size:16px; font-weight:600; color:var(--cc8tpu-kd); margin:0 0 2px 0; }
.m9kuml{ font-size:13px; color:var(--ebbq5r-cy); margin:0; }
.w85fz{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--ebbq5r-cy);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.w85fz:hover{ background:var(--ltze-z4m); color:var(--cc8tpu-kd); }
.w85fz:focus{ outline:2px solid var(--miefj-fxn); outline-offset:2px; }
.w85fz svg{ width:20px; height:20px; }

/* Body */
.d5tj6{
  flex:1; overflow-y:auto; padding:16px; background:var(--ltze-z4m);
  display:flex; flex-direction:column; gap:12px;
}
.d5tj6::-webkit-scrollbar{ width:6px; }
.d5tj6::-webkit-scrollbar-track{ background:transparent; }
.d5tj6::-webkit-scrollbar-thumb{ background:var(--pc4c25-ux); border-radius:3px; }
.d5tj6::-webkit-scrollbar-thumb:hover{ background:var(--ebbq5r-cy); }

/* Messages */
.ig0jhz{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.ig0jhz.gm94yj{ flex-direction:row-reverse; }
.l6r3{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.l6r3 a{ color:inherit; }
.ig0jhz.qnjs .l6r3{ background:var(--hsfu0o-x82); color:var(--cc8tpu-kd); border-bottom-left-radius:4px; }
.ig0jhz.gm94yj .l6r3{ background:var(--miefj-fxn); color:#fff; border-bottom-right-radius:4px; }
.nomu{ font-size:11px; color:var(--ebbq5r-cy); margin-top:4px; display:block; }

/* Typing Indicator */
.jq94{
  display:flex; gap:8px; padding:10px 14px; background:var(--hsfu0o-x82);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.f11nk{ width:8px; height:8px; border-radius:50%; background:var(--ebbq5r-cy); animation:typingDot 1.4s infinite; }
.f11nk:nth-child(2){ animation-delay:.2s; }
.f11nk: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) */
.geju{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.tru3a{
  border:0; border-radius:999px; padding:8px 12px; background:var(--miefj-fxn); 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(--zpyu-cxtg);
}
.tru3a:is(:hover,:focus){ transform:translateY(-1px); }
a.tru3a{ text-decoration:none; display:inline-block; }
a.tru3a:link, a.tru3a:visited{ color:#fff; }
a.tru3a:hover, a.tru3a:focus{ color:#fff; }

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

/* Footer */
.pbuohj{
  padding:16px; background:var(--hsfu0o-x82); border-top:1px solid var(--pc4c25-ux);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.dqxa{
  flex:1; padding:10px 14px; border:1px solid var(--pc4c25-ux); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--cc8tpu-kd);
  background:var(--ltze-z4m); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.dqxa:focus{ border-color:var(--miefj-fxn); }
.dqxa::placeholder{ color:var(--ebbq5r-cy); }
.dqxa.klinvb{ border-color:#c00; }
.wecq6u{
  width:40px; height:40px; min-width:40px; border:none; background:var(--miefj-fxn); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.wecq6u:disabled{ opacity:.5; cursor:not-allowed; }
.wecq6u:not(:disabled):hover{ transform:scale(1.05); }
.wecq6u:not(:disabled):active{ transform:scale(0.95); }
.wecq6u:focus{ outline:2px solid var(--miefj-fxn); outline-offset:2px; }
.wecq6u svg{ width:20px; height:20px; }

/* Character Counter */
.vq69pb{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--ebbq5r-cy); }
.vq69pb.nih2{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.q2wes{
  align-self:flex-start;
  max-width:75%;
  background: var(--hsfu0o-x82);
  color: var(--cc8tpu-kd);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--zpyu-cxtg);
}
.rrfv{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.n7w61a.l0mx4{
  background: transparent; color: var(--cc8tpu-kd); border-color: var(--pc4c25-ux);
}
.n7w61a.l0mx4:hover{
  background: var(--miefj-fxn); color:#fff; border-color: var(--miefj-fxn);
}

/* Mobile */
@media (max-width: 768px){
  .ondnn{ bottom:16px; right:16px; }
  .ondnn.xuju9h{ left:16px; }
  .vgjo0{ --sj2lm-soz1:60px; }
  .utjzwm{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--dcbqw-w9) var(--dcbqw-w9) 0 0; transform: translateY(100%);
  }
  .utjzwm.tpbnlf{ transform: translateY(0); }
  .srrt{ padding:20px; }
  .pbuohj{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.ondnn :focus-visible{ outline:2px solid var(--miefj-fxn); outline-offset:2px; }

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