.mm-detail-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ant-color-border-secondary);
}

.mm-detail-avatar {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  border-radius: 50%;
}

.mm-detail-title-wrap {
  min-width: 0;
}

.mm-detail-name-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mm-detail-name {
  font-size: 16px;
  font-weight: 600;
}

.mm-detail-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ant-color-text-tertiary);
}

.mm-overview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.mm-overview-item {
  padding: 10px;
  text-align: center;
  background: var(--ant-color-fill-quaternary);
  border-radius: 8px;
}

.mm-overview-item .value {
  font-size: 16px;
  font-weight: 600;
}

.mm-overview-item .value.primary {
  color: #1677ff;
}

.mm-overview-item .label {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ant-color-text-tertiary);
}

.mm-overview-item .sub {
  margin-top: 2px;
  font-size: 11px;
  color: var(--ant-color-text-tertiary);
}

.mm-section {
  margin-top: 16px;
}

.mm-section-title {
  padding-left: 10px;
  margin-bottom: 10px;
  font-weight: 600;
  border-left: 3px solid #1677ff;
}

.mm-order-action-placeholder {
  font-size: 12px;
  color: var(--ant-color-primary);
}

.mm-tag-editor {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.mm-tag-input {
  width: 120px;
}

.mm-detail-footer,
.mm-editor-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.mm-editor-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mm-form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mm-form-label {
  font-size: 13px;
  color: var(--ant-color-text-secondary);
}

.mm-form-label.required::after {
  color: #ff4d4f;
  content: ' *';
}

.mm-icon-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mm-icon-pill {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 4px 10px;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--ant-color-border-secondary);
  border-radius: 16px;
}

.mm-icon-pill.active {
  color: #1677ff;
  background: rgb(22 119 255 / 6%);
  border-color: #1677ff;
}

.mm-color-group {
  display: flex;
  gap: 10px;
}

.mm-color-dot {
  width: 28px;
  height: 28px;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 50%;
}

.mm-color-dot.active {
  border-color: #1677ff;
}

.mm-rule-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: var(--ant-color-fill-quaternary);
  border: 1px solid var(--ant-color-border-secondary);
  border-radius: 8px;
}

.mm-rule-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.mm-rule-hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ant-color-text-tertiary);
}

.mm-benefit-card {
  padding: 10px 12px;
  margin-bottom: 10px;
  background: var(--ant-color-fill-quaternary);
  border: 1px solid var(--ant-color-border-secondary);
  border-radius: 8px;
}

.mm-benefit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mm-benefit-body {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.mm-benefit-body.col {
  flex-direction: column;
  align-items: flex-start;
}

.mm-benefit-inline {
  display: flex;
  gap: 12px;
}

.mm-benefit-inline .item {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border: 1px solid var(--ant-color-border-secondary);
  border-radius: 8px;
}

.mm-coupon-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
