/* ioi AI Widget (minimal, clean) */
#ioi-ai-bubble {
  position: fixed;
  right: 18px;
  bottom: 75px !important;
  z-index: 999999;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
  background: #7c51a1 !important;
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#ioi-ai-panel {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 999999;
  width: 340px;
  max-width: calc(100vw - 36px);
  height: 620px;
  max-height: calc(100vh - 140px);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
  overflow: hidden;
  display: none;
  border: 1px solid rgba(0,0,0,.08);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

#ioi-ai-panel.open { display: flex; flex-direction: column; }

#ioi-ai-header {
  background: #7c51a1 !important;
  color: #fff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#ioi-ai-header .title {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
}
#ioi-ai-header .sub {
  font-size: 12px;
  opacity: .9;
}

#ioi-ai-close {
  background: rgba(255,255,255,.16);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
}

#ioi-ai-messages {
  padding: 12px;
  overflow: auto;
  flex: 1;
  background: #fff;
}

.ioi-msg {
  margin: 8px 0;
  display: flex;
}
.ioi-msg.user { justify-content: flex-end; }
.ioi-msg .bubble {
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}
.ioi-msg.user .bubble {
  background: #7c51a1;
  color: #fff;
  border-bottom-right-radius: 6px;
}
.ioi-msg.bot .bubble {
  background: #fff;
  color: #111;
  border: 1px solid rgba(0,0,0,.08);
  border-bottom-left-radius: 6px;
}

#ioi-ai-typing {
  display: none;
  padding: 0 12px 8px 12px;
  color: #666;
  font-size: 12px;
}

#ioi-ai-footer {
  padding: 10px;
  border-top: 1px solid rgba(0,0,0,.08);
  background: #fff;
}

#ioi-ai-input-row {
  display: flex;
  gap: 8px;
}
#ioi-ai-input {
  flex: 1;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}
#ioi-ai-send {
  border: none;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  background: #7c51a1 !important;
  color: #fff;
  font-weight: 700;
}

#ioi-ai-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ioi-chip {
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

#ioi-ai-callback {
  display: none;
  margin-top: 10px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  padding: 10px;

  background: #fff;
}
#ioi-ai-callback .row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
#ioi-ai-callback input {
  width: 100%;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
}
#ioi-ai-callback label {
  font-size: 12px;
  color: #333;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
#ioi-ai-callback button {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  background: #031d79;
  color: #fff;
  font-weight: 800;
}
#ioi-ai-small {
  font-size: 12px;
  color: #666;
  margin-top: 6px;
}

#ioi-ai-callback .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

#ioi-ai-callback .consent {
  font-size: 12px;
  color: #333;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 8px 0;
}

