body.single-product .sticky-add-to-cart {
  --apa-sticky-accent: #d50000;
  --apa-sticky-contact-height: 0px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

body.single-product .sticky-add-to-cart.sticky-add-to-cart--active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  padding: 7px 15px;
  background: rgba(255, 255, 255, .98);
  border-top: 1px solid #e7e7e7;
  box-shadow: 0 -5px 18px rgba(0, 0, 0, .09);
  animation: apaStickyCartIn .24s ease-out;
}

body.single-product .sticky-add-to-cart .sticky-add-to-cart__product {
  width: auto;
  min-width: 0;
  margin: 0 auto;
  padding: 0;
  gap: 12px;
  flex-wrap: nowrap;
}

body.single-product .sticky-add-to-cart .sticky-add-to-cart-img {
  width: 54px;
  height: 54px;
  margin: 0;
  flex: 0 0 54px;
  border: 1px solid #f0f0f0;
  border-radius: 7px;
  object-fit: contain;
}

.apa-sticky-product-copy {
  display: flex;
  min-width: 160px;
  max-width: 260px;
  flex: 0 1 260px;
  flex-direction: column;
  justify-content: center;
}


.apa-sticky-product-copy .product-title-small {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 5px;
  font-size: 14px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.apa-sticky-product-price,
.apa-sticky-product-price .price {
  margin: 0 !important;
  color: var(--apa-sticky-accent);
  font-size: 17px !important;
  font-weight: 700;
  line-height: 1.1;
}

.apa-sticky-product-price del,
.apa-sticky-product-price del span.amount {
  color: #777;
  font-size: 12px;
}

.apa-sticky-variant-ui {
  display: flex;
  flex: 1 1 auto;
  align-items: flex-start;
  gap: 10px;
}

body.single-product .sticky-add-to-cart .sticky-add-to-cart__product > .woocommerce-Price-amount.amount,
body.single-product .sticky-add-to-cart .sticky-add-to-cart__product > .btn_customm {
  display: none !important;
}

.apa-sticky-volume-slider {
  position: relative;
  display: flex;
  min-width: 230px;
  max-width: 285px;
  flex: 1 1 285px;
  align-items: center;
}

.apa-sticky-volume-slider.uses-flickity {
  height: 44px;
}

.apa-sticky-volume-list {
  display: flex;
  overflow-x: auto;
  width: 100%;
  min-width: 0;
  max-width: none;
  flex: 1 1 auto;
  gap: 7px;
  padding: 0 2px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.apa-sticky-volume-list::-webkit-scrollbar {
  display: none;
}

.apa-sticky-volume-list.flickity-enabled {
  display: block;
  overflow: hidden;
  height: 44px;
  min-height: 44px;
  padding: 0;
  scroll-snap-type: none;
}

.apa-sticky-volume-list.flickity-enabled .flickity-viewport {
  width: 100%;
  height: 44px !important;
  min-height: 44px;
}

.apa-sticky-volume-list.flickity-enabled .flickity-slider {
  height: 44px;
}

.apa-sticky-volume-list .flickity-prev-next-button {
  width: 27px;
  height: 38px;
  margin: 0 !important;
  border: 1px solid #e4e4e4;
  border-radius: 6px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 2px 7px rgba(0, 0, 0, .08);
  opacity: 1;
  z-index: 5;
}

.apa-sticky-volume-list .flickity-prev-next-button.previous {
  width: 13px;
    height: 14px;
    min-height: initial;
    min-width: initial;
    left: 0px;
    border: none;
    background: #a90303;
    color: #fff;
    border-radius: 3px;
}

.apa-sticky-volume-list .flickity-prev-next-button.next {
  width: 13px;
    height: 14px;
    min-height: initial;
    min-width: initial;
    right: 0px;
    border: none;
    background: #a90303;
    color: #fff;
    border-radius: 3px;
}

.apa-sticky-volume-list .flickity-prev-next-button:disabled {
  opacity: .3;
}

.apa-sticky-volume-option {
  display: flex;
  width: 96px;
  min-width: 96px;
  min-height: 44px;
  margin: 0;
  padding: 5px 9px;
  flex: 0 0 96px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  scroll-snap-align: start;
  border: 1px solid #dedede;
  border-radius: 7px;
  background: #fff;
  color: #222;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.1;
  text-transform: none;
}

.apa-sticky-volume-list.flickity-enabled .apa-sticky-volume-option {
  margin-right: 7px;
}

.apa-sticky-volume-option:hover,
.apa-sticky-volume-option:focus-visible,
.apa-sticky-volume-option.is-selected {
  border-color: #111;
  color: #111;
  box-shadow: inset 0 0 0 1px #111;
}

.apa-sticky-volume-option.is-disabled {
  cursor: not-allowed;
  opacity: .38;
}

.apa-sticky-volume-option img {
  width: 25px;
  height: 30px;
  flex: 0 0 25px;
  object-fit: contain;
}

.apa-sticky-quantity {
  display: flex;
  overflow: hidden;
  height: 44px;
  flex: 0 0 105px;
  align-items: stretch;
  border: 1px solid #d6d6d6;
  border-radius: 9px;
  background: #fff;
}

.apa-sticky-quantity button,
.apa-sticky-quantity input {
  width: 34px;
  min-width: 0;
  height: 42px;
  margin: 0 !important;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #171717;
  font-size: 16px;
  line-height: 42px;
  text-align: center;
}

.apa-sticky-quantity input {
      width: 37px !important;
    font-size: 14px !important;
    font-weight: 100 !important;
    appearance: textfield !important;
    border: none !important;
    height: 100% !important;
}

.apa-sticky-quantity input::-webkit-inner-spin-button,
.apa-sticky-quantity input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.apa-sticky-add-button {
      min-width: 135px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
    background: #050505 !important;
    color: #fff !important;
    font-size: 13px !important;
}

.apa-sticky-add-button::before {
  content: "\e90a";
  margin-right: 9px;
  font-family: fl-icons;
  font-size: 15px;
  font-weight: 400;
  vertical-align: -1px;
}

.apa-sticky-add-button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.apa-sticky-variant-ui > .added_to_cart {
  display: none !important;
}

body.single-product .apa-sticky-cart-has-volume-ui .sticky-add-to-cart-select-options-button {
  display: none !important;
}

@keyframes apaStickyCartIn {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media screen and (max-width: 849px) {
  body.single-product .sticky-add-to-cart.sticky-add-to-cart--active {
    bottom: var(--apa-sticky-contact-height);
    z-index: 998;
    padding: 5px 7px;
  }

  body.single-product .sticky-add-to-cart .sticky-add-to-cart__product {
    width: 100%;
    gap: 0;
  }

  body.single-product .sticky-add-to-cart .sticky-add-to-cart-img,
  body.single-product .sticky-add-to-cart .apa-sticky-product-copy {
    display: none;
  }

  body.single-product .sticky-add-to-cart .sticky-add-to-cart__product > .price,
  body.single-product .sticky-add-to-cart .apa-sticky-product-price {
    display: none !important;
  }

  .apa-sticky-variant-ui {
    width: 100%;
    gap: 5px;
  }

  .apa-sticky-volume-slider {
    width: auto;
    min-width: 120px;
    max-width: none;
    flex: 1 1 auto;
  }

  .apa-sticky-volume-list {
    width: auto;
    min-width: 120px;
    max-width: none;
    padding-bottom: 3px;
    flex: 1 1 auto;
    gap: 5px;
  }

  .apa-sticky-volume-option {
    
    gap: 4px;
    
            font-size: 10px;
  }

  .apa-sticky-volume-option img {
    width: 20px;
    height: 27px;
    flex-basis: 20px;
  }

  .apa-sticky-quantity {
    height: 40px;
    flex-basis: 72px;
    border-radius: 7px;
  }

  .apa-sticky-quantity button,
  .apa-sticky-quantity input {
    width: 23px;
    height: 38px;
    line-height: 38px;
  }

  .apa-sticky-quantity input {
    width: 26px;
    font-size: 12px;
  }

  .apa-sticky-add-button {
    min-width: 95px !important;
        min-height: 40px !important;
        padding: 0 5px !important;
        border-radius: 7px !important;
        font-size: 11px !important;
  }

  .apa-sticky-add-button::before {
    margin-right: 5px;
    font-size: 13px;
  }
  body.single-product .sticky-add-to-cart .sticky-add-to-cart__product span.amount{
    display: none;
  }
}

@media screen and (max-width: 374px) {
  .apa-sticky-volume-option {
    min-width: 70px;
    flex-basis: 70px;
  }

  .apa-sticky-add-button {
    min-width: 94px;
    padding: 0 6px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.single-product .sticky-add-to-cart.sticky-add-to-cart--active {
    animation: none;
  }
}
