.pisell-wallet-pass-card {
  border-radius: 12px;
  background-size: cover;
  height: 190px;
  width: 350px;
  background-position: center center;
  border: 1px solid #d0d5dd;
  position: relative;
  overflow: hidden;

  .pisell-wallet-add-holder-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 9;

    &-text {
      color: #fff;
      text-align: center;
      font-size: 16px;
      font-style: normal;
      font-weight: 600;
      line-height: 24px;
      white-space: pre-line;
    }

    &-button {
      font-weight: bold;
    }
  }

  .actions-dropdown-trigger {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    z-index: 1;
    border-radius: 6px;
    color: #1570ef;

    &:hover {
      background: var(--Gray-200, #eaecf0);
    }
  }

  .actions-btn-wrapper {
    position: absolute;
    top: 0px;
    right: 0px;
    z-index: 2;
    display: flex;
    gap: 0px;
    z-index: 3;

    & > div {
      cursor: pointer;
    }
    .pisell-card-status-icon {
      padding: 12px 8px;
    }
    .pisell-card-actions-edit-btn {
      padding: 12px 8px 20px;
    }
    .pisell-card-actions-detail-btn {
      padding: 12px 8px 20px;
    }
  }

  .pisell-wallet-pass-card-body {
    padding: 16px;
    color: var(--Gray-900, #101828);
    font-size: 14px;
    font-style: normal;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
  }

  .pisell-card-name-info-wrap {
    // 避免子组件 display: inline-block 产生的幽灵间距
    font-size: 0px;
  }

  .pisell-card-name-wrap {
    font-weight: 500;
    line-height: 20px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    .pisell-card-name {
      flex: 1;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }

  .pisell-card-holder-name {
    cursor: pointer;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 2px 8px;
    border-radius: 16px;
    max-width: 60%;
    height: 22px;
    min-width: 50px;
    text-align: center;
    line-height: 16px;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    background-color: #475467;
    color: white;
    margin: 4px 0;
  }

  .pisell-card-store-name {
    height: 20px;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pisell-card-amount-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-right: 16px;
    overflow: hidden;

    .pisell-card-amount-item-label {
      color: var(--Gray-500, #667085);
      font-weight: 400;
      line-height: 20px;
      height: 20px;
      white-space: nowrap;
    }

    .pisell-card-amount-item-value {
      font-size: 20px;
      font-weight: 600;
      line-height: 30px;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    &-balance,
    &-discount {
      .pisell-card-amount-item-label {
        transform: translateY(2px);
        margin-right: 2px;
      }
    }
  }

  .pisell-card-code-wrap {
    display: flex;
    justify-content: space-between;
    position: relative;

    .pisell-card-code {
      line-height: 20px;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
  }

  .pisell-lowcode-qrcode {
    padding: 6px;
  }

  .pisell-card-warn-message {
    position: absolute;
    bottom: 0;
    width: 100%;
    left: 0;
    background: var(--Warning-200, #fedf89);
    display: flex;
    padding: 10px 16px;
    color: var(--Gray-900, #101828);
    font-weight: 600;
    line-height: 20px;
    font-size: 14px;

    .pisell-card-icon {
      font-size: 20px;
      color: #dc6803;
      margin-right: 6px;
    }
  }

  .pisell-card-qr-code {
    position: absolute;
    bottom: 10px;
    right: 10px;

    .pisell-lowcode-qrcode-wrap {
      .pisell-lowcode-qrcode {
        background: rgba(255, 255, 255, 0.8) !important;
      }
    }
  }
}

.pisell-card-disabled {
  color: var(--Gray-500, #667085);
  padding-bottom: 30px;

  .pisell-card-amount-item {
    flex-direction: row;
    align-items: center;

    .pisell-card-amount-item-label {
      transform: unset !important;
    }

    .pisell-card-amount-item-value {
      font-size: 14px;
      font-weight: 400;
      line-height: 20px;
    }
  }

  .pisell-wallet-pass-card-body,
  .pisell-card-amount-item-label,
  .pisell-card-amount-item-value {
    color: var(--Gray-500, #667085) !important;
    font-weight: 400 !important;
  }
}

.pisell-card-disabled-hide-disabled-reason {
  height: 165px !important;
}

.pisell-wallet-pass-card.pisell-wallet-pass-card-mini {
  width: 250px;
  height: 150px;

  .pisell-card-name-wrap {
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 12px;
  }

  .pisell-card-store-name {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
  }

  .pisell-wallet-pass-card-redeem {
    visibility: hidden;
    flex-direction: row;
    align-items: center;
    margin-bottom: 4px;

    .pisell-card-amount-item-label-icon {
      font-size: 20px;
      margin-right: 8px;
    }

    .pisell-card-amount-item-label,
    .pisell-card-amount-item-value {
      color: var(--Gray-500, #667085);
      font-style: normal;
      font-weight: 600;
    }
    .pisell-card-amount-item-label {
      font-size: 14px;
    }
    .pisell-card-amount-item-value {
      font-size: 20px;
    }
  }

  &.active {
    .pisell-wallet-pass-card-redeem {
      .pisell-card-amount-item-label,
      .pisell-card-amount-item-value {
        color: var(--Primary-600, #7f56d9);
      }
      .pisell-card-amount-item-value {
        text-decoration: underline;
      }
    }
  }

  .pisell-card-amount-item-balance {
    flex-direction: row;
    align-items: center;

    .pisell-card-amount-item-label,
    .pisell-card-amount-item-value {
      font-size: 14px;
      font-weight: 600;
      color: var(--Gray-900, #101828);
      line-height: 20px;
    }
  }

  .pisell-card-checked-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 16px 16px 16px 32px;
    z-index: 10;
    .pisell-lowcode-radio-wrapper {
      margin: 0;
    }
    .pisell-lowcode-radio-inner {
      width: 20px;
      height: 20px;
    }
  }

  .pisell-card-warn-message {
    padding: 6px 16px;
  }
}

.pisell-wallet-pass-card-detail-modal,
.pisell-wallet-pass-card-edit-modal {
  .pisell-lowcode-form-item {
    margin-bottom: 20px;
  }
}
