/* CSS Variables */
:root {
  --e3u-x8h: #4f46e5;
  --c3kbgv-lc2m: #ffffff;
  --qaawhz-k8n: #f9fafb;
  --bgxai-n8v: #0f172a;
  --spm-yvt1: #6b7280;
  --nm4rs-y1: #e5e7eb;
  --yj5-vf44: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --d1e-x1fc: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --o563d-tmyx: 16px;
  --o76auw-d5: 56px;
  --tm5-so: 12px;
  --u235zq-y9i: 999999;
}

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

/* Main Container */
.dqn5-28h99cv5o94bd {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--u235zq-y9i);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--bgxai-n8v);
}
.dqn5-28h99cv5o94bd.hwlt-7snarmkhyn4 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.u23-0d1qvaejkqcl5n { display: flex; flex-direction: column-reverse; gap: var(--tm5-so); align-items: center; }
.b9t1t2v0hnxlyn {
  width: var(--o76auw-d5); height: var(--o76auw-d5); min-width: var(--o76auw-d5); min-height: var(--o76auw-d5);
  border-radius: 50%; border: none; background: var(--e3u-x8h); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--yj5-vf44);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.b9t1t2v0hnxlyn:hover { transform: scale(1.05); box-shadow: var(--d1e-x1fc); }
.b9t1t2v0hnxlyn:active { transform: scale(0.95); }
.b9t1t2v0hnxlyn:focus { outline: 2px solid var(--e3u-x8h); outline-offset: 2px; }
.b9t1t2v0hnxlyn svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .b9t1t2v0hnxlyn.fotq4axri7e70qxu9l{ animation:none; }
  .b9t1t2v0hnxlyn,.k4gtp028rw6ecdvyj,.h0ogf4nol8zgrv{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.k4gtp028rw6ecdvyj{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--c3kbgv-lc2m); border-radius: var(--o563d-tmyx); box-shadow: var(--d1e-x1fc);
  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;
}
.dqn5-28h99cv5o94bd.hwlt-7snarmkhyn4 .k4gtp028rw6ecdvyj{ right:auto; left:24px; }
.k4gtp028rw6ecdvyj.rcuzs9a91wkfiqrv{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.hanw3koxwbiqqzsso{
  padding:16px 20px; background:var(--c3kbgv-lc2m); border-bottom:1px solid var(--nm4rs-y1);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.bu5wf859ilrwgw8e{ width:10px; height:10px; border-radius:50%; background:var(--e3u-x8h); flex-shrink:0; }
.suoxrzupjdbir-1{ flex:1; min-width:0; }
.m966pll6lsy2v6ge{ font-size:16px; font-weight:600; color:var(--bgxai-n8v); margin:0 0 2px 0; }
.ai7hveoymijec7{ font-size:13px; color:var(--spm-yvt1); margin:0; }
.vv1n-eduh2m4441ub{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--spm-yvt1);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.vv1n-eduh2m4441ub:hover{ background:var(--qaawhz-k8n); color:var(--bgxai-n8v); }
.vv1n-eduh2m4441ub:focus{ outline:2px solid var(--e3u-x8h); outline-offset:2px; }
.vv1n-eduh2m4441ub svg{ width:20px; height:20px; }

/* Body */
.t8x6l33e3rq46t{
  flex:1; overflow-y:auto; padding:16px; background:var(--qaawhz-k8n);
  display:flex; flex-direction:column; gap:12px;
}
.t8x6l33e3rq46t::-webkit-scrollbar{ width:6px; }
.t8x6l33e3rq46t::-webkit-scrollbar-track{ background:transparent; }
.t8x6l33e3rq46t::-webkit-scrollbar-thumb{ background:var(--nm4rs-y1); border-radius:3px; }
.t8x6l33e3rq46t::-webkit-scrollbar-thumb:hover{ background:var(--spm-yvt1); }

/* Messages */
.h0ogf4nol8zgrv{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.h0ogf4nol8zgrv.avp02v0uyn91ux3{ flex-direction:row-reverse; }
.z7rravvpraz12lq{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.z7rravvpraz12lq a{ color:inherit; }
.h0ogf4nol8zgrv.fp5ip6w3nu2dgmf7p .z7rravvpraz12lq{ background:var(--c3kbgv-lc2m); color:var(--bgxai-n8v); border-bottom-left-radius:4px; }
.h0ogf4nol8zgrv.avp02v0uyn91ux3 .z7rravvpraz12lq{ background:var(--e3u-x8h); color:#fff; border-bottom-right-radius:4px; }
.bt9ke1cq14kst141x{ font-size:11px; color:var(--spm-yvt1); margin-top:4px; display:block; }

/* Typing Indicator */
.wg1l9bf2spixl7{
  display:flex; gap:8px; padding:10px 14px; background:var(--c3kbgv-lc2m);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.h94j81ab6hkkzc266{ width:8px; height:8px; border-radius:50%; background:var(--spm-yvt1); animation:typingDot 1.4s infinite; }
.h94j81ab6hkkzc266:nth-child(2){ animation-delay:.2s; }
.h94j81ab6hkkzc266: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) */
.jq8psw5-98ei84i7d{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.qc63yfg22s96tsb6{
  border:0; border-radius:999px; padding:8px 12px; background:var(--e3u-x8h); 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(--yj5-vf44);
}
.qc63yfg22s96tsb6:is(:hover,:focus){ transform:translateY(-1px); }
a.qc63yfg22s96tsb6{ text-decoration:none; display:inline-block; }
a.qc63yfg22s96tsb6:link, a.qc63yfg22s96tsb6:visited{ color:#fff; }
a.qc63yfg22s96tsb6:hover, a.qc63yfg22s96tsb6:focus{ color:#fff; }

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

/* Footer */
.jpoletk912ztkd{
  padding:16px; background:var(--c3kbgv-lc2m); border-top:1px solid var(--nm4rs-y1);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.qotpwp1qgvfhgk3shm{
  flex:1; padding:10px 14px; border:1px solid var(--nm4rs-y1); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--bgxai-n8v);
  background:var(--qaawhz-k8n); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.qotpwp1qgvfhgk3shm:focus{ border-color:var(--e3u-x8h); }
.qotpwp1qgvfhgk3shm::placeholder{ color:var(--spm-yvt1); }
.qotpwp1qgvfhgk3shm.bdgez6xs1yymfhz{ border-color:#c00; }
.a21uopl-rfqe0f9l5{
  width:40px; height:40px; min-width:40px; border:none; background:var(--e3u-x8h); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.a21uopl-rfqe0f9l5:disabled{ opacity:.5; cursor:not-allowed; }
.a21uopl-rfqe0f9l5:not(:disabled):hover{ transform:scale(1.05); }
.a21uopl-rfqe0f9l5:not(:disabled):active{ transform:scale(0.95); }
.a21uopl-rfqe0f9l5:focus{ outline:2px solid var(--e3u-x8h); outline-offset:2px; }
.a21uopl-rfqe0f9l5 svg{ width:20px; height:20px; }

/* Character Counter */
.r1wwju8eaowrtblb{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--spm-yvt1); }
.r1wwju8eaowrtblb.s0coe0umeey7akc{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.u994to1ah1kk58ho2{
  align-self:flex-start;
  max-width:75%;
  background: var(--c3kbgv-lc2m);
  color: var(--bgxai-n8v);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--yj5-vf44);
}
.yz1gspav74nviw94s{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.mctv5jvfuzbgah4acm.eg9eb0qub4-m9k{
  background: transparent; color: var(--bgxai-n8v); border-color: var(--nm4rs-y1);
}
.mctv5jvfuzbgah4acm.eg9eb0qub4-m9k:hover{
  background: var(--e3u-x8h); color:#fff; border-color: var(--e3u-x8h);
}

/* Mobile */
@media (max-width: 768px){
  .dqn5-28h99cv5o94bd{ bottom:16px; right:16px; }
  .dqn5-28h99cv5o94bd.hwlt-7snarmkhyn4{ left:16px; }
  .b9t1t2v0hnxlyn{ --o76auw-d5:60px; }
  .k4gtp028rw6ecdvyj{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--o563d-tmyx) var(--o563d-tmyx) 0 0; transform: translateY(100%);
  }
  .k4gtp028rw6ecdvyj.rcuzs9a91wkfiqrv{ transform: translateY(0); }
  .hanw3koxwbiqqzsso{ padding:20px; }
  .jpoletk912ztkd{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.dqn5-28h99cv5o94bd :focus-visible{ outline:2px solid var(--e3u-x8h); outline-offset:2px; }

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