.bm-commerce-buy {
  grid-column: 1 / -1;
  min-height: 42px;
  white-space: normal;
}

.detail-copy .product-actions,
.client-product-bottom:has(.bm-commerce-buy) {
  flex-wrap: wrap;
}

.client-product-bottom .bm-commerce-buy {
  width: 100%;
}

.bm-commerce-panel,
.commerce-order-list {
  min-width: 0;
}

.commerce-order-list,
.commerce-purchase {
  display: grid;
  gap: 12px;
}

.commerce-purchase,
.bm-commerce-order {
  padding: clamp(16px, 3vw, 24px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.bm-commerce-order {
  display: grid;
  gap: 8px;
}

.bm-commerce-order.is-returned {
  border-color: var(--green);
}

.bm-commerce-order h3,
.bm-commerce-order p,
.commerce-purchase h3,
.commerce-purchase p {
  margin: 0;
}

.commerce-order-list .bm-button,
.commerce-purchase .bm-button {
  justify-self: start;
}

.bm-commerce-reference,
.bm-delivery-value {
  overflow-wrap: anywhere;
}

.bm-delivery-value {
  white-space: pre-wrap;
  padding: 12px;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.bm-commerce-delivery:not(:empty) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bm-commerce-delivery pre {
  width: 100%;
  margin: 0;
}
