/* CSS Variables */
:root {
  --c2hcd-tc: #4f46e5;
  --y27kdn-tg: #ffffff;
  --zq9y-g0ee: #f9fafb;
  --nya-gd5: #0f172a;
  --om7-uza: #6b7280;
  --i4gvv9-iw: #e5e7eb;
  --j81coz-peku: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --yo2k-at6: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --j9n-do: 16px;
  --hb9-nnvs: 56px;
  --zuxbqq-uzho: 12px;
  --si1crm-aq: 999999;
}

/* Base Reset */
.gl3jt7xds-h-2s-i,
.gl3jt7xds-h-2s-i * { box-sizing: border-box; margin: 0; padding: 0; }

/* Main Container */
.gl3jt7xds-h-2s-i {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--si1crm-aq);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--nya-gd5);
}
.gl3jt7xds-h-2s-i.wguqetxf600tjtty { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.sn4pqf52lh8e0cu { display: flex; flex-direction: column-reverse; gap: var(--zuxbqq-uzho); align-items: center; }
.oqaffzqiad1ryq4oi5 {
  width: var(--hb9-nnvs); height: var(--hb9-nnvs); min-width: var(--hb9-nnvs); min-height: var(--hb9-nnvs);
  border-radius: 50%; border: none; background: var(--c2hcd-tc); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--j81coz-peku);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.oqaffzqiad1ryq4oi5:hover { transform: scale(1.05); box-shadow: var(--yo2k-at6); }
.oqaffzqiad1ryq4oi5:active { transform: scale(0.95); }
.oqaffzqiad1ryq4oi5:focus { outline: 2px solid var(--c2hcd-tc); outline-offset: 2px; }
.oqaffzqiad1ryq4oi5 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .oqaffzqiad1ryq4oi5.y-6vbp2gk2uwde{ animation:none; }
  .oqaffzqiad1ryq4oi5,.dowblpr8guhfoe,.mxvp1at0v8wy9r{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.dowblpr8guhfoe{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--y27kdn-tg); border-radius: var(--j9n-do); box-shadow: var(--yo2k-at6);
  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;
}
.gl3jt7xds-h-2s-i.wguqetxf600tjtty .dowblpr8guhfoe{ right:auto; left:24px; }
.dowblpr8guhfoe.do0fg6jtwmqv2u12ci{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.tabv5f6vd3l5lety{
  padding:16px 20px; background:var(--y27kdn-tg); border-bottom:1px solid var(--i4gvv9-iw);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.ec7f4488nuwq-wvo{ width:10px; height:10px; border-radius:50%; background:var(--c2hcd-tc); flex-shrink:0; }
.wil22sxg1qku9qj{ flex:1; min-width:0; }
.qv77gnb45oxx6d25pl{ font-size:16px; font-weight:600; color:var(--nya-gd5); margin:0 0 2px 0; }
.l3h1a6t4uxueq8l5m{ font-size:13px; color:var(--om7-uza); margin:0; }
.k70c3vn0jsauvk3{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--om7-uza);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.k70c3vn0jsauvk3:hover{ background:var(--zq9y-g0ee); color:var(--nya-gd5); }
.k70c3vn0jsauvk3:focus{ outline:2px solid var(--c2hcd-tc); outline-offset:2px; }
.k70c3vn0jsauvk3 svg{ width:20px; height:20px; }

/* Body */
.v900fklyva0tubjt{
  flex:1; overflow-y:auto; padding:16px; background:var(--zq9y-g0ee);
  display:flex; flex-direction:column; gap:12px;
}
.v900fklyva0tubjt::-webkit-scrollbar{ width:6px; }
.v900fklyva0tubjt::-webkit-scrollbar-track{ background:transparent; }
.v900fklyva0tubjt::-webkit-scrollbar-thumb{ background:var(--i4gvv9-iw); border-radius:3px; }
.v900fklyva0tubjt::-webkit-scrollbar-thumb:hover{ background:var(--om7-uza); }

/* Messages */
.mxvp1at0v8wy9r{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.mxvp1at0v8wy9r.ljnum2wsq4iz46{ flex-direction:row-reverse; }
.gdz9r6v4s8-eab{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.gdz9r6v4s8-eab a{ color:inherit; }
.mxvp1at0v8wy9r.p8bodd8g05negb .gdz9r6v4s8-eab{ background:var(--y27kdn-tg); color:var(--nya-gd5); border-bottom-left-radius:4px; }
.mxvp1at0v8wy9r.ljnum2wsq4iz46 .gdz9r6v4s8-eab{ background:var(--c2hcd-tc); color:#fff; border-bottom-right-radius:4px; }
.kjxn34wjh0xdqdp{ font-size:11px; color:var(--om7-uza); margin-top:4px; display:block; }

/* Typing Indicator */
.rcy4m0ec4s363j{
  display:flex; gap:8px; padding:10px 14px; background:var(--y27kdn-tg);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.flxel82j0s5tbo4{ width:8px; height:8px; border-radius:50%; background:var(--om7-uza); animation:typingDot 1.4s infinite; }
.flxel82j0s5tbo4:nth-child(2){ animation-delay:.2s; }
.flxel82j0s5tbo4: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) */
.ltqidmm68bynpuuo4{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.lbp0gm5-m2rer6{
  border:0; border-radius:999px; padding:8px 12px; background:var(--c2hcd-tc); 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(--j81coz-peku);
}
.lbp0gm5-m2rer6:is(:hover,:focus){ transform:translateY(-1px); }
a.lbp0gm5-m2rer6{ text-decoration:none; display:inline-block; }
a.lbp0gm5-m2rer6:link, a.lbp0gm5-m2rer6:visited{ color:#fff; }
a.lbp0gm5-m2rer6:hover, a.lbp0gm5-m2rer6:focus{ color:#fff; }

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

/* Footer */
.mkeg51p8mcly2l{
  padding:16px; background:var(--y27kdn-tg); border-top:1px solid var(--i4gvv9-iw);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.qzoro-n998m5vf{
  flex:1; padding:10px 14px; border:1px solid var(--i4gvv9-iw); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--nya-gd5);
  background:var(--zq9y-g0ee); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.qzoro-n998m5vf:focus{ border-color:var(--c2hcd-tc); }
.qzoro-n998m5vf::placeholder{ color:var(--om7-uza); }
.qzoro-n998m5vf.taozs-2-odczmw984{ border-color:#c00; }
.n58hmd--7yjl-9y{
  width:40px; height:40px; min-width:40px; border:none; background:var(--c2hcd-tc); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.n58hmd--7yjl-9y:disabled{ opacity:.5; cursor:not-allowed; }
.n58hmd--7yjl-9y:not(:disabled):hover{ transform:scale(1.05); }
.n58hmd--7yjl-9y:not(:disabled):active{ transform:scale(0.95); }
.n58hmd--7yjl-9y:focus{ outline:2px solid var(--c2hcd-tc); outline-offset:2px; }
.n58hmd--7yjl-9y svg{ width:20px; height:20px; }

/* Character Counter */
.tf1-d79lagz99rwi{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--om7-uza); }
.tf1-d79lagz99rwi.k9x6sndhf0qhg8{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.rh7qyvo1lv701x32{
  align-self:flex-start;
  max-width:75%;
  background: var(--y27kdn-tg);
  color: var(--nya-gd5);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--j81coz-peku);
}
.m9bmekcq6hslg7{ display:flex; flex-wrap:wrap; gap:8px; }

/* Solid pill buttons */
.kav-ts-x-d2snc{
  display:inline-flex; align-items:center; gap:6px;
  padding:8px 14px; border-radius:999px;
  background: var(--c2hcd-tc); color:#fff; border:1px solid transparent;
  font-size:13px; line-height:1; text-decoration:none;
  box-shadow: var(--j81coz-peku);
  transition: transform .08s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.kav-ts-x-d2snc:link, .kav-ts-x-d2snc:visited{ color:#fff; }
.kav-ts-x-d2snc:hover{ transform:translateY(-1px); box-shadow: var(--yo2k-at6); }
.kav-ts-x-d2snc:active{ transform:translateY(0); }
.kav-ts-x-d2snc:focus-visible{ outline:2px solid var(--c2hcd-tc); outline-offset:2px; }

/* Optional outline variant */
.kav-ts-x-d2snc.q-p7ajtz0j1nd6ps{
  background: transparent; color: var(--nya-gd5); border-color: var(--i4gvv9-iw);
}
.kav-ts-x-d2snc.q-p7ajtz0j1nd6ps:hover{
  background: var(--c2hcd-tc); color:#fff; border-color: var(--c2hcd-tc);
}

/* Mobile */
@media (max-width: 768px){
  .gl3jt7xds-h-2s-i{ bottom:16px; right:16px; }
  .gl3jt7xds-h-2s-i.wguqetxf600tjtty{ left:16px; }
  .oqaffzqiad1ryq4oi5{ --hb9-nnvs:60px; }
  .dowblpr8guhfoe{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--j9n-do) var(--j9n-do) 0 0; transform: translateY(100%);
  }
  .dowblpr8guhfoe.do0fg6jtwmqv2u12ci{ transform: translateY(0); }
  .tabv5f6vd3l5lety{ padding:20px; }
  .mkeg51p8mcly2l{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.gl3jt7xds-h-2s-i :focus-visible{ outline:2px solid var(--c2hcd-tc); outline-offset:2px; }

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