/**
 * Pet detail + feed — «Ищет дом» on the RIGHT.
 * Detail: raised above level / stars strip (not bottom-left).
 * Feed/list previews: same right side.
 * Specificity beats mobile-card-fixes left:8px (≤1199).
 * Does not edit custom.css / mobile-card-fixes / footer.php.
 */

/* Detail hero */
html body .pet .pet-detail-page .pet__top .pet__top_image,
html body .pet .pet__top .pet__top_media > .pet__top_image {
  position: relative !important;
}

html body .pet .pet-detail-page .pet__top .pet__top_image > .pet-photo-badge_search-home,
html body .pet .pet-detail-page .pet__top .pet__top_media > .pet__top_image > .pet-photo-badge_search-home,
html body .pet .pet__top .pet__top_media > .pet__top_image > .pet-photo-badge_search-home,
html body .pet__top_image > .pet-photo-badge_search-home {
  position: absolute !important;
  top: auto !important;
  left: auto !important;
  right: 8px !important;
  /* Sit on the photo, above stars/level strip */
  bottom: 72px !important;
  z-index: 7 !important;
  margin: 0 !important;
  max-width: 120px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: right bottom !important;
  pointer-events: none !important;
}

/* Feed / canals / similar-pet card previews */
html body .index__posts .card-img-wrap > .pet-photo-badge_search-home,
html body .index__post .card-img-wrap > .pet-photo-badge_search-home,
html body .cotinder-index-feed .card-img-wrap > .pet-photo-badge_search-home,
html body .tabs__content[data-target="canals"] .card-img-wrap > .pet-photo-badge_search-home,
html body .another-pet .card-img-wrap > .pet-photo-badge_search-home,
html body .profiles-flex__item .card-img-wrap > .pet-photo-badge_search-home {
  position: absolute !important;
  top: auto !important;
  left: auto !important;
  right: 8px !important;
  bottom: 8px !important;
  z-index: 6 !important;
  margin: 0 !important;
  max-width: 64px !important;
  max-height: 44px !important;
  object-position: right bottom !important;
  pointer-events: none !important;
}
