/**
 * 文件职责：优惠券编辑抽屉样式。
 * 1. 对齐原型中的抽屉头部、表单密度、分段按钮与底部操作区。
 * 2. 对齐渠道勾选与门店范围选择细节视觉。
 */
.mcp-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;
  }

  .mcp-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;
  }

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

  .mcp-inline-fields .ant-input-number {
    width: 96px;
  }

  .mcp-input-wide {
    width: 180px;
  }

  .mcp-field-hint {
    margin-top: 4px;
    font-size: 12px;
    color: #9ca3af;
  }

  .mcp-section-divider {
    height: 1px;
    margin: 18px 0 28px;
    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%
    );
  }

  .mcp-form-muted .ant-form-item-control-input-content {
    font-size: 13px;
    color: #6b7280;
  }

  .ant-radio-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .ant-radio-button-wrapper {
    height: 30px;
    padding: 0 12px;
    font-size: 12px;
    line-height: 28px;
    color: #4b5563;
    border: 1px solid #d9d9d9;
    border-radius: 6px !important;
    transition: all 0.2s ease;
  }

  .ant-radio-button-wrapper::before {
    display: none !important;
  }

  .ant-radio-button-wrapper:hover {
    color: #1677ff;
    border-color: #91caff;
  }

  .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
    color: #1677ff;
    background: #e8f3ff;
    border-color: #91caff;
    box-shadow: none;
  }

  .ant-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
  }

  .ant-checkbox-wrapper {
    margin-inline-start: 0 !important;
    font-size: 13px;
    color: #374151;
  }

  .ant-checkbox-inner {
    width: 16px;
    height: 16px;
    border-radius: 999px;
  }

  .ant-checkbox-checked .ant-checkbox-inner::after {
    inset-inline-start: 24%;
    width: 5px;
    height: 8px;
    border-width: 0 2px 2px 0;
  }

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

  .mcp-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 ease;
  }

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

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

  .mcp-range-picker {
    width: 100%;
    max-width: 340px;
  }

  .ant-radio-wrapper {
    margin-inline-start: 0 !important;
    margin-right: 18px;
    font-size: 13px;
    color: #374151;
  }

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

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

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

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