/* CSS Variables */
:root {
  --n7p2-xgyt: #4f46e5;
  --u97g-dxr9: #ffffff;
  --hi2fg-iw: #f9fafb;
  --fvy-cokh: #0f172a;
  --iswwzp-xe: #6b7280;
  --jyv3-sbp: #e5e7eb;
  --bpia-unn3: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --cvy-brl: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --bnwj-jh4r: 16px;
  --lkg-e065: 56px;
  --q8kg-dgl: 12px;
  --wzt03c-lq: 999999;
}

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

/* Main Container */
.p2oTwa {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--wzt03c-lq);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--fvy-cokh);
}
.p2oTwa.jet0Afzm { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.wnSto { display: flex; flex-direction: column-reverse; gap: var(--q8kg-dgl); align-items: center; }
.ofrFi1 {
  width: var(--lkg-e065); height: var(--lkg-e065); min-width: var(--lkg-e065); min-height: var(--lkg-e065);
  border-radius: 50%; border: none; background: var(--n7p2-xgyt); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--bpia-unn3);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.ofrFi1:hover { transform: scale(1.05); box-shadow: var(--cvy-brl); }
.ofrFi1:active { transform: scale(0.95); }
.ofrFi1:focus { outline: 2px solid var(--n7p2-xgyt); outline-offset: 2px; }
.ofrFi1 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .ofrFi1.poZe4{ animation:none; }
  .ofrFi1,.h2gVvkn,.u8Fzl{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.h2gVvkn{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--u97g-dxr9); border-radius: var(--bnwj-jh4r); box-shadow: var(--cvy-brl);
  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;
}
.p2oTwa.jet0Afzm .h2gVvkn{ right:auto; left:24px; }
.h2gVvkn.dhagV55v{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.w0maX8nd{
  padding:16px 20px; background:var(--u97g-dxr9); border-bottom:1px solid var(--jyv3-sbp);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.slvSp9p{ width:10px; height:10px; border-radius:50%; background:var(--n7p2-xgyt); flex-shrink:0; }
.yhnxLaoy{ flex:1; min-width:0; }
.mo4Nqm{ font-size:16px; font-weight:600; color:var(--fvy-cokh); margin:0 0 2px 0; }
.cf6Y9h{ font-size:13px; color:var(--iswwzp-xe); margin:0; }
.x9eRzh3{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--iswwzp-xe);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.x9eRzh3:hover{ background:var(--hi2fg-iw); color:var(--fvy-cokh); }
.x9eRzh3:focus{ outline:2px solid var(--n7p2-xgyt); outline-offset:2px; }
.x9eRzh3 svg{ width:20px; height:20px; }

/* Body */
.p5zJroy{
  flex:1; overflow-y:auto; padding:16px; background:var(--hi2fg-iw);
  display:flex; flex-direction:column; gap:12px;
}
.p5zJroy::-webkit-scrollbar{ width:6px; }
.p5zJroy::-webkit-scrollbar-track{ background:transparent; }
.p5zJroy::-webkit-scrollbar-thumb{ background:var(--jyv3-sbp); border-radius:3px; }
.p5zJroy::-webkit-scrollbar-thumb:hover{ background:var(--iswwzp-xe); }

/* Messages */
.u8Fzl{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.u8Fzl.uqq1Wi09{ flex-direction:row-reverse; }
.iqhBuul{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.iqhBuul a{ color:inherit; }
.u8Fzl.vpYd5 .iqhBuul{ background:var(--u97g-dxr9); color:var(--fvy-cokh); border-bottom-left-radius:4px; }
.u8Fzl.uqq1Wi09 .iqhBuul{ background:var(--n7p2-xgyt); color:#fff; border-bottom-right-radius:4px; }
.ehc6Dc96{ font-size:11px; color:var(--iswwzp-xe); margin-top:4px; display:block; }

/* Typing Indicator */
.hoskZ74n{
  display:flex; gap:8px; padding:10px 14px; background:var(--u97g-dxr9);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.c36Kwfq{ width:8px; height:8px; border-radius:50%; background:var(--iswwzp-xe); animation:typingDot 1.4s infinite; }
.c36Kwfq:nth-child(2){ animation-delay:.2s; }
.c36Kwfq: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) */
.yevBj9{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.niCd1{
  border:0; border-radius:999px; padding:8px 12px; background:var(--n7p2-xgyt); 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(--bpia-unn3);
}
.niCd1:is(:hover,:focus){ transform:translateY(-1px); }
a.niCd1{ text-decoration:none; display:inline-block; }
a.niCd1:link, a.niCd1:visited{ color:#fff; }
a.niCd1:hover, a.niCd1:focus{ color:#fff; }

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

/* Footer */
.impE2fk{
  padding:16px; background:var(--u97g-dxr9); border-top:1px solid var(--jyv3-sbp);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.myUq2{
  flex:1; padding:10px 14px; border:1px solid var(--jyv3-sbp); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--fvy-cokh);
  background:var(--hi2fg-iw); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.myUq2:focus{ border-color:var(--n7p2-xgyt); }
.myUq2::placeholder{ color:var(--iswwzp-xe); }
.myUq2.jiecZuny{ border-color:#c00; }
.wdmHue{
  width:40px; height:40px; min-width:40px; border:none; background:var(--n7p2-xgyt); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.wdmHue:disabled{ opacity:.5; cursor:not-allowed; }
.wdmHue:not(:disabled):hover{ transform:scale(1.05); }
.wdmHue:not(:disabled):active{ transform:scale(0.95); }
.wdmHue:focus{ outline:2px solid var(--n7p2-xgyt); outline-offset:2px; }
.wdmHue svg{ width:20px; height:20px; }

/* Character Counter */
.gg6xBy3p{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--iswwzp-xe); }
.gg6xBy3p.kg7Lp8{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.pu56E74p{
  align-self:flex-start;
  max-width:75%;
  background: var(--u97g-dxr9);
  color: var(--fvy-cokh);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--bpia-unn3);
}
.sm7F1tt{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.lq51Stnb.pgkE075{
  background: transparent; color: var(--fvy-cokh); border-color: var(--jyv3-sbp);
}
.lq51Stnb.pgkE075:hover{
  background: var(--n7p2-xgyt); color:#fff; border-color: var(--n7p2-xgyt);
}

/* Mobile */
@media (max-width: 768px){
  .p2oTwa{ bottom:16px; right:16px; }
  .p2oTwa.jet0Afzm{ left:16px; }
  .ofrFi1{ --lkg-e065:60px; }
  .h2gVvkn{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--bnwj-jh4r) var(--bnwj-jh4r) 0 0; transform: translateY(100%);
  }
  .h2gVvkn.dhagV55v{ transform: translateY(0); }
  .w0maX8nd{ padding:20px; }
  .impE2fk{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.p2oTwa :focus-visible{ outline:2px solid var(--n7p2-xgyt); outline-offset:2px; }

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