.lvsh-product-actions {
  width: 100%;
}

.lvsh-product-actions .add_to_cart_button,
.lvsh-product-actions .lvsh-loop-atc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 1.875rem;
  padding: 0.35rem 0.5rem;
  border: none;
  border-radius: 0.5rem;
  background-color: #451a03;
  background-size: cover;
  background-position: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.lvsh-product-actions .lvsh-atc-label {
  display: block;
  width: 100%;
  text-align: center;
}

/* Dokani script.js дописывает <span> из title — скрываем лишнее */
.lvsh-product-actions .add_to_cart_button > span:not(.lvsh-atc-label),
.lvsh-product-actions .lvsh-loop-atc > span:not(.lvsh-atc-label) {
  display: none !important;
}

.lvsh-product-actions .add_to_cart_button.loading {
  pointer-events: none;
  opacity: 0.82;
}

.lvsh-product-actions .add_to_cart_button.loading .lvsh-atc-label::after {
  content: '';
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-left: 0.45em;
  border: 2px solid rgb(255 255 255 / 35%);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -0.1em;
  animation: lvsh-atc-spin 0.65s linear infinite;
}

.lvsh-product-actions .add_to_cart_button.added,
.lvsh-product-actions .add_to_cart_button.lvsh-added {
  background-color: #166534 !important;
  box-shadow: 0 0 0 2px rgb(22 101 52 / 25%);
  cursor: pointer;
}

.lvsh-product-actions .add_to_cart_button.added:hover,
.lvsh-product-actions .add_to_cart_button.lvsh-added:hover {
  background-color: #14532d !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgb(20 83 45 / 28%);
}

.lvsh-product-actions .add_to_cart_button.added .lvsh-atc-label::before,
.lvsh-product-actions .add_to_cart_button.lvsh-added .lvsh-atc-label::before {
  content: '✓';
  margin-right: 0.35em;
  font-weight: 700;
}

.lvsh-product-actions .added_to_cart {
  display: none !important;
}

.lvsh-cart-count {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #b91c1c;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.lvsh-cart-count--empty {
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
}

.lvsh-header-cart-link.lvsh-cart-bump .lvsh-cart-count:not(.lvsh-cart-count--empty) {
  animation: lvsh-cart-bump 0.55s ease;
}

.lvsh-header-cart-link.lvsh-cart-bump img {
  animation: lvsh-cart-bump 0.55s ease;
}

.lvsh-cart-toast {
  position: fixed;
  left: 50%;
  bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  z-index: 99999;
  max-width: min(92vw, 22rem);
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  background: rgb(63 43 29 / 96%);
  color: #fff7ed;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 8px 28px rgb(0 0 0 / 28%);
  opacity: 0;
  transform: translate(-50%, 1rem);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.lvsh-cart-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 768px) {
  .lvsh-cart-toast {
    bottom: 2rem;
  }
}

@keyframes lvsh-atc-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes lvsh-cart-bump {
  0%,
  100% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.18);
  }
}
