/* Go4Social GIO — scoped customer-facing widget */
.g4s-gio-root,.g4s-gio-root * { box-sizing:border-box; }
.g4s-gio-root { --gio-purple:#290185; --gio-blue:#0042fb; font-family:Inter,system-ui,-apple-system,'Segoe UI',Tahoma,Arial,sans-serif; font-size:14px; direction:ltr; position:fixed; bottom:22px; right:26px; z-index:2147482000; color:#211746; line-height:1.5; }
.g4s-gio-root[dir=rtl] { direction:rtl; right:26px; left:auto; }
.g4s-gio-root [hidden] { display:none!important; }
.g4s-gio-root button,.g4s-gio-root input,.g4s-gio-root textarea { font:inherit; letter-spacing:normal; }
.g4s-gio-root button { cursor:pointer; }
.g4s-gio-root button:focus-visible,.g4s-gio-root input:focus-visible,.g4s-gio-root textarea:focus-visible { outline:3px solid #8da5ff; outline-offset:2px; }
.g4s-gio-launch { display:flex; margin-left:auto; align-items:center; justify-content:center; width:66px; height:66px; border:0; border-radius:23px; background:linear-gradient(135deg,var(--gio-purple),var(--gio-blue)); color:white; box-shadow:0 14px 32px rgba(41,1,133,.26), inset 0 1px 0 rgba(255,255,255,.2); transition:transform .18s ease,box-shadow .18s ease; position:relative; }
.g4s-gio-launch:hover { transform:translateY(-3px); box-shadow:0 19px 38px rgba(41,1,133,.3); }
.g4s-gio-launch svg { width:30px; height:30px; }
.g4s-gio-launch-dot { position:absolute; top:-4px; right:-3px; border:3px solid white; border-radius:50%; width:16px; height:16px; background:#15bf83; }
.g4s-gio-panel { background:#fff; border:1px solid rgba(63,46,121,.1); border-radius:23px; overflow:hidden; width:min(418px,calc(100vw - 25px)); height:min(675px,calc(100dvh - 110px)); position:absolute; right:0; bottom:80px; display:flex; flex-direction:column; box-shadow:0 23px 75px rgba(38,15,92,.18),0 4px 15px rgba(38,15,92,.07); }
.g4s-gio-root[dir=rtl] .g4s-gio-panel { right:0; }
.g4s-gio-head { flex-shrink:0; display:flex; align-items:center; gap:11px; color:white; background:linear-gradient(120deg,#290185 0%,var(--gio-purple) 52%,var(--gio-blue) 130%); padding:16px 16px 17px 18px; position:relative; isolation:isolate; }
.g4s-gio-head:before { content:''; position:absolute; width:210px; height:210px; right:-78px; top:-145px; background:rgba(255,255,255,.08); border-radius:50%; pointer-events:none; z-index:-1; }
.g4s-gio-brandmark { display:grid; place-items:center; position:relative; width:48px; height:48px; flex:0 0 48px; border-radius:15px; background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.23); font-weight:900; font-size:24px; letter-spacing:-2px; }
.g4s-gio-brandmark span { font-size:13px; margin-left:1px; color:#cce5ff; transform:translateY(-6px); }
.g4s-gio-brandmark.g4s-gio-haslogo { background:white; padding:4px; }
.g4s-gio-brandmark img { max-height:100%; max-width:100%; object-fit:contain; }
.g4s-gio-headcopy { flex:1; min-width:0; }
.g4s-gio-headcopy strong { font-size:18px; font-weight:800; letter-spacing:-.3px; display:block; }
.g4s-gio-headcopy strong small { font-size:10px; font-weight:500; opacity:.78; letter-spacing:0; }
.g4s-gio-headcopy>span { display:flex; gap:5px; align-items:center; color:#e2dbff; font-size:11px; }
.g4s-gio-headcopy>span:before { display:inline-block; content:''; width:7px; height:7px; flex-shrink:0; border-radius:50%; background:#ffcf69; }
.g4s-gio-team-online .g4s-gio-headcopy>span:before { background:#4bf0a6; }
.g4s-gio-headbtn { flex:0 0 auto; height:30px; width:30px; border:0; background:rgba(255,255,255,.13); color:white; border-radius:9px; font-size:22px!important; display:grid; place-items:center; line-height:1!important; padding:0; }
.g4s-gio-headbtn:hover { background:rgba(255,255,255,.25); }
.g4s-gio-feed { min-height:0; flex:1; background:linear-gradient(180deg,#faf9ff,#fefeff 25%); padding:19px 15px 17px; display:flex; flex-direction:column; gap:14px; overflow-y:auto; overscroll-behavior:contain; scrollbar-color:#d3cdee transparent; scrollbar-width:thin; }
.g4s-gio-msg { display:flex; align-items:end; gap:9px; max-width:94%; animation:gio-appear .19s ease-out; }
.g4s-gio-msg-bot { align-self:flex-start; }
.g4s-gio-msg-visitor { align-self:flex-end; flex-direction:row-reverse; }
.g4s-gio-mini-avatar { flex:0 0 27px; width:27px; height:27px; border-radius:10px; display:grid; place-items:center; background:#eae3ff; color:#44219b; font-size:11px; font-weight:900; }
.g4s-gio-bubble { padding:11px 14px; border-radius:16px 16px 16px 5px; background:white; border:1px solid #ece8f6; font-weight:500; color:#3d3551; box-shadow:0 3px 10px rgba(41,20,107,.035); line-height:1.65; white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; }
.g4s-gio-msg-visitor .g4s-gio-bubble { color:white; background:var(--gio-purple); border-color:var(--gio-purple); border-radius:16px 16px 5px 16px; }
.g4s-gio-root[dir=rtl] .g4s-gio-msg-bot .g4s-gio-bubble { border-radius:16px 16px 5px 16px; }
.g4s-gio-root[dir=rtl] .g4s-gio-msg-visitor .g4s-gio-bubble { border-radius:16px 16px 16px 5px; }
.g4s-gio-controls { flex-shrink:0; overflow-y:auto; max-height:52%; padding:12px 16px 13px; border-top:1px solid #f0edf8; background:#fff; display:flex; flex-direction:column; gap:10px; }
.g4s-gio-options { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.g4s-gio-option { border:1px solid #e5e0f1; background:#fff; color:#332261; font-weight:650!important; padding:11px 8px; min-height:43px; border-radius:10px; font-size:12px!important; line-height:1.4!important; text-align:center; white-space:normal; transition:all .15s ease; box-shadow:0 2px 5px rgba(16,2,60,.02); }
.g4s-gio-option:hover { border-color:#7963dc; background:#f6f3ff; transform:translateY(-1px); }
.g4s-gio-highlight { background:#efecff; color:#3614a0; border-color:#d7cdff; }
.g4s-gio-subtle { background:#f8f9fd; color:#716a80; border-style:dashed; }
.g4s-gio-secondary-actions { grid-template-columns:1fr; }
.g4s-gio-form { display:flex; flex-direction:column; gap:9px; margin:0; }
.g4s-gio-input { display:block; width:100%; margin:0; border:1px solid #ded9ef!important; background:#fff!important; color:#30224a!important; padding:12px 13px!important; font-size:13px!important; border-radius:11px!important; box-shadow:none!important; min-height:43px; outline:0; }
.g4s-gio-input:focus { border-color:#6d54d1!important; }
.g4s-gio-form textarea,.g4s-gio-liveform textarea { resize:vertical; max-height:140px; }
.g4s-gio-primary { color:#fff!important; background:var(--gio-purple)!important; font-weight:700!important; border:0!important; border-radius:11px!important; padding:11px 15px!important; min-height:44px; box-shadow:none; }
.g4s-gio-primary:hover { background:#3907a7!important; }
.g4s-gio-primary:disabled { opacity:.55; cursor:wait; }
.g4s-gio-consent { display:flex; align-items:flex-start; gap:8px; line-height:1.6; text-align:start; color:#665c7c; font-size:11px; cursor:pointer; }
.g4s-gio-consent input { margin:3px 0 0!important; flex-shrink:0; accent-color:var(--gio-purple); }
.g4s-gio-consent a { color:var(--gio-blue); text-decoration:underline; }
.g4s-gio-error { color:#c33e4d; font-size:11px; background:#fff3f4; padding:7px 9px; border-radius:8px; }
.g4s-gio-context { color:#756a8a; margin:0; font-size:11px; }
.g4s-gio-liveform { display:flex; align-items:end; gap:8px; }
.g4s-gio-liveform textarea { flex:1; }
.g4s-gio-liveform .g4s-gio-primary { min-height:43px; padding:9px 13px!important; }
.g4s-gio-foot { flex-shrink:0; background:#fff; border-top:1px solid #f4f2f9; padding:9px 16px; color:#958da8; font-size:10px; display:flex; gap:6px; align-items:center; }
.g4s-gio-foot>span:first-child { color:#5b33d1; font-weight:900; }
.g4s-gio-foot-right { margin-inline-start:auto; color:#c1bbce; }
@keyframes gio-appear { from {opacity:0;transform:translateY(5px)} to {opacity:1;transform:translateY(0)} }
@media (max-width:600px) {
  .g4s-gio-root,.g4s-gio-root[dir=rtl] { right:12px; bottom:12px; }
  .g4s-gio-launch { width:58px; height:58px; border-radius:20px; }
  .g4s-gio-panel { width:calc(100vw - 24px); bottom:70px; height:min(690px,calc(100dvh - 95px)); border-radius:18px; }
  .g4s-gio-options { gap:7px; }
  .g4s-gio-option { min-height:40px; padding:10px 5px; }
}
@media (prefers-reduced-motion:reduce) { .g4s-gio-msg { animation:none; } .g4s-gio-option,.g4s-gio-launch { transition:none; } }
/* v2.1 multi-service choices: clear, accessible active state */
.g4s-gio-option.g4s-gio-selected,
.g4s-gio-option[aria-pressed="true"]{
  border-color:var(--gio-purple,#290185)!important;
  color:var(--gio-purple,#290185)!important;
  background:rgba(41,1,133,.075)!important;
  box-shadow:inset 0 0 0 1px var(--gio-purple,#290185);
}
.g4s-gio-option[aria-pressed="true"]::before{content:"✓  ";font-weight:800}
