@import "../../styles/themes/variable.scss";


@font-face {
  font-family: "xh-iconfont"; /* Project id 4043926 */
  src:
    url('./font/iconfont.woff2?t=1687140360510') format('woff2'),
    url('./font/iconfont.woff?t=1687140360510') format('woff'),
    url('./font/iconfont.ttf?t=1687140360510') format('truetype');
}

#{$xh-prefix}-cell {
  display: flex;
  justify-content: space-between;
  background-color: #fff;
  align-items: center;
  position: relative;
  box-sizing: border-box;
  line-height: 1.2;
  padding: 28px 0;
  width: 100%;
  &.paddingHorizontal {
    padding: 28px;
  }
  font-size: 28px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #333333;
  &.start {
    align-items: flex-start;
  }
  &.center {
    align-items: center;
  }
  &.end {
    align-items: flex-end;
  }
  &.secondary {
    padding: 16px 28px;
  }
  &.outline:active {
    background-color: #f0f0f0;
  }
  &.border:after {
    content: " ";
    position: absolute;
    left: 28px;
    bottom: 0;
    width: calc(100% - 56px);
    height: 2px;
    background-color: #EEE;
  }
  &-icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    margin-right: 15px;
    img {
      max-width: 100%;
      max-height: 100%;
    }
    image {
      max-width: 100%;
      max-height: 100%;
    }
  }
  &-main {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    &.ellipsis {
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    color: inherit;
    font-size: inherit;
    line-height: 1.5;
    &-content {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    &-description {
      font-size: 20px;
    }
  }
  &-description {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    margin-left: 80px;
    flex-direction: column;
    display: flex;
    &-placeholder {
      color: var(--font-color-tertiary)
    }
    &-sub {
      font-size: 20px;
      margin-top: 2px;
    }
  }

  &-value {
    display: flex;
    align-items: center;
    // max-width: 280px;
    &-info {
      display: inline-block;
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    &-icon {
      display: inline-block;
      margin-left: 7px;
      &-arrow {
        display: block;
        font-family: 'xh-iconfont';
        -webkit-font-smoothing: antialiased;
        font-size: 20PX;
        color: #c8c8c8;
        &:before {
          content: "\e603";
        }
      }
    }
  }
}
