.oab-chat-ui {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  background: #fff;
  max-width: 420px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.oab-chat-header {
  padding: 10px 12px;
  background: #0f6abf;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.oab-messages {
  padding: 12px;
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.oab-msg {
  display: flex;
}

.oab-msg-user {
  justify-content: flex-end;
}

.oab-msg-assistant {
  justify-content: flex-start;
}

.oab-msg-bubble {
  padding: 10px 12px;
  border-radius: 12px;
  max-width: 90%;
  line-height: 1.4;
  background: #f2f4f7;
  color: #222;
}

.oab-msg-user .oab-msg-bubble {
  background: #0f6abf;
  color: #fff;
}

.oab-input-row {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #ececec;
}

.oab-input-row textarea {
  flex: 1;
  resize: vertical;
  min-height: 42px;
  max-height: 160px;
  padding: 8px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  font-size: 14px;
}

.oab-send {
  background: #0f6abf;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0 14px;
  font-weight: 600;
  cursor: pointer;
}

.oab-send:disabled,
.oab-input-row textarea:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.oab-status {
  padding: 0 12px 12px;
  font-size: 12px;
  color: #555;
}

.oab-status-error {
  color: #c62828;
}

.oab-floating-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
}

.oab-floating-toggle {
  background: #0f6abf;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
  cursor: pointer;
}

.oab-floating-panel {
  margin-top: 12px;
  width: 360px;
}

@media (max-width: 520px) {
  .oab-chat-ui,
  .oab-floating-panel {
    width: calc(100vw - 32px);
    max-width: none;
  }
}
