/* CSS Variables */
:root {
  --wlbvv-j71: #4f46e5;
  --d7zhi-hp: #ffffff;
  --ebvb-ev3l: #f9fafb;
  --l62l-gxmb: #0f172a;
  --c7h5-rk3: #6b7280;
  --dyfza-an: #e5e7eb;
  --dv5x92-cck: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --ui7-ual4: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --rubha-scay: 16px;
  --becp3-kxm: 56px;
  --z1r-nbb: 12px;
  --lfay2g-oc: 999999;
}

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

/* Main Container */
.ckxs7l {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--lfay2g-oc);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--l62l-gxmb);
}
.ckxs7l.jnbh { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.tgh2 { display: flex; flex-direction: column-reverse; gap: var(--z1r-nbb); align-items: center; }
.ivinjx {
  width: var(--becp3-kxm); height: var(--becp3-kxm); min-width: var(--becp3-kxm); min-height: var(--becp3-kxm);
  border-radius: 50%; border: none; background: var(--wlbvv-j71); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--dv5x92-cck);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.ivinjx:hover { transform: scale(1.05); box-shadow: var(--ui7-ual4); }
.ivinjx:active { transform: scale(0.95); }
.ivinjx:focus { outline: 2px solid var(--wlbvv-j71); outline-offset: 2px; }
.ivinjx svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .ivinjx.jquw{ animation:none; }
  .ivinjx,.r9anw,.mvhp0{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.r9anw{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--d7zhi-hp); border-radius: var(--rubha-scay); box-shadow: var(--ui7-ual4);
  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;
}
.ckxs7l.jnbh .r9anw{ right:auto; left:24px; }
.r9anw.i83qbf{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.grm02{
  padding:16px 20px; background:var(--d7zhi-hp); border-bottom:1px solid var(--dyfza-an);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.ewhv{ width:10px; height:10px; border-radius:50%; background:var(--wlbvv-j71); flex-shrink:0; }
.qsn6es{ flex:1; min-width:0; }
.ib5q{ font-size:16px; font-weight:600; color:var(--l62l-gxmb); margin:0 0 2px 0; }
.cxk3tj{ font-size:13px; color:var(--c7h5-rk3); margin:0; }
.jjjh{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--c7h5-rk3);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.jjjh:hover{ background:var(--ebvb-ev3l); color:var(--l62l-gxmb); }
.jjjh:focus{ outline:2px solid var(--wlbvv-j71); outline-offset:2px; }
.jjjh svg{ width:20px; height:20px; }

/* Body */
.emc9l{
  flex:1; overflow-y:auto; padding:16px; background:var(--ebvb-ev3l);
  display:flex; flex-direction:column; gap:12px;
}
.emc9l::-webkit-scrollbar{ width:6px; }
.emc9l::-webkit-scrollbar-track{ background:transparent; }
.emc9l::-webkit-scrollbar-thumb{ background:var(--dyfza-an); border-radius:3px; }
.emc9l::-webkit-scrollbar-thumb:hover{ background:var(--c7h5-rk3); }

/* Messages */
.mvhp0{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.mvhp0.kvfy3{ flex-direction:row-reverse; }
.dpe25{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.dpe25 a{ color:inherit; }
.mvhp0.iizn .dpe25{ background:var(--d7zhi-hp); color:var(--l62l-gxmb); border-bottom-left-radius:4px; }
.mvhp0.kvfy3 .dpe25{ background:var(--wlbvv-j71); color:#fff; border-bottom-right-radius:4px; }
.lq6tg{ font-size:11px; color:var(--c7h5-rk3); margin-top:4px; display:block; }

/* Typing Indicator */
.bd36vw{
  display:flex; gap:8px; padding:10px 14px; background:var(--d7zhi-hp);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.v5cy1a{ width:8px; height:8px; border-radius:50%; background:var(--c7h5-rk3); animation:typingDot 1.4s infinite; }
.v5cy1a:nth-child(2){ animation-delay:.2s; }
.v5cy1a: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) */
.a5t4{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.dzpm{
  border:0; border-radius:999px; padding:8px 12px; background:var(--wlbvv-j71); 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(--dv5x92-cck);
}
.dzpm:is(:hover,:focus){ transform:translateY(-1px); }
a.dzpm{ text-decoration:none; display:inline-block; }
a.dzpm:link, a.dzpm:visited{ color:#fff; }
a.dzpm:hover, a.dzpm:focus{ color:#fff; }

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

/* Footer */
.n4mq{
  padding:16px; background:var(--d7zhi-hp); border-top:1px solid var(--dyfza-an);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.w9tkd{
  flex:1; padding:10px 14px; border:1px solid var(--dyfza-an); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--l62l-gxmb);
  background:var(--ebvb-ev3l); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.w9tkd:focus{ border-color:var(--wlbvv-j71); }
.w9tkd::placeholder{ color:var(--c7h5-rk3); }
.w9tkd.rram{ border-color:#c00; }
.acbu{
  width:40px; height:40px; min-width:40px; border:none; background:var(--wlbvv-j71); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.acbu:disabled{ opacity:.5; cursor:not-allowed; }
.acbu:not(:disabled):hover{ transform:scale(1.05); }
.acbu:not(:disabled):active{ transform:scale(0.95); }
.acbu:focus{ outline:2px solid var(--wlbvv-j71); outline-offset:2px; }
.acbu svg{ width:20px; height:20px; }

/* Character Counter */
.pl27{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--c7h5-rk3); }
.pl27.pbbwgw{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.vlrbvx{
  align-self:flex-start;
  max-width:75%;
  background: var(--d7zhi-hp);
  color: var(--l62l-gxmb);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--dv5x92-cck);
}
.b0p6{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.a59f1.myhh{
  background: transparent; color: var(--l62l-gxmb); border-color: var(--dyfza-an);
}
.a59f1.myhh:hover{
  background: var(--wlbvv-j71); color:#fff; border-color: var(--wlbvv-j71);
}

/* Mobile */
@media (max-width: 768px){
  .ckxs7l{ bottom:16px; right:16px; }
  .ckxs7l.jnbh{ left:16px; }
  .ivinjx{ --becp3-kxm:60px; }
  .r9anw{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--rubha-scay) var(--rubha-scay) 0 0; transform: translateY(100%);
  }
  .r9anw.i83qbf{ transform: translateY(0); }
  .grm02{ padding:20px; }
  .n4mq{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.ckxs7l :focus-visible{ outline:2px solid var(--wlbvv-j71); outline-offset:2px; }

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