/* PisellPaymentListItem 样式 */
.pisell-payment-list-item {
  width: 100%;
  height: 62px;
  padding: 8px 16px;
  background: white;
  border-radius: 8px;
  border: 1px #7f56da solid;
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
  display: flex;
  gap: 12px;
  transition: all 0.3s ease;
}

/* 左侧内容 */
.pisell-payment-list-item-left {
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  display: flex;
  min-width: 0; /* 防止内容溢出 */
}

/* 支付信息容器 */
.pisell-payment-list-item-info {
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px;
  display: flex;
  height: 100%;
  flex: 1;
  min-width: 0; /* 防止内容溢出 */
}

/* 支付信息内部容器 */
.pisell-payment-list-item-info-inner {
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  display: flex;
  width: 100%;
}

/* 支付方式名称 */
.pisell-payment-list-item-name {
  color: #101828;
  font-size: 16px;
  font-weight: 600;
  line-height: 17.96px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 手续费容器 */
.pisell-payment-list-item-info-surcharge {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 手续费文本 */
.pisell-payment-list-item-surcharge-text {
  color: #667085;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 编辑按钮 */
.pisell-payment-list-item-edit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  /* 禁用状态 */
  &.pisell-payment-list-item-edit-button-disabled {
    cursor: not-allowed;
    opacity: 0.4;
    pointer-events: none;

    .iconfont {
      color: #D0D5DD !important;
    }
  }
}

/* 右侧内容 */
.pisell-payment-list-item-right {
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  outline: none;
  box-shadow: none;
  flex: 1;
}

/* 选择按钮样式 */
.pisell-payment-list-item-selection-button {
  width: 36px;
  height: 37px;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  display: flex;
  transition: transform 0.2s ease;
}

/* Pay按钮样式 */
.pisell-payment-list-item-pay-button {
  background: #7f56da;
  
  &:disabled {
    background: #d0d5dd;
    color: #fff;
  }
}

/* PaymentIcon 样式 */
.pisell-payment-list-item-icon-container {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Pointer样式 */
.pisell-payment-list-item-pointer {
  cursor: pointer;
}

/* Disabled state styles */
.pisell-payment-list-item-disabled {
  background: white;
  border: 1px #d0d5dd solid;
  cursor: not-allowed !important;
  pointer-events: none;

  .pisell-payment-list-item-name {
    color: #d0d5dd;
  }

  .pisell-payment-list-item-surcharge-text {
    color: #d0d5dd;
  }

  .pisell-payment-list-item-selection-button {
    .iconfont {
      color: #d0d5dd !important;
    }
  }
}

