/* CSS Variables */
:root {
  --zw4-uz: #4f46e5;
  --ncjbll-cx1g: #ffffff;
  --wdhie-ma: #f9fafb;
  --imbt-sytp: #0f172a;
  --h6x-yo: #6b7280;
  --pju-tv: #e5e7eb;
  --k4at-jk: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --oh2s-evd: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --l1q-caq: 16px;
  --ucqxty-doqv: 56px;
  --vh5emg-fsmt: 12px;
  --rhe-k7: 999999;
}

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

/* Main Container */
.t3Fi6 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--rhe-k7);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--imbt-sytp);
}
.t3Fi6.j0ziXbxp { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.c02B8g { display: flex; flex-direction: column-reverse; gap: var(--vh5emg-fsmt); align-items: center; }
.rvTqu {
  width: var(--ucqxty-doqv); height: var(--ucqxty-doqv); min-width: var(--ucqxty-doqv); min-height: var(--ucqxty-doqv);
  border-radius: 50%; border: none; background: var(--zw4-uz); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--k4at-jk);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.rvTqu:hover { transform: scale(1.05); box-shadow: var(--oh2s-evd); }
.rvTqu:active { transform: scale(0.95); }
.rvTqu:focus { outline: 2px solid var(--zw4-uz); outline-offset: 2px; }
.rvTqu svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .rvTqu.t7vLbb{ animation:none; }
  .rvTqu,.bz6dMcuq,.fn0Lgvi{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.bz6dMcuq{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--ncjbll-cx1g); border-radius: var(--l1q-caq); box-shadow: var(--oh2s-evd);
  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;
}
.t3Fi6.j0ziXbxp .bz6dMcuq{ right:auto; left:24px; }
.bz6dMcuq.aaE9k{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.chzAep{
  padding:16px 20px; background:var(--ncjbll-cx1g); border-bottom:1px solid var(--pju-tv);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.lrQ7z{ width:10px; height:10px; border-radius:50%; background:var(--zw4-uz); flex-shrink:0; }
.yrX3g{ flex:1; min-width:0; }
.ko7Nscw{ font-size:16px; font-weight:600; color:var(--imbt-sytp); margin:0 0 2px 0; }
.z4wZvg{ font-size:13px; color:var(--h6x-yo); margin:0; }
.noM0i{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--h6x-yo);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.noM0i:hover{ background:var(--wdhie-ma); color:var(--imbt-sytp); }
.noM0i:focus{ outline:2px solid var(--zw4-uz); outline-offset:2px; }
.noM0i svg{ width:20px; height:20px; }

/* Body */
.odVro{
  flex:1; overflow-y:auto; padding:16px; background:var(--wdhie-ma);
  display:flex; flex-direction:column; gap:12px;
}
.odVro::-webkit-scrollbar{ width:6px; }
.odVro::-webkit-scrollbar-track{ background:transparent; }
.odVro::-webkit-scrollbar-thumb{ background:var(--pju-tv); border-radius:3px; }
.odVro::-webkit-scrollbar-thumb:hover{ background:var(--h6x-yo); }

/* Messages */
.fn0Lgvi{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.fn0Lgvi.lylH9rg{ flex-direction:row-reverse; }
.xxvoUs2f{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.xxvoUs2f a{ color:inherit; }
.fn0Lgvi.eq1Fdf .xxvoUs2f{ background:var(--ncjbll-cx1g); color:var(--imbt-sytp); border-bottom-left-radius:4px; }
.fn0Lgvi.lylH9rg .xxvoUs2f{ background:var(--zw4-uz); color:#fff; border-bottom-right-radius:4px; }
.kn3iYle6{ font-size:11px; color:var(--h6x-yo); margin-top:4px; display:block; }

/* Typing Indicator */
.zyMar{
  display:flex; gap:8px; padding:10px 14px; background:var(--ncjbll-cx1g);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.sur7Ndfz{ width:8px; height:8px; border-radius:50%; background:var(--h6x-yo); animation:typingDot 1.4s infinite; }
.sur7Ndfz:nth-child(2){ animation-delay:.2s; }
.sur7Ndfz: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) */
.azwV0k{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.ja2Bwx{
  border:0; border-radius:999px; padding:8px 12px; background:var(--zw4-uz); 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(--k4at-jk);
}
.ja2Bwx:is(:hover,:focus){ transform:translateY(-1px); }
a.ja2Bwx{ text-decoration:none; display:inline-block; }
a.ja2Bwx:link, a.ja2Bwx:visited{ color:#fff; }
a.ja2Bwx:hover, a.ja2Bwx:focus{ color:#fff; }

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

/* Footer */
.kinNy8{
  padding:16px; background:var(--ncjbll-cx1g); border-top:1px solid var(--pju-tv);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.usaYdc8{
  flex:1; padding:10px 14px; border:1px solid var(--pju-tv); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--imbt-sytp);
  background:var(--wdhie-ma); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.usaYdc8:focus{ border-color:var(--zw4-uz); }
.usaYdc8::placeholder{ color:var(--h6x-yo); }
.usaYdc8.fxhsJe04{ border-color:#c00; }
.gcsOoct{
  width:40px; height:40px; min-width:40px; border:none; background:var(--zw4-uz); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.gcsOoct:disabled{ opacity:.5; cursor:not-allowed; }
.gcsOoct:not(:disabled):hover{ transform:scale(1.05); }
.gcsOoct:not(:disabled):active{ transform:scale(0.95); }
.gcsOoct:focus{ outline:2px solid var(--zw4-uz); outline-offset:2px; }
.gcsOoct svg{ width:20px; height:20px; }

/* Character Counter */
.xygH3e{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--h6x-yo); }
.xygH3e.oekgFxgv{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.spS9z{
  align-self:flex-start;
  max-width:75%;
  background: var(--ncjbll-cx1g);
  color: var(--imbt-sytp);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--k4at-jk);
}
.fjx8Oxb6{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.gx0Y17.kl5Pkxr{
  background: transparent; color: var(--imbt-sytp); border-color: var(--pju-tv);
}
.gx0Y17.kl5Pkxr:hover{
  background: var(--zw4-uz); color:#fff; border-color: var(--zw4-uz);
}

/* Mobile */
@media (max-width: 768px){
  .t3Fi6{ bottom:16px; right:16px; }
  .t3Fi6.j0ziXbxp{ left:16px; }
  .rvTqu{ --ucqxty-doqv:60px; }
  .bz6dMcuq{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--l1q-caq) var(--l1q-caq) 0 0; transform: translateY(100%);
  }
  .bz6dMcuq.aaE9k{ transform: translateY(0); }
  .chzAep{ padding:20px; }
  .kinNy8{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.t3Fi6 :focus-visible{ outline:2px solid var(--zw4-uz); outline-offset:2px; }

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