/* CSS Variables */
:root {
  --j71coo-gk3d: #4f46e5;
  --fl0hkd-r4n: #ffffff;
  --wudj-d7p: #f9fafb;
  --kbz85x-qr7: #0f172a;
  --jsbd-vk: #6b7280;
  --mzhc-xty: #e5e7eb;
  --f43k-aa: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --ep9a3-be: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --x41q-x2l: 16px;
  --yq7vdq-ru: 56px;
  --dhr8-m8lz: 12px;
  --rrmvp-cj: 999999;
}

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

/* Main Container */
.y42rckj5o {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--rrmvp-cj);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--kbz85x-qr7);
}
.y42rckj5o.gvrvq31 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.r517rf8 { display: flex; flex-direction: column-reverse; gap: var(--dhr8-m8lz); align-items: center; }
.h4gv_ec {
  width: var(--yq7vdq-ru); height: var(--yq7vdq-ru); min-width: var(--yq7vdq-ru); min-height: var(--yq7vdq-ru);
  border-radius: 50%; border: none; background: var(--j71coo-gk3d); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--f43k-aa);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.h4gv_ec:hover { transform: scale(1.05); box-shadow: var(--ep9a3-be); }
.h4gv_ec:active { transform: scale(0.95); }
.h4gv_ec:focus { outline: 2px solid var(--j71coo-gk3d); outline-offset: 2px; }
.h4gv_ec svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .h4gv_ec.ftjqba{ animation:none; }
  .h4gv_ec,.y10im1,.j_d02p{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.y10im1{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--fl0hkd-r4n); border-radius: var(--x41q-x2l); box-shadow: var(--ep9a3-be);
  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;
}
.y42rckj5o.gvrvq31 .y10im1{ right:auto; left:24px; }
.y10im1.rvh0qg{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.cp8suoo{
  padding:16px 20px; background:var(--fl0hkd-r4n); border-bottom:1px solid var(--mzhc-xty);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.ka2ob2k3{ width:10px; height:10px; border-radius:50%; background:var(--j71coo-gk3d); flex-shrink:0; }
.taxm3k{ flex:1; min-width:0; }
.tl69zd4pz{ font-size:16px; font-weight:600; color:var(--kbz85x-qr7); margin:0 0 2px 0; }
.a5yhkj6{ font-size:13px; color:var(--jsbd-vk); margin:0; }
.wnr4edtq{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--jsbd-vk);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.wnr4edtq:hover{ background:var(--wudj-d7p); color:var(--kbz85x-qr7); }
.wnr4edtq:focus{ outline:2px solid var(--j71coo-gk3d); outline-offset:2px; }
.wnr4edtq svg{ width:20px; height:20px; }

/* Body */
.bsrzxkrq{
  flex:1; overflow-y:auto; padding:16px; background:var(--wudj-d7p);
  display:flex; flex-direction:column; gap:12px;
}
.bsrzxkrq::-webkit-scrollbar{ width:6px; }
.bsrzxkrq::-webkit-scrollbar-track{ background:transparent; }
.bsrzxkrq::-webkit-scrollbar-thumb{ background:var(--mzhc-xty); border-radius:3px; }
.bsrzxkrq::-webkit-scrollbar-thumb:hover{ background:var(--jsbd-vk); }

/* Messages */
.j_d02p{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.j_d02p.fgljmz4e_m{ flex-direction:row-reverse; }
.mnczic{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.mnczic a{ color:inherit; }
.j_d02p.yayqy2vbdh .mnczic{ background:var(--fl0hkd-r4n); color:var(--kbz85x-qr7); border-bottom-left-radius:4px; }
.j_d02p.fgljmz4e_m .mnczic{ background:var(--j71coo-gk3d); color:#fff; border-bottom-right-radius:4px; }
.laopl7cj{ font-size:11px; color:var(--jsbd-vk); margin-top:4px; display:block; }

/* Typing Indicator */
.y3y435xajk{
  display:flex; gap:8px; padding:10px 14px; background:var(--fl0hkd-r4n);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.dec3suap{ width:8px; height:8px; border-radius:50%; background:var(--jsbd-vk); animation:typingDot 1.4s infinite; }
.dec3suap:nth-child(2){ animation-delay:.2s; }
.dec3suap: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) */
.pr0ku3iop{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.nud5zevcwi{
  border:0; border-radius:999px; padding:8px 12px; background:var(--j71coo-gk3d); 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(--f43k-aa);
}
.nud5zevcwi:is(:hover,:focus){ transform:translateY(-1px); }
a.nud5zevcwi{ text-decoration:none; display:inline-block; }
a.nud5zevcwi:link, a.nud5zevcwi:visited{ color:#fff; }
a.nud5zevcwi:hover, a.nud5zevcwi:focus{ color:#fff; }

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

/* Footer */
.cxu7kajyoe{
  padding:16px; background:var(--fl0hkd-r4n); border-top:1px solid var(--mzhc-xty);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.i3p_dt{
  flex:1; padding:10px 14px; border:1px solid var(--mzhc-xty); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--kbz85x-qr7);
  background:var(--wudj-d7p); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.i3p_dt:focus{ border-color:var(--j71coo-gk3d); }
.i3p_dt::placeholder{ color:var(--jsbd-vk); }
.i3p_dt.md8yl2dgez{ border-color:#c00; }
.mhbrkko0m{
  width:40px; height:40px; min-width:40px; border:none; background:var(--j71coo-gk3d); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.mhbrkko0m:disabled{ opacity:.5; cursor:not-allowed; }
.mhbrkko0m:not(:disabled):hover{ transform:scale(1.05); }
.mhbrkko0m:not(:disabled):active{ transform:scale(0.95); }
.mhbrkko0m:focus{ outline:2px solid var(--j71coo-gk3d); outline-offset:2px; }
.mhbrkko0m svg{ width:20px; height:20px; }

/* Character Counter */
.iypmhl{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--jsbd-vk); }
.iypmhl.u7wo5bs9e8{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.bz_fzow{
  align-self:flex-start;
  max-width:75%;
  background: var(--fl0hkd-r4n);
  color: var(--kbz85x-qr7);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--f43k-aa);
}
.rf6ion1kv4{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.bagadlb.y5gjwci{
  background: transparent; color: var(--kbz85x-qr7); border-color: var(--mzhc-xty);
}
.bagadlb.y5gjwci:hover{
  background: var(--j71coo-gk3d); color:#fff; border-color: var(--j71coo-gk3d);
}

/* Mobile */
@media (max-width: 768px){
  .y42rckj5o{ bottom:16px; right:16px; }
  .y42rckj5o.gvrvq31{ left:16px; }
  .h4gv_ec{ --yq7vdq-ru:60px; }
  .y10im1{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--x41q-x2l) var(--x41q-x2l) 0 0; transform: translateY(100%);
  }
  .y10im1.rvh0qg{ transform: translateY(0); }
  .cp8suoo{ padding:20px; }
  .cxu7kajyoe{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.y42rckj5o :focus-visible{ outline:2px solid var(--j71coo-gk3d); outline-offset:2px; }

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