@charset "utf-8";
@import "../../base/fn";

$lineHeight30: floor($ysui-f30 * 1.5);
$lineHeight28: floor($ysui-f28 * 1.5);
$lineHeight26: floor($ysui-f26 * 1.5);

.ysui-cells {
  margin-top: 20px;
  background-color: #ffffff;
  font-size: $ysui-f30;
  color: $ysui-c2;
  line-height: $lineHeight30 / $ysui-f30;
  overflow: hidden;
  position: relative;
}

.ysui-cells__title {
  margin-top: 10px;
  margin-bottom: 5px;
  padding-left: 30 * $px;
  padding-right: 30 * $px;
  font-size: $ysui-f28;
  color: $ysui-c3;

  & + .ysui-cells {
    margin-top: 0;
  }
}

.ysui-cells__tips {
  margin-top: 5px;
  padding-left: 30 * $px;
  padding-right: 30 * $px;
  font-size: $ysui-f24;
  color: $ysui-c5;
}

.ysui-cell {
  padding: 0 (30 * $px);
  position: relative;
  display: flex;
  align-items: center;
  &:before {
    @include setTopLine();
    left: 30 * $px;
    z-index: 2;
  }
  &:first-child {
    &:before {
      display: none;
    }
  }
}
a.ysui-cell {
  text-decoration: none;
}

.ysui-cell__hd {
  padding: (20 * $px) (12 * $px) (20 * $px) 0;
  font-size: 0;
}

.ysui-cell__bd {
  padding: (30 * $px - ($lineHeight30 - $ysui-f30) / 2) 0;
  flex: 1;
  @include ellipsis();

  &.ysui-cell__bd_multi-line {
    padding: (26 * $px - ($lineHeight30 - $ysui-f30) / 2) 0 (26 * $px - ($lineHeight26 - $ysui-f26) / 2) 0;
    .ysui-cell__bd__title {
      @include ellipsis();
    }
    .ysui-cell__bd__text {
      font-size: $ysui-f26;
      line-height: $lineHeight26 / $ysui-f26;
      color: $ysui-c5;
      @include ellipsis();
    }
    .ysui-cell__bd__title + .ysui-cell__bd__text {
      margin-top: ((10 * $px) - (($lineHeight30 - $ysui-f30) / 2) - (($lineHeight26 - $ysui-f26) / 2));
    }
    .ysui-cell__bd__text + .ysui-cell__bd__text {
      margin-top: ((10 * $px) - ($lineHeight26 - $ysui-f26));
    }
  }
}

.ysui-cell__ft {
  text-align: right;
  &.ysui-cell__ft_explain {
    flex: 1;
    font-size: $ysui-f28;
    line-height: $lineHeight28 / $ysui-f28;
    padding: (31 * $px - ($lineHeight28 - $ysui-f28) / 2) 0;
    color: $ysui-c4;
    @include ellipsis();
  }
}
