.pcat-editor-drawer-wrap {
  .ant-drawer-header {
    padding: 0 20px;
    border-bottom: 1px solid #f0f0f0;
  }

  .ant-drawer-header-title {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    height: 56px;
  }

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

  .ant-drawer-body {
    padding: 16px 20px;
    overflow-y: auto;
  }

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

.pcat-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #9ca3af;
  cursor: pointer;
  background: transparent;
  border: none;
  border-radius: 6px;
}

.pcat-drawer-close:hover {
  color: #4b5563;
  background: #f5f5f5;
}

.pcat-drawer-close .iconify {
  width: 18px;
  height: 18px;
}

.pcat-drawer-ft {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.pcat-drawer-form {
  .ant-form-item {
    margin-bottom: 16px;
  }

  .ant-form-item-label > label {
    height: auto;
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
  }

  .ant-input,
  .ant-input-number-input,
  .ant-input-number,
  .ant-input-affix-wrapper,
  .ant-input-outlined {
    border-radius: 8px;
  }

  .ant-input,
  .ant-input-number-input {
    font-size: 13px;
    color: #1a1a2e;
  }

  .ant-input-number {
    width: 180px;
  }

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

.pcat-sort-input {
  width: 180px;
}

.pcat-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #9ca3af;
}

.pcat-hint.mb-8 {
  margin-top: 0;
  margin-bottom: 8px;
}

.pcat-icon-upload {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  color: #bbb;
  cursor: pointer;
  background: #fff;
  border: 1px dashed #e5e7eb;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.pcat-icon-upload:hover {
  color: var(--pcat-primary);
  border-color: var(--pcat-primary);
}

.pcat-icon-plus {
  font-size: 20px;
  line-height: 1;
}

.pcat-icon-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.pcat-icon-upload-text {
  font-size: 11px;
}

.pcat-editor-drawer-wrap .ant-upload-wrapper,
.pcat-editor-drawer-wrap .ant-upload-select,
.pcat-editor-drawer-wrap .ant-upload {
  display: block;
  width: 80px;
  height: 80px;
}

.pcat-drawer-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pcat-drawer-ch {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  height: auto;
  padding: 8px 14px;
  font-size: 13px;
  color: #4b5563;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: none;
  transition: all 0.2s ease;
}

.pcat-drawer-ch:hover {
  color: var(--pcat-primary);
  background: #fff;
  border-color: var(--pcat-primary);
}

.pcat-drawer-ch:focus,
.pcat-drawer-ch:active {
  color: var(--pcat-primary);
  background: #fff;
  border-color: var(--pcat-primary);
  box-shadow: 0 0 0 2px rgb(22 119 255 / 10%);
}

.pcat-drawer-ch-icon {
  width: 14px;
  height: 14px;
}

.pcat-ch-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.pcat-ch-check-icon {
  width: 10px;
  height: 10px;
  color: transparent;
}

.pcat-toggle-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.pcat-toggle-label {
  font-size: 13px;
  color: #4b5563;
}

.pcat-cropper-wrap {
  height: 360px;
  overflow: hidden;
  border-radius: 10px;
}

.pcat-crop-hint {
  margin-top: 10px;
  font-size: 12px;
  color: #9ca3af;
}
