/* CSS Variables */
:root {
  --bxn-yh7: #4f46e5;
  --spk5m-mcki: #ffffff;
  --ynl-eq: #f9fafb;
  --eb0-nzvr: #0f172a;
  --q0yp3-tx: #6b7280;
  --dnn4t-uq: #e5e7eb;
  --owb-i8hg: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --ub1in-her: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --bugt-bhx0: 16px;
  --rfgeb-kt0: 56px;
  --gmg4-j37: 12px;
  --pn8cm-m7s: 999999;
}

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

/* Main Container */
.bon-m00d1ytpao {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--pn8cm-m7s);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--eb0-nzvr);
}
.bon-m00d1ytpao.bon-hf98mfd7p { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.bon-qycvfcwr2 { display: flex; flex-direction: column-reverse; gap: var(--gmg4-j37); align-items: center; }
.bon-x547l05oc {
  width: var(--rfgeb-kt0); height: var(--rfgeb-kt0); min-width: var(--rfgeb-kt0); min-height: var(--rfgeb-kt0);
  border-radius: 50%; border: none; background: var(--bxn-yh7); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--owb-i8hg);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.bon-x547l05oc:hover { transform: scale(1.05); box-shadow: var(--ub1in-her); }
.bon-x547l05oc:active { transform: scale(0.95); }
.bon-x547l05oc:focus { outline: 2px solid var(--bxn-yh7); outline-offset: 2px; }
.bon-x547l05oc svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .bon-x547l05oc.bon-tdfghtoav{ animation:none; }
  .bon-x547l05oc,.bon-a2lyr5auky7n,.bon-u6t2dekf2{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.bon-a2lyr5auky7n{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--spk5m-mcki); border-radius: var(--bugt-bhx0); box-shadow: var(--ub1in-her);
  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;
}
.bon-m00d1ytpao.bon-hf98mfd7p .bon-a2lyr5auky7n{ right:auto; left:24px; }
.bon-a2lyr5auky7n.bon-zay5q1yt6nqb{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.bon-mi5t6u8v{
  padding:16px 20px; background:var(--spk5m-mcki); border-bottom:1px solid var(--dnn4t-uq);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.bon-rge42ccemsi{ width:10px; height:10px; border-radius:50%; background:var(--bxn-yh7); flex-shrink:0; }
.bon-k9bpvu7w{ flex:1; min-width:0; }
.bon-p1wmik2f{ font-size:16px; font-weight:600; color:var(--eb0-nzvr); margin:0 0 2px 0; }
.bon-voybcwpohm{ font-size:13px; color:var(--q0yp3-tx); margin:0; }
.bon-hi2jvkhrhcs{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--q0yp3-tx);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.bon-hi2jvkhrhcs:hover{ background:var(--ynl-eq); color:var(--eb0-nzvr); }
.bon-hi2jvkhrhcs:focus{ outline:2px solid var(--bxn-yh7); outline-offset:2px; }
.bon-hi2jvkhrhcs svg{ width:20px; height:20px; }

/* Body */
.bon-q3w3pf63pb63{
  flex:1; overflow-y:auto; padding:16px; background:var(--ynl-eq);
  display:flex; flex-direction:column; gap:12px;
}
.bon-q3w3pf63pb63::-webkit-scrollbar{ width:6px; }
.bon-q3w3pf63pb63::-webkit-scrollbar-track{ background:transparent; }
.bon-q3w3pf63pb63::-webkit-scrollbar-thumb{ background:var(--dnn4t-uq); border-radius:3px; }
.bon-q3w3pf63pb63::-webkit-scrollbar-thumb:hover{ background:var(--q0yp3-tx); }

/* Messages */
.bon-u6t2dekf2{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.bon-u6t2dekf2.bon-li3z0cb194{ flex-direction:row-reverse; }
.bon-nj8u2nt7sy{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.bon-nj8u2nt7sy a{ color:inherit; }
.bon-u6t2dekf2.bon-i2yzjbao .bon-nj8u2nt7sy{ background:var(--spk5m-mcki); color:var(--eb0-nzvr); border-bottom-left-radius:4px; }
.bon-u6t2dekf2.bon-li3z0cb194 .bon-nj8u2nt7sy{ background:var(--bxn-yh7); color:#fff; border-bottom-right-radius:4px; }
.bon-e1v8d93bw{ font-size:11px; color:var(--q0yp3-tx); margin-top:4px; display:block; }

/* Typing Indicator */
.bon-k5o0skhby{
  display:flex; gap:8px; padding:10px 14px; background:var(--spk5m-mcki);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.bon-rslmtt913012{ width:8px; height:8px; border-radius:50%; background:var(--q0yp3-tx); animation:typingDot 1.4s infinite; }
.bon-rslmtt913012:nth-child(2){ animation-delay:.2s; }
.bon-rslmtt913012: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) */
.bon-k8567o3q{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.bon-l2035z3gq8{
  border:0; border-radius:999px; padding:8px 12px; background:var(--bxn-yh7); 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(--owb-i8hg);
}
.bon-l2035z3gq8:is(:hover,:focus){ transform:translateY(-1px); }
a.bon-l2035z3gq8{ text-decoration:none; display:inline-block; }
a.bon-l2035z3gq8:link, a.bon-l2035z3gq8:visited{ color:#fff; }
a.bon-l2035z3gq8:hover, a.bon-l2035z3gq8:focus{ color:#fff; }

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

/* Footer */
.bon-af1ty6ki0w4{
  padding:16px; background:var(--spk5m-mcki); border-top:1px solid var(--dnn4t-uq);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.bon-yjpcz95w2{
  flex:1; padding:10px 14px; border:1px solid var(--dnn4t-uq); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--eb0-nzvr);
  background:var(--ynl-eq); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.bon-yjpcz95w2:focus{ border-color:var(--bxn-yh7); }
.bon-yjpcz95w2::placeholder{ color:var(--q0yp3-tx); }
.bon-yjpcz95w2.bon-nyg999cj8{ border-color:#c00; }
.bon-ddp91pda{
  width:40px; height:40px; min-width:40px; border:none; background:var(--bxn-yh7); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.bon-ddp91pda:disabled{ opacity:.5; cursor:not-allowed; }
.bon-ddp91pda:not(:disabled):hover{ transform:scale(1.05); }
.bon-ddp91pda:not(:disabled):active{ transform:scale(0.95); }
.bon-ddp91pda:focus{ outline:2px solid var(--bxn-yh7); outline-offset:2px; }
.bon-ddp91pda svg{ width:20px; height:20px; }

/* Character Counter */
.bon-fd5rpwxu{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--q0yp3-tx); }
.bon-fd5rpwxu.bon-oxhj7eam{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.bon-yj8yu2b1i{
  align-self:flex-start;
  max-width:75%;
  background: var(--spk5m-mcki);
  color: var(--eb0-nzvr);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--owb-i8hg);
}
.bon-a03hhx4yed{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.bon-eg0ria6hb4.bon-qffxznrv2xtm{
  background: transparent; color: var(--eb0-nzvr); border-color: var(--dnn4t-uq);
}
.bon-eg0ria6hb4.bon-qffxznrv2xtm:hover{
  background: var(--bxn-yh7); color:#fff; border-color: var(--bxn-yh7);
}

/* Mobile */
@media (max-width: 768px){
  .bon-m00d1ytpao{ bottom:16px; right:16px; }
  .bon-m00d1ytpao.bon-hf98mfd7p{ left:16px; }
  .bon-x547l05oc{ --rfgeb-kt0:60px; }
  .bon-a2lyr5auky7n{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--bugt-bhx0) var(--bugt-bhx0) 0 0; transform: translateY(100%);
  }
  .bon-a2lyr5auky7n.bon-zay5q1yt6nqb{ transform: translateY(0); }
  .bon-mi5t6u8v{ padding:20px; }
  .bon-af1ty6ki0w4{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.bon-m00d1ytpao :focus-visible{ outline:2px solid var(--bxn-yh7); outline-offset:2px; }

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