/**
 * 文件职责：满减活动主编辑抽屉样式。
 */
.mfr-editor-drawer {
  .ant-drawer-header {
    min-height: 54px;
    padding: 0 18px;
    border-bottom: 1px solid #f0f0f0;
  }

  .ant-drawer-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
  }

  .ant-drawer-body {
    padding: 14px 16px 12px;
  }

  .ant-drawer-footer {
    padding: 10px 16px;
    border-top: 1px solid #f0f0f0;
  }

  .mfr-editor-form {
    .ant-form-item {
      margin-bottom: 14px;
    }

    .ant-form-item-label {
      padding-bottom: 6px;
    }

    .ant-form-item-label > label {
      font-size: 13px;
      font-weight: 500;
      color: #374151;
    }
  }

  .ant-input,
  .ant-input-number,
  .ant-picker,
  .ant-select-selector {
    border-color: #e5e7eb !important;
    border-radius: 6px !important;
  }

  .ant-input,
  .ant-input-number-input,
  .ant-picker-input > input {
    font-size: 13px;
  }

  .ant-input {
    height: 34px;
    padding: 0 10px;
  }

  .ant-input-number {
    height: 34px;
  }

  .ant-input-number-input-wrap {
    height: 100%;
  }

  .ant-input-number-input {
    height: 32px;
  }

  .ant-picker {
    height: 34px;
    padding: 0 10px;
  }

  .ant-input-number:focus-within,
  .ant-picker-focused,
  .ant-select-focused .ant-select-selector,
  .ant-input:focus {
    border-color: #1677ff !important;
    box-shadow: 0 0 0 2px rgb(22 119 255 / 10%) !important;
  }

  .mfr-section-title {
    padding-left: 10px;
    margin: 2px 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    border-left: 3px solid #1677ff;
  }

  .mfr-tier-item {
    margin-bottom: 10px;
  }

  .mfr-inline-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 13px;
    color: #4b5563;
  }

  .mfr-inline-fields .ant-input-number {
    width: 90px;
  }

  .mfr-tier-delete {
    padding: 0 6px;
    font-size: 12px;
    color: #6b7280;
    cursor: pointer;
    background: none;
    border: none;
    border-radius: 6px;
    transition: all 0.2s;
  }

  .mfr-tier-delete:hover {
    color: #ef4444;
    background: #fef2f2;
  }

  .mfr-tier-delete:disabled {
    color: #c4c7cf;
    cursor: not-allowed;
    background: transparent;
  }

  .mfr-add-tier {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    font-size: 12px;
    color: #4b5563;
    cursor: pointer;
    background: #fff;
    border: 1px dashed #d0d5dd;
    border-radius: 6px;
    transition: all 0.2s;
  }

  .mfr-add-tier:hover {
    color: #1677ff;
    background: #f2f8ff;
    border-color: #91caff;
  }

  .mfr-scope-line {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .mfr-scope-text {
    font-size: 12px;
    color: #6b7280;
  }

  .mfr-section-divider {
    height: 1px;
    margin: 18px 0;
    background: linear-gradient(
      90deg,
      rgb(229 231 235 / 0%) 0%,
      rgb(229 231 235 / 100%) 18%,
      rgb(229 231 235 / 100%) 82%,
      rgb(229 231 235 / 0%) 100%
    );
  }

  .mfr-channel-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .mfr-channel-pill {
    height: 30px;
    padding: 0 14px;
    font-size: 12px;
    line-height: 28px;
    color: #4b5563;
    cursor: pointer;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    transition: all 0.2s;
  }

  .mfr-channel-pill:hover {
    color: #1677ff;
    border-color: #91caff;
  }

  .mfr-channel-pill.checked {
    color: #1677ff;
    background: #e8f3ff;
    border-color: #91caff;
  }

  .mfr-range-picker {
    width: 100%;
    max-width: 360px;
  }

  .mfr-store-multi {
    width: 100%;
    margin-top: 8px;
  }

  .mfr-store-multi .ant-select-selector {
    min-height: 34px !important;
    padding: 1px 8px !important;
  }

  .mfr-drawer-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
  }

  .mfr-drawer-footer .ant-btn {
    min-width: 64px;
    height: 32px;
    border-radius: 6px;
  }
}
