/* CSS Variables */
:root {
  --wtfl-y5t: #4f46e5;
  --h79-hc: #ffffff;
  --cba-qeap: #f9fafb;
  --geo-z5zx: #0f172a;
  --v88o-nc: #6b7280;
  --fw5-xrw: #e5e7eb;
  --ubkz-sw: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --zezkyu-i8y: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --zcy-sofj: 16px;
  --wzx-iflx: 56px;
  --un6-ol: 12px;
  --mf62-j6cy: 999999;
}

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

/* Main Container */
.tdomu {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--mf62-j6cy);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--geo-z5zx);
}
.tdomu.nz1i { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.iiloq { display: flex; flex-direction: column-reverse; gap: var(--un6-ol); align-items: center; }
.c5fm4 {
  width: var(--wzx-iflx); height: var(--wzx-iflx); min-width: var(--wzx-iflx); min-height: var(--wzx-iflx);
  border-radius: 50%; border: none; background: var(--wtfl-y5t); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--ubkz-sw);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.c5fm4:hover { transform: scale(1.05); box-shadow: var(--zezkyu-i8y); }
.c5fm4:active { transform: scale(0.95); }
.c5fm4:focus { outline: 2px solid var(--wtfl-y5t); outline-offset: 2px; }
.c5fm4 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .c5fm4.wmzl{ animation:none; }
  .c5fm4,.xie1,.oqim{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.xie1{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--h79-hc); border-radius: var(--zcy-sofj); box-shadow: var(--zezkyu-i8y);
  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;
}
.tdomu.nz1i .xie1{ right:auto; left:24px; }
.xie1.qhhbjz{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.elloc{
  padding:16px 20px; background:var(--h79-hc); border-bottom:1px solid var(--fw5-xrw);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.uj7x{ width:10px; height:10px; border-radius:50%; background:var(--wtfl-y5t); flex-shrink:0; }
.wu64{ flex:1; min-width:0; }
.ffi6o{ font-size:16px; font-weight:600; color:var(--geo-z5zx); margin:0 0 2px 0; }
.hjpdcf{ font-size:13px; color:var(--v88o-nc); margin:0; }
.nag4ta{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--v88o-nc);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.nag4ta:hover{ background:var(--cba-qeap); color:var(--geo-z5zx); }
.nag4ta:focus{ outline:2px solid var(--wtfl-y5t); outline-offset:2px; }
.nag4ta svg{ width:20px; height:20px; }

/* Body */
.jsvl3{
  flex:1; overflow-y:auto; padding:16px; background:var(--cba-qeap);
  display:flex; flex-direction:column; gap:12px;
}
.jsvl3::-webkit-scrollbar{ width:6px; }
.jsvl3::-webkit-scrollbar-track{ background:transparent; }
.jsvl3::-webkit-scrollbar-thumb{ background:var(--fw5-xrw); border-radius:3px; }
.jsvl3::-webkit-scrollbar-thumb:hover{ background:var(--v88o-nc); }

/* Messages */
.oqim{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.oqim.m6su{ flex-direction:row-reverse; }
.ysvhhl{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.ysvhhl a{ color:inherit; }
.oqim.q9b6j9 .ysvhhl{ background:var(--h79-hc); color:var(--geo-z5zx); border-bottom-left-radius:4px; }
.oqim.m6su .ysvhhl{ background:var(--wtfl-y5t); color:#fff; border-bottom-right-radius:4px; }
.vg21m{ font-size:11px; color:var(--v88o-nc); margin-top:4px; display:block; }

/* Typing Indicator */
.rhoq{
  display:flex; gap:8px; padding:10px 14px; background:var(--h79-hc);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.do6bha{ width:8px; height:8px; border-radius:50%; background:var(--v88o-nc); animation:typingDot 1.4s infinite; }
.do6bha:nth-child(2){ animation-delay:.2s; }
.do6bha: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) */
.pnjx{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.a1g9l{
  border:0; border-radius:999px; padding:8px 12px; background:var(--wtfl-y5t); 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(--ubkz-sw);
}
.a1g9l:is(:hover,:focus){ transform:translateY(-1px); }
a.a1g9l{ text-decoration:none; display:inline-block; }
a.a1g9l:link, a.a1g9l:visited{ color:#fff; }
a.a1g9l:hover, a.a1g9l:focus{ color:#fff; }

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

/* Footer */
.dppz1{
  padding:16px; background:var(--h79-hc); border-top:1px solid var(--fw5-xrw);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.ueu06{
  flex:1; padding:10px 14px; border:1px solid var(--fw5-xrw); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--geo-z5zx);
  background:var(--cba-qeap); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.ueu06:focus{ border-color:var(--wtfl-y5t); }
.ueu06::placeholder{ color:var(--v88o-nc); }
.ueu06.j00z{ border-color:#c00; }
.mmgux2{
  width:40px; height:40px; min-width:40px; border:none; background:var(--wtfl-y5t); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.mmgux2:disabled{ opacity:.5; cursor:not-allowed; }
.mmgux2:not(:disabled):hover{ transform:scale(1.05); }
.mmgux2:not(:disabled):active{ transform:scale(0.95); }
.mmgux2:focus{ outline:2px solid var(--wtfl-y5t); outline-offset:2px; }
.mmgux2 svg{ width:20px; height:20px; }

/* Character Counter */
.z1byi{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--v88o-nc); }
.z1byi.yyrvn{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.o8ud{
  align-self:flex-start;
  max-width:75%;
  background: var(--h79-hc);
  color: var(--geo-z5zx);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--ubkz-sw);
}
.ag77r{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.lg1gxo.bzsr60{
  background: transparent; color: var(--geo-z5zx); border-color: var(--fw5-xrw);
}
.lg1gxo.bzsr60:hover{
  background: var(--wtfl-y5t); color:#fff; border-color: var(--wtfl-y5t);
}

/* Mobile */
@media (max-width: 768px){
  .tdomu{ bottom:16px; right:16px; }
  .tdomu.nz1i{ left:16px; }
  .c5fm4{ --wzx-iflx:60px; }
  .xie1{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--zcy-sofj) var(--zcy-sofj) 0 0; transform: translateY(100%);
  }
  .xie1.qhhbjz{ transform: translateY(0); }
  .elloc{ padding:20px; }
  .dppz1{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.tdomu :focus-visible{ outline:2px solid var(--wtfl-y5t); outline-offset:2px; }

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