.pisell-pro-cards-sku-card {
  position: relative;
  display: flex;
  // padding: 8px;
  align-items: center;
  // gap: 16px;
  border-radius: 8px;
  border: 1px solid #d0d5dd;
  background: #ffffff;
  cursor: pointer;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  box-shadow: var(--sku-card-shadow, none);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;

  &:hover:not(.pisell-pro-cards-sku-card-disabled) {
    transform: translateY(calc(-1 * var(--sku-card-hover-lift, 0px)));
  }

  &-disabled-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  &-disabled-text {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    transform: rotate(45deg);
  }

  &-left {
    display: flex;
    flex-direction: row;
    flex: 1;
    min-width: 0;
    align-items: center;
    align-self: stretch;
    padding: var(--sku-card-padding, 8px);
    gap: 16px;
  }

  &-with-image {
    min-height: 80px;
  }

  &-no-image {
    min-height: 56px;
  }

  &-active {
    border-color: var(--sku-card-selected-border, var(--color-primary, #5d3f9f));
    background: var(
      --sku-card-selected-background,
      var(--color-primary-bg, #fcfaff)
    );
    box-shadow:
      0 0 0 var(--sku-card-selected-ring-width, 0px)
        var(--sku-card-selected-ring-color, transparent),
      var(--sku-card-selected-shadow, var(--sku-card-shadow, none));
  }

  &-disabled {
    border: 1px solid #d0d5dd;
    background: #f9fafb;
    cursor: not-allowed;
  }

  &-content {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
    min-height: var(--sku-card-content-min-height, auto);
    padding: var(--sku-card-content-padding, 0);
  }

  &-content[data-align='center'] {
    justify-content: center;
  }

  &-image-container {
    position: relative;
    width: 96px;
    flex: none;
    // 跟随右边 content 高度变动
    align-self: stretch;
    border-radius: 8px;
    overflow: hidden;
  }

  &-image {
    // 绝对定位填充容器，不会撑开容器高度
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  &-image-default {
    // 绝对定位填充容器，不会撑开容器高度
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #98a2b3;
    font-size: 18px;
    font-weight: 400;
    background: #d9d9d9;
  }

  &-title {
    // 默认全部展示，可换行
    color: #1b1b1b;
    font-size: 14px;
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
    word-break: break-word;
  }

  &-subtitle {
    // 默认展示两行
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #777777;
    text-overflow: ellipsis;
    font-size: 12px;
    font-weight: 500;
    word-break: break-word;
  }

  &-price {
    color: #dc6803;
    font-size: 14px;
    font-weight: 600;
  }

  &-right {
    display: flex;
    flex: none;
    min-width: 0;
    align-self: stretch;
  }

  &-footer {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    flex: none;
    align-items: center;
    justify-content: center;
  }

  &[data-orientation='horizontal']&-with-footer {
    flex-wrap: wrap;
  }

  &[data-orientation='horizontal']&-quantity-auto&-quantity-side {
    flex-wrap: nowrap;
  }

  &[data-orientation='horizontal']&-with-footer &-left {
    flex-basis: 100%;
  }

  &[data-orientation='horizontal']&-with-footer&-with-image &-left {
    min-height: var(--sku-card-min-height, 80px);
  }

  &[data-orientation='horizontal']&-with-footer&-no-image &-left {
    min-height: var(--sku-card-min-height, 56px);
  }

  &[data-orientation='horizontal']&-with-footer &-footer {
    min-height: 48px;
    border-top: 1px solid #e4e7ec;
  }

  &[data-orientation='horizontal']&-quantity-auto&-quantity-side &-left {
    flex-basis: auto;
  }

  &[data-orientation='horizontal']&-quantity-auto&-quantity-side &-footer {
    width: auto;
    min-height: 0;
    flex: none;
    align-self: stretch;
    border-top: 0;
  }

  &[data-orientation='horizontal']&-quantity-auto&-quantity-side
    &-footer
    > .numeric-stepper {
    width: auto;
  }

  &[data-orientation='vertical'] {
    flex-direction: column;
    align-items: stretch;
  }

  &[data-orientation='vertical'] &-left {
    width: 100%;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  &[data-orientation='vertical'] &-image-container {
    width: 100%;
    flex: none;
    align-self: auto;
  }

  &[data-orientation='vertical'] &-content {
    width: 100%;
    align-self: auto;
  }

  &[data-indicator-placement='corner'] &-right {
    position: absolute;
    top: var(--sku-card-indicator-offset, 10px);
    right: var(--sku-card-indicator-offset, 10px);
    z-index: 1;
    align-self: auto;
  }

  &[data-indicator-visibility='selected']:not(
      .pisell-pro-cards-sku-card-active
    )
    &-right {
    opacity: 0;
    pointer-events: none;
  }
}
