@prefix: sku-param-selector;

.@{prefix} {
  ul,
  li,
  a {
    margin: 0;
    padding: 0;
  }

  li,
  ul {
    list-style: none;
  }

  .attr-item {
    margin-bottom: 12px;

    .itemTitle {
      margin-bottom: 12px;
    }

    ul {
      display: flex;
      width: 641px;

      li {
        width: 160px;
        float: left;
        position: relative;
        margin: 0 16px 16px 0;
        line-height: 48px;
        height: 48px;
        vertical-align: middle;
        padding: 1px;
        font-size: 14px;
        color: #3a2e2e;
        border: 1px solid #d9d9d9;

        &:hover {
          border: 1px solid #ed2121;  
        }
      }

      .selected {
        border: 1px solid #ed2121;
        &:after {
          content: "";
          position: absolute;
          bottom: 0px;
          right: 0px;
          width: 12px;
          height: 12px;
          overflow: hidden;
          text-indent: -99em;
          display: block;
          background-repeat: no-repeat;
          background-position: 0 0;
          background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAMAAABhq6zVAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAJUExURUxpcf8AN////7f4NBoAAAABdFJOUwBA5thmAAAAMUlEQVQI103MAQ4AMAQEQev/j66i6YrEXIKIX9jY2NjYyDmhZnlCo5rdyWvebfYDVAcSmABbA7WD+QAAAABJRU5ErkJggg==);
        }
      }
      .unselectable {
        background-color: #f5f5f5;
        &:hover {
          border: 1px solid #d9d9d9;
        }
      }
    }
  }

  .attr-item li a:hover {
    text-decoration: none;
  }

  .itemA {
    text-decoration: none;
    width: 100%;
    height: 100%;
    display: block;
    text-align: center;
    font-size: 16px;
    color: #3a2e2e;
    letter-spacing: 0;

    span {
      max-width: 97px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      text-indent: 0;
      margin-left: 45px;
    }
  }

  .itemImg {
    background-position: center !important;
  }

  .itemImgName {
    background-position: left center !important;
  }

  .itemName {
    padding: 0 9px;

    span {
      max-width: 142px !important;
      margin: 0px;
    }
  }
}
