/* Кошик — степер кількості */

.qty-form--stepper {
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.qty-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg, #fff);
  -webkit-tap-highlight-color: transparent;
}

.qty-stepper__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.qty-stepper__btn:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.04);
}

.qty-stepper__btn:active:not(:disabled) {
  background: rgba(0, 0, 0, 0.08);
}

.qty-stepper__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.qty-stepper__input {
  width: 56px;
  min-height: 44px;
  margin: 0;
  padding: 8px 4px;
  border: 0;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  border-radius: 0;
  text-align: center;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

.qty-stepper__input::-webkit-outer-spin-button,
.qty-stepper__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-stepper__input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.qty-stock-hint,
.cart-price-hint {
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.cart-total {
  margin-top: 0;
  font-size: 18px;
  font-family: var(--font-display);
}

.cart-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-top: 16px;
}

.cart-actions .cart-total {
  margin: 0;
}

.cart-actions [data-qa="checkout-cta"] {
  flex: 1 1 100%;
  justify-content: center;
  text-align: center;
}

.cart-actions a[data-qa="checkout-cta"] {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
}

.cart-actions .cart-min-order {
  flex: 1 1 100%;
  margin: 0;
}

.cart-min-order {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: var(--radius, 8px);
  background: color-mix(in srgb, var(--color-accent) 20%, #fff);
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.45;
}

.btn--disabled,
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

@supports not (background: color-mix(in srgb, #000 10%, #fff)) {
  .cart-min-order {
    background: #f7f1d8;
  }
}

@media (max-width: 767px) {
  .qty-form--stepper {
    flex-wrap: wrap;
    gap: 6px;
  }

  .qty-stepper__input {
    width: 52px;
  }
}

@supports (-webkit-touch-callout: none) {
  .qty-stepper__btn,
  .qty-stepper__input {
    min-height: 44px;
  }
}
