/* CSS Variables */
:root {
  --iyi-oix: #4f46e5;
  --ias-fcat: #ffffff;
  --px1z-vl6: #f9fafb;
  --njobfh-moct: #0f172a;
  --zgs-ok0j: #6b7280;
  --m9p9h5-x03: #e5e7eb;
  --gk6et-aoq7: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --av1f-sc: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --ucl-qg3l: 16px;
  --brt72-q0m: 56px;
  --tbbln-oo: 12px;
  --hxjhzf-idx: 999999;
}

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

/* Main Container */
.ph9bYf7g {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--hxjhzf-idx);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--njobfh-moct);
}
.ph9bYf7g.a0suU81e { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.tmL34 { display: flex; flex-direction: column-reverse; gap: var(--tbbln-oo); align-items: center; }
.wgyZpu {
  width: var(--brt72-q0m); height: var(--brt72-q0m); min-width: var(--brt72-q0m); min-height: var(--brt72-q0m);
  border-radius: 50%; border: none; background: var(--iyi-oix); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--gk6et-aoq7);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.wgyZpu:hover { transform: scale(1.05); box-shadow: var(--av1f-sc); }
.wgyZpu:active { transform: scale(0.95); }
.wgyZpu:focus { outline: 2px solid var(--iyi-oix); outline-offset: 2px; }
.wgyZpu svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .wgyZpu.kytYdd{ animation:none; }
  .wgyZpu,.maHdp,.xoG7m{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.maHdp{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--ias-fcat); border-radius: var(--ucl-qg3l); box-shadow: var(--av1f-sc);
  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;
}
.ph9bYf7g.a0suU81e .maHdp{ right:auto; left:24px; }
.maHdp.egsF37{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.dmdMjk{
  padding:16px 20px; background:var(--ias-fcat); border-bottom:1px solid var(--m9p9h5-x03);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.tqy1Hs9x{ width:10px; height:10px; border-radius:50%; background:var(--iyi-oix); flex-shrink:0; }
.kcGtn{ flex:1; min-width:0; }
.d39Q88r{ font-size:16px; font-weight:600; color:var(--njobfh-moct); margin:0 0 2px 0; }
.vrwzIt2h{ font-size:13px; color:var(--zgs-ok0j); margin:0; }
.rnsY2ve{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--zgs-ok0j);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.rnsY2ve:hover{ background:var(--px1z-vl6); color:var(--njobfh-moct); }
.rnsY2ve:focus{ outline:2px solid var(--iyi-oix); outline-offset:2px; }
.rnsY2ve svg{ width:20px; height:20px; }

/* Body */
.haurFzq0{
  flex:1; overflow-y:auto; padding:16px; background:var(--px1z-vl6);
  display:flex; flex-direction:column; gap:12px;
}
.haurFzq0::-webkit-scrollbar{ width:6px; }
.haurFzq0::-webkit-scrollbar-track{ background:transparent; }
.haurFzq0::-webkit-scrollbar-thumb{ background:var(--m9p9h5-x03); border-radius:3px; }
.haurFzq0::-webkit-scrollbar-thumb:hover{ background:var(--zgs-ok0j); }

/* Messages */
.xoG7m{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.xoG7m.jkfZt5{ flex-direction:row-reverse; }
.iyiHdwh{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.iyiHdwh a{ color:inherit; }
.xoG7m.zulG2jr .iyiHdwh{ background:var(--ias-fcat); color:var(--njobfh-moct); border-bottom-left-radius:4px; }
.xoG7m.jkfZt5 .iyiHdwh{ background:var(--iyi-oix); color:#fff; border-bottom-right-radius:4px; }
.t9L8i{ font-size:11px; color:var(--zgs-ok0j); margin-top:4px; display:block; }

/* Typing Indicator */
.xgjnNf3f{
  display:flex; gap:8px; padding:10px 14px; background:var(--ias-fcat);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.y8o4Fc8r{ width:8px; height:8px; border-radius:50%; background:var(--zgs-ok0j); animation:typingDot 1.4s infinite; }
.y8o4Fc8r:nth-child(2){ animation-delay:.2s; }
.y8o4Fc8r: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) */
.y6M7l{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.ii9Fc6{
  border:0; border-radius:999px; padding:8px 12px; background:var(--iyi-oix); 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(--gk6et-aoq7);
}
.ii9Fc6:is(:hover,:focus){ transform:translateY(-1px); }
a.ii9Fc6{ text-decoration:none; display:inline-block; }
a.ii9Fc6:link, a.ii9Fc6:visited{ color:#fff; }
a.ii9Fc6:hover, a.ii9Fc6:focus{ color:#fff; }

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

/* Footer */
.wvl9Bo7s{
  padding:16px; background:var(--ias-fcat); border-top:1px solid var(--m9p9h5-x03);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.miuEh3{
  flex:1; padding:10px 14px; border:1px solid var(--m9p9h5-x03); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--njobfh-moct);
  background:var(--px1z-vl6); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.miuEh3:focus{ border-color:var(--iyi-oix); }
.miuEh3::placeholder{ color:var(--zgs-ok0j); }
.miuEh3.z9iLqkh{ border-color:#c00; }
.srfNeum{
  width:40px; height:40px; min-width:40px; border:none; background:var(--iyi-oix); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.srfNeum:disabled{ opacity:.5; cursor:not-allowed; }
.srfNeum:not(:disabled):hover{ transform:scale(1.05); }
.srfNeum:not(:disabled):active{ transform:scale(0.95); }
.srfNeum:focus{ outline:2px solid var(--iyi-oix); outline-offset:2px; }
.srfNeum svg{ width:20px; height:20px; }

/* Character Counter */
.rhW7m{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--zgs-ok0j); }
.rhW7m.s88Rct{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.vv9tPafe{
  align-self:flex-start;
  max-width:75%;
  background: var(--ias-fcat);
  color: var(--njobfh-moct);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--gk6et-aoq7);
}
.dws0Enz8{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.ltk1Pvlv.xu8Iei{
  background: transparent; color: var(--njobfh-moct); border-color: var(--m9p9h5-x03);
}
.ltk1Pvlv.xu8Iei:hover{
  background: var(--iyi-oix); color:#fff; border-color: var(--iyi-oix);
}

/* Mobile */
@media (max-width: 768px){
  .ph9bYf7g{ bottom:16px; right:16px; }
  .ph9bYf7g.a0suU81e{ left:16px; }
  .wgyZpu{ --brt72-q0m:60px; }
  .maHdp{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--ucl-qg3l) var(--ucl-qg3l) 0 0; transform: translateY(100%);
  }
  .maHdp.egsF37{ transform: translateY(0); }
  .dmdMjk{ padding:20px; }
  .wvl9Bo7s{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.ph9bYf7g :focus-visible{ outline:2px solid var(--iyi-oix); outline-offset:2px; }

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