/* ПитомЧик v79.6.6.4 — любимчики, фотографии питомцев и возврат из памяток. */

/* Удаление одной фотографии питомца. */
.pet-remove-photo-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  min-height:38px;
  margin-top:4px;
  padding:8px 14px;
  border:1px solid #ead2cf;
  border-radius:13px;
  background:#fff7f5;
  color:#9c4540;
  font:inherit;
  font-size:.78rem;
  font-weight:820;
  cursor:pointer;
}
.pet-remove-photo-button:hover{background:#fcecea;border-color:#dcaeaa}
.pet-photo-delete-dialog{width:min(520px,calc(100vw - 28px))!important;max-width:520px!important}
.pet-photo-delete-hint{margin:-2px 0 12px;color:#717770;font-size:.82rem;line-height:1.45}
.pet-photo-delete-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:56vh;overflow:auto;overscroll-behavior:contain}
.pet-photo-delete-item{position:relative;display:block;aspect-ratio:1;padding:0;border:2px solid transparent;border-radius:14px;overflow:hidden;background:#ecefea;cursor:pointer}
.pet-photo-delete-item img{width:100%;height:100%;object-fit:cover}
.pet-photo-delete-item span{position:absolute;left:6px;right:6px;bottom:6px;padding:5px 6px;border-radius:8px;background:rgba(105,34,31,.82);color:#fff;font-size:.65rem;font-weight:850;text-align:center}
.pet-photo-delete-item:hover{border-color:#bd5a55}

/* Социальное окно фотографий питомца использует компактную систему фото профиля. */
.pet-photo-social-viewer{z-index:12400!important}
.pet-photo-social-viewer .profile-photo-owner strong{color:#214c31}
.pet-photo-social-viewer .profile-photo-owner-tools button:first-child{color:#285d3a}
.pet-photo-social-viewer .profile-photo-position:empty{display:none}
.pet-photo-social-media>img{touch-action:pan-y;user-select:none;-webkit-user-drag:none;will-change:transform,opacity}

/* Переход из карточки питомца в памятку. */
html[data-pet-return="1"] .account-context-nav,
html[data-pet-return="1"] .account-return-bar{display:none!important}
.pet-context-back,
.pet-question-back{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:7px;
  width:auto!important;
  max-width:min(100%,220px);
  min-height:38px!important;
  margin:0 0 16px!important;
  padding:8px 14px!important;
  border:1px solid rgba(47,109,70,.2)!important;
  border-radius:14px!important;
  background:#fff!important;
  color:#245d38!important;
  box-shadow:0 5px 15px rgba(28,74,43,.08)!important;
  font:inherit!important;
  font-size:.84rem!important;
  font-weight:850!important;
  line-height:1.2!important;
  text-decoration:none!important;
  white-space:nowrap;
  cursor:pointer;
}
.pet-context-back:hover,.pet-question-back:hover{background:#f3f8f3!important;transform:translateY(-1px)}
html[data-pet-question="1"] .contacts-help-actions{align-items:center}
html[data-pet-question="1"] .contacts-help-actions .pet-question-back{order:-1;margin:0!important}
html[data-pet-question="1"] .request-back.pet-question-back{margin-bottom:16px!important}
html[data-pet-question="1"] .pet-question-footer-hidden{display:none!important}

@media(max-width:1000px){
  .pet-photo-delete-modal{align-items:flex-end!important;padding:0!important}
  .pet-photo-delete-dialog{width:100%!important;max-width:none!important;max-height:min(82dvh,700px)!important;margin:0!important;padding:16px!important;border-radius:22px 22px 0 0!important;overflow:auto!important}
  .pet-photo-delete-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-height:48dvh}
}

@media(max-width:520px){
  .pet-photo-delete-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .pet-remove-photo-button{min-height:36px;padding:7px 12px;font-size:.75rem}
}

@media(max-width:360px){
  .pet-context-back,.pet-question-back{max-width:190px;min-height:35px!important;padding:7px 11px!important;font-size:.78rem!important}
  .pet-photo-delete-item span{font-size:.6rem}
}
.pet-gallery-cover-current{display:inline-flex;align-items:center;min-height:34px;padding:7px 10px;border-radius:11px;background:#edf6ee;color:#2e6843;font-size:.7rem;font-weight:820}
