/* CSS Variables */
:root {
  --iqo3h-wkts: #4f46e5;
  --dmt-or7v: #ffffff;
  --br8v-x5g2: #f9fafb;
  --z3t6-lb2: #0f172a;
  --s11t6-cq03: #6b7280;
  --rumk-rl: #e5e7eb;
  --gn4mu-oez: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --ep8w-dlgf: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --r0s8zw-f6mq: 16px;
  --nz1e-td: 56px;
  --ea25-oky: 12px;
  --dr2-fdg: 999999;
}

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

/* Main Container */
.uh1j6y {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--dr2-fdg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--z3t6-lb2);
}
.uh1j6y.bdt92nl { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.kwas7r { display: flex; flex-direction: column-reverse; gap: var(--ea25-oky); align-items: center; }
.h22ouworsl {
  width: var(--nz1e-td); height: var(--nz1e-td); min-width: var(--nz1e-td); min-height: var(--nz1e-td);
  border-radius: 50%; border: none; background: var(--iqo3h-wkts); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--gn4mu-oez);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.h22ouworsl:hover { transform: scale(1.05); box-shadow: var(--ep8w-dlgf); }
.h22ouworsl:active { transform: scale(0.95); }
.h22ouworsl:focus { outline: 2px solid var(--iqo3h-wkts); outline-offset: 2px; }
.h22ouworsl svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .h22ouworsl.b5v8id__kd{ animation:none; }
  .h22ouworsl,.e_f9or5hx,.kyw8z2625{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.e_f9or5hx{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--dmt-or7v); border-radius: var(--r0s8zw-f6mq); box-shadow: var(--ep8w-dlgf);
  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;
}
.uh1j6y.bdt92nl .e_f9or5hx{ right:auto; left:24px; }
.e_f9or5hx.q0nor1{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.ssdfph99{
  padding:16px 20px; background:var(--dmt-or7v); border-bottom:1px solid var(--rumk-rl);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.nqm4qb{ width:10px; height:10px; border-radius:50%; background:var(--iqo3h-wkts); flex-shrink:0; }
.xv6iyjhmfl{ flex:1; min-width:0; }
.x0vo8j{ font-size:16px; font-weight:600; color:var(--z3t6-lb2); margin:0 0 2px 0; }
.wzgphst{ font-size:13px; color:var(--s11t6-cq03); margin:0; }
.fi44hn7s64{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--s11t6-cq03);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.fi44hn7s64:hover{ background:var(--br8v-x5g2); color:var(--z3t6-lb2); }
.fi44hn7s64:focus{ outline:2px solid var(--iqo3h-wkts); outline-offset:2px; }
.fi44hn7s64 svg{ width:20px; height:20px; }

/* Body */
.bg9ogb{
  flex:1; overflow-y:auto; padding:16px; background:var(--br8v-x5g2);
  display:flex; flex-direction:column; gap:12px;
}
.bg9ogb::-webkit-scrollbar{ width:6px; }
.bg9ogb::-webkit-scrollbar-track{ background:transparent; }
.bg9ogb::-webkit-scrollbar-thumb{ background:var(--rumk-rl); border-radius:3px; }
.bg9ogb::-webkit-scrollbar-thumb:hover{ background:var(--s11t6-cq03); }

/* Messages */
.kyw8z2625{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.kyw8z2625.xfjs5k6cqo{ flex-direction:row-reverse; }
.v28yov5{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.v28yov5 a{ color:inherit; }
.kyw8z2625.uzm2ozovhd .v28yov5{ background:var(--dmt-or7v); color:var(--z3t6-lb2); border-bottom-left-radius:4px; }
.kyw8z2625.xfjs5k6cqo .v28yov5{ background:var(--iqo3h-wkts); color:#fff; border-bottom-right-radius:4px; }
.e3nqib8qc1{ font-size:11px; color:var(--s11t6-cq03); margin-top:4px; display:block; }

/* Typing Indicator */
.squmj5po{
  display:flex; gap:8px; padding:10px 14px; background:var(--dmt-or7v);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.xgt43km7{ width:8px; height:8px; border-radius:50%; background:var(--s11t6-cq03); animation:typingDot 1.4s infinite; }
.xgt43km7:nth-child(2){ animation-delay:.2s; }
.xgt43km7: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) */
.ojf7zv7k{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.y5uwfhmb{
  border:0; border-radius:999px; padding:8px 12px; background:var(--iqo3h-wkts); 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(--gn4mu-oez);
}
.y5uwfhmb:is(:hover,:focus){ transform:translateY(-1px); }
a.y5uwfhmb{ text-decoration:none; display:inline-block; }
a.y5uwfhmb:link, a.y5uwfhmb:visited{ color:#fff; }
a.y5uwfhmb:hover, a.y5uwfhmb:focus{ color:#fff; }

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

/* Footer */
.h9hd9f{
  padding:16px; background:var(--dmt-or7v); border-top:1px solid var(--rumk-rl);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.ecg0luat{
  flex:1; padding:10px 14px; border:1px solid var(--rumk-rl); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--z3t6-lb2);
  background:var(--br8v-x5g2); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.ecg0luat:focus{ border-color:var(--iqo3h-wkts); }
.ecg0luat::placeholder{ color:var(--s11t6-cq03); }
.ecg0luat.vj1dnur{ border-color:#c00; }
.doou43dxrs{
  width:40px; height:40px; min-width:40px; border:none; background:var(--iqo3h-wkts); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.doou43dxrs:disabled{ opacity:.5; cursor:not-allowed; }
.doou43dxrs:not(:disabled):hover{ transform:scale(1.05); }
.doou43dxrs:not(:disabled):active{ transform:scale(0.95); }
.doou43dxrs:focus{ outline:2px solid var(--iqo3h-wkts); outline-offset:2px; }
.doou43dxrs svg{ width:20px; height:20px; }

/* Character Counter */
.z74ps8{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--s11t6-cq03); }
.z74ps8.fy56r1lcc{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.tthv6hn{
  align-self:flex-start;
  max-width:75%;
  background: var(--dmt-or7v);
  color: var(--z3t6-lb2);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--gn4mu-oez);
}
.u5gqrcrox{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.t2f751p4.fm60b3dxn{
  background: transparent; color: var(--z3t6-lb2); border-color: var(--rumk-rl);
}
.t2f751p4.fm60b3dxn:hover{
  background: var(--iqo3h-wkts); color:#fff; border-color: var(--iqo3h-wkts);
}

/* Mobile */
@media (max-width: 768px){
  .uh1j6y{ bottom:16px; right:16px; }
  .uh1j6y.bdt92nl{ left:16px; }
  .h22ouworsl{ --nz1e-td:60px; }
  .e_f9or5hx{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--r0s8zw-f6mq) var(--r0s8zw-f6mq) 0 0; transform: translateY(100%);
  }
  .e_f9or5hx.q0nor1{ transform: translateY(0); }
  .ssdfph99{ padding:20px; }
  .h9hd9f{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.uh1j6y :focus-visible{ outline:2px solid var(--iqo3h-wkts); outline-offset:2px; }

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