/* CSS Variables */
:root {
  --isf0ea-q6o: #4f46e5;
  --n1o6l-d0: #ffffff;
  --guqfz-kawr: #f9fafb;
  --kr9-xy: #0f172a;
  --p8ya-h1qa: #6b7280;
  --tud-bgb4: #e5e7eb;
  --bzd8me-lya: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --wwefpe-wu: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --ommea-godr: 16px;
  --mb5v7-lda6: 56px;
  --ddnan-f3: 12px;
  --t9rr-jw27: 999999;
}

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

/* Main Container */
.ble-j2hqkirbis7 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--t9rr-jw27);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--kr9-xy);
}
.ble-j2hqkirbis7.ble-eaycahf9m7 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.ble-dqof6qep { display: flex; flex-direction: column-reverse; gap: var(--ddnan-f3); align-items: center; }
.ble-xuzafznsyk7 {
  width: var(--mb5v7-lda6); height: var(--mb5v7-lda6); min-width: var(--mb5v7-lda6); min-height: var(--mb5v7-lda6);
  border-radius: 50%; border: none; background: var(--isf0ea-q6o); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--bzd8me-lya);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.ble-xuzafznsyk7:hover { transform: scale(1.05); box-shadow: var(--wwefpe-wu); }
.ble-xuzafznsyk7:active { transform: scale(0.95); }
.ble-xuzafznsyk7:focus { outline: 2px solid var(--isf0ea-q6o); outline-offset: 2px; }
.ble-xuzafznsyk7 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .ble-xuzafznsyk7.ble-bxrl2xg98t5{ animation:none; }
  .ble-xuzafznsyk7,.ble-a7m3pxe8g,.ble-uqrvb01pf{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.ble-a7m3pxe8g{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--n1o6l-d0); border-radius: var(--ommea-godr); box-shadow: var(--wwefpe-wu);
  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;
}
.ble-j2hqkirbis7.ble-eaycahf9m7 .ble-a7m3pxe8g{ right:auto; left:24px; }
.ble-a7m3pxe8g.ble-tqp8kk3j9o{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.ble-oc3xzxyv{
  padding:16px 20px; background:var(--n1o6l-d0); border-bottom:1px solid var(--tud-bgb4);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.ble-zx6ubi7y0p{ width:10px; height:10px; border-radius:50%; background:var(--isf0ea-q6o); flex-shrink:0; }
.ble-odowhe95hxi{ flex:1; min-width:0; }
.ble-k2qdqzfsr{ font-size:16px; font-weight:600; color:var(--kr9-xy); margin:0 0 2px 0; }
.ble-g4vifr3pd{ font-size:13px; color:var(--p8ya-h1qa); margin:0; }
.ble-v60u5souaj{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--p8ya-h1qa);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.ble-v60u5souaj:hover{ background:var(--guqfz-kawr); color:var(--kr9-xy); }
.ble-v60u5souaj:focus{ outline:2px solid var(--isf0ea-q6o); outline-offset:2px; }
.ble-v60u5souaj svg{ width:20px; height:20px; }

/* Body */
.ble-lko41d1ydy{
  flex:1; overflow-y:auto; padding:16px; background:var(--guqfz-kawr);
  display:flex; flex-direction:column; gap:12px;
}
.ble-lko41d1ydy::-webkit-scrollbar{ width:6px; }
.ble-lko41d1ydy::-webkit-scrollbar-track{ background:transparent; }
.ble-lko41d1ydy::-webkit-scrollbar-thumb{ background:var(--tud-bgb4); border-radius:3px; }
.ble-lko41d1ydy::-webkit-scrollbar-thumb:hover{ background:var(--p8ya-h1qa); }

/* Messages */
.ble-uqrvb01pf{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.ble-uqrvb01pf.ble-srf7dqnh{ flex-direction:row-reverse; }
.ble-s1syc4xci{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.ble-s1syc4xci a{ color:inherit; }
.ble-uqrvb01pf.ble-hy6ywgvfwc .ble-s1syc4xci{ background:var(--n1o6l-d0); color:var(--kr9-xy); border-bottom-left-radius:4px; }
.ble-uqrvb01pf.ble-srf7dqnh .ble-s1syc4xci{ background:var(--isf0ea-q6o); color:#fff; border-bottom-right-radius:4px; }
.ble-monuaav8{ font-size:11px; color:var(--p8ya-h1qa); margin-top:4px; display:block; }

/* Typing Indicator */
.ble-gydi9r2gly{
  display:flex; gap:8px; padding:10px 14px; background:var(--n1o6l-d0);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.ble-y1r8032hab{ width:8px; height:8px; border-radius:50%; background:var(--p8ya-h1qa); animation:typingDot 1.4s infinite; }
.ble-y1r8032hab:nth-child(2){ animation-delay:.2s; }
.ble-y1r8032hab: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) */
.ble-eau44rak1{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.ble-kfy7caf120sm{
  border:0; border-radius:999px; padding:8px 12px; background:var(--isf0ea-q6o); 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(--bzd8me-lya);
}
.ble-kfy7caf120sm:is(:hover,:focus){ transform:translateY(-1px); }
a.ble-kfy7caf120sm{ text-decoration:none; display:inline-block; }
a.ble-kfy7caf120sm:link, a.ble-kfy7caf120sm:visited{ color:#fff; }
a.ble-kfy7caf120sm:hover, a.ble-kfy7caf120sm:focus{ color:#fff; }

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

/* Footer */
.ble-wt5nbpo4eos{
  padding:16px; background:var(--n1o6l-d0); border-top:1px solid var(--tud-bgb4);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.ble-ot6438c3{
  flex:1; padding:10px 14px; border:1px solid var(--tud-bgb4); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--kr9-xy);
  background:var(--guqfz-kawr); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.ble-ot6438c3:focus{ border-color:var(--isf0ea-q6o); }
.ble-ot6438c3::placeholder{ color:var(--p8ya-h1qa); }
.ble-ot6438c3.ble-a3nizexqzf{ border-color:#c00; }
.ble-km5tygsp{
  width:40px; height:40px; min-width:40px; border:none; background:var(--isf0ea-q6o); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.ble-km5tygsp:disabled{ opacity:.5; cursor:not-allowed; }
.ble-km5tygsp:not(:disabled):hover{ transform:scale(1.05); }
.ble-km5tygsp:not(:disabled):active{ transform:scale(0.95); }
.ble-km5tygsp:focus{ outline:2px solid var(--isf0ea-q6o); outline-offset:2px; }
.ble-km5tygsp svg{ width:20px; height:20px; }

/* Character Counter */
.ble-vs10l0usc{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--p8ya-h1qa); }
.ble-vs10l0usc.ble-ombwqfu2zx{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.ble-nbjtkqnxf{
  align-self:flex-start;
  max-width:75%;
  background: var(--n1o6l-d0);
  color: var(--kr9-xy);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--bzd8me-lya);
}
.ble-xf6yhmxs5op2{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.ble-b5y7afbnqqk1.ble-p17o84ne8zoo{
  background: transparent; color: var(--kr9-xy); border-color: var(--tud-bgb4);
}
.ble-b5y7afbnqqk1.ble-p17o84ne8zoo:hover{
  background: var(--isf0ea-q6o); color:#fff; border-color: var(--isf0ea-q6o);
}

/* Mobile */
@media (max-width: 768px){
  .ble-j2hqkirbis7{ bottom:16px; right:16px; }
  .ble-j2hqkirbis7.ble-eaycahf9m7{ left:16px; }
  .ble-xuzafznsyk7{ --mb5v7-lda6:60px; }
  .ble-a7m3pxe8g{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--ommea-godr) var(--ommea-godr) 0 0; transform: translateY(100%);
  }
  .ble-a7m3pxe8g.ble-tqp8kk3j9o{ transform: translateY(0); }
  .ble-oc3xzxyv{ padding:20px; }
  .ble-wt5nbpo4eos{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.ble-j2hqkirbis7 :focus-visible{ outline:2px solid var(--isf0ea-q6o); outline-offset:2px; }

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