.sales-sdk-demo {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  color: #1f2933;
  background: #f6f8fb;
}

.sales-sdk-demo button {
  height: 32px;
  padding: 0 12px;
  border: 1px solid #d6dce5;
  border-radius: 6px;
  color: #1f2933;
  background: #fff;
  cursor: pointer;
}

.sales-sdk-demo button:disabled {
  color: #98a2b3;
  background: #f2f4f7;
  cursor: not-allowed;
}

.sales-sdk-demo button:not(:disabled):hover {
  border-color: #1677ff;
  color: #1677ff;
}

.sales-sdk-demo .sales-sdk-demo__danger {
  border-color: #ffccc7;
  color: #cf1322;
}

.sales-sdk-demo__header,
.sales-sdk-demo__panel,
.sales-sdk-demo__item {
  border: 1px solid #e5eaf0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.sales-sdk-demo__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}

.sales-sdk-demo__header h2,
.sales-sdk-demo__panel h3,
.sales-sdk-demo__item h4 {
  margin: 0;
}

.sales-sdk-demo__header p {
  margin: 8px 0 0;
  color: #667085;
}

.sales-sdk-demo__status {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #475467;
  background: #f2f4f7;
}

.sales-sdk-demo__status--ready {
  color: #027a48;
  background: #ecfdf3;
}

.sales-sdk-demo__status--loading {
  color: #175cd3;
  background: #eff8ff;
}

.sales-sdk-demo__status--error {
  color: #b42318;
  background: #fef3f2;
}

.sales-sdk-demo__panel {
  padding: 16px;
}

.sales-sdk-demo__panel--error,
.sales-sdk-demo__panel--error pre {
  color: #b42318;
  background: #fff7f6;
}

.sales-sdk-demo__panel--success,
.sales-sdk-demo__panel--success pre {
  color: #027a48;
  background: #f6ffed;
}

.sales-sdk-demo__panel--running,
.sales-sdk-demo__panel--running pre {
  color: #175cd3;
  background: #eff8ff;
}

.sales-sdk-demo__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.sales-sdk-demo__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sales-sdk-demo__field span {
  color: #667085;
  font-size: 12px;
}

.sales-sdk-demo__field input {
  height: 32px;
  min-width: 180px;
  padding: 0 10px;
  border: 1px solid #d6dce5;
  border-radius: 6px;
  outline: none;
}

.sales-sdk-demo__field input:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);
}

.sales-sdk-demo__textarea {
  min-width: 180px;
  padding: 8px 10px;
  border: 1px solid #d6dce5;
  border-radius: 6px;
  outline: none;
  resize: vertical;
  font-family: inherit;
}

.sales-sdk-demo__textarea:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);
}

.sales-sdk-demo__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sales-sdk-demo__section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sales-sdk-demo__section-title span {
  color: #667085;
  font-size: 12px;
}

.sales-sdk-demo__detail-list {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 12px 0 0;
}

.sales-sdk-demo__detail-list dt {
  color: #667085;
}

.sales-sdk-demo__detail-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.sales-sdk-demo__items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sales-sdk-demo__item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

.sales-sdk-demo__item-main {
  display: flex;
  gap: 12px;
  min-width: 0;
}

.sales-sdk-demo__item-main img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: #f2f4f7;
}

.sales-sdk-demo__item-main p {
  margin: 4px 0 0;
  color: #667085;
}

.sales-sdk-demo__item-actions {
  flex: 0 0 auto;
}

.sales-sdk-demo__empty {
  padding: 24px;
  border: 1px dashed #d6dce5;
  border-radius: 8px;
  color: #667085;
  text-align: center;
  background: #fafafa;
}

.sales-sdk-demo__raw-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.sales-sdk-demo pre {
  max-height: 360px;
  margin: 12px 0 0;
  padding: 12px;
  overflow: auto;
  border-radius: 8px;
  color: #344054;
  background: #f8fafc;
}

.sales-sdk-demo__tabs {
  background: #fff;
  border: 1px solid #e5eaf0;
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.sales-sdk-demo__tab {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}

.sales-sdk-demo .sales-sdk-demo__primary {
  border-color: #1677ff;
  color: #fff;
  background: #1677ff;
}

.sales-sdk-demo .sales-sdk-demo__primary:not(:disabled):hover {
  background: #4096ff;
  border-color: #4096ff;
  color: #fff;
}

.sales-sdk-demo .sales-sdk-demo__primary:disabled {
  background: #91caff;
  border-color: #91caff;
  color: #fff;
}

.sales-sdk-demo__hint {
  margin: 8px 0 0;
  color: #667085;
}

.sales-sdk-demo__panel--warn {
  border-color: #ffe58f;
  background: #fffbe6;
}

.sales-sdk-demo__panel--warn .sales-sdk-demo__hint {
  color: #874d00;
}

.sales-sdk-demo__advanced {
  background: #fff;
  border: 1px solid #e5eaf0;
  border-radius: 10px;
  padding: 4px 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.sales-sdk-demo__advanced-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  padding: 12px 4px 4px;
}

.sales-sdk-demo__advanced-form .sales-sdk-demo__field {
  margin: 0;
}

.sales-sdk-demo__steps-toolbar {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.sales-sdk-demo__step-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.sales-sdk-demo__step {
  border: 1px solid #e5eaf0;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fafbfc;
}

.sales-sdk-demo__step--running {
  border-color: #91caff;
  background: #eff8ff;
}

.sales-sdk-demo__step--success {
  border-color: #b7eb8f;
  background: #f6ffed;
}

.sales-sdk-demo__step--error {
  border-color: #ffccc7;
  background: #fff2f0;
}

.sales-sdk-demo__step--skipped {
  border-color: #d6dce5;
  background: #f2f4f7;
  color: #98a2b3;
}

.sales-sdk-demo__step-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sales-sdk-demo__step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #d6dce5;
  color: #475467;
  font-size: 12px;
  font-weight: 600;
  flex: 0 0 auto;
}

.sales-sdk-demo__step-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

.sales-sdk-demo__step-meta strong {
  font-size: 14px;
}

.sales-sdk-demo__step-desc {
  margin-top: 2px;
  color: #667085;
  font-size: 12px;
  font-style: normal;
}

.sales-sdk-demo__step-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d6dce5;
  color: #475467;
  font-size: 12px;
  flex: 0 0 auto;
}

.sales-sdk-demo__step-status em {
  color: #98a2b3;
  font-style: normal;
}

.sales-sdk-demo__step--running .sales-sdk-demo__step-status {
  color: #175cd3;
  border-color: #91caff;
}

.sales-sdk-demo__step--success .sales-sdk-demo__step-status {
  color: #027a48;
  border-color: #b7eb8f;
}

.sales-sdk-demo__step--error .sales-sdk-demo__step-status {
  color: #b42318;
  border-color: #ffccc7;
}

.sales-sdk-demo__step-error,
.sales-sdk-demo__step-result {
  max-height: 240px;
  margin: 8px 0 0;
  padding: 10px;
  overflow: auto;
  border-radius: 6px;
  background: #fff;
  color: #344054;
  border: 1px dashed #e5eaf0;
}

.sales-sdk-demo__step-error {
  color: #b42318;
  border-color: #ffccc7;
}

.sales-sdk-demo__action-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.sales-sdk-demo__action-entry {
  margin: 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fafbfc;
  border: 1px solid #e5eaf0;
  color: #344054;
}

.sales-sdk-demo__action-entry--success {
  border-color: #b7eb8f;
  background: #f6ffed;
  color: #027a48;
}

.sales-sdk-demo__action-entry--error {
  border-color: #ffccc7;
  background: #fff2f0;
  color: #b42318;
}

.sales-sdk-demo__action-entry--running {
  border-color: #91caff;
  background: #eff8ff;
  color: #175cd3;
}

@media (max-width: 900px) {
  .sales-sdk-demo__header,
  .sales-sdk-demo__item {
    flex-direction: column;
  }

  .sales-sdk-demo__grid,
  .sales-sdk-demo__raw-grid,
  .sales-sdk-demo__advanced-form {
    grid-template-columns: 1fr;
  }

  .sales-sdk-demo__step-head {
    flex-wrap: wrap;
  }
}
