.product__thumbs--desktop {
  .product__thumbs__holder--desktop-slider {
    display: flex;
    flex-flow: row nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;

    &::-webkit-scrollbar {
      display: none;
    }

    &.is-enabled {
      cursor: grab;
    }

    &.is-dragging:active {
      cursor: grabbing;
    }

    &.is-dragging a {
      pointer-events: none;
    }

    &.is-scrolling {
      scroll-snap-type: none;
    }

    .product__thumb {
      scroll-snap-align: start;
      flex: 0 0 auto;
    }
  }

  grid-slider:hover .slider__button:not(:disabled) {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}


video-play-button {
  display: flex;
  position: absolute;
  border: 1px solid var(--color-input-bg-primary);
  border-radius: 100px;
  width: 83px;
  height: 83px;
  z-index: 2;
  left: 14px;
  bottom: 14px;

  @media only screen and (min-width: 750px) {
    left: 30px;
    bottom: 30px;
  }

  .thumbnail-container {
    display: flex;
    width: 100%;
    height: 100%;
    cursor: pointer;
  }

  .thumbnail-container img {
    width: 100%;
    height: 100%;
    border-radius: 100px;
    object-fit: cover;
  }

  .play-btn {
    display: flex;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
  }

}


.video-popup-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-input-bg-primary);
  justify-content: center;
  align-items: center;
  z-index: 99999999999;

  &.open {
    display: flex;
  }

  .video-container video {
    max-width: 95vw;
    max-height: 90vh;
    width: 100%;
  }

  .btn-close {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-input-bg-primary);
    border: 1px solid var(--border);
    cursor: pointer;
    z-index: 99999999999;
    transition: all 0.3s ease;
    top: 15px;
    right: 15px;

    @media only screen and (min-width: 750px) {
      top: 40px;
      right: 40px;
    }

    &:hover {
      transform: scale(1.1);
    }
  }
}





.product__wrapper {

  @media only screen and (max-width: 749px) {
    .product__images {
      position: relative;
      margin-left: -14px;
      margin-right: -4px;
      --gap: 10px;

      .product-single__photo,
      .product__slides {
        position: static;
        margin-bottom: 0;
      }
    }

    .product__content {
      padding-top: 20px;
    }
  }

  @media only screen and (min-width: 750px) {
    .product__images {
      .product__photo {
        border-radius: 6px;
      }

      .slider__arrows {
        .slider__button {
          width: 40px;
          height: 40px;
          background-color: var(--color-brand-light-grey);
          border: none;
          --icon-size: 21px;
          --inner: 40px;

          &:before {
            background: var(--color-brand-green);
          }

          &:after {
            background-color: var(--color-brand-green);
          }

          &:hover {
            &:before {
              background: var(--color-brand-light-grey);

            }
          }
        }
      }
    }

    .product__thumbs {
      margin: 28px 0 0 0;

      .product__thumb {
        padding: 0;
        margin-right: 12px;
        border-radius: 6px;

        &::after {
          display: none;
        }

        &.is-active {
          border: 1px solid var(--color-brand-green);
        }

        .product__thumb__link {
          width: 96px;
          height: 96px;
          border-radius: 6px;

          .image-wrapper img {
            border-radius: 6px;
          }
        }
      }

      .slider__arrows {
        --icon-size: 16px;
        --outer: 70px;

        .slider__button {
          width: 27px;
          height: 27px;
          background-color: var(--color-brand-green);
          --btn-size: 27px; 

          &:before {
            background: var(--color-brand-light-grey);
          }

          &:after {
            background-color: var(--color-brand-light-grey);
          }

          &:hover {
            &:before {
              background: var(--color-brand-green);
            }
          }
        }
      }
    }
  }

  .product__content {
    @media only screen and (min-width: 990px) {
      --outer: 80px;

      .form__width {
        margin: 0;
      }
    }

    .variant__countdown {
      display: flex;
      flex-direction: column;
      gap: 12px;

      @media only screen and (min-width: 750px) {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
      }

      span {
        span {
          font-size: 14px;
          color: var(--color-text-primary);
        }

        span:first-child {
          display: inline-block;
          width: 6px;
          height: 6px;
          border-radius: 50%;
          background-color: var(--icon-color);
          margin-right: 8px;
        }
      }

      .payment-icons {
        margin: 0;
        display: flex;
        gap: 12px;
      }
    }

    .product__head {
      .product__title {
        margin-top: 0;
      }
    }

    .product__text {
      .product__subheading {
        line-height: 130%;
        color: var(--color-text-secondary);
      }
    }

    .product__price__wrap {
      .price {
        padding: 0;

        &.body-x-large {
          font-weight: 700;
          font-size: 18px;
          line-height: 120%;

          @media only screen and (min-width: 750px) {
            font-size: 20px;
          }
        }
      }

      .product__tax {
        font-size: 12px;
        line-height: 130%;
        color: var(--color-text-tertiary);
      }
    }

    .product__bundle-block {
      display: block;
    }

    .product__form__holder {

      .select__fieldset,
      .radio__fieldset {
        display: block;
        padding-top: 0;

        .radio__legend {
          display: flex;
          gap: 5px;
          margin-bottom: 12px;

          .radio__legend__option-name,
          .radio__legend__value {
            font-weight: 600;
            font-size: 16px;
            line-height: 130%;
            margin: 0;
            padding: 0;
            overflow-wrap: unset;
          }
        }

        &.radio__fieldset--variant-option-image {
          .radio__buttons {
            gap: 12px;
            display: grid;
            margin-left: 0; 
            grid-template-columns: repeat(auto-fill, minmax(57px, 1fr));

            @media only screen and (min-width: 750px) {
              grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
            }

            .radio__button {
              padding: 0;
              width: 100%;
              min-width: 0;

              label {
                display: block;
                padding: 0;
                border: none;
                width: 100%;
                background-color: transparent;
                border-radius: 4px;
                border: 1px solid transparent;

                .option-image {
                  width: 100%;
                  max-width: 100%;
                  height: unset;
                  border-radius: 4px;

                  img {
                    width: 100%;
                    height: auto;
                    aspect-ratio: 1/1;
                    object-fit: cover;
                  }
                }

                .option-title {
                  display: none;
                }
              }

              input:checked~label {
                border-color: var(--color-brand-green);
              }
            }
          }
        }
      }
    }

    .product__block--buttons {
      .product__submit__item {
        gap: 17px;

        @media only screen and (min-width: 750px) {
          gap: 10px;
          grid-template-columns: minmax(0, 101px) minmax(0, 100%);
        }

        @media only screen and (max-width: 749px) {
          grid-template-columns: 1fr;
        }

        .product-form__quantity {
          max-width: 101px;

          .quantity {
            .quantity__button {
              padding: 1px 6px;
              justify-content: center;
            }

            .quantity__input {
              font-size: 14px;
              color: var(--color-black);
              border: 1px solid var(--color-border-primary);
              border-radius: 50px;
              padding: 12px 6px;
              width: 101px;
              height: 50px;
            }

          }
        }

        .btn {
          font-weight: 500;
          font-size: 14px;
          line-height: 138%;
          letter-spacing: 0.02em;
          height: 50px;

          .btn__price {
            display: none;
          }

          @media only screen and (min-width: 750px) {
            font-size: 15px;
            line-height: 120%;
            letter-spacing: normal;
          }
        }
      }
    }

    .block__icon__row {
      background-color: var(--color-brand-light-beige);
      border-radius: 6px;
      padding: 12px;
      margin-bottom: 20px;

      @media only screen and (min-width: 750px) {
        margin-bottom: 32px;
      }

      .block__icon {
        margin-right: 8px;
        align-self: center;
      }

      .block__icon__text {
        .body-medium {
          font-weight: 400;
          font-size: 14px;
          line-height: 120%;
        }
      }
    }

    .product__block--accordion {
      .accordion {
        border: none;
        border-bottom: 1px solid var(--color-divider);

        .accordion__title {
          justify-content: space-between;
          padding: 0;
          padding: 14px 0px;
          font-family: var(--FONT-STACK-HEADING);
          line-height: 150%;

          &.body-large {
            font-size: 16px;
          }

          .accordion__arrow {
            border-radius: 100px;
            padding: 2px;
            width: 25px;
            height: 25px;
            background-color: var(--color-brand-light-mint);
            display: flex;
            align-items: center;
            justify-content: center;
          }

          @media only screen and (min-width: 750px) {
            padding: 16px 0px;
          }
        }
      }

      .drawer__inner {
        --DRAWER-WIDTH: 443px;

        .drawer__head {
          border-bottom: 1px solid var(--color-divider);
          padding: 16px;

          .drawer__heading {
            font-family: var(--FONT-STACK-HEADING);
            font-weight: 400;
            font-size: 20px;
            line-height: 140%;
            letter-spacing: normal;
            padding-right: 40px;

            @media only screen and (min-width: 750px) {
              font-size: 24px;
              line-height: 120%;
            }
          }

          .drawer__close {
            border-radius: 100px;
            width: 34px;
            height: 34px;
            background-color: var(--color-brand-light-mint);
            display: flex;
            align-items: center;
            justify-content: center;
            --icon-size: 20px;
            right: 16px;
          }

        }

        .drawer__body {
          padding: 20px;

          &>*:first-child {
            margin-top: 0;
          }

          .page {
            margin: 0;
            padding: 0;
            max-width: 100%;
          }

          @media only screen and (min-width: 750px) {
            padding: 24px 20px;
          }

          * {
            font-weight: 400;
            font-size: 14px;
            line-height: 130%;
            color: var(--color-text-secondary);
          }

          strong {
            font-weight: 600;
            line-height: 120%;
            color: var(--color-text-primary);
          }

          h1,
          h2,
          h3,
          h4,
          h5,
          h6 {

            font-family: var(--FONT-STACK-HEADING);
            font-weight: 500;
            font-size: 16px;
            line-height: 120%;
            color: var(--color-text-secondary);
          }
        }
      }
    }

    .upsell-products {
      .product-upsell__holder__title {
        font-family: var(--FONT-STACK-HEADING);
        font-weight: 500;
        font-size: 16px;
        line-height: 120%;
        margin-bottom: 12px;

        @media only screen and (min-width: 750px) {
          margin-bottom: 16px;
          font-size: 20px;
        }
      }

      .product__upsell--stacked {
        gap: 12px;

        .product-upsell {
          align-items: center;
          border-radius: 6px;
          background-color: var(--color-brand-light-beige);
          flex-wrap: nowrap;

          .product-upsell__image {
            width: 97px;

            img {
              border-radius: 6px 0 0 6px;
            }

            @media only screen and (min-width: 750px) {
              width: 124px;
            }

          }

          .product-upsell__content {
            padding: 24px;

            .product-upsell__title {
              font-weight: 600;
              font-size: 14px;
              line-height: 120%;
              margin-bottom: 4px;

              @media only screen and (min-width: 750px) {
                margin-bottom: 8px;
              }
            }

            .sale .new-price {
              font-weight: 600;
            }

            .product-upsell__price {
              font-size: 14px;
              line-height: 120%;
              color: var(--color-text-secondary);
              margin: 0;
            }

            .product-upsell__actions {
              .btn__outer {
                .product-upsell__btn {
                  --btn-size: 44px;
                  --btn-text: var(--color-text-primary);
                  background-color: var(--color-input-bg-primary);

                  @media only screen and (min-width: 750px) {
                    --btn-size: 42px;
                  }
                }

                .btn__plus {
                  --icon-size: 23px;
                  background: var(--color-text-primary);

                  @media only screen and (min-width: 750px) {
                    --icon-size: 22px;
                  }
                }

                .btn__text {
                  color: var(--color-text-primary);
                }

                .product-upsell__btn .btn__text {
                  width: 0;
                  min-width: 0;
                  padding: 0;
                  overflow: hidden;
                }
              }
            }
          }

        }

        @media only screen and (min-width: 750px) {
          gap: 16px;
        }
      }
    }

    .product__bundle-block {
      .swatch__button--empty .swatch-input__label {
        border: 1px dashed var(--text);
      }

      .swatch__button--empty.sale::before {
        display: none;
      }

      &[data-two-product-mode="false"] {
        .bundle-block__title {
          font-family: var(--FONT-STACK-HEADING);
          font-weight: 500;
          font-size: 16px;
          line-height: 120%;
          margin-bottom: 16px;
          margin-top: 0;

          @media only screen and (min-width: 750px) {
            font-size: 20px;
            font-weight: 400;
          }
        }

        .bundle-block__single-inner {
          display: flex;
          gap: 24px;
          border-radius: 6px;
          background-color: var(--color-brand-light-beige);
          align-items: center;
          position: relative;

          .bundle-block__product-image {
            min-width: 97px;
            width: 97px;

            @media only screen and (min-width: 750px) {
              min-width: 124px;
              width: 124px;
            }

            img {
              border-radius: 6px 0 0 6px;
            }
          }

          .bundle-block__product-info {
            display: block;
            width: 100%;

            .bundle-block__product-title {
              font-weight: 600;
              font-size: 14px;
              line-height: 120%;
              margin-bottom: 12px;
              margin-top: 0;
            }

            .bundle-block__variants {
              --swatch-size: 18px;

              &:not(.bundle-block__variants--show-labels) {
                .bundle-block__option-label {
                  display: none;
                }
              }

              .radio__fieldset {
                display: block;
              }

              .radio__buttons {
                display: flex;
                gap: 10px;
                flex-wrap: wrap;
                padding-left: 4px;
              }

              .swatch__button {
                padding: 0;
              }
            }

            .sale .new-price {
              font-weight: 600;
            }

            .bundle-block__price {
              font-weight: 400;
              font-size: 14px;
              line-height: 130%;
              color: var(--color-text-secondary);
              margin: 12px 0 0 0;
            }

            .bundle-block__add-btn {
              &[disabled] {
                opacity: 0.5;
                pointer-events: none;
              }

              --btn-size: 48px;
              --icon-size: 25px;
              --btn-text: var(--color-text-primary);
              background-color: var(--color-input-bg-primary);
              border-radius: 50px;
              border: none;
              padding: 0;
              border-radius: 71px;
              width: 48px;
              height: 48px;
              display: flex;
              position: absolute;
              right: 16px;
              bottom: 16px;
            }

          }
        }
      }


      &[data-two-product-mode="true"] {
        border-radius: 6px;
        padding: 12px;
        background-color: var(--color-brand-light-beige);
        @media only screen and (min-width: 750px) {
          padding: 24px;
        }

        .bundle-block__title {
          font-family: var(--FONT-STACK-HEADING);
          font-weight: 400;
          font-size: 20px;
          line-height: 120%;
          margin-bottom: 12px;
          margin-top: 0;
        }

        .bundle-block__products {
          @media only screen and (min-width: 750px) {
            display: flex;
            gap: 12px;
          }

          .bundle-block__product {
            display: flex;
            gap: 16px;
            align-items: center;

            @media only screen and (min-width: 750px) {
              display: block;
              flex: 1 1 0;
              min-width: 0;
            }

            .bundle-block__product-image {
              border-radius: 6px;
              min-width: 106px;
              width: 106px;

              @media only screen and (min-width: 750px) {
                width: 100%;
                min-width: 0;
                margin-bottom: 12px;
              }

              img {
                border-radius: 6px;
                max-width: 100%;
                height: auto;
              }
            }

            .bundle-block__product-info {
              .bundle-block__product-title {
                font-weight: 600;
                font-size: 12px;
                line-height: 130%;
                margin: 0 0 12px 0;
              }

              .bundle-block__variants {
                --swatch-size: 24px;

                .bundle-block__option-label {
                  display: none;
                }

                .radio__fieldset {
                  display: block;
                }

                .radio__buttons {
                  display: flex;
                  gap: 12px;
                  flex-wrap: wrap;
                  padding-left: 4px;
                }

                .swatch__button {
                  padding: 0;
                }
              }
            }
          }

          .bundle-block__plus {
            display: block;
            margin: 12px auto;
            width: 32px;
            height: 32px;

            svg {
              width: 32px;
              height: 32px;
            }

            @media only screen and (min-width: 750px) {
              margin: 0;
              width: 45px;
              height: 240px;
              display: flex;
              align-items: center;

              svg {
                width: 45px;
                height: 45px;
              }
            }
          }
        }

        .bundle-block__footer {
          margin-top: 32px;

          .bundle-block__price-wrapper {
            display: flex;
            gap: 4px;

            p {
              font-weight: 400;
              font-size: 16px;
              line-height: 130%;
              margin: 0;

              &.bundle-block__total-price {
                display: flex;
                gap: 8px;

                span[data-compare] {
                  text-decoration: line-through;
                  color: var(--color-text-tertiary);
                }

                span[data-total] {
                  color: var(--color-text-secondary);
                }

                &.sale {
                  span[data-total] {
                    font-weight: 600;
                    color: var(--color-sale);
                  }
                }

              }
            }
          }

          .bundle-block__add-both {
            width: 100%;
            height: 50px;
            margin-top: 12px;
            font-weight: 500;
            font-size: 15px;
            line-height: 120%;
          }
        }
      }
    }
  }
}