/* chatbot-extensions composer — GRID: editor|plane, toolbar UNDER */
:root { --ssa-accent:#2b4dff; --ssa-accent-soft:rgba(43,77,255,.12); --ssa-font:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif; }
.wp-chatbot-editor-container .wpbot-ssa-file, input.wpbot-ssa-file[type=file] {
  position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;
  overflow:hidden!important;clip:rect(0,0,0,0)!important;border:0!important;opacity:0!important;pointer-events:none!important;
}
.wp-chatbot-editor-container.wpbot-ssa-ready {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 40px!important;
  grid-template-areas:"previews previews" "editor send" "toolbar toolbar"!important;
  align-items:center!important;column-gap:0!important;row-gap:2px!important;
  padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;
  overflow:hidden!important;box-sizing:border-box!important;width:100%!important;
}
.wp-chatbot-editor-container.wpbot-ssa-ready > label { display:none!important; }
.wpbot-ssa-previews { display:none; grid-area:previews; width:100%; margin:0 0 6px; }
.wpbot-ssa-previews.is-visible { display:flex; flex-wrap:wrap; gap:8px; }
.wpbot-ssa-toolbar {
  grid-area:toolbar!important;
  position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;top:auto!important;
  z-index:6;display:inline-flex!important;align-items:center;justify-content:center;gap:2px;
  width:100%!important;height:34px!important;min-height:0;
  padding:4px 0 0!important;margin:0!important;border:0!important;border-top:0!important;
  background:transparent!important;box-shadow:none!important;visibility:visible!important;opacity:1!important;
}
.wpbot-ssa-btn {
  width:32px!important;height:32px!important;min-width:32px!important;border:0!important;border-radius:50%!important;
  background:transparent!important;color:var(--ssa-accent)!important;display:inline-flex!important;align-items:center!important;
  justify-content:center!important;box-shadow:none!important;cursor:pointer!important;transition:background .18s ease,transform .18s ease!important;
}
.wpbot-ssa-btn:hover,.wpbot-ssa-btn:focus-visible { background:var(--ssa-accent-soft)!important;transform:translateY(-1px);box-shadow:none!important; }
.wpbot-ssa-btn svg { width:16px!important;height:16px!important;stroke:currentColor!important;fill:none!important; }
.wpbot-ssa-btn svg * { stroke:currentColor!important;fill:none!important; }
.wpbot-ssa-ready > input#wp-chatbot-editor {
  grid-area:editor!important;
  width:100%!important;min-width:0!important;height:40px!important;min-height:40px!important;max-height:40px!important;
  box-sizing:border-box!important;line-height:38px!important;font-size:14px!important;padding:0 14px!important;margin:0!important;
  border:1px solid rgba(43,77,255,.28)!important;border-right:0!important;border-radius:999px 0 0 999px!important;
  background:#f0f4ff!important;box-shadow:none!important;filter:none!important;
}
.wpbot-ssa-ready > input#wp-chatbot-editor::placeholder { color:#2b4dff!important;opacity:1!important; }
.wpbot-ssa-ready > #wp-chatbot-send-message {
  grid-area:send!important;
  width:40px!important;min-width:40px!important;max-width:40px!important;
  height:40px!important;min-height:40px!important;max-height:40px!important;
  box-sizing:border-box!important;padding:0!important;margin:0!important;
  border:1px solid rgba(43,77,255,.28)!important;border-left:0!important;border-radius:0 999px 999px 0!important;
  background:#f0f4ff!important;box-shadow:none!important;filter:none!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  visibility:visible!important;opacity:1!important;color:#2b4dff!important;
}
/* Chip must win over theme/WPBot button+img rules (main padded buttons to 60x34 and covered the thumb). */
.wpbot-ssa-chip {
  position:relative!important;width:68px!important;height:68px!important;min-width:68px!important;min-height:68px!important;
  flex:0 0 68px!important;border-radius:12px!important;overflow:hidden!important;background:#f0f4ff!important;
  box-sizing:border-box!important;padding:0!important;margin:0!important;
}
.wpbot-ssa-chip img {
  width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
  object-fit:cover!important;display:block!important;position:relative!important;z-index:1!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
}
.wpbot-ssa-chip-remove {
  position:absolute!important;top:4px!important;right:4px!important;left:auto!important;bottom:auto!important;
  width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;
  max-width:22px!important;max-height:22px!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;
  background:rgba(20,20,26,.72)!important;background-image:none!important;color:#fff!important;
  display:block!important;line-height:0!important;font-size:0!important;box-sizing:border-box!important;
  box-shadow:none!important;-webkit-box-shadow:none!important;z-index:3!important;cursor:pointer!important;
  overflow:hidden!important;transform:none!important;-webkit-appearance:none!important;appearance:none!important;
}
.wpbot-ssa-chip-remove svg {
  position:absolute!important;top:50%!important;left:50%!important;right:auto!important;bottom:auto!important;
  width:12px!important;height:12px!important;margin:0!important;padding:0!important;
  transform:translate(-50%,-50%)!important;display:block!important;flex-shrink:0!important;
  pointer-events:none!important;stroke:currentColor!important;fill:none!important;
}
.wpbot-ssa-overlay { position:fixed;inset:0;z-index:2147483000;cursor:crosshair; font-family:var(--ssa-font); }
.wpbot-ssa-overlay-dim { position:absolute;inset:0;background:rgba(10,12,20,.42); }
/* Analyzer-style capture chrome: one dark bar, top-center. */
.wpbot-ssa-capture-bar {
  position:fixed!important;top:16px!important;left:50%!important;right:auto!important;bottom:auto!important;
  transform:translateX(-50%)!important;z-index:3!important;
  display:flex!important;align-items:center!important;justify-content:center!important;flex-wrap:wrap!important;
  gap:10px 14px!important;max-width:min(920px,calc(100vw - 24px))!important;
  padding:10px 14px!important;margin:0!important;box-sizing:border-box!important;
  border-radius:14px!important;background:rgba(18,20,28,.94)!important;color:#fff!important;
  box-shadow:0 10px 32px rgba(0,0,0,.32)!important;pointer-events:auto!important;cursor:default!important;
}
.wpbot-ssa-capture-hint {
  display:inline-block!important;margin:0!important;padding:0 2px!important;
  color:#fff!important;-webkit-text-fill-color:#fff!important;
  font-size:14px!important;font-weight:500!important;line-height:1.35!important;
  white-space:nowrap!important;
}
.wpbot-ssa-capture-btns { display:inline-flex!important;align-items:center!important;gap:8px!important; }
.wpbot-ssa-overlay .ssa-cancel-capture,
.wpbot-ssa-overlay .ssa-confirm {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:36px!important;margin:0!important;padding:8px 16px!important;
  border:0!important;border-radius:999px!important;box-shadow:none!important;
  font-size:14px!important;font-weight:600!important;line-height:1.2!important;
  letter-spacing:0!important;text-indent:0!important;text-transform:none!important;
  cursor:pointer!important;appearance:none!important;-webkit-appearance:none!important;
  visibility:visible!important;opacity:1!important;width:auto!important;height:auto!important;
  max-width:none!important;overflow:visible!important;white-space:nowrap!important;
}
.wpbot-ssa-overlay .ssa-cancel-capture {
  background:#fff!important;background-image:none!important;
  color:#161822!important;-webkit-text-fill-color:#161822!important;
}
.wpbot-ssa-overlay .ssa-confirm {
  background:var(--ssa-accent)!important;background-image:none!important;
  color:#fff!important;-webkit-text-fill-color:#fff!important;
}
.wpbot-ssa-overlay .ssa-confirm[hidden] { display:none!important; }
.wpbot-ssa-overlay .ssa-confirm:disabled { opacity:.72!important;cursor:wait!important; }
/* Kill leftover split-control chrome from older SSA builds / theme button smash. */
.wpbot-ssa-overlay-hint,
.wpbot-ssa-selection-actions { display:none!important; }
.wpbot-ssa-selection { position:absolute;box-shadow:0 0 0 1px var(--ssa-accent),0 0 0 9999px rgba(10,12,20,.5);border-radius:4px;pointer-events:none; }
/* Capture mode: hide chat chrome with display:none (visibility alone loses to
 * Aimy/MU `visibility:visible!important` on the open ball / tip). Keep overlay bar. */
html body.wpbot-ssa-capturing .aiya-chat-root,
html body.wpbot-ssa-capturing #wp-chatbot-ball-container,
html body.wpbot-ssa-capturing #wp-chatbot-chat-container,
html body.wpbot-ssa-capturing #wp-chatbot-ball,
html body.wpbot-ssa-capturing #wp-chatbot-ball .wp-chatbot-ball,
html body.wpbot-ssa-capturing .wp-chatbot-notification-welcome,
html body.wpbot-ssa-capturing .wp-chatbot-notification-container,
html body.wpbot-ssa-capturing .wpbot-ssa-toolbar,
html body.wpbot-ssa-capturing #scrollUp,
html body.wpbot-ssa-capturing #wp-chatbot-integration-container,
html body.wpbot-ssa-capturing #wp-chatbot-integration-container-07,
html body.wpbot-ssa-capturing .wp-chatbot-integration-button-container,
html body.wpbot-ssa-capturing .intergration-telegram,
html body.wpbot-ssa-capturing .intergration-phone,
html body.wpbot-ssa-capturing .intergration-whats,
html body.wpbot-ssa-capturing .intergration-vk,
html body.wpbot-ssa-capturing .intergration-viber,
html body.wpbot-ssa-capturing .intergration-max,
html body.wpbot-ssa-capturing .qc_wpbot_floating_main,
html body.wpbot-ssa-capturing .floatingbot_delay,
html body.wpbot-ssa-capturing #my-openai-chatkit {
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
  opacity:0!important;
}
html body.wpbot-ssa-capturing .wpbot-ssa-overlay {
  display:block!important;
  visibility:visible!important;
  pointer-events:auto!important;
  opacity:1!important;
}
html body.wpbot-ssa-capturing .wpbot-ssa-capture-bar {
  display:flex!important;
  visibility:visible!important;
  pointer-events:auto!important;
  opacity:1!important;
}
@media (max-width:560px) {
  .wpbot-ssa-capture-hint { white-space:normal!important;text-align:center!important; }
  .wpbot-ssa-capture-bar { top:10px!important;padding:10px 12px!important; }
}
.wp-chatbot-tab-nav,.wp-chatbot-tab-nav ul,.wp-chatbot-tab-nav ul li { display:none!important;height:0!important; }
