#omni-chatbox {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

.omni-chatbox__button {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #1f4b99;
  color: #fff;
  border: none;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
}

.omni-chatbox__panel {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: 320px;
  max-height: 70vh;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0,0,0,.18);
  overflow: hidden;
  display: none;
  flex-direction: column;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity .18s ease, transform .18s ease;
}

#omni-chatbox.open .omni-chatbox__panel {
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.omni-chatbox__header {
  background: #1f4b99;
  color: #fff;
  padding: 12px 14px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.omni-chatbox__body {
  padding: 10px;
  overflow-y: auto;
  background: #f6f7fb;
  flex: 1;
}

.omni-chatbox__msg {
  margin: 8px 0;
  display: flex;
}

.omni-chatbox__msg.in { justify-content: flex-start; }
.omni-chatbox__msg.out { justify-content: flex-end; }

.omni-chatbox__bubble {
  max-width: 82%%;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
  background: #fff;
  border: 1px solid #e5e7eb;
  white-space: pre-wrap;
  word-break: break-word;
}

.omni-chatbox__msg.out .omni-chatbox__bubble {
  background: #e9f0ff;
  border-color: #d6e4ff;
}

.omni-chatbox__typing {
  font-size: 12px;
  color: #6b7280;
  margin: 4px 0 8px 0;
}

.omni-chatbox__footer {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #eef0f5;
  background: #fff;
}

.omni-chatbox__input {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
}

.omni-chatbox__send {
  background: #1f4b99;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0 12px;
  font-weight: 700;
  cursor: pointer;
}

.omni-chatbox__send[disabled] {
  opacity: .6;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  #omni-chatbox { right: 10px; bottom: 10px; }
  .omni-chatbox__panel { width: 92vw; max-height: 80vh; }
}
