.catalog-main .product-card .product-actions {
  grid-template-columns: minmax(0, 1fr);
}

.catalog-main .product-actions .add-button {
  width: 100%;
  min-width: 0;
  min-height: 44px;
}

.catalog-main .product-actions .add-button > span {
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
}

.product-cart-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
}

.product-cart-control > [hidden] {
  display: none;
}

.product-cart-control.has-quantity {
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: stretch;
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

html[data-storefront-style] .storefront-page .product-cart-control.has-quantity > button {
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 3px 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  transform: none;
  cursor: pointer;
}

.product-cart-control [data-product-step] {
  font: inherit;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

html[data-storefront-style] .storefront-page .product-cart-control.has-quantity > button[data-add] {
  border-radius: 0;
  box-shadow: inset 1px 0 var(--line-strong), inset -1px 0 var(--line-strong);
  color: var(--text);
  background: var(--surface-strong);
}

.product-cart-control.has-quantity [data-add] > .icon {
  display: none;
}

.storefront-page .product-cart-control.has-quantity [data-add] > span {
  display: block;
  width: 100%;
  white-space: pre;
  font-size: 13px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  text-transform: none;
  letter-spacing: normal;
}

.product-cart-control.has-quantity [data-add] > span::first-line {
  font-size: 12px;
  font-weight: 500;
}

.storefront-page .product-cart-control.has-quantity button:disabled {
  opacity: .42;
  cursor: default;
}

.product-cart-control > button:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: -3px;
}

@media (hover: hover) {
  html[data-storefront-style] .storefront-page .product-cart-control.has-quantity > button:enabled:hover {
    color: var(--text);
    background: color-mix(in srgb, var(--accent) 12%, var(--surface-strong));
  }
}
