/* RICHHOME_CENTER_MOBILE_DETAIL_HEADING_20261115: style-only; scoped to mobile center-report detail heading */
@media screen and (max-width: 767px) {
  #cr-details .cr-detail-heading {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  /* Keep close button on its own upper-right row. */
  #cr-details .cr-detail-heading > #cr-close {
    order: -2 !important;
    justify-self: end !important;
    align-self: center !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }
  /* Customer's name and order information get the full line width. */
  #cr-details .cr-detail-heading > div:first-child {
    order: -1 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    text-align: left !important;
  }
  #cr-details .cr-detail-heading .cr-kicker,
  #cr-details .cr-detail-heading h3,
  #cr-details .cr-detail-heading p {
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
    line-height: 1.5 !important;
  }
  /* Button dynamically inserted immediately before #cr-close. */
  #cr-details .cr-detail-heading > button:not(#cr-close) {
    order: 0 !important;
    justify-self: stretch !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 11px 12px !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
    line-height: 1.45 !important;
  }
}
