/* CSS Variables */
:root {
  --z0a1-dyob: #4f46e5;
  --fgrt-nu: #ffffff;
  --wlb-s5n: #f9fafb;
  --zib41-qb0g: #0f172a;
  --wvpyxf-ga: #6b7280;
  --dlxyju-dqi4: #e5e7eb;
  --zsk-d6fr: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --m4b1r-ai: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --s51k-h31n: 16px;
  --rmkb-rwr: 56px;
  --emf-jebf: 12px;
  --ufr2-ksq: 999999;
}

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

/* Main Container */
.ilukt6 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--ufr2-ksq);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--zib41-qb0g);
}
.ilukt6.d6csxo { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.vhig { display: flex; flex-direction: column-reverse; gap: var(--emf-jebf); align-items: center; }
.pb3f3 {
  width: var(--rmkb-rwr); height: var(--rmkb-rwr); min-width: var(--rmkb-rwr); min-height: var(--rmkb-rwr);
  border-radius: 50%; border: none; background: var(--z0a1-dyob); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--zsk-d6fr);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.pb3f3:hover { transform: scale(1.05); box-shadow: var(--m4b1r-ai); }
.pb3f3:active { transform: scale(0.95); }
.pb3f3:focus { outline: 2px solid var(--z0a1-dyob); outline-offset: 2px; }
.pb3f3 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .pb3f3.kgflzy{ animation:none; }
  .pb3f3,.kmueg4,.hkc3dm{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.kmueg4{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--fgrt-nu); border-radius: var(--s51k-h31n); box-shadow: var(--m4b1r-ai);
  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;
}
.ilukt6.d6csxo .kmueg4{ right:auto; left:24px; }
.kmueg4.k19kkr{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.arnps0{
  padding:16px 20px; background:var(--fgrt-nu); border-bottom:1px solid var(--dlxyju-dqi4);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.n9q7{ width:10px; height:10px; border-radius:50%; background:var(--z0a1-dyob); flex-shrink:0; }
.bm3cm{ flex:1; min-width:0; }
.xcwdd{ font-size:16px; font-weight:600; color:var(--zib41-qb0g); margin:0 0 2px 0; }
.d3g9{ font-size:13px; color:var(--wvpyxf-ga); margin:0; }
.jfjz{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--wvpyxf-ga);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.jfjz:hover{ background:var(--wlb-s5n); color:var(--zib41-qb0g); }
.jfjz:focus{ outline:2px solid var(--z0a1-dyob); outline-offset:2px; }
.jfjz svg{ width:20px; height:20px; }

/* Body */
.kimp8{
  flex:1; overflow-y:auto; padding:16px; background:var(--wlb-s5n);
  display:flex; flex-direction:column; gap:12px;
}
.kimp8::-webkit-scrollbar{ width:6px; }
.kimp8::-webkit-scrollbar-track{ background:transparent; }
.kimp8::-webkit-scrollbar-thumb{ background:var(--dlxyju-dqi4); border-radius:3px; }
.kimp8::-webkit-scrollbar-thumb:hover{ background:var(--wvpyxf-ga); }

/* Messages */
.hkc3dm{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.hkc3dm.kefr5n{ flex-direction:row-reverse; }
.fh516{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.fh516 a{ color:inherit; }
.hkc3dm.czs09f .fh516{ background:var(--fgrt-nu); color:var(--zib41-qb0g); border-bottom-left-radius:4px; }
.hkc3dm.kefr5n .fh516{ background:var(--z0a1-dyob); color:#fff; border-bottom-right-radius:4px; }
.pvx47{ font-size:11px; color:var(--wvpyxf-ga); margin-top:4px; display:block; }

/* Typing Indicator */
.t4gi{
  display:flex; gap:8px; padding:10px 14px; background:var(--fgrt-nu);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.rr34h{ width:8px; height:8px; border-radius:50%; background:var(--wvpyxf-ga); animation:typingDot 1.4s infinite; }
.rr34h:nth-child(2){ animation-delay:.2s; }
.rr34h: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) */
.qijzy7{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.pumv{
  border:0; border-radius:999px; padding:8px 12px; background:var(--z0a1-dyob); 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(--zsk-d6fr);
}
.pumv:is(:hover,:focus){ transform:translateY(-1px); }
a.pumv{ text-decoration:none; display:inline-block; }
a.pumv:link, a.pumv:visited{ color:#fff; }
a.pumv:hover, a.pumv:focus{ color:#fff; }

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

/* Footer */
.fqgski{
  padding:16px; background:var(--fgrt-nu); border-top:1px solid var(--dlxyju-dqi4);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.zi7h{
  flex:1; padding:10px 14px; border:1px solid var(--dlxyju-dqi4); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--zib41-qb0g);
  background:var(--wlb-s5n); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.zi7h:focus{ border-color:var(--z0a1-dyob); }
.zi7h::placeholder{ color:var(--wvpyxf-ga); }
.zi7h.afus{ border-color:#c00; }
.rsmdpc{
  width:40px; height:40px; min-width:40px; border:none; background:var(--z0a1-dyob); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.rsmdpc:disabled{ opacity:.5; cursor:not-allowed; }
.rsmdpc:not(:disabled):hover{ transform:scale(1.05); }
.rsmdpc:not(:disabled):active{ transform:scale(0.95); }
.rsmdpc:focus{ outline:2px solid var(--z0a1-dyob); outline-offset:2px; }
.rsmdpc svg{ width:20px; height:20px; }

/* Character Counter */
.nv2j0x{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--wvpyxf-ga); }
.nv2j0x.piptl3{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.wxwfmj{
  align-self:flex-start;
  max-width:75%;
  background: var(--fgrt-nu);
  color: var(--zib41-qb0g);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--zsk-d6fr);
}
.bpq3{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.mb8xh.cchjz{
  background: transparent; color: var(--zib41-qb0g); border-color: var(--dlxyju-dqi4);
}
.mb8xh.cchjz:hover{
  background: var(--z0a1-dyob); color:#fff; border-color: var(--z0a1-dyob);
}

/* Mobile */
@media (max-width: 768px){
  .ilukt6{ bottom:16px; right:16px; }
  .ilukt6.d6csxo{ left:16px; }
  .pb3f3{ --rmkb-rwr:60px; }
  .kmueg4{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--s51k-h31n) var(--s51k-h31n) 0 0; transform: translateY(100%);
  }
  .kmueg4.k19kkr{ transform: translateY(0); }
  .arnps0{ padding:20px; }
  .fqgski{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.ilukt6 :focus-visible{ outline:2px solid var(--z0a1-dyob); outline-offset:2px; }

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