/* CSS Variables */
:root {
  --ygsaq-n03: #4f46e5;
  --c01am3-ojz: #ffffff;
  --gwav-su: #f9fafb;
  --dbge-pehu: #0f172a;
  --cjb07p-c0: #6b7280;
  --z20-ko: #e5e7eb;
  --c2imw-a4w: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --yuf-cz9: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --g96mnm-x7w: 16px;
  --m0y9e-a6m8: 56px;
  --ibec4-m5kf: 12px;
  --yep-n3w: 999999;
}

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

/* Main Container */
.c5Sq1 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--yep-n3w);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--dbge-pehu);
}
.c5Sq1.ct7Zn0t { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.q3rDbk { display: flex; flex-direction: column-reverse; gap: var(--ibec4-m5kf); align-items: center; }
.wg6Zqj {
  width: var(--m0y9e-a6m8); height: var(--m0y9e-a6m8); min-width: var(--m0y9e-a6m8); min-height: var(--m0y9e-a6m8);
  border-radius: 50%; border: none; background: var(--ygsaq-n03); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--c2imw-a4w);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.wg6Zqj:hover { transform: scale(1.05); box-shadow: var(--yuf-cz9); }
.wg6Zqj:active { transform: scale(0.95); }
.wg6Zqj:focus { outline: 2px solid var(--ygsaq-n03); outline-offset: 2px; }
.wg6Zqj svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .wg6Zqj.oblOm9{ animation:none; }
  .wg6Zqj,.gr0F6zp,.rsdYa0{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.gr0F6zp{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--c01am3-ojz); border-radius: var(--g96mnm-x7w); box-shadow: var(--yuf-cz9);
  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;
}
.c5Sq1.ct7Zn0t .gr0F6zp{ right:auto; left:24px; }
.gr0F6zp.umoVut8{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.p61Oqpm{
  padding:16px 20px; background:var(--c01am3-ojz); border-bottom:1px solid var(--z20-ko);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.mruqUkjk{ width:10px; height:10px; border-radius:50%; background:var(--ygsaq-n03); flex-shrink:0; }
.w64Zbo{ flex:1; min-width:0; }
.q5eGwa{ font-size:16px; font-weight:600; color:var(--dbge-pehu); margin:0 0 2px 0; }
.xlkDmu{ font-size:13px; color:var(--cjb07p-c0); margin:0; }
.l4cFgh7{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--cjb07p-c0);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.l4cFgh7:hover{ background:var(--gwav-su); color:var(--dbge-pehu); }
.l4cFgh7:focus{ outline:2px solid var(--ygsaq-n03); outline-offset:2px; }
.l4cFgh7 svg{ width:20px; height:20px; }

/* Body */
.g36Kob{
  flex:1; overflow-y:auto; padding:16px; background:var(--gwav-su);
  display:flex; flex-direction:column; gap:12px;
}
.g36Kob::-webkit-scrollbar{ width:6px; }
.g36Kob::-webkit-scrollbar-track{ background:transparent; }
.g36Kob::-webkit-scrollbar-thumb{ background:var(--z20-ko); border-radius:3px; }
.g36Kob::-webkit-scrollbar-thumb:hover{ background:var(--cjb07p-c0); }

/* Messages */
.rsdYa0{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.rsdYa0.znm1Llnh{ flex-direction:row-reverse; }
.luG4e{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.luG4e a{ color:inherit; }
.rsdYa0.v0f4Jyoy .luG4e{ background:var(--c01am3-ojz); color:var(--dbge-pehu); border-bottom-left-radius:4px; }
.rsdYa0.znm1Llnh .luG4e{ background:var(--ygsaq-n03); color:#fff; border-bottom-right-radius:4px; }
.epY0y{ font-size:11px; color:var(--cjb07p-c0); margin-top:4px; display:block; }

/* Typing Indicator */
.uzH2l{
  display:flex; gap:8px; padding:10px 14px; background:var(--c01am3-ojz);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.woYbw{ width:8px; height:8px; border-radius:50%; background:var(--cjb07p-c0); animation:typingDot 1.4s infinite; }
.woYbw:nth-child(2){ animation-delay:.2s; }
.woYbw: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) */
.xeuZu2f{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.kedJ8i5{
  border:0; border-radius:999px; padding:8px 12px; background:var(--ygsaq-n03); 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(--c2imw-a4w);
}
.kedJ8i5:is(:hover,:focus){ transform:translateY(-1px); }
a.kedJ8i5{ text-decoration:none; display:inline-block; }
a.kedJ8i5:link, a.kedJ8i5:visited{ color:#fff; }
a.kedJ8i5:hover, a.kedJ8i5:focus{ color:#fff; }

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

/* Footer */
.t8mS3xx{
  padding:16px; background:var(--c01am3-ojz); border-top:1px solid var(--z20-ko);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.x4Op4{
  flex:1; padding:10px 14px; border:1px solid var(--z20-ko); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--dbge-pehu);
  background:var(--gwav-su); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.x4Op4:focus{ border-color:var(--ygsaq-n03); }
.x4Op4::placeholder{ color:var(--cjb07p-c0); }
.x4Op4.duoNcgx{ border-color:#c00; }
.loZhd{
  width:40px; height:40px; min-width:40px; border:none; background:var(--ygsaq-n03); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.loZhd:disabled{ opacity:.5; cursor:not-allowed; }
.loZhd:not(:disabled):hover{ transform:scale(1.05); }
.loZhd:not(:disabled):active{ transform:scale(0.95); }
.loZhd:focus{ outline:2px solid var(--ygsaq-n03); outline-offset:2px; }
.loZhd svg{ width:20px; height:20px; }

/* Character Counter */
.y8buIkyp{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--cjb07p-c0); }
.y8buIkyp.qbHl6{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.eygcP0qm{
  align-self:flex-start;
  max-width:75%;
  background: var(--c01am3-ojz);
  color: var(--dbge-pehu);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--c2imw-a4w);
}
.x9R88{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.nw9cMpld.zaYzw{
  background: transparent; color: var(--dbge-pehu); border-color: var(--z20-ko);
}
.nw9cMpld.zaYzw:hover{
  background: var(--ygsaq-n03); color:#fff; border-color: var(--ygsaq-n03);
}

/* Mobile */
@media (max-width: 768px){
  .c5Sq1{ bottom:16px; right:16px; }
  .c5Sq1.ct7Zn0t{ left:16px; }
  .wg6Zqj{ --m0y9e-a6m8:60px; }
  .gr0F6zp{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--g96mnm-x7w) var(--g96mnm-x7w) 0 0; transform: translateY(100%);
  }
  .gr0F6zp.umoVut8{ transform: translateY(0); }
  .p61Oqpm{ padding:20px; }
  .t8mS3xx{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.c5Sq1 :focus-visible{ outline:2px solid var(--ygsaq-n03); outline-offset:2px; }

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