/* ESA V37.0 -- scoped fix for V35.1 My Profile & Notifications.
   The underlying Companion .cmp-record is display:flex; the Community
   details element must be a normal block layout, never a horizontal row. */
#pet-companion-detail-screen #v18-root details.v35-community-panel,
#pet-companion-screen #v18-root details.v35-community-panel,
#v18-root details.v35-community-panel {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow-wrap: break-word;
}
#v18-root details.v35-community-panel > summary {
  display: list-item !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 0 14px !important;
  padding: 8px 0 !important;
  line-height: 1.45;
  font-weight: 700;
  cursor: pointer;
}
#v18-root details.v35-community-panel > .v35-profile-tabs {
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: 9px !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 18px !important;
  box-sizing: border-box !important;
}
#v18-root details.v35-community-panel > .v35-profile-tabs > button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
  padding: 9px 7px !important;
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 700;
  line-height: 1.35 !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}
#v18-root details.v35-community-panel > .v35-profile-tabs > button:last-child:nth-child(odd) {
  grid-column: 1 / -1 !important;
}
#v18-root details.v35-community-panel > #v31-content {
  display: block !important;
  clear: both !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow-wrap: break-word;
}
#v18-root details.v35-community-panel #v31-content .cmp-note,
#v18-root details.v35-community-panel #v31-content article {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
#v18-root details.v35-community-panel #v31-content button {
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}
@media (max-width: 320px) {
  #v18-root details.v35-community-panel > .v35-profile-tabs {
    grid-template-columns: minmax(0,1fr) !important;
  }
  #v18-root details.v35-community-panel > .v35-profile-tabs > button:last-child:nth-child(odd) {
    grid-column: auto !important;
  }
}
