﻿/**
 * Exact widths 768 / 820 / 1024 / 1366: pet/owner DETAIL hero —
 * rating ABOVE activity icons.
 * Scope: .pet__top_image > .card-stars__wrapper on /pets/ and /pet-owners/.
 *
 * Photo column is too narrow for stars+icons in one row
 * (custom.css: flex-direction:row + margin-left:auto).
 *
 * Other widths untouched. Does not edit custom.css / mobile-card-fixes / footer.php.
 * (756 in request → 768, project tablet breakpoint.)
 */

@media (min-width: 768px) and (max-width: 768.98px),
       (min-width: 820px) and (max-width: 912.98px),
       (min-width: 1024px) and (max-width: 1024.98px),
       (min-width: 1366px) and (max-width: 1366.98px) {
  .pet .pet-detail-page .pet__top .pet__top_image > .card-stars__wrapper,
  .pet .profile-detail-page .pet__top .pet__top_image > .card-stars__wrapper,
  .pet .pet-owner-public-profile .pet__top .pet__top_image > .card-stars__wrapper {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    row-gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .pet .pet-detail-page .pet__top .pet__top_image > .card-stars__wrapper > .entity-star-rating,
  .pet .pet-detail-page .pet__top .pet__top_image > .card-stars__wrapper > .card-stars,
  .pet .profile-detail-page .pet__top .pet__top_image > .card-stars__wrapper > .entity-star-rating,
  .pet .profile-detail-page .pet__top .pet__top_image > .card-stars__wrapper > .card-stars,
  .pet .pet-owner-public-profile .pet__top .pet__top_image > .card-stars__wrapper > .entity-star-rating,
  .pet .pet-owner-public-profile .pet__top .pet__top_image > .card-stars__wrapper > .card-stars {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    order: 1 !important;
    margin: 0 !important;
  }

  .pet .pet-detail-page .pet__top .pet__top_image > .card-stars__wrapper > .card__buttons,
  .pet .profile-detail-page .pet__top .pet__top_image > .card-stars__wrapper > .card__buttons,
  .pet .pet-owner-public-profile .pet__top .pet__top_image > .card-stars__wrapper > .card__buttons {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: flex-start !important;
    margin-left: 0 !important;
    order: 2 !important;
  }
}
