/* PisellPaymentList 样式 */
.pisell-payment-list {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  --pisell-theme-color: #7f56da;
}

/* 标题样式 */
.pisell-payment-list-title {
  color: #101828;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-shrink: 0;
}

/* 滚动容器样式 */
.pisell-payment-list-scroll-container {
  flex: 1;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 滚动内容区域 */
.pisell-payment-list-scroll-content {
  scroll-behavior: smooth;
}

/* 隐藏滚动条 */
.pisell-payment-list-hide-scrollbar {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 和 Edge */

  &::-webkit-scrollbar {
    display: none; /* Chrome, Safari 和 Opera */
  }
}

/* Grid 容器样式 */
.pisell-payment-list-grid-container {
  display: grid;
  padding-bottom: 8px;

  /* 单列布局 */
  &.pisell-payment-list-single-column {
    grid-template-columns: 1fr;
  }

  /* 两列布局 */
  &.pisell-payment-list-two-column {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 三列布局 */
  &.pisell-payment-list-three-column {
    grid-template-columns: repeat(3, 1fr);
  }

  /* 四列布局 */
  &.pisell-payment-list-four-column {
    grid-template-columns: repeat(4, 1fr);
  }

  /* 五列布局 */
  &.pisell-payment-list-five-column {
    grid-template-columns: repeat(5, 1fr);
  }

  /* 六列布局 */
  &.pisell-payment-list-six-column {
    grid-template-columns: repeat(6, 1fr);
  }

  /* 自适应列布局 */
  &.pisell-payment-list-auto-column {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* 禁用状态样式 */
.pisell-payment-list-disabled {
  cursor: not-allowed;
  
  .pisell-payment-list-title {
    color: #101828;
    /* 标题保持正常颜色 */
  }
}

/* 通用样式类 */
.pisell-payment-list-theme-color {
  color: var(--pisell-theme-color, #7f56da);
}

.pisell-payment-list-error-color {
  color: var(--Error-500, #f04438);
}

.pisell-payment-list-pointer {
  cursor: pointer;
}

/* 渐变动画 */
@keyframes pisellPaymentListFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pisellPaymentListFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* 响应式布局支持 */
@media (max-width: 768px) {
  .pisell-payment-list-grid-container:not(.pisell-payment-list-single-column) {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  .pisell-payment-list-grid-container:not(.pisell-payment-list-single-column) {
    grid-template-columns: 1fr;
  }
}

/* 插槽样式 */
.pisell-payment-list-slot-top,
.pisell-payment-list-slot-bottom {
  width: 100%;
  flex-shrink: 0;
}

.pisell-payment-list-slot-left,
.pisell-payment-list-slot-right {
  flex-shrink: 0;
}

