/**
 * «Питомец дня» (left column): rating + like/comment/share stay inside the card
 * on all widths. Generic .card is 525px + overflow:hidden + hover scale, which
 * clips the toolbar in a 346px sidebar.
 * Does not edit custom.css / mobile-card-fixes / footer.php.
 * Marker: petdayrow20260820a
 */

.cotinder-pet-of-day,
.cotinder-pet-of-day .index__events,
.cotinder-pet-of-day .index__events > div {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.cotinder-pet-of-day .card,
.cotinder-pet-of-day .card.user-slide {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden;
  box-sizing: border-box;
}

.cotinder-pet-of-day .card:focus,
.cotinder-pet-of-day .card:hover,
.cotinder-pet-of-day .card:active {
  transform: none;
}

.cotinder-pet-of-day .card-img-wrap,
.cotinder-pet-of-day a.card-img-wrap {
  display: block;
  max-width: 100%;
}

.cotinder-pet-of-day .card-img,
.cotinder-pet-of-day .card-img-wrap img.card-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.cotinder-pet-of-day .card > .card-stars__wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 8px;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  max-height: none;
  overflow: visible;
  box-sizing: border-box;
}

.cotinder-pet-of-day .card > .card-stars__wrapper > .entity-star-rating,
.cotinder-pet-of-day .card > .card-stars__wrapper > .card-stars {
  display: inline-flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  gap: 2px;
}

.cotinder-pet-of-day .card > .card-stars__wrapper > .entity-star-rating .star,
.cotinder-pet-of-day .card > .card-stars__wrapper > .card-stars .star {
  flex-shrink: 0;
}

.cotinder-pet-of-day .card > .card-stars__wrapper > .entity-star-rating .star svg,
.cotinder-pet-of-day .card > .card-stars__wrapper > .card-stars .star svg {
  width: 18px;
  height: 16px;
  display: block;
}

.cotinder-pet-of-day .card > .card-stars__wrapper .entity-star-rating__avg {
  display: inline-block;
  flex-shrink: 0;
  min-width: 0;
  font-size: 12px;
  line-height: 1;
}

.cotinder-pet-of-day .card > .card-stars__wrapper > .card__buttons {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-left: 0;
  max-width: 100%;
  min-width: 0;
}

.cotinder-pet-of-day .card > .card-stars__wrapper .card__action {
  flex-shrink: 0;
  gap: 2px;
}

.cotinder-pet-of-day .card > .card-stars__wrapper .card__action-cnt {
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.cotinder-pet-of-day .card > .card-stars__wrapper .card__action svg,
.cotinder-pet-of-day .card > .card-stars__wrapper .card__action .vs-likeit.icon-heart {
  width: 18px;
  height: 16px;
  min-width: 18px;
  min-height: 16px;
}

.cotinder-pet-of-day .card > .card-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  max-height: none;
  word-break: break-word;
}

/* Cached HTML often has is-locked without is-guest-rating until JS runs. */
.cotinder-pet-of-day .entity-star-rating.is-locked .star {
  pointer-events: auto !important;
  cursor: pointer;
}

/* Idle state: do not show disabled «Сбросить фильтр» — only after applied results */
.mobile-filter__clear[disabled],
.mobile-filter__clear[aria-disabled="true"] {
  display: none !important;
}
