/* Opt-in identity headings in internal CRM pages only. No table/portal rules. */
.crm-customer-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  min-width: 0;
  margin-block: 6px;
}

.crm-customer-heading > .crm-customer-name {
  margin: 0;
  min-width: 0;
  color: #171c2b;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}

.crm-customer-heading > .crm-customer-code {
  color: #465064;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* The original name paragraph spans the order card's complete grid width. */
.roya-product-content-ui-v2 > .crm-customer-heading {
  grid-column: 1 / -1;
}

@media (max-width: 700px) {
  .crm-customer-heading > .crm-customer-name {
    font-size: 24px;
  }
}
