/* CSS Variables */
:root {
  --h3xu-bi4i: #4f46e5;
  --xhen6o-wqn: #ffffff;
  --ziyzvl-q9: #f9fafb;
  --am4s-l6q0: #0f172a;
  --tzs-b4: #6b7280;
  --cjf-zd40: #e5e7eb;
  --b01y-tv6: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --qd6s-w2c: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --xoaru3-pc: 16px;
  --mveun-pum9: 56px;
  --g48th-ie8j: 12px;
  --w0oh-evtk: 999999;
}

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

/* Main Container */
.om7678ynoj3mg4d {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--w0oh-evtk);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--am4s-l6q0);
}
.om7678ynoj3mg4d.ve23wuw7xi3v-4 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.ambnd3b5y-ec2dr { display: flex; flex-direction: column-reverse; gap: var(--g48th-ie8j); align-items: center; }
.n7txbi03wdrnvycj5d {
  width: var(--mveun-pum9); height: var(--mveun-pum9); min-width: var(--mveun-pum9); min-height: var(--mveun-pum9);
  border-radius: 50%; border: none; background: var(--h3xu-bi4i); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--b01y-tv6);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.n7txbi03wdrnvycj5d:hover { transform: scale(1.05); box-shadow: var(--qd6s-w2c); }
.n7txbi03wdrnvycj5d:active { transform: scale(0.95); }
.n7txbi03wdrnvycj5d:focus { outline: 2px solid var(--h3xu-bi4i); outline-offset: 2px; }
.n7txbi03wdrnvycj5d svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .n7txbi03wdrnvycj5d.obnq122q5nhf5sa3k{ animation:none; }
  .n7txbi03wdrnvycj5d,.c-t400fww57de6lptn,.d8d6kg-wp2tpjbk{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.c-t400fww57de6lptn{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--xhen6o-wqn); border-radius: var(--xoaru3-pc); box-shadow: var(--qd6s-w2c);
  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;
}
.om7678ynoj3mg4d.ve23wuw7xi3v-4 .c-t400fww57de6lptn{ right:auto; left:24px; }
.c-t400fww57de6lptn.jlmlhgbxrx418zdw{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.pu4rzyp6j7c5--0{
  padding:16px 20px; background:var(--xhen6o-wqn); border-bottom:1px solid var(--cjf-zd40);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.qwfz0ektm4wk054ax{ width:10px; height:10px; border-radius:50%; background:var(--h3xu-bi4i); flex-shrink:0; }
.vz7a5ezd6kgy4j{ flex:1; min-width:0; }
.gjnfhqxslo56ax60{ font-size:16px; font-weight:600; color:var(--am4s-l6q0); margin:0 0 2px 0; }
.gna7maw0tb3frjv9b{ font-size:13px; color:var(--tzs-b4); margin:0; }
.mo1atjjieap07us{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--tzs-b4);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.mo1atjjieap07us:hover{ background:var(--ziyzvl-q9); color:var(--am4s-l6q0); }
.mo1atjjieap07us:focus{ outline:2px solid var(--h3xu-bi4i); outline-offset:2px; }
.mo1atjjieap07us svg{ width:20px; height:20px; }

/* Body */
.ow9u9n9ahi27c4{
  flex:1; overflow-y:auto; padding:16px; background:var(--ziyzvl-q9);
  display:flex; flex-direction:column; gap:12px;
}
.ow9u9n9ahi27c4::-webkit-scrollbar{ width:6px; }
.ow9u9n9ahi27c4::-webkit-scrollbar-track{ background:transparent; }
.ow9u9n9ahi27c4::-webkit-scrollbar-thumb{ background:var(--cjf-zd40); border-radius:3px; }
.ow9u9n9ahi27c4::-webkit-scrollbar-thumb:hover{ background:var(--tzs-b4); }

/* Messages */
.d8d6kg-wp2tpjbk{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.d8d6kg-wp2tpjbk.o66zg8tyt2qlymz3{ flex-direction:row-reverse; }
.sekfepfgsobiiqs-3u{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.sekfepfgsobiiqs-3u a{ color:inherit; }
.d8d6kg-wp2tpjbk.br-w1db2j840gi .sekfepfgsobiiqs-3u{ background:var(--xhen6o-wqn); color:var(--am4s-l6q0); border-bottom-left-radius:4px; }
.d8d6kg-wp2tpjbk.o66zg8tyt2qlymz3 .sekfepfgsobiiqs-3u{ background:var(--h3xu-bi4i); color:#fff; border-bottom-right-radius:4px; }
.ddz30imaws3i3h69{ font-size:11px; color:var(--tzs-b4); margin-top:4px; display:block; }

/* Typing Indicator */
.jtp84nxbp-929jgma{
  display:flex; gap:8px; padding:10px 14px; background:var(--xhen6o-wqn);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.x4i-0avu-q1c7139qw{ width:8px; height:8px; border-radius:50%; background:var(--tzs-b4); animation:typingDot 1.4s infinite; }
.x4i-0avu-q1c7139qw:nth-child(2){ animation-delay:.2s; }
.x4i-0avu-q1c7139qw: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) */
.mibiq-c9il462itna{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.rptalvszns9ec-diwv{
  border:0; border-radius:999px; padding:8px 12px; background:var(--h3xu-bi4i); 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(--b01y-tv6);
}
.rptalvszns9ec-diwv:is(:hover,:focus){ transform:translateY(-1px); }
a.rptalvszns9ec-diwv{ text-decoration:none; display:inline-block; }
a.rptalvszns9ec-diwv:link, a.rptalvszns9ec-diwv:visited{ color:#fff; }
a.rptalvszns9ec-diwv:hover, a.rptalvszns9ec-diwv:focus{ color:#fff; }

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

/* Footer */
.asxh9ziwvydhlqaf6k{
  padding:16px; background:var(--xhen6o-wqn); border-top:1px solid var(--cjf-zd40);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.b6bpo2l7f0bs9oitt{
  flex:1; padding:10px 14px; border:1px solid var(--cjf-zd40); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--am4s-l6q0);
  background:var(--ziyzvl-q9); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.b6bpo2l7f0bs9oitt:focus{ border-color:var(--h3xu-bi4i); }
.b6bpo2l7f0bs9oitt::placeholder{ color:var(--tzs-b4); }
.b6bpo2l7f0bs9oitt.t1p87m4dhcf3t1z{ border-color:#c00; }
.vmhjc8v178yb99ob64{
  width:40px; height:40px; min-width:40px; border:none; background:var(--h3xu-bi4i); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.vmhjc8v178yb99ob64:disabled{ opacity:.5; cursor:not-allowed; }
.vmhjc8v178yb99ob64:not(:disabled):hover{ transform:scale(1.05); }
.vmhjc8v178yb99ob64:not(:disabled):active{ transform:scale(0.95); }
.vmhjc8v178yb99ob64:focus{ outline:2px solid var(--h3xu-bi4i); outline-offset:2px; }
.vmhjc8v178yb99ob64 svg{ width:20px; height:20px; }

/* Character Counter */
.i6rgrqmp-173d19{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--tzs-b4); }
.i6rgrqmp-173d19.gxc2in6xvpxqh0yoh1{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.phec1bm4y-csgq{
  align-self:flex-start;
  max-width:75%;
  background: var(--xhen6o-wqn);
  color: var(--am4s-l6q0);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--b01y-tv6);
}
.rgo1xyzaft-8uz63{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.gt7i5zb6raccv4tivn.qi0oo7f3ezaqob{
  background: transparent; color: var(--am4s-l6q0); border-color: var(--cjf-zd40);
}
.gt7i5zb6raccv4tivn.qi0oo7f3ezaqob:hover{
  background: var(--h3xu-bi4i); color:#fff; border-color: var(--h3xu-bi4i);
}

/* Mobile */
@media (max-width: 768px){
  .om7678ynoj3mg4d{ bottom:16px; right:16px; }
  .om7678ynoj3mg4d.ve23wuw7xi3v-4{ left:16px; }
  .n7txbi03wdrnvycj5d{ --mveun-pum9:60px; }
  .c-t400fww57de6lptn{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--xoaru3-pc) var(--xoaru3-pc) 0 0; transform: translateY(100%);
  }
  .c-t400fww57de6lptn.jlmlhgbxrx418zdw{ transform: translateY(0); }
  .pu4rzyp6j7c5--0{ padding:20px; }
  .asxh9ziwvydhlqaf6k{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.om7678ynoj3mg4d :focus-visible{ outline:2px solid var(--h3xu-bi4i); outline-offset:2px; }

/* SR-only */
.u3anfppo-9g3ur5{
  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 */
.at9x4j0yp3br7eq-g{ display:none !important; }
