// 颜色变量
$color-primary: #f4b700;
$color-primary-hover: #f7c800;
$color-primary-active: #ffcc32;
$color-primary-border: #f4b700;

.brand-select-search-view {
  position: relative;
  width: 100%;
  box-sizing: border-box;

  .brand-select-item {
    min-height: 50px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    position: relative;
    padding: 12px 20px 12px 20px;
    border-bottom: 1px solid #f2f4fa;

    .item-label {
      font-size: 14px;
      color: #979aa8;
      margin-right: 16px;
      min-width: 32px;
    }

    .item-content {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      flex-wrap: wrap;
      width: 100%;

      .alphabet-list, .select-list {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        margin-bottom: 10px;
        flex-wrap: wrap;

        .list-item {
          position: relative;
          height: 24px;
          width: 20px;
          font-size: 14px;
          line-height: 20px;
          margin: 0 16px 0 0;
          border-radius: 2px;
          text-align: center;
          border: 1px solid transparent;
          cursor: pointer;
          user-select: none;
        }

        .list-item:hover {
          color: $color-primary;
        }

        .list-item:hover:after {
          position: absolute;
          content: '';
          width: 35%;
          height: 1px;
          background: $color-primary;
          left: calc((100% - 35%) / 2);
          bottom: 0;
        }

        .item-active {
          background: $color-primary-active;
          border: 1px solid $color-primary;
        }

        .item-active:hover {
          color: #000000;
        }

        .item-active:hover:after {
          display: none;
        }
      }

      .select-list {
        margin-bottom: 0;

        .list-item {
          width: 80px;
          margin: 0 10px 0 0;
        }
      }

      .selected {
        margin-bottom: -10px;

        .list-item {
          border: 1px solid $color-primary;
          color: $color-primary;
          margin-bottom: 10px;
        }

        .list-item:hover {
          background: #f7f8fc;
        }

        .list-item:hover:after {
          display: none;
        }
      }

      .alphabet-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        padding: 2px 12px 12px;
        background-color: #f7f8fc;
        width: 100%;
        min-height: 50px;
        box-sizing: border-box;

        .content-item {
          position: relative;
          width: 80px;
          margin: 10px 8px 0 0;
          font-size: 14px;
          overflow: hidden;
          background: #ffffff;
          text-align: center;
          height: 28px;
          line-height: 26px;
          border: 1px solid transparent;
          user-select: none;
        }

        .content-item:hover {
          color: #f4b700;
        }

        .content-item:hover:after {
          position: absolute;
          content: '';
          width: 35%;
          height: 1px;
          background: #f4b700;
          left: calc((100% - 35%) / 2);
          bottom: 0;
        }

        .item-active {
          background: $color-primary-active;
          border: 1px solid $color-primary;
        }

        .item-active:hover {
          color: #000000;
        }

        .item-active:hover:after {
          display: none;
        }
      }

      .select-region {
        .region-label {
          margin: 0 12px;
        }
        .region-label:first-child{
          margin-left: 0;
        }
      }
    }
  }

  .brand-select-item:last-child {
    border-bottom: none;
  }
}
