.sticky-atc {
  display: block;
  z-index: 150;
  pointer-events: none;
}

.sticky-atc[data-visible] .sticky-atc__desktop,
.sticky-atc[data-visible] .sticky-atc__mobile {
  pointer-events: auto;
}

.sticky-atc__desktop,
.sticky-atc__mobile {
  opacity: 0;
  visibility: hidden;
}

.sticky-atc[data-visible] .sticky-atc__desktop,
.sticky-atc[data-visible] .sticky-atc__mobile {
  opacity: 1;
  visibility: visible;
  z-index: 99999;
}

.sticky-atc--hide-compare .sticky-atc__price s,
.sticky-atc__price s {
  display: none !important;
}

.sticky-atc .sticky-atc__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  font-family: var(--font-1, serif);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: #000000;
  white-space: nowrap;
}

.sticky-atc__discount {
  font-family: var(--font-1, sans-serif);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.3;
  color: #767676;
  white-space: nowrap;
}

/* Shared */
.sticky-atc__media-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 85.43px;
  height: 85.43px;
  background: #F4F4F4;
}

.sticky-atc__image {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.sticky-atc__inventory {
  margin: 0 0 0;
  padding: 0 2px 2px;
  font-family: var(--font-1, sans-serif);
  font-size: 11px;
  line-height: 1.3;
  font-style: italic;
  font-weight: 500;
  color: #727171;
  text-align: center;
  background: #E1E1E1;
}

.sticky-atc__inventory[hidden] {
  display: none;
}

.sticky-atc__cart-error {
  color: #c00;
  font-family: var(--font-1, sans-serif);
  font-size: 0.6875rem;
  line-height: 1.3;
  margin: 0.25rem 0 0;
}

.sticky-atc__cart-error:empty {
  display: none;
}

.sticky-atc__title {
  margin: 0;
  font-family: var(--font-2, serif);
  font-size: 0.875rem;
  line-height: 1.3;
  font-weight: 400;
  color: #000000;
}

.sticky-atc__variant-title {
  margin: 0;
  padding-top: 0;
  font-family: var(--font-1, sans-serif);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--color-1, #000);
  text-transform: capitalize;
  display: flex;
  align-items: center;
}
.sticky-atc__variant-separator{
  margin: 0 4px;
  font-size: 8px;
  line-height: 8px;
}
.sticky-atc__quantity {
  display: flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--color-3, #e3e3e3);
}

.sticky-atc__qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-1, #121212);
}

.sticky-atc__qty-input {
  width: 2.5rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--color-3, #e3e3e3);
  border-right: 1px solid var(--color-3, #e3e3e3);
  text-align: center;
  font-family: var(--font-1, sans-serif);
  font-size: 0.875rem;
  -moz-appearance: textfield;
}

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

.sticky-atc__actions {
  flex-shrink: 0;
  margin: 0 0 0 auto;
}

.sticky-atc__submit {
  background-color: var(--sticky-atc-btn-bg, #121212) !important;
  color: var(--sticky-atc-btn-color, #fff) !important;
  border-radius: var(--sticky-atc-btn-radius, 0) !important;
  border-color: var(--sticky-atc-btn-bg, #121212) !important;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}
/* 
.sticky-atc__submit:hover,
.sticky-atc__submit:focus-visible {
  background-color: #ffffff !important;
  color:#000000 !important;
  border-color: #000000 !important;
} */

.sticky-atc__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Desktop panel */
.sticky-atc__desktop {
  display: none;
}

.sticky-atc__desktop-inner {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px;
  background-color: var(--sticky-atc-desktop-bg, #fff);
  border: 1px solid var(--sticky-atc-desktop-border, #e3e3e3);
  border-radius: var(--sticky-atc-desktop-radius, 0);
  box-shadow: 0px 1px 13px 0px #00000026;
}

.sticky-atc--no-shadow .sticky-atc__desktop-inner {
  box-shadow: none;
}

.sticky-atc__desktop .sticky-atc__title {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0;
}

.sticky-atc__desktop .sticky-atc__price {
  margin: 0;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.sticky-atc__desktop .sticky-atc__actions {
  width: 100%;
  padding-top: 10px;
}

.sticky-atc__desktop .sticky-atc__submit {
  width: 100%;
  padding: 5px;
  height: 30px;
  min-width: 140px;
}

/* Mobile bar */
.sticky-atc__mobile {
  display: none;
}

.sticky-atc__mobile-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 20px 8px;
  background-color: var(--sticky-atc-mobile-bg, #fff);
  border-top: 1px solid var(--sticky-atc-mobile-border, #121212);
  border-bottom: 1px solid var(--sticky-atc-mobile-border, #121212);
  border-radius: var(--sticky-atc-mobile-radius, 0);
  box-shadow: 0 -1px 6px 0 #0000001c;
}

.sticky-atc__mobile-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.sticky-atc__mobile .sticky-atc__media-col {
  width: 50px;
  height: 50px;
}

.sticky-atc__mobile .sticky-atc__submit:after {
  background-color: #000;
}

.sticky-atc__mobile .sticky-atc__submit.button-1--alt:after {
  background-color: var(--background-color, #fff);
}

.sticky-atc__mobile .sticky-atc__info-col {
  flex: 1;
  min-width: 0;
}

.sticky-atc__mobile .sticky-atc__title {
  font-size: 14px;
  line-height: 1.3;
}

.sticky-atc__mobile .sticky-atc__price {
  flex-shrink: 0;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
}

.sticky-atc__mobile .sticky-atc__variant-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 5px;
  padding-top: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: #121212CC;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.sticky-atc__mobile .sticky-atc__variant-separator {
  color: #121212CC;;
  margin: 0 8px;
}

.sticky-atc__mobile-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
}

.sticky-atc__mobile .sticky-atc__actions {
  width: 100%;
  margin: 0;
}

.sticky-atc__mobile .sticky-atc__submit {
  width: 100%;
  min-height: 30px;
  padding: 5px 16px;
  height: auto;
}

.sticky-atc__mobile .sticky-atc__cart-error {
  font-size: 0.625rem;
}

body.sticky-atc-visible {
  padding-bottom: calc(var(--sticky-atc-mobile-offset, 7.5rem) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  body.sticky-atc-visible {
    padding-bottom: 0;
  }

  .sticky-atc__desktop {
    display: block;
    position: fixed;
    top: var(--sticky-atc-desktop-top, calc(var(--header-height, 90px) + 16px));
    width: var(--sticky-atc-desktop-width, 280px);
    max-width: calc(100vw - 2rem);
  }

  .sticky-atc--position-left .sticky-atc__desktop {
    left: 0;
  }

  .sticky-atc--position-right .sticky-atc__desktop {
    right: 0;
    left: auto;
  }

  .sticky-atc__mobile {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .sticky-atc__desktop {
    display: none !important;
  }

  .sticky-atc__mobile {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--sticky-atc-mobile-bottom, 0);
    z-index: 400;
  }

  .sticky-atc[data-visible] .sticky-atc__mobile {
    display: block;
  }

  body.sticky-atc-visible .gorgias-chat-key-1vly0ou {
    transition: bottom var(--transition-1, 0.3s ease) !important;
    bottom: var(--sticky-atc-mobile-offset, 120px) !important;
  }

  body.sticky-atc-visible .needsclick[class*='kl-teaser-'].kl-private-reset-css-Xuajs1 {
    position: fixed !important;
    left: auto !important;
    right: 0 !important;
    bottom: calc(
      var(--sticky-atc-mobile-offset, 120px) + var(--sticky-atc-chat-stack-offset, 68px)
    ) !important;
    top: auto !important;
    width: auto !important;
    max-width: 44px !important;
    min-width: 0 !important;
    min-height: 180px !important;
    margin: 0 !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    writing-mode: vertical-rl !important;
    text-orientation: mixed !important;
    transform: rotate(180deg) !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 2px !important;
    z-index: 2147482999 !important;
    transition: bottom var(--transition-1, 0.3s ease) !important;
  }

  body.sticky-atc-visible .needsclick[class*='kl-teaser-'].kl-private-reset-css-Xuajs1 > * {
    width: auto !important;
    max-width: none !important;
    writing-mode: inherit !important;
    text-orientation: inherit !important;
    white-space: inherit !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-atc__desktop,
  .sticky-atc__mobile {
    transition: none;
  }

  .gorgias-chat-key-1vly0ou,
  .needsclick[class*='kl-teaser-'].kl-private-reset-css-Xuajs1 {
    transition: none;
  }
}
