/* R112: alerts are not full-screen error pages. Keep the dedicated <error> page intact. */
.alert.error, .notice.error, .smart-alert.error, .error[role="alert"] {
  height: auto !important;
  box-sizing: border-box !important;
  min-height: 0 !important;
  max-height: min(12rem, 40vh) !important;
  flex: 0 0 auto !important;
  justify-content: flex-start !important;
  text-align: start !important;
  overflow: auto !important;
  overflow-wrap: anywhere;
  padding: .65rem .85rem !important;
  margin: .5rem 0 !important;
}
/* Also cover application notices using only .error, without affecting the 404 component. */
@supports selector(div.error:not(error > .error)) {
  div.error:not(error > .error), p.error:not(error > .error) {
    height: auto !important;
  box-sizing: border-box !important;
    min-height: 0 !important;
    max-height: min(12rem, 40vh) !important;
    flex: 0 0 auto !important;
    justify-content: flex-start !important;
    text-align: start !important;
    overflow: auto !important;
    overflow-wrap: anywhere;
    padding: .65rem .85rem !important;
    margin: .5rem 0 !important;
  }
}
.smart-alert.error { flex-direction: row !important; align-items: center !important; gap: .5rem; }
