/* CSS Variables */
:root {
  --mm9600-yve: #4f46e5;
  --oea-gkqb: #ffffff;
  --dumb3-odul: #f9fafb;
  --dj3opk-jfh: #0f172a;
  --r25jn-vm: #6b7280;
  --t7a-myn: #e5e7eb;
  --u9rz-e7: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --cz08n0-vij: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --eha-q6zf: 16px;
  --knqt4-iwc: 56px;
  --tg1-o3: 12px;
  --cb4v-kk1: 999999;
}

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

/* Main Container */
.t3ice_h7q2 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--cb4v-kk1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--dj3opk-jfh);
}
.t3ice_h7q2.zr1tnwn3b { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.ktqgg14zs { display: flex; flex-direction: column-reverse; gap: var(--tg1-o3); align-items: center; }
.wsxv8u {
  width: var(--knqt4-iwc); height: var(--knqt4-iwc); min-width: var(--knqt4-iwc); min-height: var(--knqt4-iwc);
  border-radius: 50%; border: none; background: var(--mm9600-yve); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--u9rz-e7);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.wsxv8u:hover { transform: scale(1.05); box-shadow: var(--cz08n0-vij); }
.wsxv8u:active { transform: scale(0.95); }
.wsxv8u:focus { outline: 2px solid var(--mm9600-yve); outline-offset: 2px; }
.wsxv8u svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .wsxv8u.c9f_w5ewl{ animation:none; }
  .wsxv8u,.qgj9uams,.ynlbakshg{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.qgj9uams{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--oea-gkqb); border-radius: var(--eha-q6zf); box-shadow: var(--cz08n0-vij);
  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;
}
.t3ice_h7q2.zr1tnwn3b .qgj9uams{ right:auto; left:24px; }
.qgj9uams.vzmz8gto{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.rhlz9_x66d{
  padding:16px 20px; background:var(--oea-gkqb); border-bottom:1px solid var(--t7a-myn);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.j3oo6cg{ width:10px; height:10px; border-radius:50%; background:var(--mm9600-yve); flex-shrink:0; }
.iasg1orf{ flex:1; min-width:0; }
.jevv2_2w5{ font-size:16px; font-weight:600; color:var(--dj3opk-jfh); margin:0 0 2px 0; }
.dct5wu{ font-size:13px; color:var(--r25jn-vm); margin:0; }
.j6w33t{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--r25jn-vm);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.j6w33t:hover{ background:var(--dumb3-odul); color:var(--dj3opk-jfh); }
.j6w33t:focus{ outline:2px solid var(--mm9600-yve); outline-offset:2px; }
.j6w33t svg{ width:20px; height:20px; }

/* Body */
.fh5t9yl{
  flex:1; overflow-y:auto; padding:16px; background:var(--dumb3-odul);
  display:flex; flex-direction:column; gap:12px;
}
.fh5t9yl::-webkit-scrollbar{ width:6px; }
.fh5t9yl::-webkit-scrollbar-track{ background:transparent; }
.fh5t9yl::-webkit-scrollbar-thumb{ background:var(--t7a-myn); border-radius:3px; }
.fh5t9yl::-webkit-scrollbar-thumb:hover{ background:var(--r25jn-vm); }

/* Messages */
.ynlbakshg{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.ynlbakshg.lcm6tyil{ flex-direction:row-reverse; }
.wp4kbao70s{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.wp4kbao70s a{ color:inherit; }
.ynlbakshg.hvznnd .wp4kbao70s{ background:var(--oea-gkqb); color:var(--dj3opk-jfh); border-bottom-left-radius:4px; }
.ynlbakshg.lcm6tyil .wp4kbao70s{ background:var(--mm9600-yve); color:#fff; border-bottom-right-radius:4px; }
.wo18st8{ font-size:11px; color:var(--r25jn-vm); margin-top:4px; display:block; }

/* Typing Indicator */
.pj_imz5mp{
  display:flex; gap:8px; padding:10px 14px; background:var(--oea-gkqb);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.b29rvzb1q{ width:8px; height:8px; border-radius:50%; background:var(--r25jn-vm); animation:typingDot 1.4s infinite; }
.b29rvzb1q:nth-child(2){ animation-delay:.2s; }
.b29rvzb1q: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) */
.jdk627zp{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.yds_zox{
  border:0; border-radius:999px; padding:8px 12px; background:var(--mm9600-yve); 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(--u9rz-e7);
}
.yds_zox:is(:hover,:focus){ transform:translateY(-1px); }
a.yds_zox{ text-decoration:none; display:inline-block; }
a.yds_zox:link, a.yds_zox:visited{ color:#fff; }
a.yds_zox:hover, a.yds_zox:focus{ color:#fff; }

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

/* Footer */
.srs_87{
  padding:16px; background:var(--oea-gkqb); border-top:1px solid var(--t7a-myn);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.fqatvq_w{
  flex:1; padding:10px 14px; border:1px solid var(--t7a-myn); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--dj3opk-jfh);
  background:var(--dumb3-odul); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.fqatvq_w:focus{ border-color:var(--mm9600-yve); }
.fqatvq_w::placeholder{ color:var(--r25jn-vm); }
.fqatvq_w.y9epfes_5{ border-color:#c00; }
.dkjwj3dj6{
  width:40px; height:40px; min-width:40px; border:none; background:var(--mm9600-yve); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.dkjwj3dj6:disabled{ opacity:.5; cursor:not-allowed; }
.dkjwj3dj6:not(:disabled):hover{ transform:scale(1.05); }
.dkjwj3dj6:not(:disabled):active{ transform:scale(0.95); }
.dkjwj3dj6:focus{ outline:2px solid var(--mm9600-yve); outline-offset:2px; }
.dkjwj3dj6 svg{ width:20px; height:20px; }

/* Character Counter */
.bummysys{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--r25jn-vm); }
.bummysys.q8jk8h_4{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.obt4fpthm4{
  align-self:flex-start;
  max-width:75%;
  background: var(--oea-gkqb);
  color: var(--dj3opk-jfh);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--u9rz-e7);
}
.vmj0f58b{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.uxdfag.rf7ojejn7z{
  background: transparent; color: var(--dj3opk-jfh); border-color: var(--t7a-myn);
}
.uxdfag.rf7ojejn7z:hover{
  background: var(--mm9600-yve); color:#fff; border-color: var(--mm9600-yve);
}

/* Mobile */
@media (max-width: 768px){
  .t3ice_h7q2{ bottom:16px; right:16px; }
  .t3ice_h7q2.zr1tnwn3b{ left:16px; }
  .wsxv8u{ --knqt4-iwc:60px; }
  .qgj9uams{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--eha-q6zf) var(--eha-q6zf) 0 0; transform: translateY(100%);
  }
  .qgj9uams.vzmz8gto{ transform: translateY(0); }
  .rhlz9_x66d{ padding:20px; }
  .srs_87{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.t3ice_h7q2 :focus-visible{ outline:2px solid var(--mm9600-yve); outline-offset:2px; }

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