@import '../../styles/mixins/text-ellipsis.scss';

.nut-sku {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0px;
  background: #fff;
  &-header {
    height: 100px;
    display: flex;
    flex-shrink: 0;
    margin-top: 18px;
    padding: 0 18px;
    > img {
      width: 100px;
      height: 100px;
      flex-shrink: 0;
      margin-right: 12px;
      border-radius: 0;
    }
    &-right {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      overflow: hidden;
      .nut-price {
        display: flex;
        align-items: baseline;
      }
      &-extra {
        font-size: 12px;
        color: #808080;
      }
    }
  }
  &-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    &::-webkit-scrollbar {
      display: none;
    }
    margin-top: 24px;
    padding: 0 18px;
  }
  &-select {
    &-item {
      display: flex;
      flex-direction: column;
      &-title {
        height: 13px;
        font-weight: bold;
        font-size: 13px;
        color: #000;
        margin-bottom: 18px;
      }
      &-skus {
        display: flex;
        flex-wrap: wrap;
        &-sku {
          margin-right: 12px;
          height: 30px;
          line-height: 30px;
          padding: 0 18px;
          border-radius: 15px;
          font-size: 11px;
          color: #000;
          flex-shrink: 0;
          margin-bottom: 12px;
          background: rgba(242, 242, 242, 1);
          border: 1px solid rgba(242, 242, 242, 1);

          &.active {
            background: rgba(#fa2c19, 0.15);
            border: 1px solid #fa2c19;
            color: #fa2c19;
          }
          &.disable {
            color: #808080;
            text-decoration: line-through;
          }
        }
      }
    }
  }
  &-stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0 30px;
    &-title {
      font-weight: bold;
      font-size: 13px;
      color: #000;
      margin-right: 12px;
      @include oneline-ellipsis(calc(100% - 175px))
    }
    &-limit {
      flex: 1;
      display: flex;
      align-items: center;

      font-size: 12px;
      color: #808080;
    }
    &-count {
      display: flex;
      align-items: center;
      &-lowestBuy {
        font-size: 12px;
        color: #fa2c19;
      }
    }
  }
  &-operate {
    width: 100%;
    &-desc {
      display: block;
      width: 100%;
      max-height: 94px;
      padding: 10px;
      text-align: center;
      background: #fbf9da;
      color: #de6a1c;
      font-size: 12px;
      @include text-ellipsis
    }
    &-btn {
      height: 54px;
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: #fff;
      text-align: center;
      padding: 0 18px;
      box-sizing: border-box;
      border-top: 0;
      &-item {
        width: 100%;
        height: 40px;
        line-height: 40px;
        margin-right: 18px;
        background: linear-gradient(90deg, #fa2c19, #fa6419 100%);
        border-radius: 21px;
        font-size: 15px;
        font-weight: normal;
        color: #fff;
        &:last-child {
          margin-right: 0;
        }
      }

      &-buy {
        background: linear-gradient(
          135deg,
          rgba(255, 186, 13, 1) 0%,
          rgba(255, 195, 13, 1) 69%,
          rgba(255, 207, 13, 1) 100%
        );
      }
    }
  }
}