/* Keep complete cart labels on one line; give narrow cards a full purchase row. */
.aurora-product-card .aurora-product-actions {
  container-name: aurora-cart-actions;
  container-type: inline-size;
  width: 100%;
}
.aurora-product-card .button,
#common-home .aurora-product-card .button {
  grid-template-columns: minmax(0, 1fr) 48px 48px;
  gap: var(--space-xs);
}
.aurora-product-card .button button:first-child,
.product-list .aurora-product-card .button button:first-child {
  white-space: nowrap;
  flex-wrap: nowrap;
  min-height: 48px;
  padding-inline: var(--space-sm);
  font-size: var(--text-md);
  line-height: 1.35;
}
.aurora-product-card .button button:first-child > i,
#common-home .aurora-product-card .button button:first-child > i {
  display: inline-block;
  flex: 0 0 auto;
}
.aurora-product-card .button button .cart-label {
  display: inline-block;
  flex: 0 0 auto;
  white-space: nowrap;
}
@container aurora-cart-actions (max-width: 339px) {
  .aurora-product-card .button,
  .product-list .aurora-product-card .button,
  #common-home .aurora-product-card .button {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-xs);
  }
  .aurora-product-card .button button:first-child {
    grid-column: 1 / -1;
  }
}
#button-cart,
#product-compare form[action*="checkout/cart.add"] button[type="submit"],
#account-wishlist button[form^="form-product-"] {
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}
#product-compare #content > .table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}
#product-compare form[action*="checkout/cart.add"] button[type="submit"] {
  min-width: max-content;
}
