/* yike-batch-order-ui:202609011400 — 批量下单行式 UI（PC legacy + Yike 移动/PC 统一样式） */

.ybo-hide-legacy {
  display: none !important;
}

.ybo-legacy-mount {
  width: 100%;
  margin-bottom: 12px;
}

.ybo-root.batch-order-container,
.batch-order-container {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

.ybo-panel {
  background: #fff;
  border-radius: 8px;
}

.ybo-label {
  font-weight: 500;
  margin: 12px 0 8px;
  color: #333;
}

.ybo-req {
  color: #f56c6c;
  margin-right: 4px;
}

.ybo-qty-block {
  margin-bottom: 8px;
}

.ybo-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.ybo-type,
.batch-order-container .type-btn {
  min-width: 96px;
  padding: 8px 14px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  background: #fff;
  color: #606266;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s;
}

.ybo-type.active,
.batch-order-container .type-btn.active {
  border-color: #2ecc71;
  color: #2ecc71;
  box-shadow: inset 0 0 0 1px #2ecc71;
  position: relative;
}

.ybo-type.active::after,
.batch-order-container .type-btn.active::after {
  content: "✓";
  position: absolute;
  right: 4px;
  bottom: 2px;
  font-size: 10px;
  color: #2ecc71;
}

.ybo-qty-extra {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
  flex-wrap: wrap;
}

.ybo-rows,
.batch-order-container .orderData {
  border: 1px solid #e4e7ed;
  border-radius: 8px;
  overflow: hidden;
  background: #fafafa;
}

.ybo-row,
.batch-order-container .order-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #ebeef5;
  background: #fff;
}

.ybo-row:last-child,
.batch-order-container .order-row:last-child {
  border-bottom: none;
}

.ybo-no,
.batch-order-container .row-number {
  width: 42px;
  min-width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f7fa;
  color: #909399;
  font-size: 13px;
  cursor: pointer;
  border-right: 1px solid #ebeef5;
}

.ybo-input,
.batch-order-container .order-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 12px;
  font-size: 13px;
  min-width: 0;
  background: transparent;
}

.ybo-row-qty,
.batch-order-container .quantity-selector {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  gap: 4px;
  border-left: 1px solid #ebeef5;
}

.ybo-qbtn,
.batch-order-container .quantity-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: #606266;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.ybo-qinput,
.batch-order-container .quantity-input,
.batch-order-container .rand-input {
  width: 64px;
  height: 28px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  text-align: center;
  font-size: 13px;
}

.ybo-qinput.sm {
  width: 72px;
}

.ybo-footer,
.batch-order-container .action {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.ybo-meta,
.batch-order-container .action-info {
  color: #909399;
  font-size: 13px;
}

.ybo-total {
  margin-top: 4px;
  color: #333;
  font-weight: 600;
}

.ybo-actions,
.batch-order-container .action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ybo-btn,
.batch-order-container .action-btn {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #dcdfe6;
  background: #fff;
  color: #606266;
  cursor: pointer;
  font-size: 13px;
}

.ybo-btn-primary,
.batch-order-container .action-btn.primary {
  background: linear-gradient(90deg, #2ecc71, #27ae60);
  border-color: transparent;
  color: #fff;
}

.ybo-submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.ybo-buy {
  min-width: 120px;
  padding: 10px 28px;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(90deg, #1abc9c, #2ecc71 55%, #a3e635);
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.35);
}

.ybo-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ybo-modal[hidden] {
  display: none !important;
}

.ybo-modal-box {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.ybo-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #ebeef5;
  font-weight: 600;
}

.ybo-modal-head button {
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
  color: #909399;
}

.ybo-modal-tip {
  padding: 10px 16px;
  font-size: 12px;
  color: #909399;
  background: #f5f7fa;
}

.ybo-modal-box textarea {
  width: 100%;
  box-sizing: border-box;
  border: none;
  padding: 12px 16px;
  min-height: 160px;
  resize: vertical;
  outline: none;
  font-size: 13px;
}

.ybo-modal-foot {
  padding: 12px 16px;
  text-align: right;
  border-top: 1px solid #ebeef5;
}

/* Yike 移动/PC 批量区微调 */
.batch-order-container .number-type-selector .type-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.batch-order-container .order-item-header,
.batch-order-container .order-item-label {
  font-weight: 500;
}

.batch-order-form {
  padding: 0 4px;
}

@media (max-width: 768px) {
  .ybo-row,
  .batch-order-container .order-row {
    flex-wrap: wrap;
  }

  .ybo-row-qty,
  .batch-order-container .quantity-selector {
    width: 100%;
    border-left: none;
    border-top: 1px solid #ebeef5;
    justify-content: flex-end;
  }
}
