@import '../../style/mixin';

.Yep-cell {
  border-radius: 24px;
  background-color: $fill-base;

  div:not(:last-child) {
    .Yep-cell-line {
      @include border-bottom-1px();
    }
  }
}

.Yep-cell-item.Yep-cell-item-disabled {
  .Yep-cell-line {
    .Yep-cell-content {
      color: #bbb;
    }
  }
}

.Yep-cell-item {
  position: relative;
  display: flex;
  padding-left: 36px;
  padding-top: 48px;
  background-color: $fill-base;
  vertical-align: middle;
  overflow: hidden;
  transition: background-color 200ms;
  align-items: flex-start;
  border-radius: 24px;
  &.Yep-cell-item-top {
    .Yep-cell-line {
      align-items: flex-start;
    }
  }

  &.Yep-cell-item-middle {
    .Yep-cell-line {
      align-items: center;
    }
  }

  &.Yep-cell-item-active {
    background-color: $fill-tap;
  }

  /* cell左图片显示*/
  .Yep-cell-label {
    color: #262626;
    font-size: 26px;
    font-weight: bold;
    &:first-child {
      margin-right: 24px;
    }

    &:last-child {
      margin-left: $h-spacing-md;
    }
  }

  .Yep-cell-line {
    position: relative;
    display: flex;
    flex: 1;
    align-self: stretch;
    padding-right: $h-spacing-lg;
    overflow: hidden;
    padding-bottom: 48px;
    /* cell左侧主内容*/
    .Yep-cell-content {
      flex: 1;
      color: #262626;
      font-size: 26px;
      line-height: 26px;
      text-align: left;

      @include sl();
    }

    /* 辅助性文字*/
    .Yep-cell-brief {
      color: $color-text-secondary;
      font-size: $font-size-help;
      line-height: 1.5;
      margin-top: $v-spacing-sm;
      @include sl();
    }

    /* cell右侧箭头*/
    .Yep-cell-arrow {
      display: block;
      width: $icon-size-xs;
      height: 26px;
      margin-left: 34px;
      visibility: visible;
      .Yep-icon {
        color: #262626;
        width: 36px;
        height: 26px;
      }
    }

    &-wrap {
      .Yep-cell-content {
        white-space: normal;
      }

      .Yep-cell-extra {
        white-space: normal;
      }
    }
  }
}
