#aicc-chat-root {
  --aicc-accent: #111111;
  position: fixed;
  z-index: 999999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
#aicc-chat-root.aicc-pos-bottom-right { right: 20px; bottom: 20px; }
#aicc-chat-root.aicc-pos-bottom-left { left: 20px; bottom: 20px; }

.aicc-bubble {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--aicc-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  border: none; font-size: 26px;
}
.aicc-bubble:hover { filter: brightness(1.1); }

.aicc-window {
  position: absolute; bottom: 74px; width: 340px; max-width: 90vw; height: 480px; max-height: 75vh;
  background: #fff; border-radius: 14px; box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  display: none; flex-direction: column; overflow: hidden;
}
.aicc-pos-bottom-right .aicc-window { right: 0; }
.aicc-pos-bottom-left .aicc-window { left: 0; }
.aicc-window.open { display: flex; }

.aicc-header {
  background: var(--aicc-accent); color: #fff; padding: 14px 16px; font-weight: 600; font-size: 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.aicc-header button { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; }

.aicc-messages { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #f7f7f8; }
.aicc-msg { max-width: 85%; padding: 8px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.4; }
.aicc-msg.user { align-self: flex-end; background: var(--aicc-accent); color: #fff; border-bottom-right-radius: 4px; }
.aicc-msg.bot { align-self: flex-start; background: #ecedf0; color: #16181d; border-bottom-left-radius: 4px; }
.aicc-msg.system { align-self: center; background: #fff6e0; color: #6b5300; font-size: 12.5px; text-align: center; border-radius: 10px; }
.aicc-msg.system a { color: var(--aicc-accent); text-decoration: underline; cursor: pointer; font-weight: 600; }
.aicc-msg img { max-width: 100%; border-radius: 8px; margin-top: 6px; display: block; }
.aicc-postlink { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; text-decoration: underline; }
.aicc-msg.user .aicc-postlink { color: #fff; }
.aicc-msg.bot .aicc-postlink { color: var(--aicc-accent); }

.aicc-inputbar { display: flex; border-top: 1px solid #eee; padding: 8px; gap: 6px; }
.aicc-inputbar input { flex: 1; border: 1px solid #e2e2e5; border-radius: 20px; padding: 9px 14px; font-size: 13.5px; outline: none; }
.aicc-inputbar button { background: var(--aicc-accent); color: #fff; border: none; border-radius: 20px; padding: 0 16px; cursor: pointer; font-size: 13px; }

.aicc-calllink { text-align: center; padding: 6px; font-size: 12px; }
.aicc-calllink a { color: var(--aicc-accent); cursor: pointer; text-decoration: underline; }

.aicc-callform { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.aicc-callform input, .aicc-callform textarea { border: 1px solid #e2e2e5; border-radius: 8px; padding: 8px 10px; font-size: 13px; font-family: inherit; resize: vertical; }
.aicc-callform button { background: var(--aicc-accent); color: #fff; border: none; border-radius: 8px; padding: 9px; cursor: pointer; font-size: 13px; }
.aicc-callform .aicc-back { background: none; color: #666; text-decoration: underline; padding: 2px; }
.aicc-note { font-size: 11px; color: #888; text-align: center; }
