.sticky-add-to-cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  z-index: var(--satc-z-index, 1100);
  background: var(--satc-background-color, #fff);
  box-shadow: 0 -4px 22px rgba(0, 0, 0, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  direction: inherit;
}

.sticky-add-to-cart-bar.satc-top {
  top: 0;
  bottom: auto;
  box-shadow: 0 4px 22px rgba(0, 0, 0, .12);
  transform: translateY(-100%);
}

.sticky-add-to-cart-bar.satc-bottom {
  top: auto;
  bottom: 0;
}

.sticky-add-to-cart-bar.satc-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.satc-inner {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 74px;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-sizing: border-box;
}

.satc-product {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.satc-picture {
  width: var(--satc-picture-height, 56px);
  height: var(--satc-picture-height, 56px);
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid #eee;
  background: #fff;
}

.satc-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

.satc-pricing {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.satc-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--satc-price-color, #d7194f);
  white-space: nowrap;
}

.satc-price * {
  color: inherit;
}

.satc-old-price {
  color: #777;
  font-size: 14px;
  text-decoration: line-through;
}

.satc-discount {
  padding: 4px 8px;
  border-radius: 3px;
  background: var(--satc-price-color, #d7194f);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.satc-quantity {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.satc-quantity-label {
  margin: 0;
  font-size: 13px;
  color: #555;
}

.satc-quantity-input {
  width: 72px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid #d8d8d8;
  background: #fff;
  color: #222;
  text-align: center;
  box-sizing: border-box;
}

.satc-button {
  flex: 0 0 auto;
  min-width: 138px;
  height: 44px;
  padding: 0 18px;
  border: 0;
  background: var(--satc-button-color, #f4c430);
  color: #1f1f1f;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.satc-button:hover,
.satc-button:focus {
  filter: brightness(.96);
}

html[dir="rtl"] .satc-inner,
body[dir="rtl"] .satc-inner {
  direction: rtl;
}

@media (max-width: 767px) {
  .sticky-add-to-cart-bar.satc-mobile-top {
    top: 0;
    bottom: auto;
    box-shadow: 0 4px 22px rgba(0, 0, 0, .12);
    transform: translateY(-100%);
  }

  .sticky-add-to-cart-bar.satc-mobile-bottom {
    top: auto;
    bottom: 0;
    box-shadow: 0 -4px 22px rgba(0, 0, 0, .12);
    transform: translateY(100%);
  }

  .sticky-add-to-cart-bar.satc-visible {
    transform: translateY(0);
  }

  .satc-inner {
    min-height: 68px;
    padding: 8px 10px;
    gap: 9px;
  }

  .satc-picture {
    width: 44px;
    height: 44px;
  }

  .satc-name {
    max-width: 38vw;
    font-size: 13px;
  }

  .satc-price {
    font-size: 15px;
  }

  .satc-pricing {
    gap: 5px;
  }

  .satc-old-price {
    font-size: 12px;
  }

  .satc-discount {
    padding: 3px 5px;
    font-size: 10px;
  }

  .satc-quantity-label {
    display: none;
  }

  .satc-quantity-input {
    width: 54px;
    height: 40px;
  }

  .satc-button {
    min-width: 106px;
    height: 42px;
    padding: 0 12px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .satc-inner {
    flex-wrap: wrap;
  }

  .satc-product {
    flex-basis: calc(100% - 120px);
  }

  .satc-price {
    margin-inline-start: auto;
  }

  .satc-quantity {
    flex: 0 0 auto;
  }

  .satc-button {
    flex: 1 1 auto;
  }
}
