/* CSS Variables */
:root {
  --imuqnc-qmd: #4f46e5;
  --iv5-g9: #ffffff;
  --g6nqtq-p6: #f9fafb;
  --lixzl-ofbh: #0f172a;
  --beo-g6: #6b7280;
  --shd-fy9c: #e5e7eb;
  --n2z-ym88: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --b25z9-oqya: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --ctx565-v1: 16px;
  --fl9-wqn: 56px;
  --ds71mv-eae: 12px;
  --bdspz0-be: 999999;
}

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

/* Main Container */
.qk4ti4r {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--bdspz0-be);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--lixzl-ofbh);
}
.qk4ti4r.ukd3kno3il { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.cdtv67f { display: flex; flex-direction: column-reverse; gap: var(--ds71mv-eae); align-items: center; }
.k9rn2hn {
  width: var(--fl9-wqn); height: var(--fl9-wqn); min-width: var(--fl9-wqn); min-height: var(--fl9-wqn);
  border-radius: 50%; border: none; background: var(--imuqnc-qmd); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--n2z-ym88);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.k9rn2hn:hover { transform: scale(1.05); box-shadow: var(--b25z9-oqya); }
.k9rn2hn:active { transform: scale(0.95); }
.k9rn2hn:focus { outline: 2px solid var(--imuqnc-qmd); outline-offset: 2px; }
.k9rn2hn svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .k9rn2hn.mku67ou{ animation:none; }
  .k9rn2hn,.z6lwe28h,.os1wxm{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.z6lwe28h{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--iv5-g9); border-radius: var(--ctx565-v1); box-shadow: var(--b25z9-oqya);
  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;
}
.qk4ti4r.ukd3kno3il .z6lwe28h{ right:auto; left:24px; }
.z6lwe28h.agrpdqgpz{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.o48f8x2dq{
  padding:16px 20px; background:var(--iv5-g9); border-bottom:1px solid var(--shd-fy9c);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.ash_h6{ width:10px; height:10px; border-radius:50%; background:var(--imuqnc-qmd); flex-shrink:0; }
.m7b5gb8v{ flex:1; min-width:0; }
.jfbvl3zvi{ font-size:16px; font-weight:600; color:var(--lixzl-ofbh); margin:0 0 2px 0; }
.fz_0tzm{ font-size:13px; color:var(--beo-g6); margin:0; }
.xf3y6dn4{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--beo-g6);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.xf3y6dn4:hover{ background:var(--g6nqtq-p6); color:var(--lixzl-ofbh); }
.xf3y6dn4:focus{ outline:2px solid var(--imuqnc-qmd); outline-offset:2px; }
.xf3y6dn4 svg{ width:20px; height:20px; }

/* Body */
.vcturca{
  flex:1; overflow-y:auto; padding:16px; background:var(--g6nqtq-p6);
  display:flex; flex-direction:column; gap:12px;
}
.vcturca::-webkit-scrollbar{ width:6px; }
.vcturca::-webkit-scrollbar-track{ background:transparent; }
.vcturca::-webkit-scrollbar-thumb{ background:var(--shd-fy9c); border-radius:3px; }
.vcturca::-webkit-scrollbar-thumb:hover{ background:var(--beo-g6); }

/* Messages */
.os1wxm{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.os1wxm.ygehw1{ flex-direction:row-reverse; }
.grkn9p{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.grkn9p a{ color:inherit; }
.os1wxm.orvipvh .grkn9p{ background:var(--iv5-g9); color:var(--lixzl-ofbh); border-bottom-left-radius:4px; }
.os1wxm.ygehw1 .grkn9p{ background:var(--imuqnc-qmd); color:#fff; border-bottom-right-radius:4px; }
.o4jkt2{ font-size:11px; color:var(--beo-g6); margin-top:4px; display:block; }

/* Typing Indicator */
.py3z7kxw{
  display:flex; gap:8px; padding:10px 14px; background:var(--iv5-g9);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.dvh_lkex{ width:8px; height:8px; border-radius:50%; background:var(--beo-g6); animation:typingDot 1.4s infinite; }
.dvh_lkex:nth-child(2){ animation-delay:.2s; }
.dvh_lkex: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) */
.cdq6kss{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.fj3x2r75{
  border:0; border-radius:999px; padding:8px 12px; background:var(--imuqnc-qmd); 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(--n2z-ym88);
}
.fj3x2r75:is(:hover,:focus){ transform:translateY(-1px); }
a.fj3x2r75{ text-decoration:none; display:inline-block; }
a.fj3x2r75:link, a.fj3x2r75:visited{ color:#fff; }
a.fj3x2r75:hover, a.fj3x2r75:focus{ color:#fff; }

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

/* Footer */
.voz9pnf4{
  padding:16px; background:var(--iv5-g9); border-top:1px solid var(--shd-fy9c);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.hi0hgo0f4{
  flex:1; padding:10px 14px; border:1px solid var(--shd-fy9c); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--lixzl-ofbh);
  background:var(--g6nqtq-p6); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.hi0hgo0f4:focus{ border-color:var(--imuqnc-qmd); }
.hi0hgo0f4::placeholder{ color:var(--beo-g6); }
.hi0hgo0f4.fk8gg6r2u3{ border-color:#c00; }
.zna25hptia{
  width:40px; height:40px; min-width:40px; border:none; background:var(--imuqnc-qmd); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.zna25hptia:disabled{ opacity:.5; cursor:not-allowed; }
.zna25hptia:not(:disabled):hover{ transform:scale(1.05); }
.zna25hptia:not(:disabled):active{ transform:scale(0.95); }
.zna25hptia:focus{ outline:2px solid var(--imuqnc-qmd); outline-offset:2px; }
.zna25hptia svg{ width:20px; height:20px; }

/* Character Counter */
.dehvf68{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--beo-g6); }
.dehvf68.aw8w1cl6{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.aqws0yyp{
  align-self:flex-start;
  max-width:75%;
  background: var(--iv5-g9);
  color: var(--lixzl-ofbh);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--n2z-ym88);
}
.p6c1jb_cv{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.rspk2jzb.mimruh{
  background: transparent; color: var(--lixzl-ofbh); border-color: var(--shd-fy9c);
}
.rspk2jzb.mimruh:hover{
  background: var(--imuqnc-qmd); color:#fff; border-color: var(--imuqnc-qmd);
}

/* Mobile */
@media (max-width: 768px){
  .qk4ti4r{ bottom:16px; right:16px; }
  .qk4ti4r.ukd3kno3il{ left:16px; }
  .k9rn2hn{ --fl9-wqn:60px; }
  .z6lwe28h{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--ctx565-v1) var(--ctx565-v1) 0 0; transform: translateY(100%);
  }
  .z6lwe28h.agrpdqgpz{ transform: translateY(0); }
  .o48f8x2dq{ padding:20px; }
  .voz9pnf4{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.qk4ti4r :focus-visible{ outline:2px solid var(--imuqnc-qmd); outline-offset:2px; }

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