/* Manila58 V3.2.40: unify the *actual bottom edge* of therapist
   portrait and reservation button by using one CSS grid track.
   The previous fixed-height photo could not stretch with a taller details summary. */
#m58-v24 #m58-v24-results > details.m58-v24-result > summary.m58-v3221-toggle {
  display: grid !important;
  grid-template-columns: 112px minmax(0, 1fr) !important;
  grid-template-rows: auto !important;
  align-items: stretch !important;
  column-gap: 12px !important;
  min-height: 124px !important;
  padding-right: 16px !important;
}
#m58-v24 #m58-v24-results > details.m58-v24-result > summary.m58-v3221-toggle .m58-v24-itemphoto {
  grid-column: 1 !important;
  grid-row: 1 !important;
  position: relative !important;
  display: block !important;
  align-self: stretch !important;
  width: 100% !important;
  height: auto !important;
  min-height: 124px !important;
  max-height: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}
#m58-v24 #m58-v24-results > details.m58-v24-result > summary.m58-v3221-toggle .m58-v24-itemphoto img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
}
#m58-v24 #m58-v24-results > details.m58-v24-result > summary.m58-v3221-toggle .m58-v24-itemphoto .m58-v24-placeholder {
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#m58-v24 #m58-v24-results > details.m58-v24-result > summary.m58-v3221-toggle .m58-v24-info {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: stretch !important;
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  min-height: 124px !important;
  padding: 0 !important;
  margin: 0 !important;
}
#m58-v24 #m58-v24-results > details.m58-v24-result > summary.m58-v3221-toggle .m58-v3223-cta-wrap {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-end !important;
  margin-top: auto !important;
  margin-bottom: 0 !important;
  min-height: 44px !important;
  padding: 0 !important;
}
#m58-v24 #m58-v24-results > details.m58-v24-result > summary.m58-v3221-toggle .m58-v3223-book-now {
  position: static !important;
  margin: 0 !important;
  align-self: flex-end !important;
}
@media(max-width:540px) {
  #m58-v24 #m58-v24-results > details.m58-v24-result > summary.m58-v3221-toggle {
    grid-template-columns: 96px minmax(0, 1fr) !important;
    column-gap: 10px !important;
    min-height: 112px !important;
  }
  #m58-v24 #m58-v24-results > details.m58-v24-result > summary.m58-v3221-toggle .m58-v24-itemphoto,
  #m58-v24 #m58-v24-results > details.m58-v24-result > summary.m58-v3221-toggle .m58-v24-info {
    min-height: 112px !important;
  }
}
@media(max-width:350px) {
  #m58-v24 #m58-v24-results > details.m58-v24-result > summary.m58-v3221-toggle {
    grid-template-columns: 82px minmax(0, 1fr) !important;
    column-gap: 8px !important;
  }
}
/* Keep the expand caret within the card edge on narrow phones. */
#m58-v24 #m58-v24-results > details.m58-v24-result > summary.m58-v3221-toggle::after {
  right: 11px !important;
}
