/* CSS Variables */
:root {
  --rnmbh-z9: #4f46e5;
  --fqo-x1j: #ffffff;
  --u48-aevu: #f9fafb;
  --st7-s6aa: #0f172a;
  --nslzbn-c2t0: #6b7280;
  --oa3kd-phv: #e5e7eb;
  --cb9l17-f3vs: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --r7eul-nc: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --smsp9r-u5u: 16px;
  --j91qex-oc: 56px;
  --pg2-r87: 12px;
  --xng-on39: 999999;
}

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

/* Main Container */
.iipml2reez008s {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--xng-on39);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--st7-s6aa);
}
.iipml2reez008s.rb0ck1ehd6mfk0la { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.lnf24lyrazq9vb7pk { display: flex; flex-direction: column-reverse; gap: var(--pg2-r87); align-items: center; }
.p67ep6a2ghl51zdv {
  width: var(--j91qex-oc); height: var(--j91qex-oc); min-width: var(--j91qex-oc); min-height: var(--j91qex-oc);
  border-radius: 50%; border: none; background: var(--rnmbh-z9); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--cb9l17-f3vs);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.p67ep6a2ghl51zdv:hover { transform: scale(1.05); box-shadow: var(--r7eul-nc); }
.p67ep6a2ghl51zdv:active { transform: scale(0.95); }
.p67ep6a2ghl51zdv:focus { outline: 2px solid var(--rnmbh-z9); outline-offset: 2px; }
.p67ep6a2ghl51zdv svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .p67ep6a2ghl51zdv.m4pi0arfmz7o2ncubn{ animation:none; }
  .p67ep6a2ghl51zdv,.dlpucskxbukp1j0,.wjtiq-in3i0ptl1o{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.dlpucskxbukp1j0{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--fqo-x1j); border-radius: var(--smsp9r-u5u); box-shadow: var(--r7eul-nc);
  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;
}
.iipml2reez008s.rb0ck1ehd6mfk0la .dlpucskxbukp1j0{ right:auto; left:24px; }
.dlpucskxbukp1j0.cepbdov58pa7wsa2{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.qlc1mbf0eyh46loyd{
  padding:16px 20px; background:var(--fqo-x1j); border-bottom:1px solid var(--oa3kd-phv);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.d7j8b8ioanhmf4e1x{ width:10px; height:10px; border-radius:50%; background:var(--rnmbh-z9); flex-shrink:0; }
.wkttos4ataruyrbt{ flex:1; min-width:0; }
.n1-s2kg2p-gk96n{ font-size:16px; font-weight:600; color:var(--st7-s6aa); margin:0 0 2px 0; }
.kq9iphjb7qtkc12c6{ font-size:13px; color:var(--nslzbn-c2t0); margin:0; }
.mjspz6naadrwugxer{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--nslzbn-c2t0);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.mjspz6naadrwugxer:hover{ background:var(--u48-aevu); color:var(--st7-s6aa); }
.mjspz6naadrwugxer:focus{ outline:2px solid var(--rnmbh-z9); outline-offset:2px; }
.mjspz6naadrwugxer svg{ width:20px; height:20px; }

/* Body */
.x9j4rlj738nrf4aqt8{
  flex:1; overflow-y:auto; padding:16px; background:var(--u48-aevu);
  display:flex; flex-direction:column; gap:12px;
}
.x9j4rlj738nrf4aqt8::-webkit-scrollbar{ width:6px; }
.x9j4rlj738nrf4aqt8::-webkit-scrollbar-track{ background:transparent; }
.x9j4rlj738nrf4aqt8::-webkit-scrollbar-thumb{ background:var(--oa3kd-phv); border-radius:3px; }
.x9j4rlj738nrf4aqt8::-webkit-scrollbar-thumb:hover{ background:var(--nslzbn-c2t0); }

/* Messages */
.wjtiq-in3i0ptl1o{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.wjtiq-in3i0ptl1o.hu6mq131l62yatsu2o{ flex-direction:row-reverse; }
.z3l1tjtgnggflhvw{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.z3l1tjtgnggflhvw a{ color:inherit; }
.wjtiq-in3i0ptl1o.f6gu44xyervgfn-p .z3l1tjtgnggflhvw{ background:var(--fqo-x1j); color:var(--st7-s6aa); border-bottom-left-radius:4px; }
.wjtiq-in3i0ptl1o.hu6mq131l62yatsu2o .z3l1tjtgnggflhvw{ background:var(--rnmbh-z9); color:#fff; border-bottom-right-radius:4px; }
.etlxxlkhspln0b0{ font-size:11px; color:var(--nslzbn-c2t0); margin-top:4px; display:block; }

/* Typing Indicator */
.cjel1nw1b8usdnv73{
  display:flex; gap:8px; padding:10px 14px; background:var(--fqo-x1j);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.wzp5kfaabwy7ua99ot{ width:8px; height:8px; border-radius:50%; background:var(--nslzbn-c2t0); animation:typingDot 1.4s infinite; }
.wzp5kfaabwy7ua99ot:nth-child(2){ animation-delay:.2s; }
.wzp5kfaabwy7ua99ot: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) */
.g4bp3kgaqxr9lxvgi{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.is66vi1ojuv-mlxf-0{
  border:0; border-radius:999px; padding:8px 12px; background:var(--rnmbh-z9); 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(--cb9l17-f3vs);
}
.is66vi1ojuv-mlxf-0:is(:hover,:focus){ transform:translateY(-1px); }
a.is66vi1ojuv-mlxf-0{ text-decoration:none; display:inline-block; }
a.is66vi1ojuv-mlxf-0:link, a.is66vi1ojuv-mlxf-0:visited{ color:#fff; }
a.is66vi1ojuv-mlxf-0:hover, a.is66vi1ojuv-mlxf-0:focus{ color:#fff; }

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

/* Footer */
.ogqlvc8d-pkuocja0p{
  padding:16px; background:var(--fqo-x1j); border-top:1px solid var(--oa3kd-phv);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.vkr4zvr8efqj9qg{
  flex:1; padding:10px 14px; border:1px solid var(--oa3kd-phv); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--st7-s6aa);
  background:var(--u48-aevu); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.vkr4zvr8efqj9qg:focus{ border-color:var(--rnmbh-z9); }
.vkr4zvr8efqj9qg::placeholder{ color:var(--nslzbn-c2t0); }
.vkr4zvr8efqj9qg.lsf7jiqjk6-3nnv7{ border-color:#c00; }
.xtqj4o9k08y-lda{
  width:40px; height:40px; min-width:40px; border:none; background:var(--rnmbh-z9); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.xtqj4o9k08y-lda:disabled{ opacity:.5; cursor:not-allowed; }
.xtqj4o9k08y-lda:not(:disabled):hover{ transform:scale(1.05); }
.xtqj4o9k08y-lda:not(:disabled):active{ transform:scale(0.95); }
.xtqj4o9k08y-lda:focus{ outline:2px solid var(--rnmbh-z9); outline-offset:2px; }
.xtqj4o9k08y-lda svg{ width:20px; height:20px; }

/* Character Counter */
.sw3jhsgupg45cb8d{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--nslzbn-c2t0); }
.sw3jhsgupg45cb8d.yowhy17-c-nnja84{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.i-f1grjvigl67e7{
  align-self:flex-start;
  max-width:75%;
  background: var(--fqo-x1j);
  color: var(--st7-s6aa);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--cb9l17-f3vs);
}
.qu75if6zfs27yftgx{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.xk0w3rd83gq5ds.u14bgzljf2sqh-o{
  background: transparent; color: var(--st7-s6aa); border-color: var(--oa3kd-phv);
}
.xk0w3rd83gq5ds.u14bgzljf2sqh-o:hover{
  background: var(--rnmbh-z9); color:#fff; border-color: var(--rnmbh-z9);
}

/* Mobile */
@media (max-width: 768px){
  .iipml2reez008s{ bottom:16px; right:16px; }
  .iipml2reez008s.rb0ck1ehd6mfk0la{ left:16px; }
  .p67ep6a2ghl51zdv{ --j91qex-oc:60px; }
  .dlpucskxbukp1j0{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--smsp9r-u5u) var(--smsp9r-u5u) 0 0; transform: translateY(100%);
  }
  .dlpucskxbukp1j0.cepbdov58pa7wsa2{ transform: translateY(0); }
  .qlc1mbf0eyh46loyd{ padding:20px; }
  .ogqlvc8d-pkuocja0p{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.iipml2reez008s :focus-visible{ outline:2px solid var(--rnmbh-z9); outline-offset:2px; }

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