@media (min-width: 768px) {
  .product-sticky-atc {
    display: none;
    &.is-visible {
      display: none !important;
    }
  }
}

body.product-sticky-atc-visible {
  .okeLoyalty .c-app:not(.okeLoyalty .c-app--fullscreenPreview),
  div[class*="kl-private-reset-css"] {
    z-index: 0!important;
  }
}

.product-sticky-atc {
  display: none;
  &.is-visible {
    display: block;
  }
  position: sticky;
  box-shadow: 0px -4px 8px 0px #00000014;
  bottom: -1px;
  z-index: 10;
  background-color: var(--color-body);
  .product-sticky-atc_selectors {
    .product-sticky-atc_product-option-selector {
      height: 0;
      overflow: hidden;
      &.open {
        height: auto;
        max-height: 50vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }
    }
    ul {
      li {
        border-bottom: 1px solid #cfcfcf;
        padding: 8px 16px;
        cursor: pointer;
        &.soldout {
          color: #656565;
        }
        * {
          pointer-events: none;
        }
      }

      [aria-selected="true"] {
        background-color: #dfdfdf;
        pointer-events: none;
        &.has-swatch::after {
          border: 1px solid black;
          top: 9px;
        }
      }
    }
  }

  .has-swatch {
    position: relative;
    &::before {
      content: "";
      display: inline-block;
      background-image: var(--product-atc-swatch-image);
      background: var(--product-atc-swatch-color);
      background-position: center;
      background-repeat: no-repeat;
      vertical-align: middle;
      width: 20px;
      height: 20px;
      margin-left: 3px;
      margin-right: 12px;
      line-height: 20px;
    }
    &::after {
      content: "";
      width: 26px;
      height: 26px;
      position: absolute;
      left: 16px;
      top: 9.5px;
      border: 1px solid #d2d2d2;
      border-radius: 4px;
    }
  }

  .product-sticky-atc_current-variant {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    .product-sticky-atc_info,
    .product-sticky-atc_selected-options {
      display: flex;
      gap: 8px;
      justify-content: space-between;
      align-items: center;
      &.option-count-3 {
        flex-wrap: wrap;
        .product-sticky-atc_option-button::before{
          content: attr(data-label);
          line-height: 100%;
          font-size: 14px;
          font-weight: 700;
          margin-right: 8px;
          text-transform: uppercase;
        }
      }
    }
    button.product-sticky-atc_option-button {
      &.open {
        .product-sticky-atc_caret svg {
          transform: rotate(180deg);
        }
      }
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 4px;
      &:first-child {
        min-width: 0;
        max-width: 100%;
        .product-sticky-atc_current-variant-option {
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }
      }
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      background: none;
      border: 0;
      outline: 0;
      margin: 0;
      padding: 0;
      .product-sticky-atc_current-variant-option {
        text-transform: uppercase;
        text-align: left;
        font-size: 14px;
        &.has-swatch {
          padding: 3px 0;
          &::after {
            margin: 3px 12px 4px 4px;
            border-color: black;
            top: 0px;
            left: -4px;
          }
        }
      }
      .product-sticky-atc_caret {
        display: flex;
        svg {
          width: 16px;
          height: 16px;
          transition: all 0.1s;
        }
      }
    }
  }
  .product-sticky-atc_product-title {
    font-weight: 700;
    font-size: 18px;
  }
  .product-sticky-atc_product-price {
    flex: none;
    display: flex;
    gap: 8px;
    .product__price {
      font-weight: 700;
      font-size: 16px;
      .price__sale {
        flex-direction: column;
        gap: 0;
      }
    }
    .price-item--sale {
      margin-right: 0;
      color: #ae130e;
    }
    .price__badges {
      display: none;
    }
  }
  .product-sticky-atc_buttons {
    .btn {
      text-transform: uppercase !important;
      border-radius: 0;
      background-color: #073b1b;
    }
    .buy-now-button {
      display: none;
    }
  }
  button * {
    pointer-events: none;
  }
}
