/* CSS Variables */
:root {
  --hhiyas-qt7: #4f46e5;
  --ld4-c6: #ffffff;
  --ngxo-wd6: #f9fafb;
  --env-u5nb: #0f172a;
  --xerw5-t7: #6b7280;
  --ybs-du: #e5e7eb;
  --zhjr-oo: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --nhpv-h1: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --p3hg-ikbj: 16px;
  --ro8sp-qi: 56px;
  --avyp3-ios: 12px;
  --oqy-u5: 999999;
}

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

/* Main Container */
.txc_pa {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--oqy-u5);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--env-u5nb);
}
.txc_pa.hgahnqy8t { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.n_cq7q { display: flex; flex-direction: column-reverse; gap: var(--avyp3-ios); align-items: center; }
.oj375w3nwa {
  width: var(--ro8sp-qi); height: var(--ro8sp-qi); min-width: var(--ro8sp-qi); min-height: var(--ro8sp-qi);
  border-radius: 50%; border: none; background: var(--hhiyas-qt7); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--zhjr-oo);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.oj375w3nwa:hover { transform: scale(1.05); box-shadow: var(--nhpv-h1); }
.oj375w3nwa:active { transform: scale(0.95); }
.oj375w3nwa:focus { outline: 2px solid var(--hhiyas-qt7); outline-offset: 2px; }
.oj375w3nwa svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .oj375w3nwa.dtf3uufp6i{ animation:none; }
  .oj375w3nwa,.xqtu_pzi3,.pldj2s_p{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.xqtu_pzi3{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--ld4-c6); border-radius: var(--p3hg-ikbj); box-shadow: var(--nhpv-h1);
  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;
}
.txc_pa.hgahnqy8t .xqtu_pzi3{ right:auto; left:24px; }
.xqtu_pzi3.f32a331{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.kj1m1dnh{
  padding:16px 20px; background:var(--ld4-c6); border-bottom:1px solid var(--ybs-du);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.yi2pm1xly{ width:10px; height:10px; border-radius:50%; background:var(--hhiyas-qt7); flex-shrink:0; }
.zy_xnln{ flex:1; min-width:0; }
.ekg8__6a34{ font-size:16px; font-weight:600; color:var(--env-u5nb); margin:0 0 2px 0; }
.ehdh7_v{ font-size:13px; color:var(--xerw5-t7); margin:0; }
.xew3nh4ov{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--xerw5-t7);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.xew3nh4ov:hover{ background:var(--ngxo-wd6); color:var(--env-u5nb); }
.xew3nh4ov:focus{ outline:2px solid var(--hhiyas-qt7); outline-offset:2px; }
.xew3nh4ov svg{ width:20px; height:20px; }

/* Body */
.ghgfbi{
  flex:1; overflow-y:auto; padding:16px; background:var(--ngxo-wd6);
  display:flex; flex-direction:column; gap:12px;
}
.ghgfbi::-webkit-scrollbar{ width:6px; }
.ghgfbi::-webkit-scrollbar-track{ background:transparent; }
.ghgfbi::-webkit-scrollbar-thumb{ background:var(--ybs-du); border-radius:3px; }
.ghgfbi::-webkit-scrollbar-thumb:hover{ background:var(--xerw5-t7); }

/* Messages */
.pldj2s_p{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.pldj2s_p.pept4d{ flex-direction:row-reverse; }
.o5srgn{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.o5srgn a{ color:inherit; }
.pldj2s_p.q45mkm .o5srgn{ background:var(--ld4-c6); color:var(--env-u5nb); border-bottom-left-radius:4px; }
.pldj2s_p.pept4d .o5srgn{ background:var(--hhiyas-qt7); color:#fff; border-bottom-right-radius:4px; }
.jz0ifdn2eg{ font-size:11px; color:var(--xerw5-t7); margin-top:4px; display:block; }

/* Typing Indicator */
.sg7gufxf{
  display:flex; gap:8px; padding:10px 14px; background:var(--ld4-c6);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.cxpib_d{ width:8px; height:8px; border-radius:50%; background:var(--xerw5-t7); animation:typingDot 1.4s infinite; }
.cxpib_d:nth-child(2){ animation-delay:.2s; }
.cxpib_d: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) */
.elrmlhua2{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.a44tse4{
  border:0; border-radius:999px; padding:8px 12px; background:var(--hhiyas-qt7); 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(--zhjr-oo);
}
.a44tse4:is(:hover,:focus){ transform:translateY(-1px); }
a.a44tse4{ text-decoration:none; display:inline-block; }
a.a44tse4:link, a.a44tse4:visited{ color:#fff; }
a.a44tse4:hover, a.a44tse4:focus{ color:#fff; }

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

/* Footer */
.v12h2y0{
  padding:16px; background:var(--ld4-c6); border-top:1px solid var(--ybs-du);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.avwgigkav{
  flex:1; padding:10px 14px; border:1px solid var(--ybs-du); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--env-u5nb);
  background:var(--ngxo-wd6); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.avwgigkav:focus{ border-color:var(--hhiyas-qt7); }
.avwgigkav::placeholder{ color:var(--xerw5-t7); }
.avwgigkav.pdfkm0zat{ border-color:#c00; }
.qaq4psu{
  width:40px; height:40px; min-width:40px; border:none; background:var(--hhiyas-qt7); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.qaq4psu:disabled{ opacity:.5; cursor:not-allowed; }
.qaq4psu:not(:disabled):hover{ transform:scale(1.05); }
.qaq4psu:not(:disabled):active{ transform:scale(0.95); }
.qaq4psu:focus{ outline:2px solid var(--hhiyas-qt7); outline-offset:2px; }
.qaq4psu svg{ width:20px; height:20px; }

/* Character Counter */
.vcj62xhq3{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--xerw5-t7); }
.vcj62xhq3.fugc_fomf{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.lfrymk4ccd{
  align-self:flex-start;
  max-width:75%;
  background: var(--ld4-c6);
  color: var(--env-u5nb);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--zhjr-oo);
}
.v4c0h_j78{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.r30zbiro_j.gui55fu{
  background: transparent; color: var(--env-u5nb); border-color: var(--ybs-du);
}
.r30zbiro_j.gui55fu:hover{
  background: var(--hhiyas-qt7); color:#fff; border-color: var(--hhiyas-qt7);
}

/* Mobile */
@media (max-width: 768px){
  .txc_pa{ bottom:16px; right:16px; }
  .txc_pa.hgahnqy8t{ left:16px; }
  .oj375w3nwa{ --ro8sp-qi:60px; }
  .xqtu_pzi3{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--p3hg-ikbj) var(--p3hg-ikbj) 0 0; transform: translateY(100%);
  }
  .xqtu_pzi3.f32a331{ transform: translateY(0); }
  .kj1m1dnh{ padding:20px; }
  .v12h2y0{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.txc_pa :focus-visible{ outline:2px solid var(--hhiyas-qt7); outline-offset:2px; }

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