/* CSS Variables */
:root {
  --k6yh-t8: #4f46e5;
  --yrs3km-tlky: #ffffff;
  --zez-n6sk: #f9fafb;
  --mszs-vf3: #0f172a;
  --r2fy-dxbg: #6b7280;
  --pxds-vh: #e5e7eb;
  --x55-a5k: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --s3lckv-jt: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --s7h-jlk: 16px;
  --fru3b-sjmp: 56px;
  --ys96nn-t8rd: 12px;
  --s63oj-c1: 999999;
}

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

/* Main Container */
.qnyIg1 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--s63oj-c1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--mszs-vf3);
}
.qnyIg1.wzv6Hvn1 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.sarC7eq { display: flex; flex-direction: column-reverse; gap: var(--ys96nn-t8rd); align-items: center; }
.fl6aQz0d {
  width: var(--fru3b-sjmp); height: var(--fru3b-sjmp); min-width: var(--fru3b-sjmp); min-height: var(--fru3b-sjmp);
  border-radius: 50%; border: none; background: var(--k6yh-t8); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--x55-a5k);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.fl6aQz0d:hover { transform: scale(1.05); box-shadow: var(--s3lckv-jt); }
.fl6aQz0d:active { transform: scale(0.95); }
.fl6aQz0d:focus { outline: 2px solid var(--k6yh-t8); outline-offset: 2px; }
.fl6aQz0d svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .fl6aQz0d.mojWqrd{ animation:none; }
  .fl6aQz0d,.vtvvXf1x,.rmpjCtnz{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.vtvvXf1x{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--yrs3km-tlky); border-radius: var(--s7h-jlk); box-shadow: var(--s3lckv-jt);
  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;
}
.qnyIg1.wzv6Hvn1 .vtvvXf1x{ right:auto; left:24px; }
.vtvvXf1x.jt6Dtfu{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.j29xR6zm{
  padding:16px 20px; background:var(--yrs3km-tlky); border-bottom:1px solid var(--pxds-vh);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.hrG62{ width:10px; height:10px; border-radius:50%; background:var(--k6yh-t8); flex-shrink:0; }
.ok3Bts8{ flex:1; min-width:0; }
.doQgk{ font-size:16px; font-weight:600; color:var(--mszs-vf3); margin:0 0 2px 0; }
.n0i8Dyd9{ font-size:13px; color:var(--r2fy-dxbg); margin:0; }
.fl4Gu3{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--r2fy-dxbg);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.fl4Gu3:hover{ background:var(--zez-n6sk); color:var(--mszs-vf3); }
.fl4Gu3:focus{ outline:2px solid var(--k6yh-t8); outline-offset:2px; }
.fl4Gu3 svg{ width:20px; height:20px; }

/* Body */
.utNck{
  flex:1; overflow-y:auto; padding:16px; background:var(--zez-n6sk);
  display:flex; flex-direction:column; gap:12px;
}
.utNck::-webkit-scrollbar{ width:6px; }
.utNck::-webkit-scrollbar-track{ background:transparent; }
.utNck::-webkit-scrollbar-thumb{ background:var(--pxds-vh); border-radius:3px; }
.utNck::-webkit-scrollbar-thumb:hover{ background:var(--r2fy-dxbg); }

/* Messages */
.rmpjCtnz{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.rmpjCtnz.ri6sR7uf{ flex-direction:row-reverse; }
.sw8Inj{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.sw8Inj a{ color:inherit; }
.rmpjCtnz.r3ciDmie .sw8Inj{ background:var(--yrs3km-tlky); color:var(--mszs-vf3); border-bottom-left-radius:4px; }
.rmpjCtnz.ri6sR7uf .sw8Inj{ background:var(--k6yh-t8); color:#fff; border-bottom-right-radius:4px; }
.wwnIqn{ font-size:11px; color:var(--r2fy-dxbg); margin-top:4px; display:block; }

/* Typing Indicator */
.ifV2s{
  display:flex; gap:8px; padding:10px 14px; background:var(--yrs3km-tlky);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.j11Rvh{ width:8px; height:8px; border-radius:50%; background:var(--r2fy-dxbg); animation:typingDot 1.4s infinite; }
.j11Rvh:nth-child(2){ animation-delay:.2s; }
.j11Rvh: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) */
.lwsMfb{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.rrOcu{
  border:0; border-radius:999px; padding:8px 12px; background:var(--k6yh-t8); 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(--x55-a5k);
}
.rrOcu:is(:hover,:focus){ transform:translateY(-1px); }
a.rrOcu{ text-decoration:none; display:inline-block; }
a.rrOcu:link, a.rrOcu:visited{ color:#fff; }
a.rrOcu:hover, a.rrOcu:focus{ color:#fff; }

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

/* Footer */
.kisrYbzc{
  padding:16px; background:var(--yrs3km-tlky); border-top:1px solid var(--pxds-vh);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.p36D05{
  flex:1; padding:10px 14px; border:1px solid var(--pxds-vh); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--mszs-vf3);
  background:var(--zez-n6sk); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.p36D05:focus{ border-color:var(--k6yh-t8); }
.p36D05::placeholder{ color:var(--r2fy-dxbg); }
.p36D05.r78Nk7{ border-color:#c00; }
.f5uLeum{
  width:40px; height:40px; min-width:40px; border:none; background:var(--k6yh-t8); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.f5uLeum:disabled{ opacity:.5; cursor:not-allowed; }
.f5uLeum:not(:disabled):hover{ transform:scale(1.05); }
.f5uLeum:not(:disabled):active{ transform:scale(0.95); }
.f5uLeum:focus{ outline:2px solid var(--k6yh-t8); outline-offset:2px; }
.f5uLeum svg{ width:20px; height:20px; }

/* Character Counter */
.by5iUryt{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--r2fy-dxbg); }
.by5iUryt.laeL577{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.c7tK1a{
  align-self:flex-start;
  max-width:75%;
  background: var(--yrs3km-tlky);
  color: var(--mszs-vf3);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--x55-a5k);
}
.xmJ83{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.p0pdGca6.b2Dm6{
  background: transparent; color: var(--mszs-vf3); border-color: var(--pxds-vh);
}
.p0pdGca6.b2Dm6:hover{
  background: var(--k6yh-t8); color:#fff; border-color: var(--k6yh-t8);
}

/* Mobile */
@media (max-width: 768px){
  .qnyIg1{ bottom:16px; right:16px; }
  .qnyIg1.wzv6Hvn1{ left:16px; }
  .fl6aQz0d{ --fru3b-sjmp:60px; }
  .vtvvXf1x{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--s7h-jlk) var(--s7h-jlk) 0 0; transform: translateY(100%);
  }
  .vtvvXf1x.jt6Dtfu{ transform: translateY(0); }
  .j29xR6zm{ padding:20px; }
  .kisrYbzc{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.qnyIg1 :focus-visible{ outline:2px solid var(--k6yh-t8); outline-offset:2px; }

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