.bedsetco-ocs-root {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 99999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bedsetco-ocs-button {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 0;
  background: #111;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.bedsetco-ocs-panel {
  display: none;
  width: min(360px, calc(100vw - 24px));
  height: 500px;
  max-height: calc(100vh - 96px);
  margin-bottom: 12px;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.bedsetco-ocs-panel.is-open {
  display: flex;
  flex-direction: column;
}

.bedsetco-ocs-header {
  padding: 12px 14px;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bedsetco-ocs-close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}

.bedsetco-ocs-body {
  flex: 1;
  overflow: auto;
  padding: 12px;
  background: #f8f8f8;
}

.bedsetco-ocs-msg {
  max-width: 85%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
  line-height: 1.45;
}

.bedsetco-ocs-msg-user {
  margin-left: auto;
  background: #111;
  color: #fff;
}

.bedsetco-ocs-msg-assistant {
  margin-right: auto;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #ececec;
}

.bedsetco-ocs-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #ececec;
  background: #fff;
}

.bedsetco-ocs-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
}

.bedsetco-ocs-send {
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.bedsetco-ocs-send:disabled,
.bedsetco-ocs-input:disabled {
  opacity: 0.6;
  cursor: default;
}

@media (max-width: 640px) {
  .bedsetco-ocs-root {
    right: 10px;
    bottom: 10px;
  }

  .bedsetco-ocs-panel {
    height: min(70vh, 520px);
  }
}
