/* CSS Variables */
:root {
  --r0bq-cxj: #4f46e5;
  --xudim-j5: #ffffff;
  --c8by-txv: #f9fafb;
  --qijwq-bbh: #0f172a;
  --fylkh-qx: #6b7280;
  --zi7s3e-jayv: #e5e7eb;
  --qjs1-h3nq: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --f3j58-w4: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --qcz-te: 16px;
  --rc4d-ww: 56px;
  --gxvr-rs6: 12px;
  --bdn5w9-dh: 999999;
}

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

/* Main Container */
.r_qcu23h7z {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--bdn5w9-dh);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--qijwq-bbh);
}
.r_qcu23h7z.krm21vgf31 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.emgpqk { display: flex; flex-direction: column-reverse; gap: var(--gxvr-rs6); align-items: center; }
.ci5h6ro {
  width: var(--rc4d-ww); height: var(--rc4d-ww); min-width: var(--rc4d-ww); min-height: var(--rc4d-ww);
  border-radius: 50%; border: none; background: var(--r0bq-cxj); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--qjs1-h3nq);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.ci5h6ro:hover { transform: scale(1.05); box-shadow: var(--f3j58-w4); }
.ci5h6ro:active { transform: scale(0.95); }
.ci5h6ro:focus { outline: 2px solid var(--r0bq-cxj); outline-offset: 2px; }
.ci5h6ro svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .ci5h6ro.pduh3s{ animation:none; }
  .ci5h6ro,.h1jq8_wp_z,.emchlnn34{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.h1jq8_wp_z{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--xudim-j5); border-radius: var(--qcz-te); box-shadow: var(--f3j58-w4);
  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;
}
.r_qcu23h7z.krm21vgf31 .h1jq8_wp_z{ right:auto; left:24px; }
.h1jq8_wp_z.hnbihu{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.w9_7gb5mtv{
  padding:16px 20px; background:var(--xudim-j5); border-bottom:1px solid var(--zi7s3e-jayv);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.qiea5vv24i{ width:10px; height:10px; border-radius:50%; background:var(--r0bq-cxj); flex-shrink:0; }
.us0dfm_sd8{ flex:1; min-width:0; }
.z20prpd{ font-size:16px; font-weight:600; color:var(--qijwq-bbh); margin:0 0 2px 0; }
.tvrbbv{ font-size:13px; color:var(--fylkh-qx); margin:0; }
.ph6dwmwnx{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--fylkh-qx);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.ph6dwmwnx:hover{ background:var(--c8by-txv); color:var(--qijwq-bbh); }
.ph6dwmwnx:focus{ outline:2px solid var(--r0bq-cxj); outline-offset:2px; }
.ph6dwmwnx svg{ width:20px; height:20px; }

/* Body */
.avllyf{
  flex:1; overflow-y:auto; padding:16px; background:var(--c8by-txv);
  display:flex; flex-direction:column; gap:12px;
}
.avllyf::-webkit-scrollbar{ width:6px; }
.avllyf::-webkit-scrollbar-track{ background:transparent; }
.avllyf::-webkit-scrollbar-thumb{ background:var(--zi7s3e-jayv); border-radius:3px; }
.avllyf::-webkit-scrollbar-thumb:hover{ background:var(--fylkh-qx); }

/* Messages */
.emchlnn34{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.emchlnn34.nfjwwprrs{ flex-direction:row-reverse; }
.ju3pfwh61f{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.ju3pfwh61f a{ color:inherit; }
.emchlnn34.wddkfvvptv .ju3pfwh61f{ background:var(--xudim-j5); color:var(--qijwq-bbh); border-bottom-left-radius:4px; }
.emchlnn34.nfjwwprrs .ju3pfwh61f{ background:var(--r0bq-cxj); color:#fff; border-bottom-right-radius:4px; }
.ju2jzsb9zq{ font-size:11px; color:var(--fylkh-qx); margin-top:4px; display:block; }

/* Typing Indicator */
.ac1r24lpp{
  display:flex; gap:8px; padding:10px 14px; background:var(--xudim-j5);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.nbxg3exb{ width:8px; height:8px; border-radius:50%; background:var(--fylkh-qx); animation:typingDot 1.4s infinite; }
.nbxg3exb:nth-child(2){ animation-delay:.2s; }
.nbxg3exb: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) */
.i5s9euivl{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.tkzysn{
  border:0; border-radius:999px; padding:8px 12px; background:var(--r0bq-cxj); 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(--qjs1-h3nq);
}
.tkzysn:is(:hover,:focus){ transform:translateY(-1px); }
a.tkzysn{ text-decoration:none; display:inline-block; }
a.tkzysn:link, a.tkzysn:visited{ color:#fff; }
a.tkzysn:hover, a.tkzysn:focus{ color:#fff; }

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

/* Footer */
.scw90v7j40{
  padding:16px; background:var(--xudim-j5); border-top:1px solid var(--zi7s3e-jayv);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.ntzc0aen{
  flex:1; padding:10px 14px; border:1px solid var(--zi7s3e-jayv); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--qijwq-bbh);
  background:var(--c8by-txv); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.ntzc0aen:focus{ border-color:var(--r0bq-cxj); }
.ntzc0aen::placeholder{ color:var(--fylkh-qx); }
.ntzc0aen.izubuptv5{ border-color:#c00; }
.pczpz0{
  width:40px; height:40px; min-width:40px; border:none; background:var(--r0bq-cxj); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.pczpz0:disabled{ opacity:.5; cursor:not-allowed; }
.pczpz0:not(:disabled):hover{ transform:scale(1.05); }
.pczpz0:not(:disabled):active{ transform:scale(0.95); }
.pczpz0:focus{ outline:2px solid var(--r0bq-cxj); outline-offset:2px; }
.pczpz0 svg{ width:20px; height:20px; }

/* Character Counter */
.femer6xa{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--fylkh-qx); }
.femer6xa.qdfjwe{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.zfoq8dsdqv{
  align-self:flex-start;
  max-width:75%;
  background: var(--xudim-j5);
  color: var(--qijwq-bbh);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--qjs1-h3nq);
}
.f0qvvcngn5{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.fump9vw.qan745{
  background: transparent; color: var(--qijwq-bbh); border-color: var(--zi7s3e-jayv);
}
.fump9vw.qan745:hover{
  background: var(--r0bq-cxj); color:#fff; border-color: var(--r0bq-cxj);
}

/* Mobile */
@media (max-width: 768px){
  .r_qcu23h7z{ bottom:16px; right:16px; }
  .r_qcu23h7z.krm21vgf31{ left:16px; }
  .ci5h6ro{ --rc4d-ww:60px; }
  .h1jq8_wp_z{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--qcz-te) var(--qcz-te) 0 0; transform: translateY(100%);
  }
  .h1jq8_wp_z.hnbihu{ transform: translateY(0); }
  .w9_7gb5mtv{ padding:20px; }
  .scw90v7j40{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.r_qcu23h7z :focus-visible{ outline:2px solid var(--r0bq-cxj); outline-offset:2px; }

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