/* 
  组合销售 css
*/
 .product-bindsale {
  --bs-txt-color:#333;
    margin-bottom:var(--bindsale-bottom, 30px);
  }

  .bs-labels {
    display: flex;
    margin-bottom: 20px;
    border-bottom:var(--bs-labels-border-bottom, 1px solid var(--theme-border-color));
  }

  .bs-label {
    padding: 0 var(--detail-tab-right) 0   0;
    cursor: pointer;
  }

  .bs-label span {
    display: block;
    padding: 0 0 var(--detail-tab-bottom);
    margin: 0;
    font-size: var(--detail-tab-size);
    line-height: var(--detail-tab-height);
    color: var(--theme-font-color);
  }

  .bs-label.active span {
    font-weight:var(--detail-tab-active-weight, 700);
    border-bottom: 2px solid var(--highlight-bg-color);
    color:var(--detail-tab-active-color, inherit);
  }

  .bs-tab {
    display: none;
    position: relative;
    align-items: stretch;
    flex-wrap: wrap;
    gap:var(--bs-equal-gap, 40px);
  }
  
  .bs-tab.active {
    display: flex;
  }
  .bs-tab.active::-webkit-scrollbar{
    display: block;
    width: 3px;
  }
  /* 商品 */
  .bs-swiper {
    position: relative;
  }
  [data-bs-needswiper=true]{
    width: calc(var(--bs-prod-width , 216px) * 3 + 40px);
    margin: 0;
  }
  .bs-swiper-wrapper{
    display: flex;
    height: 100%;
  }
  .bs-swiper-wrapper .bs-prod:not(:last-child){
    margin-right: 20px;
  }
  .bs-swiper-wrapper .bs-prod{
    height: 100%;
  }
  .bs-prods {
    position: relative;
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    height: 100%;
    gap:var(--bs-add-gap, 40px);
  }

  .bs-prod {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width:var(--bs-prod-width, 216px);
  }
 
  .bs-prod-img {
    position: relative;
    width: 100%;
    border-radius: var(--theme-border-radius);
  }

  .bs-prod-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    width: 100%;
    padding: 14px 0 0;
  }
  .bs-prod-img .img-box{
    --img-box-padding-bottom:var(--product-img-pd);
    background-color: transparent;
  }
  .bs-prod-img img {
    width: 100%;
    --img-box-object-fit:contain;
  }

  /* 商品内容 */
  .bs-prod-title {
    margin: 0 0 14px 0;
    font-size: 16px;
    line-height: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    text-decoration: none;
    color: var(--theme-font-color);
  }

  .bs-prod-opr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: default;
  }

  .bs-prod[data-index="0"] .bs-checkbox-native {
    display: none;
  }

  .bs-prod[data-index="0"] .bs-price {
    margin-left: 0;
  }

  .bs-plus {
    align-self: center;
    font-size: var(--detail-bs-plus-size, 16px);
    color: var(--theme-font-color);
  }

  .bs-equal {
    align-self: center;
    font-size: var(--detail-bs-equal-size,16px);
    color: var(--theme-font-color);
  }

  .bs-price {
    color:var(--bs-price-color, var(--detail-product-price-color, var(--highlight-font-color)));
    font-size: 20px;
    line-height: 23px;
    font-weight: bold;
  }

  /* sku选择框 */
  .bs-prod-sku {
    position: relative;
    order: 1;
    width: 90px;
    color: var(--highlight-font-color);
  }

  .bs-sku-label {
    position: relative;
    height: 22px;
    line-height: 20px;
    width: 100%;
    padding: 0 32px 0 5px;
    box-sizing: border-box;
    border: 1px solid var(--highlight-font-color);
    border-radius: var(--theme-border-radius);
    font-size: 12px;
    color: inherit;
    background-color: transparent;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }
  .bs-sku-label::after{
    content: var(--bs-sku-down-content, "\e7e8");
    font-family: "iconfont";
    position: absolute;
    right: 4px;
    top: 4px;
    font-size: 10px;
    line-height: 1;
  }
  .bs-prod-sku div option {
    display: none;
  }

  /* .bs-prod-sku .field__caret {
    position: absolute;
    top:var(--bs-field-caret-top,4px );
    right: 7px;
    font-size: 12px;
    cursor: pointer;
  } */

  .bs-prod-sku .unchecked {
    color: #ccc;
    border: 1px solid #ccc;
    cursor: not-allowed;
  }
  /* .bs-prod-sku .field__caret.unchecked{
    border: 0;
  } */
  .bs-sku-qty {
    position: absolute;
    right: 19px;
  }
  [data-bs-needswiper="false"] .bs-swiper-btn{
    display: none;
  }
  .bs-swiper-btn {
    /* display: none; */
    position: absolute;
    top: calc(50% - 63px);
    z-index: 100;
    height: var(--arrow-btn-height);
    width: var(--arrow-btn-width);
    line-height: var(--arrow-btn-height);
    text-align: center;
    font-size: 15px;
    color: #fff;
    background-color: var(--highlight-font-color);
    border-radius: 50%;
    opacity: .5;
    user-select: none;
    cursor: pointer;
  }
  .bs-swiper-btn:hover{
    opacity: 1;
  }

  .bs-next-btn {
    right: 0;
  }

  .bs-prev-btn {
    left: 0;
  }
  .swiper-button-disabled{
    cursor: not-allowed;
  }
  /* 
    右侧总价格
    */
  .bs-tab .sold-out {
    align-self: center;
    margin-left: 30px;
    width: 200px;
  }

  .bs-bundle-add {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    min-width: 233px;
  }

  .bs-bundle-price {
    display: flex;
    align-items: center;
    font-size: 14px;
    white-space: nowrap;
    color: var(--theme-font-color);
  }
  .bs-bundle-summary{
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .bs-bundle-price .bs-total-price {
    margin: 0 14px;
    font-size: 20px;
    font-weight: 700;
    color:var(--bs-total-price-color, var(--highlight-font-color));
  }

  .bs-bundle-summary del {
    font-size: 14px;
    color: var(--theme-font-color-sub);
    text-decoration: line-through;
  }

  .bs-add-btn {
    margin-top: 14px;
    padding: 0 17px;
  }

  /* 
    规格选择弹框
    */
  .bs-size-wrapper {
    display: none
  }

  .bs-size-wrapper.active {
    display: block;
  }

  .bs-size-wrapper {
    z-index:1001;
    position: absolute;
    bottom: 55px;
    left: 0px;
    padding: 16px;
    box-shadow: -3px 5px 8px 1px rgb(0 0 0 / 10%);
    background: rgba(0, 0, 0, 0);
    max-width: 660px;
    background-color: var(--bs-pop-bgcolor,#fff);
  }
  .bs-size-content{
    display: flex;
  }
  .bs-size-triangle {
    content: "";
    width: 0;
    height: 0;
    border-color: transparent var(--bs-pop-bgcolor,#fff) transparent transparent;
    border-style: solid;
    border-width: 20px 20px 20px 0px;
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: rotate(-90deg);
  }

  .bs-size-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 260px ;
  }

  .bs-size-image {
    position: relative;
    width: 130px;
    min-width: 130px;
    height:calc(130px * var(--product-img-pd-math));
    margin-right: 26px;
    overflow: hidden;
    font-size: 0;
    background: var(--img-background);
    background-size: var(--img-background-size);
    background-color: transparent;
  }

  .bs-size-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .bs-variant-name {
    margin-bottom:5px;
    color: var(--bs-txt-color);
    font-size: 14px;
  }

  .bs-variants-button .bs-variant-name {
    position: unset
  }

  .bs-size_specs {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
    padding: 0 16px;
    height:var(--btn-height);
    color: var(--bs-txt-color);
    background-color: #fff;
    font-size: 16px;
    border-radius: var(--theme-border-radius);
    cursor: pointer;
    border: 1px solid var(--theme-border-color);
    transition: all .1s ease-in-out;
    outline: none;
  }

  .bs-variants-select {
    position: relative;
  }

  .bs-size_specs .bs-variant-item {
    margin-top: 50px;
  }

  .bs-variants-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 4px;
  }

  .bs-variants-button .bs-variant-item {
    min-width: 12px;
    margin-bottom: 8px;
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 400;
    line-height: 15px;
    border-radius: var(--theme-border-radius);
    border:var(--bs-variants-button-border, 1px solid var(--bs-variants-button-border-color, #e8e8e8));
    color: var(--bs-txt-color);
    background-color:var(--bs-variants-button-bgcolor, #fff);
    letter-spacing: -.03em;
    cursor: not-allowed;
    opacity: .5;
  }

  .bs-variants-button .bs-variant-item:not(:last-child) {
    margin-right: 8px;
  }

  .bs-variants-button .handle-bs-variant-click {
    color: var(--theme-font-color);
    border:var(--handle-bs-variant-borer, 1px solid var(--handle-bs-variant-borer-color, var(--theme-border-color)));
    cursor: pointer;
    opacity: 1;
  }

  .bs-variants-button .bs-variant__selected {
    border:var(--bs-variants-button-selected, 1px solid var(--highlight-font-color));
    color:var(--bs-variant-selected-color, var(--highlight-font-color));
  }

  .bs-variant-quantity div:last-child {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: var(--btn-height);
    text-align: center;
    background: transparent;
    border-radius: var(--theme-border-radius);
    border: 1px solid var(--theme-border-color);
  }

  .bs-variants-button+.bs-variant-quantity div:last-child {
    margin-top: 14px;
  }

  .bs-quantity-sub,
  .bs-quantity-add {
    display: block;
    width: 40px;
    font-size: 12px;
    cursor: pointer;
    color: var(--bs-txt-color);
  }

  .bs-quantity-sub.disabled,
  .bs-quantity-add.disabled {
    color: #999;
    cursor: not-allowed;
  }

  .bs-variant-quantity div:last-child input {
    width: 40px;
    height: 100%;
    padding: 0 5px;
    border: none;
    color: var(--bs-txt-color);
    text-align: center;
    font-size: 16px;
    border-radius: 0;
    background-color: transparent;
  }

  .bs-size-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    text-align: center;
  }

  .bs-size-bottom button {
    flex:1;
    --btn-height: 40px;
      --btn-side-padding: 0;
  }

  .bs-size-bottom .bs-sku-ok {
    margin-left: 10px;
  }

  .bs-size-bottom .bs-sold-out {
    width: 50%;
    color: rgb(0, 0, 0);
    background-color: rgb(242, 242, 242);
    border: none;
  }


  .bs-prod-sku {
    cursor: pointer;
  }

  .bs-prods .bs-prod:last-child .icon-plus {
    display: none;
  }

  .bs-size-mask {
    display: none;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
  }

  .bs-size-mask.active {
    display: block;
  }
 
  @media screen and (max-width: 1200px) {
    .bs-swiper-wrapper .bs-prod:not(:last-child){
      margin-right: 10px;
    }
    [data-bs-needswiper=true]{
      width: calc(var(--bs-prod-width, 216px) * 2 + 20px);
    }
    .bs-bundle-summary{
      flex-direction: column;
    }
  }
  @media screen and (max-width: 1150px) and (min-width: 768px){
    .bs-tab{
      flex-direction: column;
      align-items: flex-start;
    }
    .bs-equal{
      display: none;
    }
    .bs-size-wrapper{
      bottom: 175px;
    }
  }
  @media screen and (max-width: 767px) {
    .bs-swiper-btn{
      display: none;
    }
    .bs-bundle-summary{
      flex-direction: row;
    }
    .product-bindsale {
      --bindsale-bottom: 20px;
    }
    .bs-labels {
      margin-bottom: 15px;
      box-sizing: border-box;
      overflow-x: auto;
      white-space: nowrap;
    }

    .bs-labels::-webkit-scrollbar,
    .m-bs-prod-imgs::-webkit-scrollbar {
      display: none;
    }
    .m-bs-prods {
      display: block;
    }

    .bs-prod-img {
      width: 100px;
      flex-shrink: 0;
      margin-right: 10px;
    }

    .bs-equal,
    .bs-tab .sold-out {
      display: none;
    }

    .bs-tab {
      --bs-equal-gap: 0;
      flex-direction: column;
    }

    .bs-plus {
      display: none;
    }

   
    .bs-prods {
      --bs-add-gap: 0;
      flex-wrap: wrap;
    }

    .bs-swiper {
      width: 100%;
      margin-left:0;
    }

    .bs-swiper-wrapper {
      flex-wrap: wrap;
      margin-left: 0;
      height: fit-content;
    }

    .bs-prod {
      position: relative;
      flex-direction: row;
      padding: 0 0 10px 30px;
      --bs-prod-width: 100%;
    }
    .bs-swiper-wrapper .bs-prod:not(:last-child){
      margin: 0;

    }
    .bs-prod-opr {
      flex: 1;
      flex-direction: column;
      align-items: baseline;
    }

    .bs-checkbox-native {
      --theme-checkbox-position: absolute;
      top: 50%;
      left: 0;
      transform: translateY(-50%);
    }
    .bs-prod-sku{
      width:167.5px;
    }
    .bs-sku-label {
      height: 25px;
      width: 100%;
      line-height: 25px;
      font-size: 12px;
    }
    .bs-prod-title {
      font-size: 14px;
      line-height: 19px;
      padding: 0;
      margin: 0 0 8px 0;
      width: 95%;
    }

    .bs-prod-content {
      /* position: relative; */
      padding: 0;
      width: 100%;
    }

    .bs-price {
      font-size: 16px;
    }

    .bs-bundle-add {
      width: 100%;
    }

    .bs-add-btn {
      font-weight: 700;
    }

    .bs-bundle-price {
      font-size: 12px;
      display: inline-block;
    }
    .bs-bundle-price .bs-total-price{
      margin:0 10px;
      font-size: 16px;
    }
    .bs-size-triangle {
      display: none;
    }

    .bs-size-wrapper {
      position: fixed;
      bottom: 0;
      top: 0;
      left: 0;
      right: 0;
      box-sizing: border-box;
      width: 100%;
      height: 100%;
      min-width: 100%;
      overflow-y: auto;
      border-radius: var(--theme-border-radius) var(--theme-border-radius) 0 0;
      z-index: 1000;
      --bs-pop-bgcolor: rgba(0, 0, 0, 0.5);
    }
    .bs-size-content{
      flex-direction: column;
      max-height: 70%;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 14px;
      background-color:var(--bs-size-content-bgcolor,#fff);
    }
    .bs-size-image {
      width: 70px;
      min-width: 70px;
      height: calc(70px * var(--product-img-pd-math));
      margin-bottom: 10px;
    }

    .bs-size_specs {
      margin-bottom: 14px;
      font-size: 14px;
    }

    .bs-variant-quantity div:last-child {
      width: 120px;
    }

    .bs-size-bottom button {
      width: 100%;
    }

    .bs-size-bottom .bs-sku-ok {
      margin-left: 12px;
    }

    .bs-size-bottom .bs-sold-out {
      position: relative;
      left: 50%;
      transform: translateX(-50%);
      width: 85%;
      color: rgb(0, 0, 0);
      background-color: rgb(242, 242, 242);
      border: none;
    }

  
  }

  /* 选择框样式 */
  .bs-checkbox{
    border-radius: var(--theme-border-radius);
    overflow: hidden;
  }
  input.bs-checkbox-native{
    --theme-checkbox-width:20px;
    --theme-checkbox-height:20px;
    --theme-checkbox-checked-size:14px;
  }
  /* input.bs-checkbox__native {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    height: 18px;
    margin: 0;
    opacity: 0;
    position: absolute;
    width: 18px;
  } */

  /* .bs-checkbox__control {
    display: block;
    display: none;
    border: 1px solid var(--highlight-font-color);
    border-radius: var(--theme-border-radius);
    flex-shrink: 0;
    height: 20px;
    pointer-events: none;
    position: relative;
    width: 20px;
  }

  .bs-checkbox__control:after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: -3px;
    right: -3px;
    top: -3px;
    border-radius: var(--theme-border-radius); 
    opacity: 0;
    transform: scale(.75);
    transition-duration: .2s;
    transition-property: opacity, transform;
  } */

  /* .bs-checkbox__native:focus~.bs-checkbox__control {
    border-color: var(--highlight-font-color);
  }

  .bs-checkbox__native:focus~.bs-checkbox__control:after {
    opacity: 1;
    transform: scale(1)
  }

  .bs-checkbox__native:checked~.bs-checkbox__control {
    border-color: var(--highlight-font-color);
  }

  .bs-checkbox__native:disabled~.bs-checkbox__control {
    opacity: .5;
    pointer-events: none;
  }

  .bs-checkbox__native:disabled:not(:checked)~.bs-checkbox__control {
    background-color: #ccc;
  } */


  /* .bs-checkbox__native:checked~.bs-checkbox__control .bs-checkbox__fill {
    opacity: 1;
  }

  .bs-checkbox__native:checked~.bs-checkbox__control .bs-checkbox__fill:after {
    transform: translateX(100%);
    transition-delay: .2s;
  }

  .bs-checkbox__native:indeterminate~.bs-checkbox__control {
    border-color: var(--highlight-font-color);
  }

  .bs-checkbox__native:indeterminate~.bs-checkbox__control:before {
    background-color: var(--highlight-font-color);
    content: "";
    height: 10%;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
  }

  .bs-checkbox__fill {
    background: var(--highlight-font-color) no-repeat 50% url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 15 11'%3E%3Cpath fill='%23fff' d='M4.5 8.5 1.58 5.58a.82.82 0 0 0-1.16 0 .82.82 0 0 0 0 1.17l3.49 3.5c.32.32.85.32 1.17 0l8.84-8.83a.82.82 0 0 0 0-1.17.82.82 0 0 0-1.17 0L4.5 8.5z'/%3E%3C/svg%3E");
    background-size: 75% 55%;
    opacity: 0;
    overflow: hidden;
    transition: opacity .2s;
  }

  .bs-checkbox__fill,
  .bs-checkbox__fill:after {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
  }

  .bs-checkbox__fill:after {
    background: var(--highlight-font-color);
    content: "";
    transition: transform .2s;
  } */


