/* CSS Variables */
:root {
  --mbeq9-m0: #4f46e5;
  --dq73-xlqg: #ffffff;
  --gds-v2fs: #f9fafb;
  --v2en-hc1: #0f172a;
  --xh1-utng: #6b7280;
  --wxw38-iw: #e5e7eb;
  --wb21d1-f3qr: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --jq46-adgg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --ffm-wgb: 16px;
  --n8wl8-zm0e: 56px;
  --y0bo-yn92: 12px;
  --fh1-nru: 999999;
}

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

/* Main Container */
.k7npc0 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--fh1-nru);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--v2en-hc1);
}
.k7npc0.kbigsy_vb { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.h2br09h { display: flex; flex-direction: column-reverse; gap: var(--y0bo-yn92); align-items: center; }
.hxx5tu {
  width: var(--n8wl8-zm0e); height: var(--n8wl8-zm0e); min-width: var(--n8wl8-zm0e); min-height: var(--n8wl8-zm0e);
  border-radius: 50%; border: none; background: var(--mbeq9-m0); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--wb21d1-f3qr);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.hxx5tu:hover { transform: scale(1.05); box-shadow: var(--jq46-adgg); }
.hxx5tu:active { transform: scale(0.95); }
.hxx5tu:focus { outline: 2px solid var(--mbeq9-m0); outline-offset: 2px; }
.hxx5tu svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .hxx5tu.iv1ih5m6c{ animation:none; }
  .hxx5tu,.gxhxmphcsy,.dk43k_i{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.gxhxmphcsy{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--dq73-xlqg); border-radius: var(--ffm-wgb); box-shadow: var(--jq46-adgg);
  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;
}
.k7npc0.kbigsy_vb .gxhxmphcsy{ right:auto; left:24px; }
.gxhxmphcsy.ndqa0z__7{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.b4ie0qxl7i{
  padding:16px 20px; background:var(--dq73-xlqg); border-bottom:1px solid var(--wxw38-iw);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.muoyok{ width:10px; height:10px; border-radius:50%; background:var(--mbeq9-m0); flex-shrink:0; }
.v61aap{ flex:1; min-width:0; }
.yiyi7_1ui{ font-size:16px; font-weight:600; color:var(--v2en-hc1); margin:0 0 2px 0; }
.sj_wjsg{ font-size:13px; color:var(--xh1-utng); margin:0; }
.eki5hwr5{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--xh1-utng);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.eki5hwr5:hover{ background:var(--gds-v2fs); color:var(--v2en-hc1); }
.eki5hwr5:focus{ outline:2px solid var(--mbeq9-m0); outline-offset:2px; }
.eki5hwr5 svg{ width:20px; height:20px; }

/* Body */
.pi_fjc{
  flex:1; overflow-y:auto; padding:16px; background:var(--gds-v2fs);
  display:flex; flex-direction:column; gap:12px;
}
.pi_fjc::-webkit-scrollbar{ width:6px; }
.pi_fjc::-webkit-scrollbar-track{ background:transparent; }
.pi_fjc::-webkit-scrollbar-thumb{ background:var(--wxw38-iw); border-radius:3px; }
.pi_fjc::-webkit-scrollbar-thumb:hover{ background:var(--xh1-utng); }

/* Messages */
.dk43k_i{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.dk43k_i.gnjonoz4{ flex-direction:row-reverse; }
.svu1op7lc8{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.svu1op7lc8 a{ color:inherit; }
.dk43k_i.bro3jlf .svu1op7lc8{ background:var(--dq73-xlqg); color:var(--v2en-hc1); border-bottom-left-radius:4px; }
.dk43k_i.gnjonoz4 .svu1op7lc8{ background:var(--mbeq9-m0); color:#fff; border-bottom-right-radius:4px; }
.ca7p0s{ font-size:11px; color:var(--xh1-utng); margin-top:4px; display:block; }

/* Typing Indicator */
.mgqrhv_9z0{
  display:flex; gap:8px; padding:10px 14px; background:var(--dq73-xlqg);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.j9tz8zq{ width:8px; height:8px; border-radius:50%; background:var(--xh1-utng); animation:typingDot 1.4s infinite; }
.j9tz8zq:nth-child(2){ animation-delay:.2s; }
.j9tz8zq: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) */
.afaxbpuk{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.te4tt9dx{
  border:0; border-radius:999px; padding:8px 12px; background:var(--mbeq9-m0); 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(--wb21d1-f3qr);
}
.te4tt9dx:is(:hover,:focus){ transform:translateY(-1px); }
a.te4tt9dx{ text-decoration:none; display:inline-block; }
a.te4tt9dx:link, a.te4tt9dx:visited{ color:#fff; }
a.te4tt9dx:hover, a.te4tt9dx:focus{ color:#fff; }

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

/* Footer */
.lxwp4yvhc{
  padding:16px; background:var(--dq73-xlqg); border-top:1px solid var(--wxw38-iw);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.gt9rsf120{
  flex:1; padding:10px 14px; border:1px solid var(--wxw38-iw); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--v2en-hc1);
  background:var(--gds-v2fs); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.gt9rsf120:focus{ border-color:var(--mbeq9-m0); }
.gt9rsf120::placeholder{ color:var(--xh1-utng); }
.gt9rsf120.p3varuaow{ border-color:#c00; }
.kr5ey8v{
  width:40px; height:40px; min-width:40px; border:none; background:var(--mbeq9-m0); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.kr5ey8v:disabled{ opacity:.5; cursor:not-allowed; }
.kr5ey8v:not(:disabled):hover{ transform:scale(1.05); }
.kr5ey8v:not(:disabled):active{ transform:scale(0.95); }
.kr5ey8v:focus{ outline:2px solid var(--mbeq9-m0); outline-offset:2px; }
.kr5ey8v svg{ width:20px; height:20px; }

/* Character Counter */
.fbtzb1q1{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--xh1-utng); }
.fbtzb1q1.tsv4fgptrw{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.hmg_z2{
  align-self:flex-start;
  max-width:75%;
  background: var(--dq73-xlqg);
  color: var(--v2en-hc1);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--wb21d1-f3qr);
}
.znygcgoti{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.vtp1nyi.x9eev3idc{
  background: transparent; color: var(--v2en-hc1); border-color: var(--wxw38-iw);
}
.vtp1nyi.x9eev3idc:hover{
  background: var(--mbeq9-m0); color:#fff; border-color: var(--mbeq9-m0);
}

/* Mobile */
@media (max-width: 768px){
  .k7npc0{ bottom:16px; right:16px; }
  .k7npc0.kbigsy_vb{ left:16px; }
  .hxx5tu{ --n8wl8-zm0e:60px; }
  .gxhxmphcsy{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--ffm-wgb) var(--ffm-wgb) 0 0; transform: translateY(100%);
  }
  .gxhxmphcsy.ndqa0z__7{ transform: translateY(0); }
  .b4ie0qxl7i{ padding:20px; }
  .lxwp4yvhc{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.k7npc0 :focus-visible{ outline:2px solid var(--mbeq9-m0); outline-offset:2px; }

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